Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/migration/org.eclipse.papyrus.migration.rsa')
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/.classpath8
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/.project29
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.m2m.qvt.oml.mmodel.urimap12
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/META-INF/MANIFEST.MF65
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/about.html28
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/build.properties13
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/RSAToPapyrusParameters.ctx85
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleConfig.xwt8
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleMappingParameters.xwt8
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleURIMapping.xwt16
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleConfig.xwt23
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleMappingParameters.xwt18
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleURIMapping.xwt18
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/icons/import_wiz_16x16.gifbin541 -> 0 bytes
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/DiagramHolder.ecore9
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/DiagramHolder.genmodel17
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusDefault.ecore51
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusDefault.genmodel51
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusProfileBase.ecore9
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusProfileBase.genmodel17
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.ecore30
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.genmodel392
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.readme14
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/Default.uml2
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/ProfileBase.uml2
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/RealTime.uml2
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/RSAToPapyrusParameters.ecore71
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.di2
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.genmodel59
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.notation196
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.uml107
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/plugin.properties11
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/plugin.xml462
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/pom.xml15
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/schema/extensions.exsd102
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/Config.java242
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/MappingParameters.java71
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/RSAToPapyrusParametersFactory.java75
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/RSAToPapyrusParametersPackage.java602
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/URIMapping.java90
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/ConfigImpl.java587
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/MappingParametersImpl.java210
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/RSAToPapyrusParametersFactoryImpl.java142
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/RSAToPapyrusParametersPackageImpl.java399
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/URIMappingImpl.java246
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/util/RSAToPapyrusParametersAdapterFactory.java178
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/util/RSAToPapyrusParametersSwitch.java182
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/AbstractConstraint.java128
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultFactory.java115
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultLanguage.java90
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultPackage.java1065
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Documentation.java62
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Link.java26
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MarkingImport.java62
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MarkingModel.java61
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MetaConstraint.java60
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Mode.java238
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Severity.java267
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/URL.java149
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/AbstractConstraintImpl.java320
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultFactoryImpl.java289
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultLanguageImpl.java256
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultPackageImpl.java594
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DocumentationImpl.java179
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/LinkImpl.java49
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MarkingImportImpl.java179
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MarkingModelImpl.java178
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MetaConstraintImpl.java183
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/URLImpl.java379
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultAdapterFactory.java284
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultResourceFactoryImpl.java51
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultResourceImpl.java39
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultSwitch.java317
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultXMLProcessor.java59
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolder.java53
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolderFactory.java51
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolderPackage.java233
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderFactoryImpl.java104
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderImpl.java144
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderPackageImpl.java195
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/util/DiagramHolderAdapterFactory.java167
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/util/DiagramHolderSwitch.java153
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileBaseFactory.java55
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileBasePackage.java215
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileConstraint.java61
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileBaseFactoryImpl.java112
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileBasePackageImpl.java206
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileConstraintImpl.java185
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseAdapterFactory.java158
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseResourceFactoryImpl.java61
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseResourceImpl.java39
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseSwitch.java150
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseXMLProcessor.java59
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/PapyrusUMLNotationFactory.java116
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/PapyrusUMLNotationPackage.java2913
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLClassifierShape.java60
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLComponent.java60
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLConnector.java28
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLDiagram.java27
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLFrame.java26
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLShape.java27
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLShapeCompartment.java62
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLView.java210
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/PapyrusUMLNotationFactoryImpl.java202
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/PapyrusUMLNotationPackageImpl.java506
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLClassifierShapeImpl.java185
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLComponentImpl.java184
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLConnectorImpl.java1019
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLDiagramImpl.java550
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLFrameImpl.java48
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLShapeCompartmentImpl.java611
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLShapeImpl.java550
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLViewImpl.java491
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusRSANotationAdapterFactory.java766
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusRSANotationSwitch.java965
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusUMLNotationAdapterFactory.java766
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusUMLNotationSwitch.java966
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/Activator.java69
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/blackbox/ProfileBaseHelper.java55
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/blackbox/RTMappings.java109
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ExecutorsPool.java171
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ResourceAccessHelper.java101
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ThreadSafeModelSet.java33
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ThreadSafeResourceSet.java33
-rwxr-xr-xextraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/constants/TransformationWizardConstants.java47
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/handler/ImportHandler.java154
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/ConfigurationManager.java97
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/extension/PostProcessExtension.java64
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/extension/TransformationExtension.java94
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/JobWrapper.java44
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/Schedulable.java44
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/Scheduler.java126
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/TransformationWrapper.java44
-rwxr-xr-xextraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/messages/Messages.java43
-rwxr-xr-xextraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/messages/messages.properties26
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/DependencyAnalysisHelper.java474
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ImportTransformation.java1498
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ImportTransformationLauncher.java967
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationModelSet.java57
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationResourceSet.java43
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationResourceSetImpl.java71
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ProfileMappingAwareURIConverter.java102
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/RepairStereotypes.java224
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ui/RegisteredItemLabelProvider.java43
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ui/URIMappingDialog.java367
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/utils/CreateFile.java161
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/utils/CreateProject.java132
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/TransformationWizard.java174
-rwxr-xr-xextraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogData.java269
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogDataConfigComposite.java200
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogDataTreeComposite.java335
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/ImportConfigComposite.java196
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/ImportTreeComposite.java540
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/TransformationConfigPage.java73
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/TransformationSelectionPage.java59
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAActivityDiagram.qvto781
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAClassDiagram.qvto1287
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAComponentDiagram.qvto307
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAModelToPapyrus.qvto129
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAProfileDiagram.qvto504
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAProfilesToPapyrus.qvto188
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSASequenceDiagram.qvto381
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAStateMachineDiagram.qvto394
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAStructureDiagram.qvto890
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAToPapyrus.qvto464
-rw-r--r--extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAUsecaseDiagram.qvto397
168 files changed, 0 insertions, 37814 deletions
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.classpath b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.classpath
deleted file mode 100644
index 50aae142c50..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.classpath
+++ /dev/null
@@ -1,8 +0,0 @@
-<?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.8"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src-gen"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.project b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.project
deleted file mode 100644
index 59cf298d7bf..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.project
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.migration.rsa</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.m2m.qvt.oml.project.QVTONature</nature>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.jdt.core.prefs b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b3aa6d60f94..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,291 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.8
-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/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.jdt.ui.prefs b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 954281dbc31..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,68 +0,0 @@
-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/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.m2m.qvt.oml.mmodel.urimap b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.m2m.qvt.oml.mmodel.urimap
deleted file mode 100644
index 360acb96781..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/.settings/org.eclipse.m2m.qvt.oml.mmodel.urimap
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<uriMap:MappingContainer xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:uriMap="http:///www.eclipse.org/m2m/qvt/oml/MModelUriMap/1.0.0">
- <mapping sourceURI="http://www.eclipse.org/papyrus/umlnotation" targetURI="platform:/resource/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.ecore"/>
- <mapping sourceURI="http://www.eclipse.org/papyrus/0.7.0/sashdi" targetURI="platform:/resource/org.eclipse.papyrus.infra.core.sasheditor.di/model/di.ecore"/>
- <mapping sourceURI="http:///RSAToPapyrusParameters.ecore" targetURI="platform:/resource/org.eclipse.papyrus.migration.rsa/model/ui/RSAToPapyrusParameters.ecore"/>
- <mapping sourceURI="http://www.eclipse.org/papyrus/profile/umlrt" targetURI="platform:/resource/org.eclipse.papyrus.migration.rsa/model/PapyrusRT.ecore"/>
- <mapping sourceURI="http://www.eclipse.org/papyrus/profile/default" targetURI="platform:/resource/org.eclipse.papyrus.migration.rsa/model/PapyrusDefault.ecore"/>
- <mapping sourceURI="http://www.eclipse.org/papyrus/profile/profilebase" targetURI="platform:/resource/org.eclipse.papyrus.migration.rsa/model/PapyrusProfileBase.ecore"/>
- <mapping sourceURI="http://www.eclipse.org/papyrus/umlrt" targetURI="platform:/resource/org.eclipse.papyrus.umlrt/umlProfile/UMLRealTime.ecore"/>
- <mapping sourceURI="http://www.eclipse.org/papyrus/umlrt/statemachine" targetURI="platform:/resource/org.eclipse.papyrus.umlrt/umlProfile/UMLRealTimeStateMach.ecore"/>
- <mapping sourceURI="http://www.eclipse.org/papyrus/migration/diagramholder" targetURI="platform:/resource/org.eclipse.papyrus.migration.rsa/model/DiagramHolder.ecore"/>
-</uriMap:MappingContainer>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/META-INF/MANIFEST.MF b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/META-INF/MANIFEST.MF
deleted file mode 100644
index 04ae9923d54..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,65 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.resources;bundle-version="3.9.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.infra.emf;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.m2m.qvt.oml;bundle-version="3.5.0",
- org.eclipse.m2m.qvt.oml.common;bundle-version="3.5.0",
- org.eclipse.m2m.qvt.oml.project;bundle-version="3.3.0",
- org.eclipse.uml2.uml;bundle-version="5.1.0",
- org.eclipse.uml2.uml.edit;bundle-version="5.0.0",
- org.eclipse.gmf.runtime.emf.core;bundle-version="1.7.0",
- org.eclipse.core.runtime,
- org.eclipse.emf.ecore;bundle-version="2.10.1";visibility:=reexport,
- org.eclipse.emf.ecore.xmi;bundle-version="2.10.1",
- org.eclipse.uml2.types;visibility:=reexport,
- org.eclipse.uml2.uml.resources;bundle-version="5.0.0",
- org.eclipse.papyrus.m2m.qvto;bundle-version="[1.4.0,2.0.0)",
- org.eclipse.gmf.runtime.notation;bundle-version="1.7.0",
- org.eclipse.papyrus.uml.extensionpoints;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.dsml.validation;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.papyrus.uml.documentation.profile;bundle-version="[1.2.0,2.0.0)",
- org.eclipse.team.core,
- org.eclipse.papyrus.infra.tools;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.infra.core;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.infra.properties.ui;bundle-version="[2.0.0,3.0.0)",
- org.eclipse.papyrus.infra.widgets;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.infra.gmfdiag.common;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.infra.constraints;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.infra.services.labelprovider;bundle-version="[2.0.0,3.0.0)",
- org.eclipse.swt,
- org.eclipse.ui.workbench,
- org.eclipse.ui.navigator;bundle-version="3.5.500",
- com.google.guava;bundle-version="21.0.0",
- org.eclipse.papyrus.uml.tools;bundle-version="[3.0.0,4.0.0)",
- org.eclipse.papyrus.uml.modelrepair;bundle-version="[2.0.0,3.0.0)",
- org.eclipse.papyrus.infra.viewpoints.policy;bundle-version="[2.0.0,3.0.0)"
-Export-Package: org.eclipse.papyrus.migration.rsa,
- org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters,
- org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl,
- org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.util,
- org.eclipse.papyrus.migration.rsa.blackbox,
- org.eclipse.papyrus.migration.rsa.concurrent,
- org.eclipse.papyrus.migration.rsa.default_,
- org.eclipse.papyrus.migration.rsa.default_.impl,
- org.eclipse.papyrus.migration.rsa.default_.util,
- org.eclipse.papyrus.migration.rsa.diagramholder,
- org.eclipse.papyrus.migration.rsa.diagramholder.impl,
- org.eclipse.papyrus.migration.rsa.diagramholder.util,
- org.eclipse.papyrus.migration.rsa.handler,
- org.eclipse.papyrus.migration.rsa.internal;x-internal:=true,
- org.eclipse.papyrus.migration.rsa.internal.extension,
- org.eclipse.papyrus.migration.rsa.transformation,
- org.eclipse.papyrus.migration.rsa.umlnotation,
- org.eclipse.papyrus.migration.rsa.umlnotation.impl,
- org.eclipse.papyrus.migration.rsa.umlnotation.util
-Bundle-Vendor: %providerName
-Bundle-ActivationPolicy: lazy
-Bundle-ClassPath: .
-Bundle-Version: 1.4.0.qualifier
-Bundle-Localization: plugin
-Bundle-Name: %pluginName
-Bundle-Activator: org.eclipse.papyrus.migration.rsa.Activator
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.migration.rsa;singleton:=true
-Bundle-RequiredExecutionEnvironment: JavaSE-1.8
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/about.html b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/about.html
deleted file mode 100644
index 209103075a7..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>November 14, 2008</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org">http://www.eclipse.org</a>.</p>
-
-</body>
-</html> \ No newline at end of file
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/build.properties b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/build.properties
deleted file mode 100644
index 6c9eb38edc0..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/build.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-source.. = src/,\
- src-gen/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- model/,\
- transform/,\
- plugin.properties,\
- about.html,\
- dialog/,\
- icons/
-src.includes = about.html
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/RSAToPapyrusParameters.ctx b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/RSAToPapyrusParameters.ctx
deleted file mode 100644
index aa96031af9c..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/RSAToPapyrusParameters.ctx
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<contexts:Context xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:constraints="http://www.eclipse.org/papyrus/constraints/0.9" xmlns:contexts="http://www.eclipse.org/papyrus/properties/contexts/0.9" xmi:id="_zJ4D0HZLEeSwiJkQAQl2Jg" name="RSAToPapyrusParameters">
- <tabs xmi:id="_5w-6sHZLEeSwiJkQAQl2Jg" label="RSAToPapyrusParameters" id="rsatopapyrusparameters" priority="100">
- <sections xmi:id="_5w-6sXZLEeSwiJkQAQl2Jg" name="Single Config" sectionFile="ui/SingleConfig.xwt">
- <widget href="ui/SingleConfig.xwt#/"/>
- </sections>
- <sections xmi:id="_5w-6snZLEeSwiJkQAQl2Jg" name="Single MappingParameters" sectionFile="ui/SingleMappingParameters.xwt">
- <widget href="ui/SingleMappingParameters.xwt#/"/>
- </sections>
- <sections xmi:id="_5w-6s3ZLEeSwiJkQAQl2Jg" name="Single URIMapping" sectionFile="ui/SingleURIMapping.xwt">
- <widget href="ui/SingleURIMapping.xwt#/"/>
- </sections>
- <sections xmi:id="_5w-6tHZLEeSwiJkQAQl2Jg" name="Multiple Config" sectionFile="ui/MultipleConfig.xwt">
- <widget href="ui/MultipleConfig.xwt#/"/>
- </sections>
- <sections xmi:id="_5w-6tXZLEeSwiJkQAQl2Jg" name="Multiple MappingParameters" sectionFile="ui/MultipleMappingParameters.xwt">
- <widget href="ui/MultipleMappingParameters.xwt#/"/>
- </sections>
- <sections xmi:id="_5w-6tnZLEeSwiJkQAQl2Jg" name="Multiple URIMapping" sectionFile="ui/MultipleURIMapping.xwt">
- <widget href="ui/MultipleURIMapping.xwt#/"/>
- </sections>
- </tabs>
- <views xmi:id="_zJ4D0XZLEeSwiJkQAQl2Jg" name="Single Config" sections="_5w-6sXZLEeSwiJkQAQl2Jg" automaticContext="true" datacontexts="_zJ4D6nZLEeSwiJkQAQl2Jg">
- <constraints xsi:type="constraints:SimpleConstraint" xmi:id="_zJ4D0nZLEeSwiJkQAQl2Jg" name="isSingleConfig">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.infra.properties.ui/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D03ZLEeSwiJkQAQl2Jg" name="className" value="Config"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D1HZLEeSwiJkQAQl2Jg" name="nsUri" value="http:///RSAToPapyrusParameters.ecore"/>
- </constraints>
- </views>
- <views xmi:id="_zJ4D1XZLEeSwiJkQAQl2Jg" name="Single MappingParameters" sections="_5w-6snZLEeSwiJkQAQl2Jg" automaticContext="true" datacontexts="_zJ4D8XZLEeSwiJkQAQl2Jg">
- <constraints xsi:type="constraints:SimpleConstraint" xmi:id="_zJ4D1nZLEeSwiJkQAQl2Jg" name="isSingleMappingParameters">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.infra.properties.ui/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D13ZLEeSwiJkQAQl2Jg" name="nsUri" value="http:///RSAToPapyrusParameters.ecore"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D2HZLEeSwiJkQAQl2Jg" name="className" value="MappingParameters"/>
- </constraints>
- </views>
- <views xmi:id="_zJ4D2XZLEeSwiJkQAQl2Jg" name="Single URIMapping" sections="_5w-6s3ZLEeSwiJkQAQl2Jg" automaticContext="true" datacontexts="_zJ4D83ZLEeSwiJkQAQl2Jg">
- <constraints xsi:type="constraints:SimpleConstraint" xmi:id="_zJ4D2nZLEeSwiJkQAQl2Jg" name="isSingleURIMapping">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.infra.properties.ui/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D23ZLEeSwiJkQAQl2Jg" name="nsUri" value="http:///RSAToPapyrusParameters.ecore"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D3HZLEeSwiJkQAQl2Jg" name="className" value="URIMapping"/>
- </constraints>
- </views>
- <views xmi:id="_zJ4D3XZLEeSwiJkQAQl2Jg" elementMultiplicity="-1" name="Multiple Config" sections="_5w-6tHZLEeSwiJkQAQl2Jg" automaticContext="true" datacontexts="_zJ4D6nZLEeSwiJkQAQl2Jg">
- <constraints xsi:type="constraints:SimpleConstraint" xmi:id="_zJ4D3nZLEeSwiJkQAQl2Jg" name="isMultipleConfig">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.infra.properties.ui/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D33ZLEeSwiJkQAQl2Jg" name="className" value="Config"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D4HZLEeSwiJkQAQl2Jg" name="nsUri" value="http:///RSAToPapyrusParameters.ecore"/>
- </constraints>
- </views>
- <views xmi:id="_zJ4D4XZLEeSwiJkQAQl2Jg" elementMultiplicity="-1" name="Multiple MappingParameters" sections="_5w-6tXZLEeSwiJkQAQl2Jg" automaticContext="true" datacontexts="_zJ4D8XZLEeSwiJkQAQl2Jg">
- <constraints xsi:type="constraints:SimpleConstraint" xmi:id="_zJ4D4nZLEeSwiJkQAQl2Jg" name="isMultipleMappingParameters">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.infra.properties.ui/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D43ZLEeSwiJkQAQl2Jg" name="className" value="MappingParameters"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D5HZLEeSwiJkQAQl2Jg" name="nsUri" value="http:///RSAToPapyrusParameters.ecore"/>
- </constraints>
- </views>
- <views xmi:id="_zJ4D5XZLEeSwiJkQAQl2Jg" elementMultiplicity="-1" name="Multiple URIMapping" sections="_5w-6tnZLEeSwiJkQAQl2Jg" automaticContext="true" datacontexts="_zJ4D83ZLEeSwiJkQAQl2Jg">
- <constraints xsi:type="constraints:SimpleConstraint" xmi:id="_zJ4D5nZLEeSwiJkQAQl2Jg" name="isMultipleURIMapping">
- <constraintType href="ppe:/environment/org.eclipse.papyrus.infra.properties.ui/model/Environment.xmi#//@constraintTypes.0"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D53ZLEeSwiJkQAQl2Jg" name="className" value="URIMapping"/>
- <properties xsi:type="constraints:ValueProperty" xmi:id="_zJ4D6HZLEeSwiJkQAQl2Jg" name="nsUri" value="http:///RSAToPapyrusParameters.ecore"/>
- </constraints>
- </views>
- <dataContexts xmi:id="_zJ4D6XZLEeSwiJkQAQl2Jg" name="RSAToPapyrusParameters" label="RSAToPapyrusParameters">
- <elements xmi:id="_zJ4D6nZLEeSwiJkQAQl2Jg" name="Config">
- <properties xmi:id="_zJ4D63ZLEeSwiJkQAQl2Jg" name="mappingParameters" type="Reference"/>
- <properties xmi:id="_zJ4D7HZLEeSwiJkQAQl2Jg" name="maxThreads" type="Integer" description="The maximum number of threads to use during the migration.&#xD;&#xA;More threads will provide faster results, at the cost of memory consumption."/>
- <properties xmi:id="_zJ4D7XZLEeSwiJkQAQl2Jg" name="removeUnmappedDiagrams" type="Boolean" description="If true, the diagrams which were not migrated will be removed. Otherwise, only the successfully imported diagrams will be removed"/>
- <properties xmi:id="_zJ4D7nZLEeSwiJkQAQl2Jg" name="convertOpaqueExpressionToLiteralString" type="Boolean" description="If true, the Opaque Expressions with a single body and no language (or a single empty language) will be converted to LiteralString"/>
- <properties xmi:id="_zJ4D73ZLEeSwiJkQAQl2Jg" name="removeUnmappedProfilesAndStereotypes" type="Boolean" description="If true, all unsupported RSA profiles and stereotypes will be deleted at the end of the transformation"/>
- <properties xmi:id="_zJ4D8HZLEeSwiJkQAQl2Jg" name="removeUnmappedAnnotations" type="Boolean" description="If true, the unmapped RSA EAnnotations will be deleted from the imported model"/>
- <properties xmi:id="_jJtVUHcbEeSwiJkQAQl2Jg" name="alwaysAcceptSuggestedMappings" type="Boolean" description="If true, the Transformation will not open a dialog to ask user-confirmation for the dependency mappings. The tool will automatically keep going by &quot;guessing&quot; the proper mapping"/>
- </elements>
- <elements xmi:id="_zJ4D8XZLEeSwiJkQAQl2Jg" name="MappingParameters">
- <properties xmi:id="_zJ4D8nZLEeSwiJkQAQl2Jg" name="uriMappings" label="URI Mappings" type="Reference" multiplicity="-1" description="When models/libraries have been migrated separately, maps the libraries imported from RSA to their Papyrus equivalent"/>
- <properties xmi:id="_u4aUoNexEeSrN8eFf6IVtg" name="profileUriMappings" label="Profile URI Mappings" type="Reference" multiplicity="-1" description="When profiles have been migrated separately, maps the profiles imported from RSA to their Papyrus equivalent"/>
- </elements>
- <elements xmi:id="_zJ4D83ZLEeSwiJkQAQl2Jg" name="URIMapping">
- <properties xmi:id="_zJ4D9HZLEeSwiJkQAQl2Jg" name="sourceURI"/>
- <properties xmi:id="_zJ4D9XZLEeSwiJkQAQl2Jg" name="targetURI"/>
- </elements>
- <modelElementFactory href="ppe:/environment/org.eclipse.papyrus.infra.properties.ui/model/Environment.xmi#//@modelElementFactories.0"/>
- </dataContexts>
-</contexts:Context>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleConfig.xwt b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleConfig.xwt
deleted file mode 100644
index 8b69f2a1492..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleConfig.xwt
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt"
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
- xmlns:j="clr-namespace:java.lang" xmlns="http://www.eclipse.org/xwt/presentation">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
-</Composite> \ No newline at end of file
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleMappingParameters.xwt b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleMappingParameters.xwt
deleted file mode 100644
index 8b69f2a1492..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleMappingParameters.xwt
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt"
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
- xmlns:j="clr-namespace:java.lang" xmlns="http://www.eclipse.org/xwt/presentation">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
-</Composite> \ No newline at end of file
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleURIMapping.xwt b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleURIMapping.xwt
deleted file mode 100644
index c4d41530506..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/MultipleURIMapping.xwt
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets"
- xmlns:x="http://www.eclipse.org/xwt"
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
- xmlns:j="clr-namespace:java.lang" xmlns="http://www.eclipse.org/xwt/presentation">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:StringEditor input="{Binding}"
- property="RSAToPapyrusParameters:URIMapping:targetURI"></ppe:StringEditor>
- </Composite>
-</Composite> \ No newline at end of file
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleConfig.xwt b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleConfig.xwt
deleted file mode 100644
index abc2a36e7b8..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleConfig.xwt
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:j="clr-namespace:java.lang"
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
- xmlns:x="http://www.eclipse.org/xwt" xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets"
- xmlns="http://www.eclipse.org/xwt/presentation">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:BooleanCheckbox input="{Binding}"
- property="RSAToPapyrusParameters:Config:convertOpaqueExpressionToLiteralString"></ppe:BooleanCheckbox>
- <ppe:BooleanCheckbox input="{Binding}"
- property="RSAToPapyrusParameters:Config:removeUnmappedProfilesAndStereotypes"></ppe:BooleanCheckbox>
- <ppe:BooleanCheckbox
- property="RSAToPapyrusParameters:Config:alwaysAcceptSuggestedMappings"
- input="{Binding}"></ppe:BooleanCheckbox>
- <ppe:IntegerEditor input="{Binding}"
- property="RSAToPapyrusParameters:Config:maxThreads"></ppe:IntegerEditor>
- </Composite>
-</Composite> \ No newline at end of file
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleMappingParameters.xwt b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleMappingParameters.xwt
deleted file mode 100644
index 6dd88bc795a..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleMappingParameters.xwt
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:j="clr-namespace:java.lang" xmlns:x="http://www.eclipse.org/xwt"
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
- xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:MultiReference input="{Binding}"
- property="RSAToPapyrusParameters:MappingParameters:uriMappings"></ppe:MultiReference>
- <ppe:MultiReference
- property="RSAToPapyrusParameters:MappingParameters:profileUriMappings"
- input="{Binding}"></ppe:MultiReference>
- </Composite>
-</Composite> \ No newline at end of file
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleURIMapping.xwt b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleURIMapping.xwt
deleted file mode 100644
index 80a764d1433..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/dialog/ui/SingleURIMapping.xwt
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:ppe="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets"
- xmlns:x="http://www.eclipse.org/xwt"
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.infra.properties.ui.widgets.layout"
- xmlns:j="clr-namespace:java.lang" xmlns="http://www.eclipse.org/xwt/presentation">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
- <Composite>
- <Composite.layout>
- <ppel:PropertiesLayout numColumns="1"></ppel:PropertiesLayout>
- </Composite.layout>
- <ppe:StringEditor input="{Binding}"
- property="RSAToPapyrusParameters:URIMapping:sourceURI"></ppe:StringEditor>
- <ppe:StringEditor input="{Binding}"
- property="RSAToPapyrusParameters:URIMapping:targetURI"></ppe:StringEditor>
- </Composite>
-</Composite> \ No newline at end of file
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/icons/import_wiz_16x16.gif b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/icons/import_wiz_16x16.gif
deleted file mode 100644
index c7be463bcd2..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/icons/import_wiz_16x16.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/DiagramHolder.ecore b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/DiagramHolder.ecore
deleted file mode 100644
index 17376d37ca4..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/DiagramHolder.ecore
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage 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" name="diagramholder" nsURI="http://www.eclipse.org/papyrus/migration/diagramholder"
- nsPrefix="res">
- <eClassifiers xsi:type="ecore:EClass" name="DiagramHolder" eSuperTypes="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EAnnotation">
- <eStructuralFeatures xsi:type="ecore:EReference" name="ownedDiagrams" upperBound="-1"
- eType="ecore:EClass http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram"/>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/DiagramHolder.genmodel b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/DiagramHolder.genmodel
deleted file mode 100644
index d82dc712acc..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/DiagramHolder.genmodel
+++ /dev/null
@@ -1,17 +0,0 @@
-<?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" copyrightText="Copyright (c) 2015 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;&#x9;Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation"
- modelDirectory="/org.eclipse.papyrus.migration.rsa/src-gen" editDirectory="/org.eclipse.papyrus.migration.rsa.edit/src-gen"
- editorDirectory="/org.eclipse.papyrus.migration.rsa.editor/src-gen" modelPluginID="org.eclipse.papyrus.migration.rsa"
- modelName="DiagramHolder" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- testsDirectory="/org.eclipse.papyrus.migration.rsa.tests/src-gen" importerID="org.eclipse.emf.importer.ecore"
- complianceLevel="6.0" copyrightFields="false" usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore PapyrusUMLNotation.genmodel#//notation"
- operationReflection="true" importOrganizing="true">
- <foreignModel>DiagramHolder.ecore</foreignModel>
- <genPackages prefix="DiagramHolder" basePackage="org.eclipse.papyrus.migration.rsa"
- disposableProviderFactory="true" ecorePackage="DiagramHolder.ecore#/">
- <genClasses ecoreClass="DiagramHolder.ecore#//DiagramHolder">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference DiagramHolder.ecore#//DiagramHolder/ownedDiagrams"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusDefault.ecore b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusDefault.ecore
deleted file mode 100644
index 51608f524b3..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusDefault.ecore
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage 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" name="default" nsURI="http://www.eclipse.org/papyrus/profile/default"
- nsPrefix="default">
- <eClassifiers xsi:type="ecore:EClass" name="Documentation">
- <eStructuralFeatures xsi:type="ecore:EReference" name="base_Comment" lowerBound="1"
- eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Comment"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="URL">
- <eStructuralFeatures xsi:type="ecore:EReference" name="base_Comment" lowerBound="1"
- eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Comment"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" lowerBound="1" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="displayName" lowerBound="1"
- eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="icon" lowerBound="1" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EByteArray"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="Link" eSuperTypes="#//URL"/>
- <eClassifiers xsi:type="ecore:EClass" name="AbstractConstraint" abstract="true">
- <eStructuralFeatures xsi:type="ecore:EReference" name="base_Constraint" lowerBound="1"
- eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Constraint"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="evaluationMode" lowerBound="1"
- eType="#//Mode" defaultValueLiteral="batch"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="severity" lowerBound="1"
- eType="#//Severity" defaultValueLiteral="error"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MetaConstraint" eSuperTypes="#//AbstractConstraint">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="message" lowerBound="1"
- eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MarkingModel">
- <eStructuralFeatures xsi:type="ecore:EReference" name="base_Package" lowerBound="1"
- eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Package"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MarkingImport">
- <eStructuralFeatures xsi:type="ecore:EReference" name="base_ElementImport" lowerBound="1"
- eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//ElementImport"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="Mode">
- <eLiterals name="batch"/>
- <eLiterals name="live" value="1"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EEnum" name="Severity">
- <eLiterals name="error"/>
- <eLiterals name="warning" value="1"/>
- <eLiterals name="info" value="2"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="DefaultLanguage">
- <eStructuralFeatures xsi:type="ecore:EReference" name="base_Package" eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//Package"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultLanguage" eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusDefault.genmodel b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusDefault.genmodel
deleted file mode 100644
index 41eb23de042..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusDefault.genmodel
+++ /dev/null
@@ -1,51 +0,0 @@
-<?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" copyrightText=" * Copyright (c) 2013, 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; * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation"
- modelDirectory="/org.eclipse.papyrus.migration.rsa/src-gen" editDirectory="/org.eclipse.papyrus.migration.rsa.edit/src-gen"
- editorDirectory="/org.eclipse.papyrus.migration.rsa.editor/src-gen" modelPluginID="org.eclipse.papyrus.migration.rsa"
- modelName="PapyrusDefault" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- testsDirectory="/org.eclipse.papyrus.migration.rsa.tests/src-gen" importerID="org.eclipse.emf.importer.ecore"
- complianceLevel="6.0" copyrightFields="false" usedGenPackages="../../org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../org.eclipse.uml2.types/model/Types.genmodel#//types ../../org.eclipse.uml2.uml/model/UML.genmodel#//uml"
- operationReflection="true" importOrganizing="true">
- <foreignModel>PapyrusDefault.ecore</foreignModel>
- <genPackages prefix="Default" basePackage="org.eclipse.papyrus.migration.rsa" resource="XML"
- disposableProviderFactory="true" ecorePackage="PapyrusDefault.ecore#/">
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="PapyrusDefault.ecore#//Mode">
- <genEnumLiterals ecoreEnumLiteral="PapyrusDefault.ecore#//Mode/batch"/>
- <genEnumLiterals ecoreEnumLiteral="PapyrusDefault.ecore#//Mode/live"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="PapyrusDefault.ecore#//Severity">
- <genEnumLiterals ecoreEnumLiteral="PapyrusDefault.ecore#//Severity/error"/>
- <genEnumLiterals ecoreEnumLiteral="PapyrusDefault.ecore#//Severity/warning"/>
- <genEnumLiterals ecoreEnumLiteral="PapyrusDefault.ecore#//Severity/info"/>
- </genEnums>
- <genClasses ecoreClass="PapyrusDefault.ecore#//Documentation">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference PapyrusDefault.ecore#//Documentation/base_Comment"/>
- </genClasses>
- <genClasses ecoreClass="PapyrusDefault.ecore#//URL">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference PapyrusDefault.ecore#//URL/base_Comment"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusDefault.ecore#//URL/type"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusDefault.ecore#//URL/displayName"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusDefault.ecore#//URL/icon"/>
- </genClasses>
- <genClasses ecoreClass="PapyrusDefault.ecore#//Link"/>
- <genClasses image="false" ecoreClass="PapyrusDefault.ecore#//AbstractConstraint">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference PapyrusDefault.ecore#//AbstractConstraint/base_Constraint"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusDefault.ecore#//AbstractConstraint/evaluationMode"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusDefault.ecore#//AbstractConstraint/severity"/>
- </genClasses>
- <genClasses ecoreClass="PapyrusDefault.ecore#//MetaConstraint">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusDefault.ecore#//MetaConstraint/message"/>
- </genClasses>
- <genClasses ecoreClass="PapyrusDefault.ecore#//MarkingModel">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference PapyrusDefault.ecore#//MarkingModel/base_Package"/>
- </genClasses>
- <genClasses ecoreClass="PapyrusDefault.ecore#//MarkingImport">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference PapyrusDefault.ecore#//MarkingImport/base_ElementImport"/>
- </genClasses>
- <genClasses ecoreClass="PapyrusDefault.ecore#//DefaultLanguage">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference PapyrusDefault.ecore#//DefaultLanguage/base_Package"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusDefault.ecore#//DefaultLanguage/defaultLanguage"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusProfileBase.ecore b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusProfileBase.ecore
deleted file mode 100644
index 4fa8fc76e6e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusProfileBase.ecore
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage 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" name="profilebase" nsURI="http://www.eclipse.org/papyrus/profile/profilebase"
- nsPrefix="ProfileBase">
- <eClassifiers xsi:type="ecore:EClass" name="ProfileConstraint" eSuperTypes="PapyrusDefault.ecore#//AbstractConstraint">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="messageKey" lowerBound="1"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusProfileBase.genmodel b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusProfileBase.genmodel
deleted file mode 100644
index de3c5567055..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusProfileBase.genmodel
+++ /dev/null
@@ -1,17 +0,0 @@
-<?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" copyrightText=" * Copyright (c) 2013, 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; * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation"
- modelDirectory="/org.eclipse.papyrus.migration.rsa/src-gen" editDirectory="/org.eclipse.papyrus.migration.rsa.edit/src-gen"
- editorDirectory="/org.eclipse.papyrus.migration.rsa.editor/src-gen" modelPluginID="org.eclipse.papyrus.migration.rsa"
- modelName="PapyrusProfileBase" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- testsDirectory="/org.eclipse.papyrus.migration.rsa.tests/src-gen" importerID="org.eclipse.emf.importer.ecore"
- complianceLevel="6.0" copyrightFields="false" language="" usedGenPackages="../../org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore PapyrusDefault.genmodel#//default ../../org.eclipse.uml2.types/model/Types.genmodel#//types ../../org.eclipse.uml2.uml/model/UML.genmodel#//uml"
- operationReflection="true" importOrganizing="true">
- <foreignModel>PapyrusProfileBase.ecore</foreignModel>
- <genPackages prefix="ProfileBase" basePackage="org.eclipse.papyrus.migration.rsa"
- resource="XML" disposableProviderFactory="true" ecorePackage="PapyrusProfileBase.ecore#/">
- <genClasses ecoreClass="PapyrusProfileBase.ecore#//ProfileConstraint">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusProfileBase.ecore#//ProfileConstraint/messageKey"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.ecore b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.ecore
deleted file mode 100644
index ac1926428ad..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.ecore
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage 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" name="umlnotation" nsURI="http://www.eclipse.org/papyrus/umlnotation"
- nsPrefix="umlnotationext">
- <eClassifiers xsi:type="ecore:EClass" name="UMLDiagram" eSuperTypes="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram #//UMLView"/>
- <eClassifiers xsi:type="ecore:EClass" name="UMLFrame" eSuperTypes="#//UMLShape"/>
- <eClassifiers xsi:type="ecore:EClass" name="UMLShapeCompartment" eSuperTypes="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Compartment #//UMLView">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="verticalAlignment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="true"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="UMLShape" eSuperTypes="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Shape #//UMLView"/>
- <eClassifiers xsi:type="ecore:EClass" name="UMLConnector" eSuperTypes="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Connector http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FontStyle #//UMLView"/>
- <eClassifiers xsi:type="ecore:EClass" name="UMLView" abstract="true" eSuperTypes="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="showStereotype" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="showListVisibility" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
- defaultValueLiteral="None"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="showListSignature" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
- defaultValueLiteral="true"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="alignment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="showStereotypeAttributeCompartment"
- eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="showListStereotype" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="UMLComponent" eSuperTypes="#//UMLShape">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="showWhitebox" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="UMLClassifierShape" eSuperTypes="#//UMLShape">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="useClassifierShape" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.genmodel b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.genmodel
deleted file mode 100644
index 589308d19af..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.genmodel
+++ /dev/null
@@ -1,392 +0,0 @@
-<?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" copyrightText=" * Copyright (c) 2013, 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; * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation"
- modelDirectory="/org.eclipse.papyrus.migration.rsa/src-gen" modelPluginID="org.eclipse.papyrus.migration.rsa"
- modelName="PapyrusUMLNotation" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- importerID="org.eclipse.emf.importer.ecore" complianceLevel="5.0" copyrightFields="false"
- language="" operationReflection="true" importOrganizing="true">
- <foreignModel>PapyrusUMLNotation.ecore</foreignModel>
- <genPackages prefix="PapyrusUMLNotation" basePackage="org.eclipse.papyrus.migration.rsa"
- disposableProviderFactory="true" fileExtensions="umlnotation" ecorePackage="PapyrusUMLNotation.ecore#/">
- <genClasses ecoreClass="PapyrusUMLNotation.ecore#//UMLDiagram"/>
- <genClasses ecoreClass="PapyrusUMLNotation.ecore#//UMLFrame"/>
- <genClasses ecoreClass="PapyrusUMLNotation.ecore#//UMLShapeCompartment">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusUMLNotation.ecore#//UMLShapeCompartment/verticalAlignment"/>
- </genClasses>
- <genClasses ecoreClass="PapyrusUMLNotation.ecore#//UMLShape"/>
- <genClasses ecoreClass="PapyrusUMLNotation.ecore#//UMLConnector"/>
- <genClasses image="false" ecoreClass="PapyrusUMLNotation.ecore#//UMLView">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusUMLNotation.ecore#//UMLView/showStereotype"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusUMLNotation.ecore#//UMLView/showListVisibility"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusUMLNotation.ecore#//UMLView/showListSignature"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusUMLNotation.ecore#//UMLView/alignment"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusUMLNotation.ecore#//UMLView/showStereotypeAttributeCompartment"/>
- </genClasses>
- <genClasses ecoreClass="PapyrusUMLNotation.ecore#//UMLComponent">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusUMLNotation.ecore#//UMLComponent/showWhitebox"/>
- </genClasses>
- <genClasses ecoreClass="PapyrusUMLNotation.ecore#//UMLClassifierShape">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute PapyrusUMLNotation.ecore#//UMLClassifierShape/useClassifierShape"/>
- </genClasses>
- </genPackages>
- <genPackages prefix="Notation" ecorePackage="http://www.eclipse.org/gmf/runtime/1.0.2/notation#/">
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Sorting">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Sorting/None"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Sorting/Manual"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Sorting/Automatic"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Filtering">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Filtering/None"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Filtering/Manual"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Filtering/Automatic"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Routing">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Routing/Manual"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Routing/Rectilinear"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Routing/Tree"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Smoothness">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Smoothness/None"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Smoothness/Normal"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Smoothness/Less"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Smoothness/More"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//JumpLinkStatus">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//JumpLinkStatus/None"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//JumpLinkStatus/All"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//JumpLinkStatus/Below"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//JumpLinkStatus/Above"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//JumpLinkType">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//JumpLinkType/Semicircle"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//JumpLinkType/Square"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//JumpLinkType/Chamfered"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Alignment">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Alignment/Left"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Alignment/Right"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Alignment/Center"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Alignment/Top"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Alignment/Bottom"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SortingDirection">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SortingDirection/Ascending"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SortingDirection/Descending"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//MeasurementUnit">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//MeasurementUnit/Himetric"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//MeasurementUnit/Pixel"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//TextAlignment">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//TextAlignment/Left"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//TextAlignment/Right"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//TextAlignment/Center"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineType">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineType/Solid"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineType/Dash"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineType/Dot"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineType/DashDot"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineType/DashDotDot"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineType/Double"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ArrowType">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ArrowType/None"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ArrowType/OpenArrow"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ArrowType/SolidArrow"/>
- </genEnums>
- <genEnums typeSafeEnumCompatible="false" ecoreEnum="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//GradientStyle">
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//GradientStyle/Vertical"/>
- <genEnumLiterals ecoreEnumLiteral="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//GradientStyle/Horizontal"/>
- </genEnums>
- <genDataTypes ecoreDataType="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RelativeBendpointList"/>
- <genDataTypes ecoreDataType="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FilterKeyList"/>
- <genDataTypes ecoreDataType="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SortKeyMap"/>
- <genDataTypes ecoreDataType="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//GradientData"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/source"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/target"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/bendpoints"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/sourceAnchor"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/targetAnchor"/>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/createBendpoints">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/createBendpoints/eClass"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/createSourceAnchor">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/createSourceAnchor/eClass"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/createTargetAnchor">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Edge/createTargetAnchor/eClass"/>
- </genOperations>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Node">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Node/layoutConstraint"/>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Node/createLayoutConstraint">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Node/createLayoutConstraint/eClass"/>
- </genOperations>
- </genClasses>
- <genClasses image="false" ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Style"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FillStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FillStyle/fillColor"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FillStyle/transparency"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FillStyle/gradient"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineStyle/lineColor"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineStyle/lineWidth"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FontStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FontStyle/fontColor"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FontStyle/fontName"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FontStyle/fontHeight"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FontStyle/bold"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FontStyle/italic"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FontStyle/underline"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FontStyle/strikeThrough"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//TitleStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//TitleStyle/showTitle"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SortingStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SortingStyle/sorting"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SortingStyle/sortingKeys"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SortingStyle/sortedObjects"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DescriptionStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DescriptionStyle/description"/>
- </genClasses>
- <genClasses image="false" ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LayoutConstraint"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Size">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Size/width"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Size/height"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Location">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Location/x"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Location/y"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Bounds"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Ratio">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Ratio/value"/>
- </genClasses>
- <genClasses image="false" ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Anchor"/>
- <genClasses image="false" ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Bendpoints"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//IdentityAnchor">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//IdentityAnchor/id"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoutingStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoutingStyle/routing"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoutingStyle/smoothness"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoutingStyle/avoidObstructions"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoutingStyle/closestDistance"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoutingStyle/jumpLinkStatus"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoutingStyle/jumpLinkType"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoutingStyle/jumpLinksReverse"/>
- </genClasses>
- <genClasses image="false" ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/visible"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/type"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/mutable"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/sourceEdges"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/targetEdges"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/children"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/styles"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/element"/>
- <genFeatures property="Readonly" notify="false" createChild="false" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/diagram"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/transientChildren"/>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/getStyle">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/getStyle/eClass"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/createChild">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/createChild/eClass"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/createStyle">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/createStyle/eClass"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/getNamedStyle">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/getNamedStyle/eClass"/>
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//View/getNamedStyle/name"/>
- </genOperations>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RelativeBendpoints">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RelativeBendpoints/points"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram/name"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram/measurementUnit"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram/edges"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram/TransientEdges"/>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram/createEdge">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Diagram/createEdge/eClass"/>
- </genOperations>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Image">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Image/data"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//CanonicalStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//CanonicalStyle/canonical"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ShapeStyle"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ConnectorStyle"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PageStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PageStyle/pageX"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PageStyle/pageY"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PageStyle/pageWidth"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PageStyle/pageHeight"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DrawerStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DrawerStyle/collapsed"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//GuideStyle">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//GuideStyle/horizontalGuides"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//GuideStyle/verticalGuides"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Guide">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Guide/position"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Guide/nodeMap"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//NodeEntry">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//NodeEntry/value"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//NodeEntry/key"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FilteringStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FilteringStyle/filtering"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FilteringStyle/filteringKeys"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//FilteringStyle/filteredObjects"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DiagramStyle"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ImageStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ImageStyle/antiAlias"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ImageStyle/maintainAspectRatio"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ImageStyle/cropBound"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ImageBufferStyle">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ImageBufferStyle/imageBuffer"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle">
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/propertiesMap"/>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/getProperty">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/getProperty/propertyName"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/setProperty">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/setProperty/propertyName"/>
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/setProperty/newValue"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/createProperty">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/createProperty/propertyName"/>
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/createProperty/instanceType"/>
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/createProperty/initialValue"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/removeProperty">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/removeProperty/propertyName"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/hasProperty">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/hasProperty/propertyName"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/createProperty.1">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/createProperty.1/propertyName"/>
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertiesSetStyle/createProperty.1/initialValue"/>
- </genOperations>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringToPropertyValueMapEntry">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringToPropertyValueMapEntry/key"/>
- <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringToPropertyValueMapEntry/value"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertyValue">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertyValue/rawValue"/>
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertyValue/instanceType"/>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertyValue/getValue"/>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertyValue/setValue">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//PropertyValue/setValue/newValue"/>
- </genOperations>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SingleValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SingleValueStyle/rawValue"/>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SingleValueStyle/getValue"/>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SingleValueStyle/setValue">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SingleValueStyle/setValue/newValue"/>
- </genOperations>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ListValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ListValueStyle/rawValuesList"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//NamedStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//NamedStyle/name"/>
- </genClasses>
- <genClasses image="false" ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringObjectConverter">
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringObjectConverter/getStringFromObject">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringObjectConverter/getStringFromObject/objectValue"/>
- </genOperations>
- <genOperations ecoreOperation="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringObjectConverter/getObjectFromString">
- <genParameters ecoreParameter="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringObjectConverter/getObjectFromString/stringValue"/>
- </genOperations>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DataTypeStyle">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DataTypeStyle/instanceType"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//IntValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//IntValueStyle/intValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//IntListValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//IntListValueStyle/intListValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//BooleanValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//BooleanValueStyle/booleanValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DoubleValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DoubleValueStyle/doubleValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DoubleListValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DoubleListValueStyle/doubleListValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringValueStyle/stringValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringListValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StringListValueStyle/stringListValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//EObjectValueStyle">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//EObjectValueStyle/eObjectValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//EObjectListValueStyle">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//EObjectListValueStyle/eObjectListValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ByteArrayValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ByteArrayValueStyle/byteArrayValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//BooleanListValueStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//BooleanListValueStyle/booleanListValue"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//HintedDiagramLinkStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//HintedDiagramLinkStyle/hint"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DiagramLinkStyle">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DiagramLinkStyle/diagramLink"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//MultiDiagramLinkStyle">
- <genFeatures notify="false" createChild="false" propertySortChoices="true" ecoreFeature="ecore:EReference http://www.eclipse.org/gmf/runtime/1.0.2/notation#//MultiDiagramLinkStyle/diagramLinks"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//TextStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//TextStyle/textAlignment"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineTypeStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//LineTypeStyle/lineType"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ArrowStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ArrowStyle/arrowSource"/>
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ArrowStyle/arrowTarget"/>
- </genClasses>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Shape"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Compartment"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//ListCompartment"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//Connector"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//StandardDiagram"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//DecorationNode"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//BasicDecorationNode"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//BasicCompartment"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//BasicSemanticCompartment"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//SemanticListCompartment"/>
- <genClasses ecoreClass="http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoundedCornersStyle">
- <genFeatures createChild="false" ecoreFeature="ecore:EAttribute http://www.eclipse.org/gmf/runtime/1.0.2/notation#//RoundedCornersStyle/roundedBendpointsRadius"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.readme b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.readme
deleted file mode 100644
index 9879ff1e4f9..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/PapyrusUMLNotation.readme
+++ /dev/null
@@ -1,14 +0,0 @@
-The PapyrusUMLNotation metamodel extends the Notation metamodel, which doesn't provide a Genmodel (And probably used non-standard code generation for Transient/Persisted links)
-
-Thus, when regenerating the PapyrusUMLNotation metamodel, it is required to do some manual clean-up in the generated code:
-
-- Remove the generated notation metamodel (Packages "notation", "notation.impl", "notation.util")
-- Replace all references to notation.* (especially notation.NotationPackage, notation.NotationPackageImpl) with proper version from GMF Notation (Import NotationPackage and NotationPackageImpl from GMF Notation)
-- Clean up the Manifest.mf and Plugin.xml (e.g. revert to last version)
-- Fix 'Persisted' methods (Compare with previous commit)
-- Remove support for generics in @Override methods (GMF Notation uses Java 1.4)
-
-Additionally, the EMF GenModel code generator evolves over time, and may add new concepts
-(with @Override annotations), that were not supported in the GMF Notation metamodel
-(e.g. support for EOperations). It may also be necessary to remove these generated
-methods/attributes/constants.
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/Default.uml b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/Default.uml
deleted file mode 100644
index 6f93e63c0f0..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/Default.uml
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<uml:Profile 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="_Nfp9EKiGEeSPtOio57ufig" name="Default Dummy"/>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/ProfileBase.uml b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/ProfileBase.uml
deleted file mode 100644
index fccc5869f02..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/ProfileBase.uml
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<uml:Profile 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="_YFn2MKiGEeSPtOio57ufig" name="ProfileBase Dummy"/>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/RealTime.uml b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/RealTime.uml
deleted file mode 100644
index 58cb264eb39..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/profiles/RealTime.uml
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<uml:Profile 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="_1FAMEKiFEeSPtOio57ufig" name="RealTime Dummy"/>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/RSAToPapyrusParameters.ecore b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/RSAToPapyrusParameters.ecore
deleted file mode 100644
index b11879cf2f5..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/RSAToPapyrusParameters.ecore
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ecore:EPackage 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" name="RSAToPapyrusParameters" nsURI="http:///RSAToPapyrusParameters.ecore"
- nsPrefix="RSAToPapyrusParameters">
- <eClassifiers xsi:type="ecore:EClass" name="Config">
- <eStructuralFeatures xsi:type="ecore:EReference" name="mappingParameters" ordered="false"
- lowerBound="1" eType="#//MappingParameters" containment="true"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="maxThreads" ordered="false"
- unique="false" lowerBound="1" eType="ecore:EDataType ../../../org.eclipse.uml2.types/model/Types.ecore#//Integer"
- defaultValueLiteral="2">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="The maximum number of threads to use during the migration.&#xD;&#xA;More threads will provide faster results, at the cost of memory consumption."/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="removeUnmappedDiagrams"
- ordered="false" unique="false" lowerBound="1" eType="ecore:EDataType ../../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"
- defaultValueLiteral="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="If true, the diagrams which were not migrated will be removed. Otherwise, only the successfully imported diagrams will be removed"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="convertOpaqueExpressionToLiteralString"
- ordered="false" unique="false" lowerBound="1" eType="ecore:EDataType ../../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"
- defaultValueLiteral="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="If true, the Opaque Expressions with a single body and no language (or a single empty language) will be converted to LiteralString"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="removeUnmappedProfilesAndStereotypes"
- ordered="false" unique="false" lowerBound="1" eType="ecore:EDataType ../../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"
- defaultValueLiteral="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="If true, all unsupported RSA profiles and stereotypes will be deleted at the end of the transformation"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="removeUnmappedAnnotations"
- ordered="false" unique="false" lowerBound="1" eType="ecore:EDataType ../../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"
- defaultValueLiteral="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="If true, the unmapped RSA EAnnotations will be deleted from the imported model"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="alwaysAcceptSuggestedMappings"
- ordered="false" lowerBound="1" eType="ecore:EDataType ../../../org.eclipse.uml2.types/model/Types.ecore#//Boolean"
- defaultValueLiteral="false">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="If true, the Transformation will not open a dialog to ask user-confirmation for the dependency mappings. The tool will automatically keep going by &quot;guessing&quot; the proper mapping"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="MappingParameters">
- <eStructuralFeatures xsi:type="ecore:EReference" name="uriMappings" ordered="false"
- upperBound="-1" eType="#//URIMapping" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="When models/libraries have been migrated separately, maps the libraries imported from RSA to their Papyrus equivalent"/>
- </eAnnotations>
- </eStructuralFeatures>
- <eStructuralFeatures xsi:type="ecore:EReference" name="profileUriMappings" ordered="false"
- upperBound="-1" eType="#//URIMapping" containment="true">
- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
- <details key="documentation" value="When profiles have been migrated separately, maps the profiles imported from RSA to their Papyrus equivalent"/>
- </eAnnotations>
- </eStructuralFeatures>
- </eClassifiers>
- <eClassifiers xsi:type="ecore:EClass" name="URIMapping">
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="sourceURI" ordered="false"
- unique="false" lowerBound="1" eType="ecore:EDataType ../../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
- <eStructuralFeatures xsi:type="ecore:EAttribute" name="targetURI" ordered="false"
- unique="false" lowerBound="1" eType="ecore:EDataType ../../../org.eclipse.uml2.types/model/Types.ecore#//String"/>
- </eClassifiers>
-</ecore:EPackage>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.di b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.di
deleted file mode 100644
index 8634d4c00e0..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.di
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.genmodel b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.genmodel
deleted file mode 100644
index 5f575afbc7b..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.genmodel
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<genmodel:GenModel 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:genmodel="http://www.eclipse.org/uml2/2.2.0/GenModel"
- 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;&#x9;Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation"
- modelDirectory="/org.eclipse.papyrus.migration.rsa/src-gen" editDirectory="/org.eclipse.papyrus.migration.rsa.edit/src-gen"
- editorDirectory="/org.eclipse.papyrus.migration.rsa.editor/src-gen" modelPluginID="org.eclipse.papyrus.migration.rsa"
- modelName="RsaToPapyrusParameters" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
- testsDirectory="/org.eclipse.papyrus.migration.rsa.tests/src-gen" importerID="org.eclipse.uml2.uml.ecore.importer"
- complianceLevel="6.0" copyrightFields="false" usedGenPackages="../../../org.eclipse.uml2.types/model/Types.genmodel#//types"
- operationReflection="true" importOrganizing="true">
- <genAnnotations source="http://www.eclipse.org/emf/2002/GenModel/importer/org.eclipse.uml2.uml.ecore.importer">
- <details key="ECORE_TAGGED_VALUES" value="PROCESS"/>
- <details key="UNION_PROPERTIES" value="REPORT"/>
- <details key="UNTYPED_PROPERTIES" value="REPORT"/>
- <details key="DUPLICATE_FEATURES" value="DISCARD"/>
- <details key="SUBSETTING_PROPERTIES" value="REPORT"/>
- <details key="VALIDATION_DELEGATES" value="IGNORE"/>
- <details key="OPPOSITE_ROLE_NAMES" value="IGNORE"/>
- <details key="COMMENTS" value="PROCESS"/>
- <details key="DUPLICATE_FEATURE_INHERITANCE" value="DISCARD"/>
- <details key="DUPLICATE_OPERATIONS" value="DISCARD"/>
- <details key="PROPERTY_DEFAULT_EXPRESSIONS" value="IGNORE"/>
- <details key="INVARIANT_CONSTRAINTS" value="PROCESS"/>
- <details key="REDEFINING_PROPERTIES" value="REPORT"/>
- <details key="ANNOTATION_DETAILS" value="PROCESS"/>
- <details key="NON_API_INVARIANTS" value="IGNORE"/>
- <details key="DUPLICATE_OPERATION_INHERITANCE" value="DISCARD"/>
- <details key="REDEFINING_OPERATIONS" value="REPORT"/>
- <details key="INVOCATION_DELEGATES" value="IGNORE"/>
- <details key="DERIVED_FEATURES" value="PROCESS"/>
- <details key="OPERATION_BODIES" value="IGNORE"/>
- <details key="CAMEL_CASE_NAMES" value="IGNORE"/>
- <details key="SUPER_CLASS_ORDER" value="PROCESS"/>
- </genAnnotations>
- <foreignModel>rsaToPapyrusParameters.uml</foreignModel>
- <genPackages xsi:type="genmodel:GenPackage" prefix="RSAToPapyrusParameters" basePackage="org.eclipse.papyrus.migration.rsa"
- disposableProviderFactory="true" ecorePackage="RSAToPapyrusParameters.ecore#/">
- <genClasses xsi:type="genmodel:GenClass" ecoreClass="RSAToPapyrusParameters.ecore#//Config">
- <genFeatures xsi:type="genmodel:GenFeature" property="None" children="true"
- createChild="true" ecoreFeature="ecore:EReference RSAToPapyrusParameters.ecore#//Config/mappingParameters"/>
- <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute RSAToPapyrusParameters.ecore#//Config/maxThreads"/>
- <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute RSAToPapyrusParameters.ecore#//Config/removeUnmappedDiagrams"/>
- <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute RSAToPapyrusParameters.ecore#//Config/convertOpaqueExpressionToLiteralString"/>
- <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute RSAToPapyrusParameters.ecore#//Config/removeUnmappedProfilesAndStereotypes"/>
- <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute RSAToPapyrusParameters.ecore#//Config/removeUnmappedAnnotations"/>
- <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute RSAToPapyrusParameters.ecore#//Config/alwaysAcceptSuggestedMappings"/>
- </genClasses>
- <genClasses xsi:type="genmodel:GenClass" ecoreClass="RSAToPapyrusParameters.ecore#//MappingParameters">
- <genFeatures xsi:type="genmodel:GenFeature" property="None" children="true"
- createChild="true" ecoreFeature="ecore:EReference RSAToPapyrusParameters.ecore#//MappingParameters/uriMappings"/>
- <genFeatures xsi:type="genmodel:GenFeature" property="None" children="true"
- createChild="true" ecoreFeature="ecore:EReference RSAToPapyrusParameters.ecore#//MappingParameters/profileUriMappings"/>
- </genClasses>
- <genClasses xsi:type="genmodel:GenClass" ecoreClass="RSAToPapyrusParameters.ecore#//URIMapping">
- <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute RSAToPapyrusParameters.ecore#//URIMapping/sourceURI"/>
- <genFeatures xsi:type="genmodel:GenFeature" createChild="false" ecoreFeature="ecore:EAttribute RSAToPapyrusParameters.ecore#//URIMapping/targetURI"/>
- </genClasses>
- </genPackages>
-</genmodel:GenModel>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.notation b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.notation
deleted file mode 100644
index f93925c9811..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.notation
+++ /dev/null
@@ -1,196 +0,0 @@
-<?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:ecore="http://www.eclipse.org/emf/2002/Ecore" 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="_ffjeAEL1EeSSlqpbHKLCqA" type="PapyrusUMLClassDiagram" name="Config" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="_tKu0kUL1EeSSlqpbHKLCqA" type="2008">
- <children xmi:type="notation:DecorationNode" xmi:id="_tKu0k0L1EeSSlqpbHKLCqA" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_tKu0lEL1EeSSlqpbHKLCqA" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_So1agHZLEeSwiJkQAQl2Jg" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_So1agXZLEeSwiJkQAQl2Jg" key="visible" value="true"/>
- </eAnnotations>
- <children xmi:type="notation:Shape" xmi:id="_AblmMFOJEeSGbsrkEkSKIA" type="3012">
- <styles xmi:type="notation:StringListValueStyle" xmi:id="_GLzRUFOJEeSGbsrkEkSKIA" name="maskLabel">
- <stringListValue>visibility</stringListValue>
- <stringListValue>name</stringListValue>
- <stringListValue>derived</stringListValue>
- <stringListValue>multiplicity</stringListValue>
- <stringListValue>defaultValue</stringListValue>
- <stringListValue>type</stringListValue>
- </styles>
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_AYwUoFOJEeSGbsrkEkSKIA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_AblmMVOJEeSGbsrkEkSKIA"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_WuBhgEL2EeSSlqpbHKLCqA" type="3012">
- <styles xmi:type="notation:StringListValueStyle" xmi:id="_aEtJcEL2EeSSlqpbHKLCqA" name="maskLabel">
- <stringListValue>visibility</stringListValue>
- <stringListValue>name</stringListValue>
- <stringListValue>derived</stringListValue>
- <stringListValue>multiplicity</stringListValue>
- <stringListValue>defaultValue</stringListValue>
- <stringListValue>type</stringListValue>
- </styles>
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_Wt4XkEL2EeSSlqpbHKLCqA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_WuBhgUL2EeSSlqpbHKLCqA"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_t5AP0EL1EeSSlqpbHKLCqA" type="3012">
- <styles xmi:type="notation:StringListValueStyle" xmi:id="_Ko_pYEL2EeSSlqpbHKLCqA" name="maskLabel">
- <stringListValue>visibility</stringListValue>
- <stringListValue>name</stringListValue>
- <stringListValue>derived</stringListValue>
- <stringListValue>multiplicity</stringListValue>
- <stringListValue>defaultValue</stringListValue>
- <stringListValue>type</stringListValue>
- </styles>
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_t42e0EL1EeSSlqpbHKLCqA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_t5AP0UL1EeSSlqpbHKLCqA"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_65zMoEL1EeSSlqpbHKLCqA" type="3012">
- <styles xmi:type="notation:StringListValueStyle" xmi:id="_KNn8AEL2EeSSlqpbHKLCqA" name="maskLabel">
- <stringListValue>visibility</stringListValue>
- <stringListValue>name</stringListValue>
- <stringListValue>derived</stringListValue>
- <stringListValue>multiplicity</stringListValue>
- <stringListValue>defaultValue</stringListValue>
- <stringListValue>type</stringListValue>
- </styles>
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_65pboEL1EeSSlqpbHKLCqA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_65zMoUL1EeSSlqpbHKLCqA"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_Mv8HwUL2EeSSlqpbHKLCqA" type="3012">
- <styles xmi:type="notation:StringListValueStyle" xmi:id="_VFcaIEL2EeSSlqpbHKLCqA" name="maskLabel">
- <stringListValue>visibility</stringListValue>
- <stringListValue>name</stringListValue>
- <stringListValue>derived</stringListValue>
- <stringListValue>multiplicity</stringListValue>
- <stringListValue>defaultValue</stringListValue>
- <stringListValue>type</stringListValue>
- </styles>
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_Mv8HwEL2EeSSlqpbHKLCqA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_Mv8HwkL2EeSSlqpbHKLCqA"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_JWjgUXcbEeSwiJkQAQl2Jg" type="3012">
- <styles xmi:type="notation:StringListValueStyle" xmi:id="_Ro7mMHcbEeSwiJkQAQl2Jg" name="maskLabel">
- <stringListValue>visibility</stringListValue>
- <stringListValue>name</stringListValue>
- <stringListValue>derived</stringListValue>
- <stringListValue>multiplicity</stringListValue>
- <stringListValue>defaultValue</stringListValue>
- <stringListValue>type</stringListValue>
- </styles>
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_JWjgUHcbEeSwiJkQAQl2Jg"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_JWjgUncbEeSwiJkQAQl2Jg"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_tKu0lUL1EeSSlqpbHKLCqA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_tKu0lkL1EeSSlqpbHKLCqA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_tKu0l0L1EeSSlqpbHKLCqA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tKu0mEL1EeSSlqpbHKLCqA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_tKu0mUL1EeSSlqpbHKLCqA" visible="false" type="7018">
- <styles xmi:type="notation:TitleStyle" xmi:id="_tKu0mkL1EeSSlqpbHKLCqA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_tKu0m0L1EeSSlqpbHKLCqA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_tKu0nEL1EeSSlqpbHKLCqA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tKu0nUL1EeSSlqpbHKLCqA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_tKu0nkL1EeSSlqpbHKLCqA" visible="false" type="7019">
- <styles xmi:type="notation:TitleStyle" xmi:id="_tKu0n0L1EeSSlqpbHKLCqA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_tKu0oEL1EeSSlqpbHKLCqA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_tKu0oUL1EeSSlqpbHKLCqA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tKu0okL1EeSSlqpbHKLCqA"/>
- </children>
- <element xmi:type="uml:Class" href="rsaToPapyrusParameters.uml#_tKu0kEL1EeSSlqpbHKLCqA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_tKu0kkL1EeSSlqpbHKLCqA" x="79" y="55" width="373" height="129"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_MDv8IFOJEeSGbsrkEkSKIA" type="2010">
- <children xmi:type="notation:DecorationNode" xmi:id="_MDv8IlOJEeSGbsrkEkSKIA" type="5035"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_MDv8I1OJEeSGbsrkEkSKIA" type="7020">
- <children xmi:type="notation:Shape" xmi:id="_MiP2AVOJEeSGbsrkEkSKIA" type="3018">
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_MiP2AFOJEeSGbsrkEkSKIA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_MiP2AlOJEeSGbsrkEkSKIA"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_O-nKwFOJEeSGbsrkEkSKIA" type="3018">
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_O-dZwFOJEeSGbsrkEkSKIA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_O-nKwVOJEeSGbsrkEkSKIA"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_MDv8JFOJEeSGbsrkEkSKIA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_MDv8JVOJEeSGbsrkEkSKIA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_MDv8JlOJEeSGbsrkEkSKIA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_MDv8J1OJEeSGbsrkEkSKIA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_MDv8KFOJEeSGbsrkEkSKIA" visible="false" type="7021">
- <styles xmi:type="notation:TitleStyle" xmi:id="_MDv8KVOJEeSGbsrkEkSKIA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_MDv8KlOJEeSGbsrkEkSKIA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_MDv8K1OJEeSGbsrkEkSKIA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_MDv8LFOJEeSGbsrkEkSKIA"/>
- </children>
- <element xmi:type="uml:DataType" href="rsaToPapyrusParameters.uml#_MDmyMFOJEeSGbsrkEkSKIA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_MDv8IVOJEeSGbsrkEkSKIA" x="495" y="246" height="112"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_erBPcXZKEeSwiJkQAQl2Jg" type="2008">
- <children xmi:type="notation:DecorationNode" xmi:id="_erBPc3ZKEeSwiJkQAQl2Jg" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_erBPdHZKEeSwiJkQAQl2Jg" type="7017">
- <children xmi:type="notation:Shape" xmi:id="_LgpPEVOJEeSGbsrkEkSKIA" type="3012">
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_LgpPEFOJEeSGbsrkEkSKIA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_LgpPElOJEeSGbsrkEkSKIA"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_pSQoEIQ5EeSC0ajaKNekyw" type="3012">
- <element xmi:type="uml:Property" href="rsaToPapyrusParameters.uml#_pR2YYIQ5EeSC0ajaKNekyw"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_pSQoEYQ5EeSC0ajaKNekyw"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_erBPdXZKEeSwiJkQAQl2Jg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_erBPdnZKEeSwiJkQAQl2Jg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_erBPd3ZKEeSwiJkQAQl2Jg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_erBPeHZKEeSwiJkQAQl2Jg"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_erBPeXZKEeSwiJkQAQl2Jg" visible="false" type="7018">
- <styles xmi:type="notation:TitleStyle" xmi:id="_erBPenZKEeSwiJkQAQl2Jg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_erBPe3ZKEeSwiJkQAQl2Jg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_erBPfHZKEeSwiJkQAQl2Jg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_erBPfXZKEeSwiJkQAQl2Jg"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_erBPfnZKEeSwiJkQAQl2Jg" visible="false" type="7019">
- <styles xmi:type="notation:TitleStyle" xmi:id="_erBPf3ZKEeSwiJkQAQl2Jg"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_erBPgHZKEeSwiJkQAQl2Jg"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_erBPgXZKEeSwiJkQAQl2Jg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_erBPgnZKEeSwiJkQAQl2Jg"/>
- </children>
- <element xmi:type="uml:Class" href="rsaToPapyrusParameters.uml#_erBPcHZKEeSwiJkQAQl2Jg"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_erBPcnZKEeSwiJkQAQl2Jg" x="79" y="248" width="373" height="112"/>
- </children>
- <styles xmi:type="notation:StringValueStyle" xmi:id="_ffjeAUL1EeSSlqpbHKLCqA" name="diagram_compatibility_version" stringValue="1.0.0"/>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_ffjeAkL1EeSSlqpbHKLCqA"/>
- <styles xmi:type="style:PapyrusViewStyle" xmi:id="_ffjeA0L1EeSSlqpbHKLCqA">
- <owner xmi:type="uml:Model" href="rsaToPapyrusParameters.uml#_fduSAEL1EeSSlqpbHKLCqA"/>
- </styles>
- <element xmi:type="uml:Model" href="rsaToPapyrusParameters.uml#_fduSAEL1EeSSlqpbHKLCqA"/>
- <edges xmi:type="notation:Connector" xmi:id="_sluPwHZKEeSwiJkQAQl2Jg" type="4001" source="_tKu0kUL1EeSSlqpbHKLCqA" target="_erBPcXZKEeSwiJkQAQl2Jg" routing="Rectilinear">
- <children xmi:type="notation:DecorationNode" xmi:id="_sluPw3ZKEeSwiJkQAQl2Jg" type="6001">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_sluPxHZKEeSwiJkQAQl2Jg" y="-20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_sluPxXZKEeSwiJkQAQl2Jg" type="6002">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_sluPxnZKEeSwiJkQAQl2Jg" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_sluPx3ZKEeSwiJkQAQl2Jg" visible="false" type="6003">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_sluPyHZKEeSwiJkQAQl2Jg" y="-20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_sluPyXZKEeSwiJkQAQl2Jg" type="6005">
- <styles xmi:type="notation:StringListValueStyle" xmi:id="_9TsB4HZKEeSwiJkQAQl2Jg" name="maskLabel">
- <stringListValue>name</stringListValue>
- <stringListValue>derived</stringListValue>
- <stringListValue>multiplicity</stringListValue>
- </styles>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_sluPynZKEeSwiJkQAQl2Jg" x="-30" y="77"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_sluPy3ZKEeSwiJkQAQl2Jg" visible="false" type="6033">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_sluPzHZKEeSwiJkQAQl2Jg" y="20"/>
- </children>
- <children xmi:type="notation:DecorationNode" xmi:id="_sluPzXZKEeSwiJkQAQl2Jg" visible="false" type="6034">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_sluPznZKEeSwiJkQAQl2Jg" x="-28" y="-38"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_sluPwXZKEeSwiJkQAQl2Jg"/>
- <element xmi:type="uml:Association" href="rsaToPapyrusParameters.uml#_slkew3ZKEeSwiJkQAQl2Jg"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_sluPwnZKEeSwiJkQAQl2Jg" points="[-9, 1, -101, -81]$[-9, 82, -101, 0]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_sl4AwHZKEeSwiJkQAQl2Jg" id="(0.47257383966244726,0.9642857142857143)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_5rS-4HZKEeSwiJkQAQl2Jg" id="(0.4936708860759494,0.0)"/>
- </edges>
- </notation:Diagram>
- <css:ModelStyleSheets xmi:id="_n2Dv0IQ5EeSC0ajaKNekyw"/>
-</xmi:XMI>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.uml b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.uml
deleted file mode 100644
index c97837bf2de..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.uml
+++ /dev/null
@@ -1,107 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<uml:Model 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="_fduSAEL1EeSSlqpbHKLCqA" name="RSAToPapyrusParameters">
- <packageImport xmi:type="uml:PackageImport" xmi:id="_fduSAUL1EeSSlqpbHKLCqA">
- <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
- </packageImport>
- <packagedElement xmi:type="uml:Class" xmi:id="_tKu0kEL1EeSSlqpbHKLCqA" name="Config">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_slkewHZKEeSwiJkQAQl2Jg" name="mappingParameters" type="_erBPcHZKEeSwiJkQAQl2Jg" aggregation="composite" association="_slkew3ZKEeSwiJkQAQl2Jg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_slkewXZKEeSwiJkQAQl2Jg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_slkewnZKEeSwiJkQAQl2Jg" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_AYwUoFOJEeSGbsrkEkSKIA" name="maxThreads" visibility="public" isUnique="false">
- <ownedComment xmi:type="uml:Comment" xmi:id="_W1iDAGW5EeS5_vjAduszYQ" annotatedElement="_AYwUoFOJEeSGbsrkEkSKIA">
- <body>The maximum number of threads to use during the migration.&#xD;
-More threads will provide faster results, at the cost of memory consumption.</body>
- </ownedComment>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Integer"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_DhmU4FOJEeSGbsrkEkSKIA" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_DhwF4FOJEeSGbsrkEkSKIA" value="1"/>
- <defaultValue xmi:type="uml:LiteralInteger" xmi:id="_E7A-4FOJEeSGbsrkEkSKIA" value="2"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_Wt4XkEL2EeSSlqpbHKLCqA" name="removeUnmappedDiagrams" visibility="public" isUnique="false">
- <ownedComment xmi:type="uml:Comment" xmi:id="_YchfIEMAEeSX267OQHSClQ" annotatedElement="_Wt4XkEL2EeSSlqpbHKLCqA">
- <body>If true, the diagrams which were not migrated will be removed. Otherwise, only the successfully imported diagrams will be removed</body>
- </ownedComment>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Yj3BwEL2EeSSlqpbHKLCqA" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_Yj3BwUL2EeSSlqpbHKLCqA" value="1"/>
- <defaultValue xmi:type="uml:LiteralBoolean" xmi:id="_Zf9doEL2EeSSlqpbHKLCqA"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_t42e0EL1EeSSlqpbHKLCqA" name="convertOpaqueExpressionToLiteralString" visibility="public" isUnique="false">
- <ownedComment xmi:type="uml:Comment" xmi:id="_sSSQAEL9EeSX267OQHSClQ" annotatedElement="_t42e0EL1EeSSlqpbHKLCqA">
- <body>If true, the Opaque Expressions with a single body and no language (or a single empty language) will be converted to LiteralString</body>
- </ownedComment>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_0H-TgEL1EeSSlqpbHKLCqA" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_0IHdcEL1EeSSlqpbHKLCqA" value="1"/>
- <defaultValue xmi:type="uml:LiteralBoolean" xmi:id="_3f1nMEL1EeSSlqpbHKLCqA" value="true"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_65pboEL1EeSSlqpbHKLCqA" name="removeUnmappedProfilesAndStereotypes" visibility="public" isUnique="false">
- <ownedComment xmi:type="uml:Comment" xmi:id="_zDs5cEL9EeSX267OQHSClQ" annotatedElement="_65pboEL1EeSSlqpbHKLCqA">
- <body>If true, all unsupported RSA profiles and stereotypes will be deleted at the end of the transformation</body>
- </ownedComment>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_Gy7WwEL2EeSSlqpbHKLCqA" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_Gy7WwUL2EeSSlqpbHKLCqA" value="1"/>
- <defaultValue xmi:type="uml:LiteralBoolean" xmi:id="_H7rHgEL2EeSSlqpbHKLCqA"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_Mv8HwEL2EeSSlqpbHKLCqA" name="removeUnmappedAnnotations" visibility="public" isUnique="false">
- <ownedComment xmi:type="uml:Comment" xmi:id="_rogy4EMAEeSX267OQHSClQ" annotatedElement="_Mv8HwEL2EeSSlqpbHKLCqA">
- <body>If true, the unmapped RSA EAnnotations will be deleted from the imported model</body>
- </ownedComment>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_S39O4EL2EeSSlqpbHKLCqA" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_S39O4UL2EeSSlqpbHKLCqA" value="1"/>
- <defaultValue xmi:type="uml:LiteralBoolean" xmi:id="_UQehAEL2EeSSlqpbHKLCqA"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_JWjgUHcbEeSwiJkQAQl2Jg" name="alwaysAcceptSuggestedMappings" visibility="public">
- <ownedComment xmi:type="uml:Comment" xmi:id="_aOft0HcbEeSwiJkQAQl2Jg" annotatedElement="_JWjgUHcbEeSwiJkQAQl2Jg">
- <body>If true, the Transformation will not open a dialog to ask user-confirmation for the dependency mappings. The tool will automatically keep going by &quot;guessing&quot; the proper mapping</body>
- </ownedComment>
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Boolean"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_P_5L0HcbEeSwiJkQAQl2Jg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_P_5L0XcbEeSwiJkQAQl2Jg" value="1"/>
- <defaultValue xmi:type="uml:LiteralBoolean" xmi:id="_P_5L0ncbEeSwiJkQAQl2Jg"/>
- </ownedAttribute>
- </packagedElement>
- <packagedElement xmi:type="uml:DataType" xmi:id="_MDmyMFOJEeSGbsrkEkSKIA" name="URIMapping">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_MiP2AFOJEeSGbsrkEkSKIA" name="sourceURI" visibility="public" isUnique="false">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_OrbJAFOJEeSGbsrkEkSKIA" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_OrbJAVOJEeSGbsrkEkSKIA" value="1"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_O-dZwFOJEeSGbsrkEkSKIA" name="targetURI" visibility="public" isUnique="false">
- <type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_RAos4FOJEeSGbsrkEkSKIA" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_RAos4VOJEeSGbsrkEkSKIA" value="1"/>
- </ownedAttribute>
- </packagedElement>
- <packagedElement xmi:type="uml:Class" xmi:id="_erBPcHZKEeSwiJkQAQl2Jg" name="MappingParameters">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_LgpPEFOJEeSGbsrkEkSKIA" name="uriMappings" visibility="public" type="_MDmyMFOJEeSGbsrkEkSKIA" aggregation="composite">
- <ownedComment xmi:type="uml:Comment" xmi:id="_iBwD0GW5EeS5_vjAduszYQ" annotatedElement="_LgpPEFOJEeSGbsrkEkSKIA">
- <body>When models/libraries have been migrated separately, maps the libraries imported from RSA to their Papyrus equivalent</body>
- </ownedComment>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_T5kB0FOJEeSGbsrkEkSKIA"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_T5kB0VOJEeSGbsrkEkSKIA" value="*"/>
- </ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_pR2YYIQ5EeSC0ajaKNekyw" name="profileUriMappings" visibility="public" type="_MDmyMFOJEeSGbsrkEkSKIA" aggregation="composite">
- <ownedComment xmi:type="uml:Comment" xmi:id="_49zT4IQ5EeSC0ajaKNekyw" annotatedElement="_pR2YYIQ5EeSC0ajaKNekyw">
- <body>When profiles have been migrated separately, maps the profiles imported from RSA to their Papyrus equivalent</body>
- </ownedComment>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_qweSgIQ5EeSC0ajaKNekyw"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_qwfgoIQ5EeSC0ajaKNekyw" value="*"/>
- </ownedAttribute>
- </packagedElement>
- <packagedElement xmi:type="uml:Association" xmi:id="_slkew3ZKEeSwiJkQAQl2Jg" memberEnd="_slkexHZKEeSwiJkQAQl2Jg _slkewHZKEeSwiJkQAQl2Jg">
- <ownedEnd xmi:type="uml:Property" xmi:id="_slkexHZKEeSwiJkQAQl2Jg" name="config" type="_tKu0kEL1EeSSlqpbHKLCqA" association="_slkew3ZKEeSwiJkQAQl2Jg">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_slkexXZKEeSwiJkQAQl2Jg" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_slkexnZKEeSwiJkQAQl2Jg" value="1"/>
- </ownedEnd>
- </packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_zg2CEEL1EeSSlqpbHKLCqA">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zhSuAEL1EeSSlqpbHKLCqA" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <references xmi:type="ecore:EPackage" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#_sYse0YZLEeKyw49uR6nx3g"/>
- </eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://PAPYRUS_ACTIONLANGUAGE_PROFILE/ActionLanguage-Profile.profile.uml#ActionLanguage"/>
- </profileApplication>
-</uml:Model>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/plugin.properties b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/plugin.properties
deleted file mode 100644
index 941bc8ea969..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/plugin.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-
-pluginName = RSA to Papyrus Import tool
-providerName = Eclipse Modeling Project
-
-_UI_UML_rsa_content_type = UML2 UML File (imported from RSA)
-_UI_UML_2_0_0_rsa_content_type = UML2 2.0.0 UML File (imported from RSA)
-_UI_UML_2_1_0_rsa_content_type = UML2 2.1.0 UML File (imported from RSA)
-_UI_UML_3_0_0_rsa_content_type = UML2 3.0.0 UML File (imported from RSA)
-_UI_UML_4_0_0_rsa_content_type = UML2 4.0.0 UML File (imported from RSA)
-_UI_UML_5_0_0_rsa_content_type = UML2 5.0.0 UML File (imported from RSA)
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/plugin.xml b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/plugin.xml
deleted file mode 100644
index e2f5f96bd38..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/plugin.xml
+++ /dev/null
@@ -1,462 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension-point id="extensions" name="extensions" schema="schema/extensions.exsd"/>
- <extension
- point="org.eclipse.ui.menus">
- <menuContribution
- allPopups="false"
- locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=additions">
- <command
- commandId="org.eclipse.papyrus.migration.rsa.import"
- style="push">
- <visibleWhen
- checkEnabled="false">
- <with
- variable="selection">
- <iterate
- ifEmpty="false"
- operator="or">
- <adapt
- type="org.eclipse.core.resources.IFile">
- <or>
- <test
- property="org.eclipse.core.resources.extension"
- value="emx">
- </test>
- <test
- property="org.eclipse.core.resources.extension"
- value="epx">
- </test>
- </or>
- </adapt>
- </iterate>
- </with>
- </visibleWhen>
- </command>
- </menuContribution>
- </extension>
- <extension
- point="org.eclipse.ui.commands">
- <command
- defaultHandler="org.eclipse.papyrus.migration.rsa.handler.ImportHandler"
- id="org.eclipse.papyrus.migration.rsa.import"
- name="Import RSA Model/Profile">
- </command>
- </extension>
-
- <extension
- point="org.eclipse.emf.ecore.content_parser">
- <parser
- class="org.eclipse.uml2.uml.internal.resource.UML22UMLResourceFactoryImpl"
- contentTypeIdentifier="org.eclipse.uml2.uml_2_0_0.rsa">
- </parser>
- <parser
- class="org.eclipse.uml2.uml.internal.resource.UML212UMLResourceFactoryImpl"
- contentTypeIdentifier="org.eclipse.uml2.uml_2_1_0.rsa">
- </parser>
- <parser
- class="org.eclipse.uml2.uml.internal.resource.UML302UMLResourceFactoryImpl"
- contentTypeIdentifier="org.eclipse.uml2.uml_3_0_0.rsa">
- </parser>
- <parser
- class="org.eclipse.uml2.uml.internal.resource.UML402UMLResourceFactoryImpl"
- contentTypeIdentifier="org.eclipse.uml2.uml_4_0_0.rsa">
- </parser>
- <parser
- class="org.eclipse.uml2.uml.internal.resource.UMLResourceFactoryImpl"
- contentTypeIdentifier="org.eclipse.uml2.uml_5_0_0.rsa">
- </parser>
- </extension>
-
- <extension point="org.eclipse.emf.ecore.generated_package">
- <!-- @generated PapyrusRSANotation -->
- <package
- uri="http://www.eclipse.org/papyrus/umlnotation"
- class="org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage"
- genModel="model/PapyrusUMLNotation.genmodel"/>
- <package
- class="org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage"
- genModel="model/PapyrusUMLNotation.genmodel"
- uri="http://www.ibm.com/xtools/1.5.3/Umlnotation">
- </package>
- </extension>
-
-
- <extension point="org.eclipse.emf.ecore.generated_package">
- <!-- @generated PapyrusDefault -->
- <package
- uri="http://www.eclipse.org/papyrus/profile/default"
- class="org.eclipse.papyrus.migration.rsa.default_.DefaultPackage"
- genModel="model/PapyrusDefault.genmodel"/>
- <package
- class="org.eclipse.papyrus.migration.rsa.default_.DefaultPackage"
- genModel="model/PapyrusDefault.genmodel"
- uri="http:///schemas/Default/1">
- </package>
- <package
- class="org.eclipse.papyrus.migration.rsa.default_.DefaultPackage"
- genModel="model/PapyrusDefault.genmodel"
- uri="http:///schemas/Default/_fNm3AAqoEd6-N_NOT9vsCA/2">
- </package>
- </extension>
-
- <extension point="org.eclipse.emf.ecore.generated_package">
- <!-- @generated PapyrusProfileBase -->
- <package
- uri="http://www.eclipse.org/papyrus/profile/profilebase"
- class="org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage"
- genModel="model/PapyrusProfileBase.genmodel"/>
- <package
- class="org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage"
- genModel="model/PapyrusProfileBase.genmodel"
- uri="http:///schemas/ProfileBase/1">
- </package>
- </extension>
-
- <extension
- point="org.eclipse.m2m.qvt.oml.javaBlackboxUnits">
- <unit
- description="Java helpers to refactor UML types"
- name="RTMappings"
- namespace="org.eclipse.papyrus.migration.rsa">
- <library
- class="org.eclipse.papyrus.migration.rsa.blackbox.RTMappings">
- <metamodel
- nsURI="http://www.eclipse.org/uml2/5.0.0/UML">
- </metamodel>
- </library>
- </unit>
- <unit
- description="Java helpers to manipulate ProfileBase"
- name="ProfileBaseHelper"
- namespace="org.eclipse.papyrus.migration.rsa">
- <library
- class="org.eclipse.papyrus.migration.rsa.blackbox.ProfileBaseHelper">
- <metamodel
- nsURI="http://www.eclipse.org/papyrus/profile/profilebase">
- </metamodel>
- </library>
- </unit>
- </extension>
- <extension
- point="org.eclipse.team.core.fileTypes">
- <fileTypes
- extension="emx"
- type="text">
- </fileTypes>
- <fileTypes
- extension="epx"
- type="text">
- </fileTypes>
- <fileTypes
- extension="efx"
- type="text">
- </fileTypes>
- </extension>
- <extension
- point="org.eclipse.core.contenttype.contentTypes">
- <!--content-type
- base-type="org.eclipse.emf.ecore.xmi"
- file-extensions="emx,efx,epx,uml"
- id="org.eclipse.uml2.uml"
- name="%_UI_UML_content_type"
- priority="high">
- <describer
- class="org.eclipse.papyrus.migration.rsa.contenttype.ExtendedXMLContentHandlerImpl$Describer">
- <parameter
- name="namespacePattern"
- value="http://www\.eclipse\.org/uml2/(2\.0\.0|2\.1\.0|3\.0\.0|4\.0\.0|5\.0\.0)/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml"
- file-extensions="emx,efx,epx,uml"
- id="org.eclipse.uml2.uml_2_0_0"
- name="%_UI_UML_2_0_0_content_type"
- priority="high">
- <describer
- class="org.eclipse.papyrus.migration.rsa.contenttype.ExtendedXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/2.0.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml"
- file-extensions="emx,efx,epx,uml"
- id="org.eclipse.uml2.uml_2_1_0"
- name="%_UI_UML_2_1_0_content_type"
- priority="high">
- <describer
- class="org.eclipse.papyrus.migration.rsa.contenttype.ExtendedXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/2.1.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml"
- file-extensions="emx,efx,epx,uml"
- id="org.eclipse.uml2.uml_3_0_0"
- name="%_UI_UML_3_0_0_content_type"
- priority="high">
- <describer
- class="org.eclipse.papyrus.migration.rsa.contenttype.ExtendedXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/3.0.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml"
- file-extensions="emx,efx,epx,uml"
- id="org.eclipse.uml2.uml_4_0_0"
- name="%_UI_UML_4_0_0_content_type"
- priority="high">
- <describer
- class="org.eclipse.papyrus.migration.rsa.contenttype.ExtendedXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/4.0.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml"
- file-extensions="emx,efx,epx,uml"
- id="org.eclipse.uml2.uml_5_0_0"
- name="%_UI_UML_5_0_0_content_type"
- priority="high">
- <describer
- class="org.eclipse.papyrus.migration.rsa.contenttype.ExtendedXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/5.0.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type-->
- <file-association
- content-type="org.eclipse.uml2.uml.rsa"
- file-extensions="epx,emx,efx">
- </file-association>
- <file-association
- content-type="org.eclipse.uml2.uml_2_1_0.rsa"
- file-extensions="epx,emx,efx">
- </file-association>
- <file-association
- content-type="org.eclipse.uml2.uml_3_0_0.rsa"
- file-extensions="epx,emx,efx">
- </file-association>
- <file-association
- content-type="org.eclipse.uml2.uml_4_0_0.rsa"
- file-extensions="epx,emx,efx">
- </file-association>
- <file-association
- content-type="org.eclipse.uml2.uml_5_0_0.rsa"
- file-extensions="epx,emx,efx">
- </file-association>
- </extension>
- <extension
- point="org.eclipse.core.contenttype.contentTypes">
- <content-type
- base-type="org.eclipse.uml2.uml"
- file-extensions="epx,emx,efx"
- id="org.eclipse.uml2.uml.rsa"
- name="%_UI_UML_rsa_content_type"
- priority="normal">
- <describer
- class="org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Describer">
- <parameter
- name="namespacePattern"
- value="http://www\.eclipse\.org/uml2/(2\.0\.0|2\.1\.0|3\.0\.0|4\.0\.0|5\.0\.0)/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml_2_0_0"
- file-extensions="epx,emx,efx"
- id="org.eclipse.uml2.uml_2_0_0.rsa"
- name="%_UI_UML_2_0_0_rsa_content_type"
- priority="high">
- <describer
- class="org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/2.0.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml_2_1_0"
- file-extensions="epx,emx,efx"
- id="org.eclipse.uml2.uml_2_1_0.rsa"
- name="%_UI_UML_2_1_0_rsa_content_type"
- priority="high">
- <describer
- class="org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/2.1.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml_3_0_0"
- file-extensions="epx,emx,efx"
- id="org.eclipse.uml2.uml_3_0_0.rsa"
- name="%_UI_UML_3_0_0_rsa_content_type"
- priority="high">
- <describer
- class="org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/3.0.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml_4_0_0"
- file-extensions="epx,emx,efx"
- id="org.eclipse.uml2.uml_4_0_0.rsa"
- name="%_UI_UML_4_0_0_rsa_content_type"
- priority="high">
- <describer
- class="org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/4.0.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- <content-type
- base-type="org.eclipse.uml2.uml_5_0_0"
- file-extensions="epx,emx,efx"
- id="org.eclipse.uml2.uml_5_0_0.rsa"
- name="%_UI_UML_5_0_0_rsa_content_type"
- priority="high">
- <describer
- class="org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Describer">
- <parameter
- name="namespace"
- value="http://www.eclipse.org/uml2/5.0.0/UML">
- </parameter>
- <parameter
- name="kind"
- value="xmi">
- </parameter>
- </describer>
- </content-type>
- </extension>
- <extension point="org.eclipse.emf.ecore.generated_package">
- <!-- @generated rsaToPapyrusParameters -->
- <package
- uri="http:///RSAToPapyrusParameters.ecore"
- class="org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage"
- genModel="model/ui/rsaToPapyrusParameters.genmodel"/>
- </extension>
- <extension
- point="org.eclipse.papyrus.infra.properties.contexts">
- <context
- contextModel="dialog/RSAToPapyrusParameters.ctx"
- isCustomizable="false">
- </context>
- </extension>
- <extension
- point="org.eclipse.uml2.uml.generated_package">
- <profile
- location="platform:/plugin/org.eclipse.papyrus.migration.rsa/model/ui/rsaToPapyrusParameters.uml"
- uri="http:///RSAToPapyrusParameters.ecore">
- </profile>
- </extension>
-
- <extension
- point="org.eclipse.ui.importWizards">
- <wizard
- category="org.eclipse.papyrus.infra.core.importcategory"
- class="org.eclipse.papyrus.migration.rsa.wizard.TransformationWizard"
- icon="icons/import_wiz_16x16.gif"
- id="org.eclipse.papyrus.migration.rsa.transformationWizard"
- name="RSA Models/Profiles">
- <description>
- Select and transform .emx and .epx files through the wizard window
- </description>
- </wizard>
- </extension>
- <extension
- point="org.eclipse.uml2.uml.generated_package">
- <profile
- location="platform:/plugin/org.eclipse.papyrus.migration.rsa/model/profiles/RealTime.uml#_1FAMEKiFEeSPtOio57ufig"
- uri="http://www.eclipse.org/papyrus/profile/umlrt">
- </profile>
- <profile
- location="platform:/plugin/org.eclipse.papyrus.migration.rsa/model/profiles/Default.uml#_Nfp9EKiGEeSPtOio57ufig"
- uri="http://www.eclipse.org/papyrus/profile/default">
- </profile>
- <profile
- location="platform:/plugin/org.eclipse.papyrus.migration.rsa/model/profiles/ProfileBase.uml#_YFn2MKiGEeSPtOio57ufig"
- uri="http://www.eclipse.org/papyrus/profile/profilebase">
- </profile>
- </extension>
- <extension point="org.eclipse.emf.ecore.generated_package">
- <!-- @generated DiagramHolder -->
- <package
- uri="http://www.eclipse.org/papyrus/migration/diagramholder"
- class="org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolderPackage"
- genModel="model/DiagramHolder.genmodel"/>
- <package
- class="org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolderPackage"
- genModel="model/DiagramHolder.genmodel"
- uri="http://www.ibm.com/xtools/7.1.0/resources">
- </package>
- </extension>
-
-</plugin>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/pom.xml b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/pom.xml
deleted file mode 100644
index c1ba31805eb..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/pom.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<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>
- <parent>
- <artifactId>org.eclipse.papyrus.extra.releng</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>3.0.0-SNAPSHOT</version>
- <relativePath>../../../releng/extra/pom.xml</relativePath>
- </parent>
- <artifactId>org.eclipse.papyrus.migration.rsa</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>1.4.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
-</project>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/schema/extensions.exsd b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/schema/extensions.exsd
deleted file mode 100644
index c4412331fd5..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/schema/extensions.exsd
+++ /dev/null
@@ -1,102 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!-- Schema file written by PDE -->
-<schema targetNamespace="org.eclipse.papyrus.migration.rsa" xmlns="http://www.w3.org/2001/XMLSchema">
-<annotation>
- <appinfo>
- <meta.schema plugin="org.eclipse.papyrus.migration.rsa" id="extensions" name="extensions"/>
- </appinfo>
- <documentation>
- Contribute a new extension to the RSA-to-Papyrus model transformation. This extension point uses internal/provisional API, due to the lack of precise use cases. Use at your own risk!
- </documentation>
- </annotation>
-
- <element name="extension">
- <annotation>
- <appinfo>
- <meta.element internal="true" />
- </appinfo>
- </annotation>
- <complexType>
- <sequence minOccurs="1" maxOccurs="unbounded">
- <element ref="transformation"/>
- </sequence>
- <attribute name="point" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="id" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- </annotation>
- </attribute>
- <attribute name="name" type="string">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute translatable="true"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <element name="transformation">
- <complexType>
- <attribute name="className" type="string" use="required">
- <annotation>
- <documentation>
-
- </documentation>
- <appinfo>
- <meta.attribute kind="java" basedOn=":org.eclipse.papyrus.migration.rsa.extension.TransformationExtension"/>
- </appinfo>
- </annotation>
- </attribute>
- </complexType>
- </element>
-
- <annotation>
- <appinfo>
- <meta.section type="since"/>
- </appinfo>
- <documentation>
- [Enter the first release in which this extension point appears.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="examples"/>
- </appinfo>
- <documentation>
- [Enter extension point usage example here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="apiinfo"/>
- </appinfo>
- <documentation>
- [Enter API information here.]
- </documentation>
- </annotation>
-
- <annotation>
- <appinfo>
- <meta.section type="implementation"/>
- </appinfo>
- <documentation>
- [Enter information about supplied implementation of this extension point.]
- </documentation>
- </annotation>
-
-
-</schema>
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/Config.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/Config.java
deleted file mode 100644
index 1ad2a3d1d21..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/Config.java
+++ /dev/null
@@ -1,242 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Config</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#getMappingParameters <em>Mapping Parameters</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#getMaxThreads <em>Max Threads</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedDiagrams <em>Remove Unmapped Diagrams</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isConvertOpaqueExpressionToLiteralString <em>Convert Opaque Expression To Literal String</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedProfilesAndStereotypes <em>Remove Unmapped Profiles And Stereotypes</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedAnnotations <em>Remove Unmapped Annotations</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isAlwaysAcceptSuggestedMappings <em>Always Accept Suggested Mappings</em>}</li>
- * </ul>
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getConfig()
- * @model
- * @generated
- */
-public interface Config extends EObject {
- /**
- * Returns the value of the '<em><b>Mapping Parameters</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Mapping Parameters</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>Mapping Parameters</em>' containment reference.
- * @see #setMappingParameters(MappingParameters)
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getConfig_MappingParameters()
- * @model containment="true" required="true" ordered="false"
- * @generated
- */
- MappingParameters getMappingParameters();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#getMappingParameters <em>Mapping Parameters</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Mapping Parameters</em>' containment reference.
- * @see #getMappingParameters()
- * @generated
- */
- void setMappingParameters(MappingParameters value);
-
- /**
- * Returns the value of the '<em><b>Max Threads</b></em>' attribute.
- * The default value is <code>"2"</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * The maximum number of threads to use during the migration.
- * More threads will provide faster results, at the cost of memory consumption.
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Max Threads</em>' attribute.
- * @see #setMaxThreads(int)
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getConfig_MaxThreads()
- * @model default="2" unique="false" dataType="org.eclipse.uml2.types.Integer" required="true" ordered="false"
- * @generated
- */
- int getMaxThreads();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#getMaxThreads <em>Max Threads</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Max Threads</em>' attribute.
- * @see #getMaxThreads()
- * @generated
- */
- void setMaxThreads(int value);
-
- /**
- * Returns the value of the '<em><b>Remove Unmapped Diagrams</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * If true, the diagrams which were not migrated will be removed. Otherwise, only the successfully imported diagrams will be removed
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Remove Unmapped Diagrams</em>' attribute.
- * @see #setRemoveUnmappedDiagrams(boolean)
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getConfig_RemoveUnmappedDiagrams()
- * @model default="false" unique="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
- * @generated
- */
- boolean isRemoveUnmappedDiagrams();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedDiagrams <em>Remove Unmapped Diagrams</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Remove Unmapped Diagrams</em>' attribute.
- * @see #isRemoveUnmappedDiagrams()
- * @generated
- */
- void setRemoveUnmappedDiagrams(boolean value);
-
- /**
- * Returns the value of the '<em><b>Convert Opaque Expression To Literal String</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * If true, the Opaque Expressions with a single body and no language (or a single empty language) will be converted to LiteralString
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Convert Opaque Expression To Literal String</em>' attribute.
- * @see #setConvertOpaqueExpressionToLiteralString(boolean)
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getConfig_ConvertOpaqueExpressionToLiteralString()
- * @model default="true" unique="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
- * @generated
- */
- boolean isConvertOpaqueExpressionToLiteralString();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isConvertOpaqueExpressionToLiteralString <em>Convert Opaque Expression To Literal String</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Convert Opaque Expression To Literal String</em>' attribute.
- * @see #isConvertOpaqueExpressionToLiteralString()
- * @generated
- */
- void setConvertOpaqueExpressionToLiteralString(boolean value);
-
- /**
- * Returns the value of the '<em><b>Remove Unmapped Profiles And Stereotypes</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * If true, all unsupported RSA profiles and stereotypes will be deleted at the end of the transformation
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Remove Unmapped Profiles And Stereotypes</em>' attribute.
- * @see #setRemoveUnmappedProfilesAndStereotypes(boolean)
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getConfig_RemoveUnmappedProfilesAndStereotypes()
- * @model default="false" unique="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
- * @generated
- */
- boolean isRemoveUnmappedProfilesAndStereotypes();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedProfilesAndStereotypes <em>Remove Unmapped Profiles And Stereotypes</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Remove Unmapped Profiles And Stereotypes</em>' attribute.
- * @see #isRemoveUnmappedProfilesAndStereotypes()
- * @generated
- */
- void setRemoveUnmappedProfilesAndStereotypes(boolean value);
-
- /**
- * Returns the value of the '<em><b>Remove Unmapped Annotations</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * If true, the unmapped RSA EAnnotations will be deleted from the imported model
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Remove Unmapped Annotations</em>' attribute.
- * @see #setRemoveUnmappedAnnotations(boolean)
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getConfig_RemoveUnmappedAnnotations()
- * @model default="false" unique="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
- * @generated
- */
- boolean isRemoveUnmappedAnnotations();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedAnnotations <em>Remove Unmapped Annotations</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Remove Unmapped Annotations</em>' attribute.
- * @see #isRemoveUnmappedAnnotations()
- * @generated
- */
- void setRemoveUnmappedAnnotations(boolean value);
-
- /**
- * Returns the value of the '<em><b>Always Accept Suggested Mappings</b></em>' attribute.
- * The default value is <code>"false"</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * If true, the Transformation will not open a dialog to ask user-confirmation for the dependency mappings. The tool will automatically keep going by "guessing" the proper mapping
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Always Accept Suggested Mappings</em>' attribute.
- * @see #setAlwaysAcceptSuggestedMappings(boolean)
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getConfig_AlwaysAcceptSuggestedMappings()
- * @model default="false" dataType="org.eclipse.uml2.types.Boolean" required="true" ordered="false"
- * @generated
- */
- boolean isAlwaysAcceptSuggestedMappings();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isAlwaysAcceptSuggestedMappings <em>Always Accept Suggested Mappings</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Always Accept Suggested Mappings</em>' attribute.
- * @see #isAlwaysAcceptSuggestedMappings()
- * @generated
- */
- void setAlwaysAcceptSuggestedMappings(boolean value);
-
-} // Config
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/MappingParameters.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/MappingParameters.java
deleted file mode 100644
index c271cc4f20e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/MappingParameters.java
+++ /dev/null
@@ -1,71 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Mapping Parameters</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters#getUriMappings <em>Uri Mappings</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters#getProfileUriMappings <em>Profile Uri Mappings</em>}</li>
- * </ul>
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getMappingParameters()
- * @model
- * @generated
- */
-public interface MappingParameters extends EObject {
- /**
- * Returns the value of the '<em><b>Uri Mappings</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping}.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * When models/libraries have been migrated separately, maps the libraries imported from RSA to their Papyrus equivalent
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Uri Mappings</em>' containment reference list.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getMappingParameters_UriMappings()
- * @model containment="true" ordered="false"
- * @generated
- */
- EList<URIMapping> getUriMappings();
-
- /**
- * Returns the value of the '<em><b>Profile Uri Mappings</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Profile Uri Mappings</em>' containment reference list isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * <!-- begin-model-doc -->
- * When profiles have been migrated separately, maps the profiles imported from RSA to their Papyrus equivalent
- * <!-- end-model-doc -->
- *
- * @return the value of the '<em>Profile Uri Mappings</em>' containment reference list.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getMappingParameters_ProfileUriMappings()
- * @model containment="true" ordered="false"
- * @generated
- */
- EList<URIMapping> getProfileUriMappings();
-
-} // MappingParameters
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/RSAToPapyrusParametersFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/RSAToPapyrusParametersFactory.java
deleted file mode 100644
index 9965552e661..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/RSAToPapyrusParametersFactory.java
+++ /dev/null
@@ -1,75 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters;
-
-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.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage
- * @generated
- */
-public interface RSAToPapyrusParametersFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- RSAToPapyrusParametersFactory eINSTANCE = org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.RSAToPapyrusParametersFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Config</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Config</em>'.
- * @generated
- */
- Config createConfig();
-
- /**
- * Returns a new object of class '<em>Mapping Parameters</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Mapping Parameters</em>'.
- * @generated
- */
- MappingParameters createMappingParameters();
-
- /**
- * Returns a new object of class '<em>URI Mapping</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>URI Mapping</em>'.
- * @generated
- */
- URIMapping createURIMapping();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- RSAToPapyrusParametersPackage getRSAToPapyrusParametersPackage();
-
-} // RSAToPapyrusParametersFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/RSAToPapyrusParametersPackage.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/RSAToPapyrusParametersPackage.java
deleted file mode 100644
index 99d8b1d8a94..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/RSAToPapyrusParametersPackage.java
+++ /dev/null
@@ -1,602 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-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 operation of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersFactory
- * @model kind="package"
- * @generated
- */
-public interface RSAToPapyrusParametersPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "RSAToPapyrusParameters";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http:///RSAToPapyrusParameters.ecore";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "RSAToPapyrusParameters";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- RSAToPapyrusParametersPackage eINSTANCE = org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.RSAToPapyrusParametersPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl <em>Config</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.RSAToPapyrusParametersPackageImpl#getConfig()
- * @generated
- */
- int CONFIG = 0;
-
- /**
- * The feature id for the '<em><b>Mapping Parameters</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONFIG__MAPPING_PARAMETERS = 0;
-
- /**
- * The feature id for the '<em><b>Max Threads</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONFIG__MAX_THREADS = 1;
-
- /**
- * The feature id for the '<em><b>Remove Unmapped Diagrams</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONFIG__REMOVE_UNMAPPED_DIAGRAMS = 2;
-
- /**
- * The feature id for the '<em><b>Convert Opaque Expression To Literal String</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING = 3;
-
- /**
- * The feature id for the '<em><b>Remove Unmapped Profiles And Stereotypes</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES = 4;
-
- /**
- * The feature id for the '<em><b>Remove Unmapped Annotations</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONFIG__REMOVE_UNMAPPED_ANNOTATIONS = 5;
-
- /**
- * The feature id for the '<em><b>Always Accept Suggested Mappings</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS = 6;
-
- /**
- * The number of structural features of the '<em>Config</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONFIG_FEATURE_COUNT = 7;
-
- /**
- * The number of operations of the '<em>Config</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int CONFIG_OPERATION_COUNT = 0;
-
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.MappingParametersImpl <em>Mapping Parameters</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.MappingParametersImpl
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.RSAToPapyrusParametersPackageImpl#getMappingParameters()
- * @generated
- */
- int MAPPING_PARAMETERS = 1;
-
- /**
- * The feature id for the '<em><b>Uri Mappings</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MAPPING_PARAMETERS__URI_MAPPINGS = 0;
-
- /**
- * The feature id for the '<em><b>Profile Uri Mappings</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS = 1;
-
- /**
- * The number of structural features of the '<em>Mapping Parameters</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MAPPING_PARAMETERS_FEATURE_COUNT = 2;
-
- /**
- * The number of operations of the '<em>Mapping Parameters</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MAPPING_PARAMETERS_OPERATION_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.URIMappingImpl <em>URI Mapping</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.URIMappingImpl
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.RSAToPapyrusParametersPackageImpl#getURIMapping()
- * @generated
- */
- int URI_MAPPING = 2;
-
- /**
- * The feature id for the '<em><b>Source URI</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URI_MAPPING__SOURCE_URI = 0;
-
- /**
- * The feature id for the '<em><b>Target URI</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URI_MAPPING__TARGET_URI = 1;
-
- /**
- * The number of structural features of the '<em>URI Mapping</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URI_MAPPING_FEATURE_COUNT = 2;
-
- /**
- * The number of operations of the '<em>URI Mapping</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URI_MAPPING_OPERATION_COUNT = 0;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config <em>Config</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Config</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config
- * @generated
- */
- EClass getConfig();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#getMappingParameters <em>Mapping Parameters</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference '<em>Mapping Parameters</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#getMappingParameters()
- * @see #getConfig()
- * @generated
- */
- EReference getConfig_MappingParameters();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#getMaxThreads <em>Max Threads</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Max Threads</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#getMaxThreads()
- * @see #getConfig()
- * @generated
- */
- EAttribute getConfig_MaxThreads();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedDiagrams <em>Remove Unmapped Diagrams</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Remove Unmapped Diagrams</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedDiagrams()
- * @see #getConfig()
- * @generated
- */
- EAttribute getConfig_RemoveUnmappedDiagrams();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isConvertOpaqueExpressionToLiteralString <em>Convert Opaque Expression To Literal String</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Convert Opaque Expression To Literal String</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isConvertOpaqueExpressionToLiteralString()
- * @see #getConfig()
- * @generated
- */
- EAttribute getConfig_ConvertOpaqueExpressionToLiteralString();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedProfilesAndStereotypes <em>Remove Unmapped Profiles And Stereotypes</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Remove Unmapped Profiles And Stereotypes</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedProfilesAndStereotypes()
- * @see #getConfig()
- * @generated
- */
- EAttribute getConfig_RemoveUnmappedProfilesAndStereotypes();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedAnnotations <em>Remove Unmapped Annotations</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Remove Unmapped Annotations</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isRemoveUnmappedAnnotations()
- * @see #getConfig()
- * @generated
- */
- EAttribute getConfig_RemoveUnmappedAnnotations();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isAlwaysAcceptSuggestedMappings <em>Always Accept Suggested Mappings</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Always Accept Suggested Mappings</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config#isAlwaysAcceptSuggestedMappings()
- * @see #getConfig()
- * @generated
- */
- EAttribute getConfig_AlwaysAcceptSuggestedMappings();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters <em>Mapping Parameters</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Mapping Parameters</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters
- * @generated
- */
- EClass getMappingParameters();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters#getUriMappings <em>Uri Mappings</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Uri Mappings</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters#getUriMappings()
- * @see #getMappingParameters()
- * @generated
- */
- EReference getMappingParameters_UriMappings();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters#getProfileUriMappings <em>Profile Uri Mappings</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the containment reference list '<em>Profile Uri Mappings</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters#getProfileUriMappings()
- * @see #getMappingParameters()
- * @generated
- */
- EReference getMappingParameters_ProfileUriMappings();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping <em>URI Mapping</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>URI Mapping</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping
- * @generated
- */
- EClass getURIMapping();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping#getSourceURI <em>Source URI</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Source URI</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping#getSourceURI()
- * @see #getURIMapping()
- * @generated
- */
- EAttribute getURIMapping_SourceURI();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping#getTargetURI <em>Target URI</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Target URI</em>'.
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping#getTargetURI()
- * @see #getURIMapping()
- * @generated
- */
- EAttribute getURIMapping_TargetURI();
-
- /**
- * 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
- */
- RSAToPapyrusParametersFactory getRSAToPapyrusParametersFactory();
-
- /**
- * <!-- 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 operation 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.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl <em>Config</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.RSAToPapyrusParametersPackageImpl#getConfig()
- * @generated
- */
- EClass CONFIG = eINSTANCE.getConfig();
-
- /**
- * The meta object literal for the '<em><b>Mapping Parameters</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference CONFIG__MAPPING_PARAMETERS = eINSTANCE.getConfig_MappingParameters();
-
- /**
- * The meta object literal for the '<em><b>Max Threads</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CONFIG__MAX_THREADS = eINSTANCE.getConfig_MaxThreads();
-
- /**
- * The meta object literal for the '<em><b>Remove Unmapped Diagrams</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CONFIG__REMOVE_UNMAPPED_DIAGRAMS = eINSTANCE.getConfig_RemoveUnmappedDiagrams();
-
- /**
- * The meta object literal for the '<em><b>Convert Opaque Expression To Literal String</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING = eINSTANCE.getConfig_ConvertOpaqueExpressionToLiteralString();
-
- /**
- * The meta object literal for the '<em><b>Remove Unmapped Profiles And Stereotypes</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES = eINSTANCE.getConfig_RemoveUnmappedProfilesAndStereotypes();
-
- /**
- * The meta object literal for the '<em><b>Remove Unmapped Annotations</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CONFIG__REMOVE_UNMAPPED_ANNOTATIONS = eINSTANCE.getConfig_RemoveUnmappedAnnotations();
-
- /**
- * The meta object literal for the '<em><b>Always Accept Suggested Mappings</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS = eINSTANCE.getConfig_AlwaysAcceptSuggestedMappings();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.MappingParametersImpl <em>Mapping Parameters</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.MappingParametersImpl
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.RSAToPapyrusParametersPackageImpl#getMappingParameters()
- * @generated
- */
- EClass MAPPING_PARAMETERS = eINSTANCE.getMappingParameters();
-
- /**
- * The meta object literal for the '<em><b>Uri Mappings</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MAPPING_PARAMETERS__URI_MAPPINGS = eINSTANCE.getMappingParameters_UriMappings();
-
- /**
- * The meta object literal for the '<em><b>Profile Uri Mappings</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS = eINSTANCE.getMappingParameters_ProfileUriMappings();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.URIMappingImpl <em>URI Mapping</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.URIMappingImpl
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.RSAToPapyrusParametersPackageImpl#getURIMapping()
- * @generated
- */
- EClass URI_MAPPING = eINSTANCE.getURIMapping();
-
- /**
- * The meta object literal for the '<em><b>Source URI</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute URI_MAPPING__SOURCE_URI = eINSTANCE.getURIMapping_SourceURI();
-
- /**
- * The meta object literal for the '<em><b>Target URI</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute URI_MAPPING__TARGET_URI = eINSTANCE.getURIMapping_TargetURI();
-
- }
-
-} // RSAToPapyrusParametersPackage
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/URIMapping.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/URIMapping.java
deleted file mode 100644
index 0975f4fc674..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/URIMapping.java
+++ /dev/null
@@ -1,90 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>URI Mapping</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping#getSourceURI <em>Source URI</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping#getTargetURI <em>Target URI</em>}</li>
- * </ul>
- *
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getURIMapping()
- * @model
- * @generated
- */
-public interface URIMapping extends EObject {
- /**
- * Returns the value of the '<em><b>Source URI</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Source URI</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Source URI</em>' attribute.
- * @see #setSourceURI(String)
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getURIMapping_SourceURI()
- * @model unique="false" dataType="org.eclipse.uml2.types.String" required="true" ordered="false"
- * @generated
- */
- String getSourceURI();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping#getSourceURI <em>Source URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Source URI</em>' attribute.
- * @see #getSourceURI()
- * @generated
- */
- void setSourceURI(String value);
-
- /**
- * Returns the value of the '<em><b>Target URI</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Target URI</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Target URI</em>' attribute.
- * @see #setTargetURI(String)
- * @see org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#getURIMapping_TargetURI()
- * @model unique="false" dataType="org.eclipse.uml2.types.String" required="true" ordered="false"
- * @generated
- */
- String getTargetURI();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping#getTargetURI <em>Target URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Target URI</em>' attribute.
- * @see #getTargetURI()
- * @generated
- */
- void setTargetURI(String value);
-
-} // URIMapping
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/ConfigImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/ConfigImpl.java
deleted file mode 100644
index 111e0afe3ad..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/ConfigImpl.java
+++ /dev/null
@@ -1,587 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.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.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Config</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl#getMappingParameters <em>Mapping Parameters</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl#getMaxThreads <em>Max Threads</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl#isRemoveUnmappedDiagrams <em>Remove Unmapped Diagrams</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl#isConvertOpaqueExpressionToLiteralString <em>Convert Opaque Expression To Literal String</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl#isRemoveUnmappedProfilesAndStereotypes <em>Remove Unmapped Profiles And Stereotypes</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl#isRemoveUnmappedAnnotations <em>Remove Unmapped Annotations</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.ConfigImpl#isAlwaysAcceptSuggestedMappings <em>Always Accept Suggested Mappings</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class ConfigImpl extends MinimalEObjectImpl.Container implements Config {
- /**
- * The cached value of the '{@link #getMappingParameters() <em>Mapping Parameters</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMappingParameters()
- * @generated
- * @ordered
- */
- protected MappingParameters mappingParameters;
-
- /**
- * The default value of the '{@link #getMaxThreads() <em>Max Threads</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMaxThreads()
- * @generated
- * @ordered
- */
- protected static final int MAX_THREADS_EDEFAULT = 2;
-
- /**
- * The cached value of the '{@link #getMaxThreads() <em>Max Threads</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMaxThreads()
- * @generated
- * @ordered
- */
- protected int maxThreads = MAX_THREADS_EDEFAULT;
-
- /**
- * The default value of the '{@link #isRemoveUnmappedDiagrams() <em>Remove Unmapped Diagrams</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isRemoveUnmappedDiagrams()
- * @generated
- * @ordered
- */
- protected static final boolean REMOVE_UNMAPPED_DIAGRAMS_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isRemoveUnmappedDiagrams() <em>Remove Unmapped Diagrams</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isRemoveUnmappedDiagrams()
- * @generated
- * @ordered
- */
- protected boolean removeUnmappedDiagrams = REMOVE_UNMAPPED_DIAGRAMS_EDEFAULT;
-
- /**
- * The default value of the '{@link #isConvertOpaqueExpressionToLiteralString() <em>Convert Opaque Expression To Literal String</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isConvertOpaqueExpressionToLiteralString()
- * @generated
- * @ordered
- */
- protected static final boolean CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING_EDEFAULT = true;
-
- /**
- * The cached value of the '{@link #isConvertOpaqueExpressionToLiteralString() <em>Convert Opaque Expression To Literal String</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isConvertOpaqueExpressionToLiteralString()
- * @generated
- * @ordered
- */
- protected boolean convertOpaqueExpressionToLiteralString = CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING_EDEFAULT;
-
- /**
- * The default value of the '{@link #isRemoveUnmappedProfilesAndStereotypes() <em>Remove Unmapped Profiles And Stereotypes</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isRemoveUnmappedProfilesAndStereotypes()
- * @generated
- * @ordered
- */
- protected static final boolean REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isRemoveUnmappedProfilesAndStereotypes() <em>Remove Unmapped Profiles And Stereotypes</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isRemoveUnmappedProfilesAndStereotypes()
- * @generated
- * @ordered
- */
- protected boolean removeUnmappedProfilesAndStereotypes = REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES_EDEFAULT;
-
- /**
- * The default value of the '{@link #isRemoveUnmappedAnnotations() <em>Remove Unmapped Annotations</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isRemoveUnmappedAnnotations()
- * @generated
- * @ordered
- */
- protected static final boolean REMOVE_UNMAPPED_ANNOTATIONS_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isRemoveUnmappedAnnotations() <em>Remove Unmapped Annotations</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isRemoveUnmappedAnnotations()
- * @generated
- * @ordered
- */
- protected boolean removeUnmappedAnnotations = REMOVE_UNMAPPED_ANNOTATIONS_EDEFAULT;
-
- /**
- * The default value of the '{@link #isAlwaysAcceptSuggestedMappings() <em>Always Accept Suggested Mappings</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isAlwaysAcceptSuggestedMappings()
- * @generated
- * @ordered
- */
- protected static final boolean ALWAYS_ACCEPT_SUGGESTED_MAPPINGS_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isAlwaysAcceptSuggestedMappings() <em>Always Accept Suggested Mappings</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isAlwaysAcceptSuggestedMappings()
- * @generated
- * @ordered
- */
- protected boolean alwaysAcceptSuggestedMappings = ALWAYS_ACCEPT_SUGGESTED_MAPPINGS_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ConfigImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RSAToPapyrusParametersPackage.Literals.CONFIG;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public MappingParameters getMappingParameters() {
- return mappingParameters;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetMappingParameters(MappingParameters newMappingParameters, NotificationChain msgs) {
- MappingParameters oldMappingParameters = mappingParameters;
- mappingParameters = newMappingParameters;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.CONFIG__MAPPING_PARAMETERS, oldMappingParameters, newMappingParameters);
- if (msgs == null) {
- msgs = notification;
- } else {
- msgs.add(notification);
- }
- }
- return msgs;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setMappingParameters(MappingParameters newMappingParameters) {
- if (newMappingParameters != mappingParameters) {
- NotificationChain msgs = null;
- if (mappingParameters != null) {
- msgs = ((InternalEObject) mappingParameters).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - RSAToPapyrusParametersPackage.CONFIG__MAPPING_PARAMETERS, null, msgs);
- }
- if (newMappingParameters != null) {
- msgs = ((InternalEObject) newMappingParameters).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - RSAToPapyrusParametersPackage.CONFIG__MAPPING_PARAMETERS, null, msgs);
- }
- msgs = basicSetMappingParameters(newMappingParameters, msgs);
- if (msgs != null) {
- msgs.dispatch();
- }
- } else if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.CONFIG__MAPPING_PARAMETERS, newMappingParameters, newMappingParameters));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int getMaxThreads() {
- return maxThreads;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setMaxThreads(int newMaxThreads) {
- int oldMaxThreads = maxThreads;
- maxThreads = newMaxThreads;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.CONFIG__MAX_THREADS, oldMaxThreads, maxThreads));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isRemoveUnmappedDiagrams() {
- return removeUnmappedDiagrams;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setRemoveUnmappedDiagrams(boolean newRemoveUnmappedDiagrams) {
- boolean oldRemoveUnmappedDiagrams = removeUnmappedDiagrams;
- removeUnmappedDiagrams = newRemoveUnmappedDiagrams;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_DIAGRAMS, oldRemoveUnmappedDiagrams, removeUnmappedDiagrams));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isConvertOpaqueExpressionToLiteralString() {
- return convertOpaqueExpressionToLiteralString;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setConvertOpaqueExpressionToLiteralString(boolean newConvertOpaqueExpressionToLiteralString) {
- boolean oldConvertOpaqueExpressionToLiteralString = convertOpaqueExpressionToLiteralString;
- convertOpaqueExpressionToLiteralString = newConvertOpaqueExpressionToLiteralString;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING, oldConvertOpaqueExpressionToLiteralString, convertOpaqueExpressionToLiteralString));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isRemoveUnmappedProfilesAndStereotypes() {
- return removeUnmappedProfilesAndStereotypes;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setRemoveUnmappedProfilesAndStereotypes(boolean newRemoveUnmappedProfilesAndStereotypes) {
- boolean oldRemoveUnmappedProfilesAndStereotypes = removeUnmappedProfilesAndStereotypes;
- removeUnmappedProfilesAndStereotypes = newRemoveUnmappedProfilesAndStereotypes;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES, oldRemoveUnmappedProfilesAndStereotypes, removeUnmappedProfilesAndStereotypes));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isRemoveUnmappedAnnotations() {
- return removeUnmappedAnnotations;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setRemoveUnmappedAnnotations(boolean newRemoveUnmappedAnnotations) {
- boolean oldRemoveUnmappedAnnotations = removeUnmappedAnnotations;
- removeUnmappedAnnotations = newRemoveUnmappedAnnotations;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_ANNOTATIONS, oldRemoveUnmappedAnnotations, removeUnmappedAnnotations));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isAlwaysAcceptSuggestedMappings() {
- return alwaysAcceptSuggestedMappings;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setAlwaysAcceptSuggestedMappings(boolean newAlwaysAcceptSuggestedMappings) {
- boolean oldAlwaysAcceptSuggestedMappings = alwaysAcceptSuggestedMappings;
- alwaysAcceptSuggestedMappings = newAlwaysAcceptSuggestedMappings;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS, oldAlwaysAcceptSuggestedMappings, alwaysAcceptSuggestedMappings));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.CONFIG__MAPPING_PARAMETERS:
- return basicSetMappingParameters(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 RSAToPapyrusParametersPackage.CONFIG__MAPPING_PARAMETERS:
- return getMappingParameters();
- case RSAToPapyrusParametersPackage.CONFIG__MAX_THREADS:
- return getMaxThreads();
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_DIAGRAMS:
- return isRemoveUnmappedDiagrams();
- case RSAToPapyrusParametersPackage.CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING:
- return isConvertOpaqueExpressionToLiteralString();
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES:
- return isRemoveUnmappedProfilesAndStereotypes();
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_ANNOTATIONS:
- return isRemoveUnmappedAnnotations();
- case RSAToPapyrusParametersPackage.CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS:
- return isAlwaysAcceptSuggestedMappings();
- }
- 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 RSAToPapyrusParametersPackage.CONFIG__MAPPING_PARAMETERS:
- setMappingParameters((MappingParameters) newValue);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__MAX_THREADS:
- setMaxThreads((Integer) newValue);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_DIAGRAMS:
- setRemoveUnmappedDiagrams((Boolean) newValue);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING:
- setConvertOpaqueExpressionToLiteralString((Boolean) newValue);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES:
- setRemoveUnmappedProfilesAndStereotypes((Boolean) newValue);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_ANNOTATIONS:
- setRemoveUnmappedAnnotations((Boolean) newValue);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS:
- setAlwaysAcceptSuggestedMappings((Boolean) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.CONFIG__MAPPING_PARAMETERS:
- setMappingParameters((MappingParameters) null);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__MAX_THREADS:
- setMaxThreads(MAX_THREADS_EDEFAULT);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_DIAGRAMS:
- setRemoveUnmappedDiagrams(REMOVE_UNMAPPED_DIAGRAMS_EDEFAULT);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING:
- setConvertOpaqueExpressionToLiteralString(CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING_EDEFAULT);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES:
- setRemoveUnmappedProfilesAndStereotypes(REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES_EDEFAULT);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_ANNOTATIONS:
- setRemoveUnmappedAnnotations(REMOVE_UNMAPPED_ANNOTATIONS_EDEFAULT);
- return;
- case RSAToPapyrusParametersPackage.CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS:
- setAlwaysAcceptSuggestedMappings(ALWAYS_ACCEPT_SUGGESTED_MAPPINGS_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.CONFIG__MAPPING_PARAMETERS:
- return mappingParameters != null;
- case RSAToPapyrusParametersPackage.CONFIG__MAX_THREADS:
- return maxThreads != MAX_THREADS_EDEFAULT;
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_DIAGRAMS:
- return removeUnmappedDiagrams != REMOVE_UNMAPPED_DIAGRAMS_EDEFAULT;
- case RSAToPapyrusParametersPackage.CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING:
- return convertOpaqueExpressionToLiteralString != CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING_EDEFAULT;
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES:
- return removeUnmappedProfilesAndStereotypes != REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES_EDEFAULT;
- case RSAToPapyrusParametersPackage.CONFIG__REMOVE_UNMAPPED_ANNOTATIONS:
- return removeUnmappedAnnotations != REMOVE_UNMAPPED_ANNOTATIONS_EDEFAULT;
- case RSAToPapyrusParametersPackage.CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS:
- return alwaysAcceptSuggestedMappings != ALWAYS_ACCEPT_SUGGESTED_MAPPINGS_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(" (maxThreads: ");
- result.append(maxThreads);
- result.append(", removeUnmappedDiagrams: ");
- result.append(removeUnmappedDiagrams);
- result.append(", convertOpaqueExpressionToLiteralString: ");
- result.append(convertOpaqueExpressionToLiteralString);
- result.append(", removeUnmappedProfilesAndStereotypes: ");
- result.append(removeUnmappedProfilesAndStereotypes);
- result.append(", removeUnmappedAnnotations: ");
- result.append(removeUnmappedAnnotations);
- result.append(", alwaysAcceptSuggestedMappings: ");
- result.append(alwaysAcceptSuggestedMappings);
- result.append(')');
- return result.toString();
- }
-
-} // ConfigImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/MappingParametersImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/MappingParametersImpl.java
deleted file mode 100644
index 04669481448..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/MappingParametersImpl.java
+++ /dev/null
@@ -1,210 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.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.migration.rsa.RSAToPapyrusParameters.MappingParameters;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Mapping Parameters</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.MappingParametersImpl#getUriMappings <em>Uri Mappings</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.MappingParametersImpl#getProfileUriMappings <em>Profile Uri Mappings</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class MappingParametersImpl extends MinimalEObjectImpl.Container implements MappingParameters {
- /**
- * The cached value of the '{@link #getUriMappings() <em>Uri Mappings</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getUriMappings()
- * @generated
- * @ordered
- */
- protected EList<URIMapping> uriMappings;
-
- /**
- * The cached value of the '{@link #getProfileUriMappings() <em>Profile Uri Mappings</em>}' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getProfileUriMappings()
- * @generated
- * @ordered
- */
- protected EList<URIMapping> profileUriMappings;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MappingParametersImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RSAToPapyrusParametersPackage.Literals.MAPPING_PARAMETERS;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EList<URIMapping> getUriMappings() {
- if (uriMappings == null) {
- uriMappings = new EObjectContainmentEList<URIMapping>(URIMapping.class, this, RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS);
- }
- return uriMappings;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EList<URIMapping> getProfileUriMappings() {
- if (profileUriMappings == null) {
- profileUriMappings = new EObjectContainmentEList<URIMapping>(URIMapping.class, this, RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS);
- }
- return profileUriMappings;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS:
- return ((InternalEList<?>) getUriMappings()).basicRemove(otherEnd, msgs);
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS:
- return ((InternalEList<?>) getProfileUriMappings()).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 RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS:
- return getUriMappings();
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS:
- return getProfileUriMappings();
- }
- 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 RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS:
- getUriMappings().clear();
- getUriMappings().addAll((Collection<? extends URIMapping>) newValue);
- return;
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS:
- getProfileUriMappings().clear();
- getProfileUriMappings().addAll((Collection<? extends URIMapping>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS:
- getUriMappings().clear();
- return;
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS:
- getProfileUriMappings().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__URI_MAPPINGS:
- return uriMappings != null && !uriMappings.isEmpty();
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS:
- return profileUriMappings != null && !profileUriMappings.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} // MappingParametersImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/RSAToPapyrusParametersFactoryImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/RSAToPapyrusParametersFactoryImpl.java
deleted file mode 100644
index 432d1c70a92..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/RSAToPapyrusParametersFactoryImpl.java
+++ /dev/null
@@ -1,142 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl;
-
-import org.eclipse.emf.ecore.EClass;
-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.migration.rsa.RSAToPapyrusParameters.*;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersFactory;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class RSAToPapyrusParametersFactoryImpl extends EFactoryImpl implements RSAToPapyrusParametersFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static RSAToPapyrusParametersFactory init() {
- try {
- RSAToPapyrusParametersFactory theRSAToPapyrusParametersFactory = (RSAToPapyrusParametersFactory) EPackage.Registry.INSTANCE.getEFactory(RSAToPapyrusParametersPackage.eNS_URI);
- if (theRSAToPapyrusParametersFactory != null) {
- return theRSAToPapyrusParametersFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new RSAToPapyrusParametersFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public RSAToPapyrusParametersFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case RSAToPapyrusParametersPackage.CONFIG:
- return createConfig();
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS:
- return createMappingParameters();
- case RSAToPapyrusParametersPackage.URI_MAPPING:
- return createURIMapping();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Config createConfig() {
- ConfigImpl config = new ConfigImpl();
- return config;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public MappingParameters createMappingParameters() {
- MappingParametersImpl mappingParameters = new MappingParametersImpl();
- return mappingParameters;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public URIMapping createURIMapping() {
- URIMappingImpl uriMapping = new URIMappingImpl();
- return uriMapping;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public RSAToPapyrusParametersPackage getRSAToPapyrusParametersPackage() {
- return (RSAToPapyrusParametersPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static RSAToPapyrusParametersPackage getPackage() {
- return RSAToPapyrusParametersPackage.eINSTANCE;
- }
-
-} // RSAToPapyrusParametersFactoryImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/RSAToPapyrusParametersPackageImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/RSAToPapyrusParametersPackageImpl.java
deleted file mode 100644
index 1c3b0a44376..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/RSAToPapyrusParametersPackageImpl.java
+++ /dev/null
@@ -1,399 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersFactory;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-import org.eclipse.uml2.types.TypesPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class RSAToPapyrusParametersPackageImpl extends EPackageImpl implements RSAToPapyrusParametersPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass configEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass mappingParametersEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass uriMappingEClass = 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.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private RSAToPapyrusParametersPackageImpl() {
- super(eNS_URI, RSAToPapyrusParametersFactory.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 RSAToPapyrusParametersPackage#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 RSAToPapyrusParametersPackage init() {
- if (isInited) {
- return (RSAToPapyrusParametersPackage) EPackage.Registry.INSTANCE.getEPackage(RSAToPapyrusParametersPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- RSAToPapyrusParametersPackageImpl theRSAToPapyrusParametersPackage = (RSAToPapyrusParametersPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof RSAToPapyrusParametersPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI)
- : new RSAToPapyrusParametersPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- TypesPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theRSAToPapyrusParametersPackage.createPackageContents();
-
- // Initialize created meta-data
- theRSAToPapyrusParametersPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theRSAToPapyrusParametersPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(RSAToPapyrusParametersPackage.eNS_URI, theRSAToPapyrusParametersPackage);
- return theRSAToPapyrusParametersPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getConfig() {
- return configEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getConfig_MappingParameters() {
- return (EReference) configEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getConfig_MaxThreads() {
- return (EAttribute) configEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getConfig_RemoveUnmappedDiagrams() {
- return (EAttribute) configEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getConfig_ConvertOpaqueExpressionToLiteralString() {
- return (EAttribute) configEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getConfig_RemoveUnmappedProfilesAndStereotypes() {
- return (EAttribute) configEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getConfig_RemoveUnmappedAnnotations() {
- return (EAttribute) configEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getConfig_AlwaysAcceptSuggestedMappings() {
- return (EAttribute) configEClass.getEStructuralFeatures().get(6);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getMappingParameters() {
- return mappingParametersEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getMappingParameters_UriMappings() {
- return (EReference) mappingParametersEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getMappingParameters_ProfileUriMappings() {
- return (EReference) mappingParametersEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getURIMapping() {
- return uriMappingEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getURIMapping_SourceURI() {
- return (EAttribute) uriMappingEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getURIMapping_TargetURI() {
- return (EAttribute) uriMappingEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public RSAToPapyrusParametersFactory getRSAToPapyrusParametersFactory() {
- return (RSAToPapyrusParametersFactory) 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
- configEClass = createEClass(CONFIG);
- createEReference(configEClass, CONFIG__MAPPING_PARAMETERS);
- createEAttribute(configEClass, CONFIG__MAX_THREADS);
- createEAttribute(configEClass, CONFIG__REMOVE_UNMAPPED_DIAGRAMS);
- createEAttribute(configEClass, CONFIG__CONVERT_OPAQUE_EXPRESSION_TO_LITERAL_STRING);
- createEAttribute(configEClass, CONFIG__REMOVE_UNMAPPED_PROFILES_AND_STEREOTYPES);
- createEAttribute(configEClass, CONFIG__REMOVE_UNMAPPED_ANNOTATIONS);
- createEAttribute(configEClass, CONFIG__ALWAYS_ACCEPT_SUGGESTED_MAPPINGS);
-
- mappingParametersEClass = createEClass(MAPPING_PARAMETERS);
- createEReference(mappingParametersEClass, MAPPING_PARAMETERS__URI_MAPPINGS);
- createEReference(mappingParametersEClass, MAPPING_PARAMETERS__PROFILE_URI_MAPPINGS);
-
- uriMappingEClass = createEClass(URI_MAPPING);
- createEAttribute(uriMappingEClass, URI_MAPPING__SOURCE_URI);
- createEAttribute(uriMappingEClass, URI_MAPPING__TARGET_URI);
- }
-
- /**
- * <!-- 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
- TypesPackage theTypesPackage = (TypesPackage) EPackage.Registry.INSTANCE.getEPackage(TypesPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
-
- // Initialize classes, features, and operations; add parameters
- initEClass(configEClass, Config.class, "Config", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getConfig_MappingParameters(), this.getMappingParameters(), null, "mappingParameters", null, 1, 1, Config.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
- initEAttribute(getConfig_MaxThreads(), theTypesPackage.getInteger(), "maxThreads", "2", 1, 1, Config.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getConfig_RemoveUnmappedDiagrams(), theTypesPackage.getBoolean(), "removeUnmappedDiagrams", "false", 1, 1, Config.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getConfig_ConvertOpaqueExpressionToLiteralString(), theTypesPackage.getBoolean(), "convertOpaqueExpressionToLiteralString", "true", 1, 1, Config.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getConfig_RemoveUnmappedProfilesAndStereotypes(), theTypesPackage.getBoolean(), "removeUnmappedProfilesAndStereotypes", "false", 1, 1, Config.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getConfig_RemoveUnmappedAnnotations(), theTypesPackage.getBoolean(), "removeUnmappedAnnotations", "false", 1, 1, Config.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getConfig_AlwaysAcceptSuggestedMappings(), theTypesPackage.getBoolean(), "alwaysAcceptSuggestedMappings", "false", 1, 1, Config.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
-
- initEClass(mappingParametersEClass, MappingParameters.class, "MappingParameters", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMappingParameters_UriMappings(), this.getURIMapping(), null, "uriMappings", null, 0, -1, MappingParameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- !IS_ORDERED);
- initEReference(getMappingParameters_ProfileUriMappings(), this.getURIMapping(), null, "profileUriMappings", null, 0, -1, MappingParameters.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, !IS_ORDERED);
-
- initEClass(uriMappingEClass, URIMapping.class, "URIMapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getURIMapping_SourceURI(), theTypesPackage.getString(), "sourceURI", null, 1, 1, URIMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
- initEAttribute(getURIMapping_TargetURI(), theTypesPackage.getString(), "targetURI", null, 1, 1, URIMapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, !IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // RSAToPapyrusParametersPackageImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/URIMappingImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/URIMappingImpl.java
deleted file mode 100644
index 28ee0143de0..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/impl/URIMappingImpl.java
+++ /dev/null
@@ -1,246 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.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.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>URI Mapping</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.URIMappingImpl#getSourceURI <em>Source URI</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.impl.URIMappingImpl#getTargetURI <em>Target URI</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class URIMappingImpl extends MinimalEObjectImpl.Container implements URIMapping {
- /**
- * The default value of the '{@link #getSourceURI() <em>Source URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getSourceURI()
- * @generated
- * @ordered
- */
- protected static final String SOURCE_URI_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getSourceURI() <em>Source URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getSourceURI()
- * @generated
- * @ordered
- */
- protected String sourceURI = SOURCE_URI_EDEFAULT;
-
- /**
- * The default value of the '{@link #getTargetURI() <em>Target URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getTargetURI()
- * @generated
- * @ordered
- */
- protected static final String TARGET_URI_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getTargetURI() <em>Target URI</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getTargetURI()
- * @generated
- * @ordered
- */
- protected String targetURI = TARGET_URI_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected URIMappingImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return RSAToPapyrusParametersPackage.Literals.URI_MAPPING;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getSourceURI() {
- return sourceURI;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setSourceURI(String newSourceURI) {
- String oldSourceURI = sourceURI;
- sourceURI = newSourceURI;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.URI_MAPPING__SOURCE_URI, oldSourceURI, sourceURI));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getTargetURI() {
- return targetURI;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setTargetURI(String newTargetURI) {
- String oldTargetURI = targetURI;
- targetURI = newTargetURI;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, RSAToPapyrusParametersPackage.URI_MAPPING__TARGET_URI, oldTargetURI, targetURI));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.URI_MAPPING__SOURCE_URI:
- return getSourceURI();
- case RSAToPapyrusParametersPackage.URI_MAPPING__TARGET_URI:
- return getTargetURI();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.URI_MAPPING__SOURCE_URI:
- setSourceURI((String) newValue);
- return;
- case RSAToPapyrusParametersPackage.URI_MAPPING__TARGET_URI:
- setTargetURI((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.URI_MAPPING__SOURCE_URI:
- setSourceURI(SOURCE_URI_EDEFAULT);
- return;
- case RSAToPapyrusParametersPackage.URI_MAPPING__TARGET_URI:
- setTargetURI(TARGET_URI_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case RSAToPapyrusParametersPackage.URI_MAPPING__SOURCE_URI:
- return SOURCE_URI_EDEFAULT == null ? sourceURI != null : !SOURCE_URI_EDEFAULT.equals(sourceURI);
- case RSAToPapyrusParametersPackage.URI_MAPPING__TARGET_URI:
- return TARGET_URI_EDEFAULT == null ? targetURI != null : !TARGET_URI_EDEFAULT.equals(targetURI);
- }
- 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(" (sourceURI: ");
- result.append(sourceURI);
- result.append(", targetURI: ");
- result.append(targetURI);
- result.append(')');
- return result.toString();
- }
-
-} // URIMappingImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/util/RSAToPapyrusParametersAdapterFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/util/RSAToPapyrusParametersAdapterFactory.java
deleted file mode 100644
index 2f9e6f9cb3d..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/util/RSAToPapyrusParametersAdapterFactory.java
+++ /dev/null
@@ -1,178 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.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.migration.rsa.RSAToPapyrusParameters.*;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-
-/**
- * <!-- 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.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage
- * @generated
- */
-public class RSAToPapyrusParametersAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static RSAToPapyrusParametersPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public RSAToPapyrusParametersAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = RSAToPapyrusParametersPackage.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 RSAToPapyrusParametersSwitch<Adapter> modelSwitch = new RSAToPapyrusParametersSwitch<Adapter>() {
- @Override
- public Adapter caseConfig(Config object) {
- return createConfigAdapter();
- }
-
- @Override
- public Adapter caseMappingParameters(MappingParameters object) {
- return createMappingParametersAdapter();
- }
-
- @Override
- public Adapter caseURIMapping(URIMapping object) {
- return createURIMappingAdapter();
- }
-
- @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.migration.rsa.RSAToPapyrusParameters.Config <em>Config</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.migration.rsa.RSAToPapyrusParameters.Config
- * @generated
- */
- public Adapter createConfigAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters <em>Mapping Parameters</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.migration.rsa.RSAToPapyrusParameters.MappingParameters
- * @generated
- */
- public Adapter createMappingParametersAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping <em>URI Mapping</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.migration.rsa.RSAToPapyrusParameters.URIMapping
- * @generated
- */
- public Adapter createURIMappingAdapter() {
- 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;
- }
-
-} // RSAToPapyrusParametersAdapterFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/util/RSAToPapyrusParametersSwitch.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/util/RSAToPapyrusParametersSwitch.java
deleted file mode 100644
index e5bb75d46fd..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/RSAToPapyrusParameters/util/RSAToPapyrusParametersSwitch.java
+++ /dev/null
@@ -1,182 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.*;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-
-/**
- * <!-- 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.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersPackage
- * @generated
- */
-public class RSAToPapyrusParametersSwitch<T> extends Switch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static RSAToPapyrusParametersPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public RSAToPapyrusParametersSwitch() {
- if (modelPackage == null) {
- modelPackage = RSAToPapyrusParametersPackage.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 RSAToPapyrusParametersPackage.CONFIG: {
- Config config = (Config) theEObject;
- T result = caseConfig(config);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case RSAToPapyrusParametersPackage.MAPPING_PARAMETERS: {
- MappingParameters mappingParameters = (MappingParameters) theEObject;
- T result = caseMappingParameters(mappingParameters);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case RSAToPapyrusParametersPackage.URI_MAPPING: {
- URIMapping uriMapping = (URIMapping) theEObject;
- T result = caseURIMapping(uriMapping);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Config</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>Config</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseConfig(Config object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Mapping Parameters</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>Mapping Parameters</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMappingParameters(MappingParameters object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>URI Mapping</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>URI Mapping</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseURIMapping(URIMapping 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;
- }
-
-} // RSAToPapyrusParametersSwitch
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/AbstractConstraint.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/AbstractConstraint.java
deleted file mode 100644
index 56ded8a3f3e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/AbstractConstraint.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.uml2.uml.Constraint;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Abstract Constraint</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getBase_Constraint <em>Base Constraint</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getEvaluationMode <em>Evaluation Mode</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getSeverity <em>Severity</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getAbstractConstraint()
- * @model abstract="true"
- * @generated
- */
-public interface AbstractConstraint extends EObject {
- /**
- * Returns the value of the '<em><b>Base Constraint</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Base Constraint</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Base Constraint</em>' reference.
- * @see #setBase_Constraint(Constraint)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getAbstractConstraint_Base_Constraint()
- * @model required="true"
- * @generated
- */
- Constraint getBase_Constraint();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getBase_Constraint <em>Base Constraint</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Constraint</em>' reference.
- * @see #getBase_Constraint()
- * @generated
- */
- void setBase_Constraint(Constraint value);
-
- /**
- * Returns the value of the '<em><b>Evaluation Mode</b></em>' attribute.
- * The default value is <code>"batch"</code>.
- * The literals are from the enumeration {@link org.eclipse.papyrus.migration.rsa.default_.Mode}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Evaluation Mode</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Evaluation Mode</em>' attribute.
- * @see org.eclipse.papyrus.migration.rsa.default_.Mode
- * @see #setEvaluationMode(Mode)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getAbstractConstraint_EvaluationMode()
- * @model default="batch" required="true"
- * @generated
- */
- Mode getEvaluationMode();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getEvaluationMode <em>Evaluation Mode</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Evaluation Mode</em>' attribute.
- * @see org.eclipse.papyrus.migration.rsa.default_.Mode
- * @see #getEvaluationMode()
- * @generated
- */
- void setEvaluationMode(Mode value);
-
- /**
- * Returns the value of the '<em><b>Severity</b></em>' attribute.
- * The default value is <code>"error"</code>.
- * The literals are from the enumeration {@link org.eclipse.papyrus.migration.rsa.default_.Severity}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Severity</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Severity</em>' attribute.
- * @see org.eclipse.papyrus.migration.rsa.default_.Severity
- * @see #setSeverity(Severity)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getAbstractConstraint_Severity()
- * @model default="error" required="true"
- * @generated
- */
- Severity getSeverity();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getSeverity <em>Severity</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Severity</em>' attribute.
- * @see org.eclipse.papyrus.migration.rsa.default_.Severity
- * @see #getSeverity()
- * @generated
- */
- void setSeverity(Severity value);
-
-} // AbstractConstraint
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultFactory.java
deleted file mode 100644
index 4263324cfbc..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultFactory.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-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.migration.rsa.default_.DefaultPackage
- * @generated
- */
-public interface DefaultFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- DefaultFactory eINSTANCE = org.eclipse.papyrus.migration.rsa.default_.impl.DefaultFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Documentation</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Documentation</em>'.
- * @generated
- */
- Documentation createDocumentation();
-
- /**
- * Returns a new object of class '<em>URL</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>URL</em>'.
- * @generated
- */
- URL createURL();
-
- /**
- * Returns a new object of class '<em>Link</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Link</em>'.
- * @generated
- */
- Link createLink();
-
- /**
- * Returns a new object of class '<em>Meta Constraint</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Meta Constraint</em>'.
- * @generated
- */
- MetaConstraint createMetaConstraint();
-
- /**
- * Returns a new object of class '<em>Marking Model</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Marking Model</em>'.
- * @generated
- */
- MarkingModel createMarkingModel();
-
- /**
- * Returns a new object of class '<em>Marking Import</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Marking Import</em>'.
- * @generated
- */
- MarkingImport createMarkingImport();
-
- /**
- * Returns a new object of class '<em>Language</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Language</em>'.
- * @generated
- */
- DefaultLanguage createDefaultLanguage();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- DefaultPackage getDefaultPackage();
-
-} // DefaultFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultLanguage.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultLanguage.java
deleted file mode 100644
index 9b47c4da2e6..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultLanguage.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * * Copyright (c) 2013, 2014 CEA LIST.
- * *
- * * All rights reserved. This program and the accompanying materials
- * * are made available under the terms 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.migration.rsa.default_;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Language</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage#getBase_Package <em>Base Package</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage#getDefaultLanguage <em>Default Language</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getDefaultLanguage()
- * @model
- * @generated
- */
-public interface DefaultLanguage extends EObject {
- /**
- * Returns the value of the '<em><b>Base Package</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Base Package</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Base Package</em>' reference.
- * @see #setBase_Package(org.eclipse.uml2.uml.Package)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getDefaultLanguage_Base_Package()
- * @model
- * @generated
- */
- org.eclipse.uml2.uml.Package getBase_Package();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage#getBase_Package <em>Base Package</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Package</em>' reference.
- * @see #getBase_Package()
- * @generated
- */
- void setBase_Package(org.eclipse.uml2.uml.Package value);
-
- /**
- * Returns the value of the '<em><b>Default Language</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Default Language</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Default Language</em>' attribute.
- * @see #setDefaultLanguage(String)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getDefaultLanguage_DefaultLanguage()
- * @model
- * @generated
- */
- String getDefaultLanguage();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage#getDefaultLanguage <em>Default Language</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Default Language</em>' attribute.
- * @see #getDefaultLanguage()
- * @generated
- */
- void setDefaultLanguage(String value);
-
-} // DefaultLanguage
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultPackage.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultPackage.java
deleted file mode 100644
index f419b2ea037..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/DefaultPackage.java
+++ /dev/null
@@ -1,1065 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-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 operation of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultFactory
- * @model kind="package"
- * @generated
- */
-public interface DefaultPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "default";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/profile/default";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "default";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- DefaultPackage eINSTANCE = org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.DocumentationImpl <em>Documentation</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DocumentationImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getDocumentation()
- * @generated
- */
- int DOCUMENTATION = 0;
-
- /**
- * The feature id for the '<em><b>Base Comment</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DOCUMENTATION__BASE_COMMENT = 0;
-
- /**
- * The number of structural features of the '<em>Documentation</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DOCUMENTATION_FEATURE_COUNT = 1;
-
- /**
- * The number of operations of the '<em>Documentation</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DOCUMENTATION_OPERATION_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.URLImpl <em>URL</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.URLImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getURL()
- * @generated
- */
- int URL = 1;
-
- /**
- * The feature id for the '<em><b>Base Comment</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URL__BASE_COMMENT = 0;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URL__TYPE = 1;
-
- /**
- * The feature id for the '<em><b>Display Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URL__DISPLAY_NAME = 2;
-
- /**
- * The feature id for the '<em><b>Icon</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URL__ICON = 3;
-
- /**
- * The number of structural features of the '<em>URL</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URL_FEATURE_COUNT = 4;
-
- /**
- * The number of operations of the '<em>URL</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int URL_OPERATION_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.LinkImpl <em>Link</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.LinkImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getLink()
- * @generated
- */
- int LINK = 2;
-
- /**
- * The feature id for the '<em><b>Base Comment</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LINK__BASE_COMMENT = URL__BASE_COMMENT;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LINK__TYPE = URL__TYPE;
-
- /**
- * The feature id for the '<em><b>Display Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LINK__DISPLAY_NAME = URL__DISPLAY_NAME;
-
- /**
- * The feature id for the '<em><b>Icon</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LINK__ICON = URL__ICON;
-
- /**
- * The number of structural features of the '<em>Link</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LINK_FEATURE_COUNT = URL_FEATURE_COUNT + 0;
-
- /**
- * The number of operations of the '<em>Link</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int LINK_OPERATION_COUNT = URL_OPERATION_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.AbstractConstraintImpl <em>Abstract Constraint</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.AbstractConstraintImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getAbstractConstraint()
- * @generated
- */
- int ABSTRACT_CONSTRAINT = 3;
-
- /**
- * The feature id for the '<em><b>Base Constraint</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ABSTRACT_CONSTRAINT__BASE_CONSTRAINT = 0;
-
- /**
- * The feature id for the '<em><b>Evaluation Mode</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ABSTRACT_CONSTRAINT__EVALUATION_MODE = 1;
-
- /**
- * The feature id for the '<em><b>Severity</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ABSTRACT_CONSTRAINT__SEVERITY = 2;
-
- /**
- * The number of structural features of the '<em>Abstract Constraint</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ABSTRACT_CONSTRAINT_FEATURE_COUNT = 3;
-
- /**
- * The number of operations of the '<em>Abstract Constraint</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int ABSTRACT_CONSTRAINT_OPERATION_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.MetaConstraintImpl <em>Meta Constraint</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.MetaConstraintImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getMetaConstraint()
- * @generated
- */
- int META_CONSTRAINT = 4;
-
- /**
- * The feature id for the '<em><b>Base Constraint</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int META_CONSTRAINT__BASE_CONSTRAINT = ABSTRACT_CONSTRAINT__BASE_CONSTRAINT;
-
- /**
- * The feature id for the '<em><b>Evaluation Mode</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int META_CONSTRAINT__EVALUATION_MODE = ABSTRACT_CONSTRAINT__EVALUATION_MODE;
-
- /**
- * The feature id for the '<em><b>Severity</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int META_CONSTRAINT__SEVERITY = ABSTRACT_CONSTRAINT__SEVERITY;
-
- /**
- * The feature id for the '<em><b>Message</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int META_CONSTRAINT__MESSAGE = ABSTRACT_CONSTRAINT_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Meta Constraint</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int META_CONSTRAINT_FEATURE_COUNT = ABSTRACT_CONSTRAINT_FEATURE_COUNT + 1;
-
- /**
- * The number of operations of the '<em>Meta Constraint</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int META_CONSTRAINT_OPERATION_COUNT = ABSTRACT_CONSTRAINT_OPERATION_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.MarkingModelImpl <em>Marking Model</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.MarkingModelImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getMarkingModel()
- * @generated
- */
- int MARKING_MODEL = 5;
-
- /**
- * The feature id for the '<em><b>Base Package</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MARKING_MODEL__BASE_PACKAGE = 0;
-
- /**
- * The number of structural features of the '<em>Marking Model</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MARKING_MODEL_FEATURE_COUNT = 1;
-
- /**
- * The number of operations of the '<em>Marking Model</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MARKING_MODEL_OPERATION_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.MarkingImportImpl <em>Marking Import</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.MarkingImportImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getMarkingImport()
- * @generated
- */
- int MARKING_IMPORT = 6;
-
- /**
- * The feature id for the '<em><b>Base Element Import</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MARKING_IMPORT__BASE_ELEMENT_IMPORT = 0;
-
- /**
- * The number of structural features of the '<em>Marking Import</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MARKING_IMPORT_FEATURE_COUNT = 1;
-
- /**
- * The number of operations of the '<em>Marking Import</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int MARKING_IMPORT_OPERATION_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.DefaultLanguageImpl <em>Language</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultLanguageImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getDefaultLanguage()
- * @generated
- */
- int DEFAULT_LANGUAGE = 7;
-
- /**
- * The feature id for the '<em><b>Base Package</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEFAULT_LANGUAGE__BASE_PACKAGE = 0;
-
- /**
- * The feature id for the '<em><b>Default Language</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEFAULT_LANGUAGE__DEFAULT_LANGUAGE = 1;
-
- /**
- * The number of structural features of the '<em>Language</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEFAULT_LANGUAGE_FEATURE_COUNT = 2;
-
- /**
- * The number of operations of the '<em>Language</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DEFAULT_LANGUAGE_OPERATION_COUNT = 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.Mode <em>Mode</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.Mode
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getMode()
- * @generated
- */
- int MODE = 8;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.default_.Severity <em>Severity</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.Severity
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getSeverity()
- * @generated
- */
- int SEVERITY = 9;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.default_.Documentation <em>Documentation</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Documentation</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.Documentation
- * @generated
- */
- EClass getDocumentation();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.migration.rsa.default_.Documentation#getBase_Comment <em>Base Comment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Base Comment</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.Documentation#getBase_Comment()
- * @see #getDocumentation()
- * @generated
- */
- EReference getDocumentation_Base_Comment();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.default_.URL <em>URL</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>URL</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.URL
- * @generated
- */
- EClass getURL();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.migration.rsa.default_.URL#getBase_Comment <em>Base Comment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Base Comment</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.URL#getBase_Comment()
- * @see #getURL()
- * @generated
- */
- EReference getURL_Base_Comment();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.default_.URL#getType <em>Type</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Type</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.URL#getType()
- * @see #getURL()
- * @generated
- */
- EAttribute getURL_Type();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.default_.URL#getDisplayName <em>Display Name</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Display Name</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.URL#getDisplayName()
- * @see #getURL()
- * @generated
- */
- EAttribute getURL_DisplayName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.default_.URL#getIcon <em>Icon</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Icon</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.URL#getIcon()
- * @see #getURL()
- * @generated
- */
- EAttribute getURL_Icon();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.default_.Link <em>Link</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Link</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.Link
- * @generated
- */
- EClass getLink();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint <em>Abstract Constraint</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Abstract Constraint</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint
- * @generated
- */
- EClass getAbstractConstraint();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getBase_Constraint <em>Base Constraint</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Base Constraint</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getBase_Constraint()
- * @see #getAbstractConstraint()
- * @generated
- */
- EReference getAbstractConstraint_Base_Constraint();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getEvaluationMode <em>Evaluation Mode</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Evaluation Mode</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getEvaluationMode()
- * @see #getAbstractConstraint()
- * @generated
- */
- EAttribute getAbstractConstraint_EvaluationMode();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getSeverity <em>Severity</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Severity</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint#getSeverity()
- * @see #getAbstractConstraint()
- * @generated
- */
- EAttribute getAbstractConstraint_Severity();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.default_.MetaConstraint <em>Meta Constraint</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Meta Constraint</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.MetaConstraint
- * @generated
- */
- EClass getMetaConstraint();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.default_.MetaConstraint#getMessage <em>Message</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Message</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.MetaConstraint#getMessage()
- * @see #getMetaConstraint()
- * @generated
- */
- EAttribute getMetaConstraint_Message();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.default_.MarkingModel <em>Marking Model</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Marking Model</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.MarkingModel
- * @generated
- */
- EClass getMarkingModel();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.migration.rsa.default_.MarkingModel#getBase_Package <em>Base Package</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Base Package</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.MarkingModel#getBase_Package()
- * @see #getMarkingModel()
- * @generated
- */
- EReference getMarkingModel_Base_Package();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.default_.MarkingImport <em>Marking Import</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Marking Import</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.MarkingImport
- * @generated
- */
- EClass getMarkingImport();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.migration.rsa.default_.MarkingImport#getBase_ElementImport <em>Base Element Import</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Base Element Import</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.MarkingImport#getBase_ElementImport()
- * @see #getMarkingImport()
- * @generated
- */
- EReference getMarkingImport_Base_ElementImport();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage <em>Language</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Language</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage
- * @generated
- */
- EClass getDefaultLanguage();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage#getBase_Package <em>Base Package</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the reference '<em>Base Package</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage#getBase_Package()
- * @see #getDefaultLanguage()
- * @generated
- */
- EReference getDefaultLanguage_Base_Package();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage#getDefaultLanguage <em>Default Language</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Default Language</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage#getDefaultLanguage()
- * @see #getDefaultLanguage()
- * @generated
- */
- EAttribute getDefaultLanguage_DefaultLanguage();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.migration.rsa.default_.Mode <em>Mode</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Mode</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.Mode
- * @generated
- */
- EEnum getMode();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.papyrus.migration.rsa.default_.Severity <em>Severity</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for enum '<em>Severity</em>'.
- * @see org.eclipse.papyrus.migration.rsa.default_.Severity
- * @generated
- */
- EEnum getSeverity();
-
- /**
- * 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
- */
- DefaultFactory getDefaultFactory();
-
- /**
- * <!-- 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 operation 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.migration.rsa.default_.impl.DocumentationImpl <em>Documentation</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DocumentationImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getDocumentation()
- * @generated
- */
- EClass DOCUMENTATION = eINSTANCE.getDocumentation();
-
- /**
- * The meta object literal for the '<em><b>Base Comment</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference DOCUMENTATION__BASE_COMMENT = eINSTANCE.getDocumentation_Base_Comment();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.URLImpl <em>URL</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.URLImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getURL()
- * @generated
- */
- EClass URL = eINSTANCE.getURL();
-
- /**
- * The meta object literal for the '<em><b>Base Comment</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference URL__BASE_COMMENT = eINSTANCE.getURL_Base_Comment();
-
- /**
- * The meta object literal for the '<em><b>Type</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute URL__TYPE = eINSTANCE.getURL_Type();
-
- /**
- * The meta object literal for the '<em><b>Display Name</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute URL__DISPLAY_NAME = eINSTANCE.getURL_DisplayName();
-
- /**
- * The meta object literal for the '<em><b>Icon</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute URL__ICON = eINSTANCE.getURL_Icon();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.LinkImpl <em>Link</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.LinkImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getLink()
- * @generated
- */
- EClass LINK = eINSTANCE.getLink();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.AbstractConstraintImpl <em>Abstract Constraint</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.AbstractConstraintImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getAbstractConstraint()
- * @generated
- */
- EClass ABSTRACT_CONSTRAINT = eINSTANCE.getAbstractConstraint();
-
- /**
- * The meta object literal for the '<em><b>Base Constraint</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference ABSTRACT_CONSTRAINT__BASE_CONSTRAINT = eINSTANCE.getAbstractConstraint_Base_Constraint();
-
- /**
- * The meta object literal for the '<em><b>Evaluation Mode</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute ABSTRACT_CONSTRAINT__EVALUATION_MODE = eINSTANCE.getAbstractConstraint_EvaluationMode();
-
- /**
- * The meta object literal for the '<em><b>Severity</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute ABSTRACT_CONSTRAINT__SEVERITY = eINSTANCE.getAbstractConstraint_Severity();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.MetaConstraintImpl <em>Meta Constraint</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.MetaConstraintImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getMetaConstraint()
- * @generated
- */
- EClass META_CONSTRAINT = eINSTANCE.getMetaConstraint();
-
- /**
- * The meta object literal for the '<em><b>Message</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute META_CONSTRAINT__MESSAGE = eINSTANCE.getMetaConstraint_Message();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.MarkingModelImpl <em>Marking Model</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.MarkingModelImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getMarkingModel()
- * @generated
- */
- EClass MARKING_MODEL = eINSTANCE.getMarkingModel();
-
- /**
- * The meta object literal for the '<em><b>Base Package</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MARKING_MODEL__BASE_PACKAGE = eINSTANCE.getMarkingModel_Base_Package();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.MarkingImportImpl <em>Marking Import</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.MarkingImportImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getMarkingImport()
- * @generated
- */
- EClass MARKING_IMPORT = eINSTANCE.getMarkingImport();
-
- /**
- * The meta object literal for the '<em><b>Base Element Import</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference MARKING_IMPORT__BASE_ELEMENT_IMPORT = eINSTANCE.getMarkingImport_Base_ElementImport();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.default_.impl.DefaultLanguageImpl <em>Language</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultLanguageImpl
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getDefaultLanguage()
- * @generated
- */
- EClass DEFAULT_LANGUAGE = eINSTANCE.getDefaultLanguage();
-
- /**
- * The meta object literal for the '<em><b>Base Package</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EReference DEFAULT_LANGUAGE__BASE_PACKAGE = eINSTANCE.getDefaultLanguage_Base_Package();
-
- /**
- * The meta object literal for the '<em><b>Default Language</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute DEFAULT_LANGUAGE__DEFAULT_LANGUAGE = eINSTANCE.getDefaultLanguage_DefaultLanguage();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.default_.Mode <em>Mode</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.Mode
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getMode()
- * @generated
- */
- EEnum MODE = eINSTANCE.getMode();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.default_.Severity <em>Severity</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.Severity
- * @see org.eclipse.papyrus.migration.rsa.default_.impl.DefaultPackageImpl#getSeverity()
- * @generated
- */
- EEnum SEVERITY = eINSTANCE.getSeverity();
-
- }
-
-} // DefaultPackage
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Documentation.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Documentation.java
deleted file mode 100644
index f2a8fa2a3fe..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Documentation.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.uml2.uml.Comment;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Documentation</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.Documentation#getBase_Comment <em>Base Comment</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getDocumentation()
- * @model
- * @generated
- */
-public interface Documentation extends EObject {
- /**
- * Returns the value of the '<em><b>Base Comment</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Base Comment</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Base Comment</em>' reference.
- * @see #setBase_Comment(Comment)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getDocumentation_Base_Comment()
- * @model required="true"
- * @generated
- */
- Comment getBase_Comment();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.Documentation#getBase_Comment <em>Base Comment</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Comment</em>' reference.
- * @see #getBase_Comment()
- * @generated
- */
- void setBase_Comment(Comment value);
-
-} // Documentation
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Link.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Link.java
deleted file mode 100644
index c5c0dad836d..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Link.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Link</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getLink()
- * @model
- * @generated
- */
-public interface Link extends URL {
-} // Link
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MarkingImport.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MarkingImport.java
deleted file mode 100644
index db642a3fa2b..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MarkingImport.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.uml2.uml.ElementImport;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Marking Import</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.MarkingImport#getBase_ElementImport <em>Base Element Import</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getMarkingImport()
- * @model
- * @generated
- */
-public interface MarkingImport extends EObject {
- /**
- * Returns the value of the '<em><b>Base Element Import</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Base Element Import</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Base Element Import</em>' reference.
- * @see #setBase_ElementImport(ElementImport)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getMarkingImport_Base_ElementImport()
- * @model required="true"
- * @generated
- */
- ElementImport getBase_ElementImport();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.MarkingImport#getBase_ElementImport <em>Base Element Import</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Element Import</em>' reference.
- * @see #getBase_ElementImport()
- * @generated
- */
- void setBase_ElementImport(ElementImport value);
-
-} // MarkingImport
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MarkingModel.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MarkingModel.java
deleted file mode 100644
index d9eaaa11926..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MarkingModel.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Marking Model</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.MarkingModel#getBase_Package <em>Base Package</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getMarkingModel()
- * @model
- * @generated
- */
-public interface MarkingModel extends EObject {
- /**
- * Returns the value of the '<em><b>Base Package</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Base Package</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Base Package</em>' reference.
- * @see #setBase_Package(org.eclipse.uml2.uml.Package)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getMarkingModel_Base_Package()
- * @model required="true"
- * @generated
- */
- org.eclipse.uml2.uml.Package getBase_Package();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.MarkingModel#getBase_Package <em>Base Package</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Package</em>' reference.
- * @see #getBase_Package()
- * @generated
- */
- void setBase_Package(org.eclipse.uml2.uml.Package value);
-
-} // MarkingModel
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MetaConstraint.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MetaConstraint.java
deleted file mode 100644
index 4b327262913..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/MetaConstraint.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Meta Constraint</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.MetaConstraint#getMessage <em>Message</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getMetaConstraint()
- * @model
- * @generated
- */
-public interface MetaConstraint extends AbstractConstraint {
-
- /**
- * Returns the value of the '<em><b>Message</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Message</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Message</em>' attribute.
- * @see #setMessage(String)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getMetaConstraint_Message()
- * @model required="true"
- * @generated
- */
- String getMessage();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.MetaConstraint#getMessage <em>Message</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Message</em>' attribute.
- * @see #getMessage()
- * @generated
- */
- void setMessage(String value);
-} // MetaConstraint
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Mode.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Mode.java
deleted file mode 100644
index c9473082a9e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Mode.java
+++ /dev/null
@@ -1,238 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-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>Mode</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getMode()
- * @model
- * @generated
- */
-public enum Mode implements Enumerator {
- /**
- * The '<em><b>Batch</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #BATCH_VALUE
- * @generated
- * @ordered
- */
- BATCH(0, "batch", "batch"),
-
- /**
- * The '<em><b>Live</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #LIVE_VALUE
- * @generated
- * @ordered
- */
- LIVE(1, "live", "live");
-
- /**
- * The '<em><b>Batch</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Batch</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #BATCH
- * @model name="batch"
- * @generated
- * @ordered
- */
- public static final int BATCH_VALUE = 0;
-
- /**
- * The '<em><b>Live</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Live</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #LIVE
- * @model name="live"
- * @generated
- * @ordered
- */
- public static final int LIVE_VALUE = 1;
-
- /**
- * An array of all the '<em><b>Mode</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final Mode[] VALUES_ARRAY =
- new Mode[] {
- BATCH,
- LIVE,
- };
-
- /**
- * A public read-only list of all the '<em><b>Mode</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<Mode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Mode</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static Mode get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Mode result = VALUES_ARRAY[i];
- if (result.toString().equals(literal)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Mode</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static Mode getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Mode result = VALUES_ARRAY[i];
- if (result.getName().equals(name)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Mode</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static Mode get(int value) {
- switch (value) {
- case BATCH_VALUE:
- return BATCH;
- case LIVE_VALUE:
- return LIVE;
- }
- 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 Mode(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;
- }
-
-} // Mode
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Severity.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Severity.java
deleted file mode 100644
index b937e543a39..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/Severity.java
+++ /dev/null
@@ -1,267 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-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>Severity</b></em>',
- * and utility methods for working with them.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getSeverity()
- * @model
- * @generated
- */
-public enum Severity implements Enumerator {
- /**
- * The '<em><b>Error</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #ERROR_VALUE
- * @generated
- * @ordered
- */
- ERROR(0, "error", "error"),
-
- /**
- * The '<em><b>Warning</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #WARNING_VALUE
- * @generated
- * @ordered
- */
- WARNING(1, "warning", "warning"),
-
- /**
- * The '<em><b>Info</b></em>' literal object.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #INFO_VALUE
- * @generated
- * @ordered
- */
- INFO(2, "info", "info");
-
- /**
- * The '<em><b>Error</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Error</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #ERROR
- * @model name="error"
- * @generated
- * @ordered
- */
- public static final int ERROR_VALUE = 0;
-
- /**
- * The '<em><b>Warning</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Warning</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #WARNING
- * @model name="warning"
- * @generated
- * @ordered
- */
- public static final int WARNING_VALUE = 1;
-
- /**
- * The '<em><b>Info</b></em>' literal value.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of '<em><b>Info</b></em>' literal object isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @see #INFO
- * @model name="info"
- * @generated
- * @ordered
- */
- public static final int INFO_VALUE = 2;
-
- /**
- * An array of all the '<em><b>Severity</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private static final Severity[] VALUES_ARRAY =
- new Severity[] {
- ERROR,
- WARNING,
- INFO,
- };
-
- /**
- * A public read-only list of all the '<em><b>Severity</b></em>' enumerators.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static final List<Severity> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
-
- /**
- * Returns the '<em><b>Severity</b></em>' literal with the specified literal value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static Severity get(String literal) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Severity result = VALUES_ARRAY[i];
- if (result.toString().equals(literal)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Severity</b></em>' literal with the specified name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static Severity getByName(String name) {
- for (int i = 0; i < VALUES_ARRAY.length; ++i) {
- Severity result = VALUES_ARRAY[i];
- if (result.getName().equals(name)) {
- return result;
- }
- }
- return null;
- }
-
- /**
- * Returns the '<em><b>Severity</b></em>' literal with the specified integer value.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static Severity get(int value) {
- switch (value) {
- case ERROR_VALUE:
- return ERROR;
- case WARNING_VALUE:
- return WARNING;
- case INFO_VALUE:
- return INFO;
- }
- 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 Severity(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;
- }
-
-} // Severity
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/URL.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/URL.java
deleted file mode 100644
index 61614129909..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/URL.java
+++ /dev/null
@@ -1,149 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.uml2.uml.Comment;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>URL</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.URL#getBase_Comment <em>Base Comment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.URL#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.URL#getDisplayName <em>Display Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.URL#getIcon <em>Icon</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getURL()
- * @model
- * @generated
- */
-public interface URL extends EObject {
- /**
- * Returns the value of the '<em><b>Base Comment</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Base Comment</em>' reference isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Base Comment</em>' reference.
- * @see #setBase_Comment(Comment)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getURL_Base_Comment()
- * @model required="true"
- * @generated
- */
- Comment getBase_Comment();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.URL#getBase_Comment <em>Base Comment</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Base Comment</em>' reference.
- * @see #getBase_Comment()
- * @generated
- */
- void setBase_Comment(Comment value);
-
- /**
- * Returns the value of the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Type</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</em>' attribute.
- * @see #setType(String)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getURL_Type()
- * @model required="true"
- * @generated
- */
- String getType();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.URL#getType <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Type</em>' attribute.
- * @see #getType()
- * @generated
- */
- void setType(String value);
-
- /**
- * Returns the value of the '<em><b>Display Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Display 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>Display Name</em>' attribute.
- * @see #setDisplayName(String)
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getURL_DisplayName()
- * @model required="true"
- * @generated
- */
- String getDisplayName();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.URL#getDisplayName <em>Display Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Display Name</em>' attribute.
- * @see #getDisplayName()
- * @generated
- */
- void setDisplayName(String value);
-
- /**
- * Returns the value of the '<em><b>Icon</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Icon</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Icon</em>' attribute.
- * @see #setIcon(byte[])
- * @see org.eclipse.papyrus.migration.rsa.default_.DefaultPackage#getURL_Icon()
- * @model required="true"
- * @generated
- */
- byte[] getIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.default_.URL#getIcon <em>Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Icon</em>' attribute.
- * @see #getIcon()
- * @generated
- */
- void setIcon(byte[] value);
-
-} // URL
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/AbstractConstraintImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/AbstractConstraintImpl.java
deleted file mode 100644
index 99be2bffaf6..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/AbstractConstraintImpl.java
+++ /dev/null
@@ -1,320 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.AbstractConstraint;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.Mode;
-import org.eclipse.papyrus.migration.rsa.default_.Severity;
-import org.eclipse.uml2.uml.Constraint;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Abstract Constraint</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.AbstractConstraintImpl#getBase_Constraint <em>Base Constraint</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.AbstractConstraintImpl#getEvaluationMode <em>Evaluation Mode</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.AbstractConstraintImpl#getSeverity <em>Severity</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public abstract class AbstractConstraintImpl extends MinimalEObjectImpl.Container implements AbstractConstraint {
- /**
- * The cached value of the '{@link #getBase_Constraint() <em>Base Constraint</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Constraint()
- * @generated
- * @ordered
- */
- protected Constraint base_Constraint;
-
- /**
- * The default value of the '{@link #getEvaluationMode() <em>Evaluation Mode</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getEvaluationMode()
- * @generated
- * @ordered
- */
- protected static final Mode EVALUATION_MODE_EDEFAULT = Mode.BATCH;
-
- /**
- * The cached value of the '{@link #getEvaluationMode() <em>Evaluation Mode</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getEvaluationMode()
- * @generated
- * @ordered
- */
- protected Mode evaluationMode = EVALUATION_MODE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getSeverity() <em>Severity</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getSeverity()
- * @generated
- * @ordered
- */
- protected static final Severity SEVERITY_EDEFAULT = Severity.ERROR;
-
- /**
- * The cached value of the '{@link #getSeverity() <em>Severity</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getSeverity()
- * @generated
- * @ordered
- */
- protected Severity severity = SEVERITY_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected AbstractConstraintImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DefaultPackage.Literals.ABSTRACT_CONSTRAINT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Constraint getBase_Constraint() {
- if (base_Constraint != null && base_Constraint.eIsProxy()) {
- InternalEObject oldBase_Constraint = (InternalEObject) base_Constraint;
- base_Constraint = (Constraint) eResolveProxy(oldBase_Constraint);
- if (base_Constraint != oldBase_Constraint) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, DefaultPackage.ABSTRACT_CONSTRAINT__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint));
- }
- }
- }
- return base_Constraint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Constraint basicGetBase_Constraint() {
- return base_Constraint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Constraint(Constraint newBase_Constraint) {
- Constraint oldBase_Constraint = base_Constraint;
- base_Constraint = newBase_Constraint;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.ABSTRACT_CONSTRAINT__BASE_CONSTRAINT, oldBase_Constraint, base_Constraint));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Mode getEvaluationMode() {
- return evaluationMode;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setEvaluationMode(Mode newEvaluationMode) {
- Mode oldEvaluationMode = evaluationMode;
- evaluationMode = newEvaluationMode == null ? EVALUATION_MODE_EDEFAULT : newEvaluationMode;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.ABSTRACT_CONSTRAINT__EVALUATION_MODE, oldEvaluationMode, evaluationMode));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Severity getSeverity() {
- return severity;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setSeverity(Severity newSeverity) {
- Severity oldSeverity = severity;
- severity = newSeverity == null ? SEVERITY_EDEFAULT : newSeverity;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.ABSTRACT_CONSTRAINT__SEVERITY, oldSeverity, severity));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DefaultPackage.ABSTRACT_CONSTRAINT__BASE_CONSTRAINT:
- if (resolve) {
- return getBase_Constraint();
- }
- return basicGetBase_Constraint();
- case DefaultPackage.ABSTRACT_CONSTRAINT__EVALUATION_MODE:
- return getEvaluationMode();
- case DefaultPackage.ABSTRACT_CONSTRAINT__SEVERITY:
- return getSeverity();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case DefaultPackage.ABSTRACT_CONSTRAINT__BASE_CONSTRAINT:
- setBase_Constraint((Constraint) newValue);
- return;
- case DefaultPackage.ABSTRACT_CONSTRAINT__EVALUATION_MODE:
- setEvaluationMode((Mode) newValue);
- return;
- case DefaultPackage.ABSTRACT_CONSTRAINT__SEVERITY:
- setSeverity((Severity) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case DefaultPackage.ABSTRACT_CONSTRAINT__BASE_CONSTRAINT:
- setBase_Constraint((Constraint) null);
- return;
- case DefaultPackage.ABSTRACT_CONSTRAINT__EVALUATION_MODE:
- setEvaluationMode(EVALUATION_MODE_EDEFAULT);
- return;
- case DefaultPackage.ABSTRACT_CONSTRAINT__SEVERITY:
- setSeverity(SEVERITY_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DefaultPackage.ABSTRACT_CONSTRAINT__BASE_CONSTRAINT:
- return base_Constraint != null;
- case DefaultPackage.ABSTRACT_CONSTRAINT__EVALUATION_MODE:
- return evaluationMode != EVALUATION_MODE_EDEFAULT;
- case DefaultPackage.ABSTRACT_CONSTRAINT__SEVERITY:
- return severity != SEVERITY_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(" (evaluationMode: ");
- result.append(evaluationMode);
- result.append(", severity: ");
- result.append(severity);
- result.append(')');
- return result.toString();
- }
-
-} // AbstractConstraintImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultFactoryImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultFactoryImpl.java
deleted file mode 100644
index 3cf9e7db382..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultFactoryImpl.java
+++ /dev/null
@@ -1,289 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.DefaultFactory;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.Documentation;
-import org.eclipse.papyrus.migration.rsa.default_.Link;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingImport;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingModel;
-import org.eclipse.papyrus.migration.rsa.default_.MetaConstraint;
-import org.eclipse.papyrus.migration.rsa.default_.Mode;
-import org.eclipse.papyrus.migration.rsa.default_.Severity;
-import org.eclipse.papyrus.migration.rsa.default_.URL;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class DefaultFactoryImpl extends EFactoryImpl implements DefaultFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static DefaultFactory init() {
- try {
- DefaultFactory theDefaultFactory = (DefaultFactory) EPackage.Registry.INSTANCE.getEFactory(DefaultPackage.eNS_URI);
- if (theDefaultFactory != null) {
- return theDefaultFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new DefaultFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public DefaultFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case DefaultPackage.DOCUMENTATION:
- return createDocumentation();
- case DefaultPackage.URL:
- return createURL();
- case DefaultPackage.LINK:
- return createLink();
- case DefaultPackage.META_CONSTRAINT:
- return createMetaConstraint();
- case DefaultPackage.MARKING_MODEL:
- return createMarkingModel();
- case DefaultPackage.MARKING_IMPORT:
- return createMarkingImport();
- case DefaultPackage.DEFAULT_LANGUAGE:
- return createDefaultLanguage();
- 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 DefaultPackage.MODE:
- return createModeFromString(eDataType, initialValue);
- case DefaultPackage.SEVERITY:
- return createSeverityFromString(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 DefaultPackage.MODE:
- return convertModeToString(eDataType, instanceValue);
- case DefaultPackage.SEVERITY:
- return convertSeverityToString(eDataType, instanceValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Documentation createDocumentation() {
- DocumentationImpl documentation = new DocumentationImpl();
- return documentation;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public URL createURL() {
- URLImpl url = new URLImpl();
- return url;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Link createLink() {
- LinkImpl link = new LinkImpl();
- return link;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public MetaConstraint createMetaConstraint() {
- MetaConstraintImpl metaConstraint = new MetaConstraintImpl();
- return metaConstraint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public MarkingModel createMarkingModel() {
- MarkingModelImpl markingModel = new MarkingModelImpl();
- return markingModel;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public MarkingImport createMarkingImport() {
- MarkingImportImpl markingImport = new MarkingImportImpl();
- return markingImport;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public DefaultLanguage createDefaultLanguage() {
- DefaultLanguageImpl defaultLanguage = new DefaultLanguageImpl();
- return defaultLanguage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Mode createModeFromString(EDataType eDataType, String initialValue) {
- Mode result = Mode.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 convertModeToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Severity createSeverityFromString(EDataType eDataType, String initialValue) {
- Severity result = Severity.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 convertSeverityToString(EDataType eDataType, Object instanceValue) {
- return instanceValue == null ? null : instanceValue.toString();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public DefaultPackage getDefaultPackage() {
- return (DefaultPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static DefaultPackage getPackage() {
- return DefaultPackage.eINSTANCE;
- }
-
-} // DefaultFactoryImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultLanguageImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultLanguageImpl.java
deleted file mode 100644
index c6ba691ac56..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultLanguageImpl.java
+++ /dev/null
@@ -1,256 +0,0 @@
-/**
- * * Copyright (c) 2013, 2014 CEA LIST.
- * *
- * * All rights reserved. This program and the accompanying materials
- * * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.DefaultLanguage;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Language</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.DefaultLanguageImpl#getBase_Package <em>Base Package</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.DefaultLanguageImpl#getDefaultLanguage <em>Default Language</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DefaultLanguageImpl extends MinimalEObjectImpl.Container implements DefaultLanguage {
- /**
- * The cached value of the '{@link #getBase_Package() <em>Base Package</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Package()
- * @generated
- * @ordered
- */
- protected org.eclipse.uml2.uml.Package base_Package;
-
- /**
- * The default value of the '{@link #getDefaultLanguage() <em>Default Language</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDefaultLanguage()
- * @generated
- * @ordered
- */
- protected static final String DEFAULT_LANGUAGE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDefaultLanguage() <em>Default Language</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDefaultLanguage()
- * @generated
- * @ordered
- */
- protected String defaultLanguage = DEFAULT_LANGUAGE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected DefaultLanguageImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DefaultPackage.Literals.DEFAULT_LANGUAGE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public org.eclipse.uml2.uml.Package getBase_Package() {
- if (base_Package != null && base_Package.eIsProxy()) {
- InternalEObject oldBase_Package = (InternalEObject) base_Package;
- base_Package = (org.eclipse.uml2.uml.Package) eResolveProxy(oldBase_Package);
- if (base_Package != oldBase_Package) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, DefaultPackage.DEFAULT_LANGUAGE__BASE_PACKAGE, oldBase_Package, base_Package));
- }
- }
- }
- return base_Package;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Package basicGetBase_Package() {
- return base_Package;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) {
- org.eclipse.uml2.uml.Package oldBase_Package = base_Package;
- base_Package = newBase_Package;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.DEFAULT_LANGUAGE__BASE_PACKAGE, oldBase_Package, base_Package));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getDefaultLanguage() {
- return defaultLanguage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setDefaultLanguage(String newDefaultLanguage) {
- String oldDefaultLanguage = defaultLanguage;
- defaultLanguage = newDefaultLanguage;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.DEFAULT_LANGUAGE__DEFAULT_LANGUAGE, oldDefaultLanguage, defaultLanguage));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DefaultPackage.DEFAULT_LANGUAGE__BASE_PACKAGE:
- if (resolve) {
- return getBase_Package();
- }
- return basicGetBase_Package();
- case DefaultPackage.DEFAULT_LANGUAGE__DEFAULT_LANGUAGE:
- return getDefaultLanguage();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case DefaultPackage.DEFAULT_LANGUAGE__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package) newValue);
- return;
- case DefaultPackage.DEFAULT_LANGUAGE__DEFAULT_LANGUAGE:
- setDefaultLanguage((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case DefaultPackage.DEFAULT_LANGUAGE__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package) null);
- return;
- case DefaultPackage.DEFAULT_LANGUAGE__DEFAULT_LANGUAGE:
- setDefaultLanguage(DEFAULT_LANGUAGE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DefaultPackage.DEFAULT_LANGUAGE__BASE_PACKAGE:
- return base_Package != null;
- case DefaultPackage.DEFAULT_LANGUAGE__DEFAULT_LANGUAGE:
- return DEFAULT_LANGUAGE_EDEFAULT == null ? defaultLanguage != null : !DEFAULT_LANGUAGE_EDEFAULT.equals(defaultLanguage);
- }
- 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(" (defaultLanguage: ");
- result.append(defaultLanguage);
- result.append(')');
- return result.toString();
- }
-
-} // DefaultLanguageImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultPackageImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultPackageImpl.java
deleted file mode 100644
index b2bc8c78013..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DefaultPackageImpl.java
+++ /dev/null
@@ -1,594 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.AbstractConstraint;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultFactory;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.Documentation;
-import org.eclipse.papyrus.migration.rsa.default_.Link;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingImport;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingModel;
-import org.eclipse.papyrus.migration.rsa.default_.MetaConstraint;
-import org.eclipse.papyrus.migration.rsa.default_.Mode;
-import org.eclipse.papyrus.migration.rsa.default_.Severity;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class DefaultPackageImpl extends EPackageImpl implements DefaultPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass documentationEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass urlEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass linkEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass abstractConstraintEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass metaConstraintEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass markingModelEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass markingImportEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass defaultLanguageEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum modeEEnum = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EEnum severityEEnum = 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.migration.rsa.default_.DefaultPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private DefaultPackageImpl() {
- super(eNS_URI, DefaultFactory.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 DefaultPackage#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 DefaultPackage init() {
- if (isInited) {
- return (DefaultPackage) EPackage.Registry.INSTANCE.getEPackage(DefaultPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- DefaultPackageImpl theDefaultPackage = (DefaultPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DefaultPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new DefaultPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- UMLPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theDefaultPackage.createPackageContents();
-
- // Initialize created meta-data
- theDefaultPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theDefaultPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(DefaultPackage.eNS_URI, theDefaultPackage);
- return theDefaultPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getDocumentation() {
- return documentationEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getDocumentation_Base_Comment() {
- return (EReference) documentationEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getURL() {
- return urlEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getURL_Base_Comment() {
- return (EReference) urlEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getURL_Type() {
- return (EAttribute) urlEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getURL_DisplayName() {
- return (EAttribute) urlEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getURL_Icon() {
- return (EAttribute) urlEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getLink() {
- return linkEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getAbstractConstraint() {
- return abstractConstraintEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getAbstractConstraint_Base_Constraint() {
- return (EReference) abstractConstraintEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getAbstractConstraint_EvaluationMode() {
- return (EAttribute) abstractConstraintEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getAbstractConstraint_Severity() {
- return (EAttribute) abstractConstraintEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getMetaConstraint() {
- return metaConstraintEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getMetaConstraint_Message() {
- return (EAttribute) metaConstraintEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getMarkingModel() {
- return markingModelEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getMarkingModel_Base_Package() {
- return (EReference) markingModelEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getMarkingImport() {
- return markingImportEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getMarkingImport_Base_ElementImport() {
- return (EReference) markingImportEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getDefaultLanguage() {
- return defaultLanguageEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EReference getDefaultLanguage_Base_Package() {
- return (EReference) defaultLanguageEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getDefaultLanguage_DefaultLanguage() {
- return (EAttribute) defaultLanguageEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EEnum getMode() {
- return modeEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EEnum getSeverity() {
- return severityEEnum;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public DefaultFactory getDefaultFactory() {
- return (DefaultFactory) 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
- documentationEClass = createEClass(DOCUMENTATION);
- createEReference(documentationEClass, DOCUMENTATION__BASE_COMMENT);
-
- urlEClass = createEClass(URL);
- createEReference(urlEClass, URL__BASE_COMMENT);
- createEAttribute(urlEClass, URL__TYPE);
- createEAttribute(urlEClass, URL__DISPLAY_NAME);
- createEAttribute(urlEClass, URL__ICON);
-
- linkEClass = createEClass(LINK);
-
- abstractConstraintEClass = createEClass(ABSTRACT_CONSTRAINT);
- createEReference(abstractConstraintEClass, ABSTRACT_CONSTRAINT__BASE_CONSTRAINT);
- createEAttribute(abstractConstraintEClass, ABSTRACT_CONSTRAINT__EVALUATION_MODE);
- createEAttribute(abstractConstraintEClass, ABSTRACT_CONSTRAINT__SEVERITY);
-
- metaConstraintEClass = createEClass(META_CONSTRAINT);
- createEAttribute(metaConstraintEClass, META_CONSTRAINT__MESSAGE);
-
- markingModelEClass = createEClass(MARKING_MODEL);
- createEReference(markingModelEClass, MARKING_MODEL__BASE_PACKAGE);
-
- markingImportEClass = createEClass(MARKING_IMPORT);
- createEReference(markingImportEClass, MARKING_IMPORT__BASE_ELEMENT_IMPORT);
-
- defaultLanguageEClass = createEClass(DEFAULT_LANGUAGE);
- createEReference(defaultLanguageEClass, DEFAULT_LANGUAGE__BASE_PACKAGE);
- createEAttribute(defaultLanguageEClass, DEFAULT_LANGUAGE__DEFAULT_LANGUAGE);
-
- // Create enums
- modeEEnum = createEEnum(MODE);
- severityEEnum = createEEnum(SEVERITY);
- }
-
- /**
- * <!-- 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
- UMLPackage theUMLPackage = (UMLPackage) EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
- EcorePackage theEcorePackage = (EcorePackage) EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- linkEClass.getESuperTypes().add(this.getURL());
- metaConstraintEClass.getESuperTypes().add(this.getAbstractConstraint());
-
- // Initialize classes, features, and operations; add parameters
- initEClass(documentationEClass, Documentation.class, "Documentation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDocumentation_Base_Comment(), theUMLPackage.getComment(), null, "base_Comment", null, 1, 1, Documentation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(urlEClass, org.eclipse.papyrus.migration.rsa.default_.URL.class, "URL", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getURL_Base_Comment(), theUMLPackage.getComment(), null, "base_Comment", null, 1, 1, org.eclipse.papyrus.migration.rsa.default_.URL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getURL_Type(), theEcorePackage.getEString(), "type", null, 1, 1, org.eclipse.papyrus.migration.rsa.default_.URL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getURL_DisplayName(), theEcorePackage.getEString(), "displayName", null, 1, 1, org.eclipse.papyrus.migration.rsa.default_.URL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getURL_Icon(), theEcorePackage.getEByteArray(), "icon", null, 1, 1, org.eclipse.papyrus.migration.rsa.default_.URL.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(linkEClass, Link.class, "Link", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(abstractConstraintEClass, AbstractConstraint.class, "AbstractConstraint", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getAbstractConstraint_Base_Constraint(), theUMLPackage.getConstraint(), null, "base_Constraint", null, 1, 1, AbstractConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAbstractConstraint_EvaluationMode(), this.getMode(), "evaluationMode", "batch", 1, 1, AbstractConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getAbstractConstraint_Severity(), this.getSeverity(), "severity", "error", 1, 1, AbstractConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(metaConstraintEClass, MetaConstraint.class, "MetaConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getMetaConstraint_Message(), theEcorePackage.getEString(), "message", null, 1, 1, MetaConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(markingModelEClass, MarkingModel.class, "MarkingModel", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMarkingModel_Base_Package(), theUMLPackage.getPackage(), null, "base_Package", null, 1, 1, MarkingModel.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(markingImportEClass, MarkingImport.class, "MarkingImport", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getMarkingImport_Base_ElementImport(), theUMLPackage.getElementImport(), null, "base_ElementImport", null, 1, 1, MarkingImport.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE,
- IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(defaultLanguageEClass, DefaultLanguage.class, "DefaultLanguage", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDefaultLanguage_Base_Package(), theUMLPackage.getPackage(), null, "base_Package", null, 0, 1, DefaultLanguage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE,
- !IS_DERIVED, IS_ORDERED);
- initEAttribute(getDefaultLanguage_DefaultLanguage(), theEcorePackage.getEString(), "defaultLanguage", null, 0, 1, DefaultLanguage.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Initialize enums and add enum literals
- initEEnum(modeEEnum, Mode.class, "Mode");
- addEEnumLiteral(modeEEnum, Mode.BATCH);
- addEEnumLiteral(modeEEnum, Mode.LIVE);
-
- initEEnum(severityEEnum, Severity.class, "Severity");
- addEEnumLiteral(severityEEnum, Severity.ERROR);
- addEEnumLiteral(severityEEnum, Severity.WARNING);
- addEEnumLiteral(severityEEnum, Severity.INFO);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // DefaultPackageImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DocumentationImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DocumentationImpl.java
deleted file mode 100644
index ee5e9c1853e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/DocumentationImpl.java
+++ /dev/null
@@ -1,179 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.Documentation;
-import org.eclipse.uml2.uml.Comment;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Documentation</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.DocumentationImpl#getBase_Comment <em>Base Comment</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class DocumentationImpl extends MinimalEObjectImpl.Container implements Documentation {
- /**
- * The cached value of the '{@link #getBase_Comment() <em>Base Comment</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Comment()
- * @generated
- * @ordered
- */
- protected Comment base_Comment;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected DocumentationImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DefaultPackage.Literals.DOCUMENTATION;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Comment getBase_Comment() {
- if (base_Comment != null && base_Comment.eIsProxy()) {
- InternalEObject oldBase_Comment = (InternalEObject) base_Comment;
- base_Comment = (Comment) eResolveProxy(oldBase_Comment);
- if (base_Comment != oldBase_Comment) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, DefaultPackage.DOCUMENTATION__BASE_COMMENT, oldBase_Comment, base_Comment));
- }
- }
- }
- return base_Comment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Comment basicGetBase_Comment() {
- return base_Comment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Comment(Comment newBase_Comment) {
- Comment oldBase_Comment = base_Comment;
- base_Comment = newBase_Comment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.DOCUMENTATION__BASE_COMMENT, oldBase_Comment, base_Comment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DefaultPackage.DOCUMENTATION__BASE_COMMENT:
- if (resolve) {
- return getBase_Comment();
- }
- return basicGetBase_Comment();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case DefaultPackage.DOCUMENTATION__BASE_COMMENT:
- setBase_Comment((Comment) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case DefaultPackage.DOCUMENTATION__BASE_COMMENT:
- setBase_Comment((Comment) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DefaultPackage.DOCUMENTATION__BASE_COMMENT:
- return base_Comment != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // DocumentationImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/LinkImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/LinkImpl.java
deleted file mode 100644
index 9da5da1571e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/LinkImpl.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.Link;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Link</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * </p>
- *
- * @generated
- */
-public class LinkImpl extends URLImpl implements Link {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected LinkImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DefaultPackage.Literals.LINK;
- }
-
-} // LinkImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MarkingImportImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MarkingImportImpl.java
deleted file mode 100644
index 22c7663f839..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MarkingImportImpl.java
+++ /dev/null
@@ -1,179 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingImport;
-import org.eclipse.uml2.uml.ElementImport;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Marking Import</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.MarkingImportImpl#getBase_ElementImport <em>Base Element Import</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MarkingImportImpl extends MinimalEObjectImpl.Container implements MarkingImport {
- /**
- * The cached value of the '{@link #getBase_ElementImport() <em>Base Element Import</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_ElementImport()
- * @generated
- * @ordered
- */
- protected ElementImport base_ElementImport;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MarkingImportImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DefaultPackage.Literals.MARKING_IMPORT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ElementImport getBase_ElementImport() {
- if (base_ElementImport != null && base_ElementImport.eIsProxy()) {
- InternalEObject oldBase_ElementImport = (InternalEObject) base_ElementImport;
- base_ElementImport = (ElementImport) eResolveProxy(oldBase_ElementImport);
- if (base_ElementImport != oldBase_ElementImport) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, DefaultPackage.MARKING_IMPORT__BASE_ELEMENT_IMPORT, oldBase_ElementImport, base_ElementImport));
- }
- }
- }
- return base_ElementImport;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ElementImport basicGetBase_ElementImport() {
- return base_ElementImport;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_ElementImport(ElementImport newBase_ElementImport) {
- ElementImport oldBase_ElementImport = base_ElementImport;
- base_ElementImport = newBase_ElementImport;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.MARKING_IMPORT__BASE_ELEMENT_IMPORT, oldBase_ElementImport, base_ElementImport));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DefaultPackage.MARKING_IMPORT__BASE_ELEMENT_IMPORT:
- if (resolve) {
- return getBase_ElementImport();
- }
- return basicGetBase_ElementImport();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case DefaultPackage.MARKING_IMPORT__BASE_ELEMENT_IMPORT:
- setBase_ElementImport((ElementImport) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case DefaultPackage.MARKING_IMPORT__BASE_ELEMENT_IMPORT:
- setBase_ElementImport((ElementImport) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DefaultPackage.MARKING_IMPORT__BASE_ELEMENT_IMPORT:
- return base_ElementImport != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // MarkingImportImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MarkingModelImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MarkingModelImpl.java
deleted file mode 100644
index b3008133347..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MarkingModelImpl.java
+++ /dev/null
@@ -1,178 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingModel;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Marking Model</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.MarkingModelImpl#getBase_Package <em>Base Package</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MarkingModelImpl extends MinimalEObjectImpl.Container implements MarkingModel {
- /**
- * The cached value of the '{@link #getBase_Package() <em>Base Package</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Package()
- * @generated
- * @ordered
- */
- protected org.eclipse.uml2.uml.Package base_Package;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MarkingModelImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DefaultPackage.Literals.MARKING_MODEL;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public org.eclipse.uml2.uml.Package getBase_Package() {
- if (base_Package != null && base_Package.eIsProxy()) {
- InternalEObject oldBase_Package = (InternalEObject) base_Package;
- base_Package = (org.eclipse.uml2.uml.Package) eResolveProxy(oldBase_Package);
- if (base_Package != oldBase_Package) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, DefaultPackage.MARKING_MODEL__BASE_PACKAGE, oldBase_Package, base_Package));
- }
- }
- }
- return base_Package;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public org.eclipse.uml2.uml.Package basicGetBase_Package() {
- return base_Package;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Package(org.eclipse.uml2.uml.Package newBase_Package) {
- org.eclipse.uml2.uml.Package oldBase_Package = base_Package;
- base_Package = newBase_Package;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.MARKING_MODEL__BASE_PACKAGE, oldBase_Package, base_Package));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DefaultPackage.MARKING_MODEL__BASE_PACKAGE:
- if (resolve) {
- return getBase_Package();
- }
- return basicGetBase_Package();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case DefaultPackage.MARKING_MODEL__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case DefaultPackage.MARKING_MODEL__BASE_PACKAGE:
- setBase_Package((org.eclipse.uml2.uml.Package) null);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DefaultPackage.MARKING_MODEL__BASE_PACKAGE:
- return base_Package != null;
- }
- return super.eIsSet(featureID);
- }
-
-} // MarkingModelImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MetaConstraintImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MetaConstraintImpl.java
deleted file mode 100644
index 7aac6fd0c23..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/MetaConstraintImpl.java
+++ /dev/null
@@ -1,183 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.MetaConstraint;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Meta Constraint</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.MetaConstraintImpl#getMessage <em>Message</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class MetaConstraintImpl extends AbstractConstraintImpl implements MetaConstraint {
- /**
- * The default value of the '{@link #getMessage() <em>Message</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMessage()
- * @generated
- * @ordered
- */
- protected static final String MESSAGE_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getMessage() <em>Message</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMessage()
- * @generated
- * @ordered
- */
- protected String message = MESSAGE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected MetaConstraintImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DefaultPackage.Literals.META_CONSTRAINT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getMessage() {
- return message;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setMessage(String newMessage) {
- String oldMessage = message;
- message = newMessage;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.META_CONSTRAINT__MESSAGE, oldMessage, message));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DefaultPackage.META_CONSTRAINT__MESSAGE:
- return getMessage();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case DefaultPackage.META_CONSTRAINT__MESSAGE:
- setMessage((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case DefaultPackage.META_CONSTRAINT__MESSAGE:
- setMessage(MESSAGE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DefaultPackage.META_CONSTRAINT__MESSAGE:
- return MESSAGE_EDEFAULT == null ? message != null : !MESSAGE_EDEFAULT.equals(message);
- }
- 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(" (message: ");
- result.append(message);
- result.append(')');
- return result.toString();
- }
-
-} // MetaConstraintImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/URLImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/URLImpl.java
deleted file mode 100644
index 4b12554f6bc..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/impl/URLImpl.java
+++ /dev/null
@@ -1,379 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.URL;
-import org.eclipse.uml2.uml.Comment;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>URL</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.URLImpl#getBase_Comment <em>Base Comment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.URLImpl#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.URLImpl#getDisplayName <em>Display Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.default_.impl.URLImpl#getIcon <em>Icon</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class URLImpl extends MinimalEObjectImpl.Container implements URL {
- /**
- * The cached value of the '{@link #getBase_Comment() <em>Base Comment</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getBase_Comment()
- * @generated
- * @ordered
- */
- protected Comment base_Comment;
-
- /**
- * The default value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected static final String TYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getType() <em>Type</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getType()
- * @generated
- * @ordered
- */
- protected String type = TYPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDisplayName()
- * @generated
- * @ordered
- */
- protected static final String DISPLAY_NAME_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getDisplayName() <em>Display Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getDisplayName()
- * @generated
- * @ordered
- */
- protected String displayName = DISPLAY_NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getIcon() <em>Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getIcon()
- * @generated
- * @ordered
- */
- protected static final byte[] ICON_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getIcon() <em>Icon</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getIcon()
- * @generated
- * @ordered
- */
- protected byte[] icon = ICON_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected URLImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DefaultPackage.Literals.URL;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Comment getBase_Comment() {
- if (base_Comment != null && base_Comment.eIsProxy()) {
- InternalEObject oldBase_Comment = (InternalEObject) base_Comment;
- base_Comment = (Comment) eResolveProxy(oldBase_Comment);
- if (base_Comment != oldBase_Comment) {
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.RESOLVE, DefaultPackage.URL__BASE_COMMENT, oldBase_Comment, base_Comment));
- }
- }
- }
- return base_Comment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public Comment basicGetBase_Comment() {
- return base_Comment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBase_Comment(Comment newBase_Comment) {
- Comment oldBase_Comment = base_Comment;
- base_Comment = newBase_Comment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.URL__BASE_COMMENT, oldBase_Comment, base_Comment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getType() {
- return type;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setType(String newType) {
- String oldType = type;
- type = newType;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.URL__TYPE, oldType, type));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getDisplayName() {
- return displayName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setDisplayName(String newDisplayName) {
- String oldDisplayName = displayName;
- displayName = newDisplayName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.URL__DISPLAY_NAME, oldDisplayName, displayName));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public byte[] getIcon() {
- return icon;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setIcon(byte[] newIcon) {
- byte[] oldIcon = icon;
- icon = newIcon;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, DefaultPackage.URL__ICON, oldIcon, icon));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DefaultPackage.URL__BASE_COMMENT:
- if (resolve) {
- return getBase_Comment();
- }
- return basicGetBase_Comment();
- case DefaultPackage.URL__TYPE:
- return getType();
- case DefaultPackage.URL__DISPLAY_NAME:
- return getDisplayName();
- case DefaultPackage.URL__ICON:
- return getIcon();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case DefaultPackage.URL__BASE_COMMENT:
- setBase_Comment((Comment) newValue);
- return;
- case DefaultPackage.URL__TYPE:
- setType((String) newValue);
- return;
- case DefaultPackage.URL__DISPLAY_NAME:
- setDisplayName((String) newValue);
- return;
- case DefaultPackage.URL__ICON:
- setIcon((byte[]) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case DefaultPackage.URL__BASE_COMMENT:
- setBase_Comment((Comment) null);
- return;
- case DefaultPackage.URL__TYPE:
- setType(TYPE_EDEFAULT);
- return;
- case DefaultPackage.URL__DISPLAY_NAME:
- setDisplayName(DISPLAY_NAME_EDEFAULT);
- return;
- case DefaultPackage.URL__ICON:
- setIcon(ICON_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DefaultPackage.URL__BASE_COMMENT:
- return base_Comment != null;
- case DefaultPackage.URL__TYPE:
- return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
- case DefaultPackage.URL__DISPLAY_NAME:
- return DISPLAY_NAME_EDEFAULT == null ? displayName != null : !DISPLAY_NAME_EDEFAULT.equals(displayName);
- case DefaultPackage.URL__ICON:
- return ICON_EDEFAULT == null ? icon != null : !ICON_EDEFAULT.equals(icon);
- }
- 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(" (type: ");
- result.append(type);
- result.append(", displayName: ");
- result.append(displayName);
- result.append(", icon: ");
- result.append(icon);
- result.append(')');
- return result.toString();
- }
-
-} // URLImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultAdapterFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultAdapterFactory.java
deleted file mode 100644
index 36b9218ef9a..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultAdapterFactory.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.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.migration.rsa.default_.AbstractConstraint;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.Documentation;
-import org.eclipse.papyrus.migration.rsa.default_.Link;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingImport;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingModel;
-import org.eclipse.papyrus.migration.rsa.default_.MetaConstraint;
-import org.eclipse.papyrus.migration.rsa.default_.URL;
-
-/**
- * <!-- 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.migration.rsa.default_.DefaultPackage
- * @generated
- */
-public class DefaultAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static DefaultPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public DefaultAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = DefaultPackage.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 DefaultSwitch<Adapter> modelSwitch =
- new DefaultSwitch<Adapter>() {
- @Override
- public Adapter caseDocumentation(Documentation object) {
- return createDocumentationAdapter();
- }
-
- @Override
- public Adapter caseURL(URL object) {
- return createURLAdapter();
- }
-
- @Override
- public Adapter caseLink(Link object) {
- return createLinkAdapter();
- }
-
- @Override
- public Adapter caseAbstractConstraint(AbstractConstraint object) {
- return createAbstractConstraintAdapter();
- }
-
- @Override
- public Adapter caseMetaConstraint(MetaConstraint object) {
- return createMetaConstraintAdapter();
- }
-
- @Override
- public Adapter caseMarkingModel(MarkingModel object) {
- return createMarkingModelAdapter();
- }
-
- @Override
- public Adapter caseMarkingImport(MarkingImport object) {
- return createMarkingImportAdapter();
- }
-
- @Override
- public Adapter caseDefaultLanguage(DefaultLanguage object) {
- return createDefaultLanguageAdapter();
- }
-
- @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.migration.rsa.default_.Documentation <em>Documentation</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.migration.rsa.default_.Documentation
- * @generated
- */
- public Adapter createDocumentationAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.default_.URL <em>URL</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.migration.rsa.default_.URL
- * @generated
- */
- public Adapter createURLAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.default_.Link <em>Link</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.migration.rsa.default_.Link
- * @generated
- */
- public Adapter createLinkAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint <em>Abstract Constraint</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.migration.rsa.default_.AbstractConstraint
- * @generated
- */
- public Adapter createAbstractConstraintAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.default_.MetaConstraint <em>Meta Constraint</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.migration.rsa.default_.MetaConstraint
- * @generated
- */
- public Adapter createMetaConstraintAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.default_.MarkingModel <em>Marking Model</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.migration.rsa.default_.MarkingModel
- * @generated
- */
- public Adapter createMarkingModelAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.default_.MarkingImport <em>Marking Import</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.migration.rsa.default_.MarkingImport
- * @generated
- */
- public Adapter createMarkingImportAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage <em>Language</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.migration.rsa.default_.DefaultLanguage
- * @generated
- */
- public Adapter createDefaultLanguageAdapter() {
- 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;
- }
-
-} // DefaultAdapterFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultResourceFactoryImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultResourceFactoryImpl.java
deleted file mode 100644
index ad75a8165c4..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultResourceFactoryImpl.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.util;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource Factory</b> associated with the package.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.util.DefaultResourceImpl
- * @generated
- */
-public class DefaultResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public DefaultResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- Resource result = new DefaultResourceImpl(uri);
- return result;
- }
-
-} // DefaultResourceFactoryImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultResourceImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultResourceImpl.java
deleted file mode 100644
index 4432755b499..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultResourceImpl.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.util;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource </b> associated with the package.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.default_.util.DefaultResourceFactoryImpl
- * @generated
- */
-public class DefaultResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param uri
- * the URI of the new resource.
- * @generated
- */
- public DefaultResourceImpl(URI uri) {
- super(uri);
- }
-
-} // DefaultResourceImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultSwitch.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultSwitch.java
deleted file mode 100644
index d4f980094fa..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultSwitch.java
+++ /dev/null
@@ -1,317 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultLanguage;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.default_.Documentation;
-import org.eclipse.papyrus.migration.rsa.default_.Link;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingImport;
-import org.eclipse.papyrus.migration.rsa.default_.MarkingModel;
-import org.eclipse.papyrus.migration.rsa.default_.MetaConstraint;
-import org.eclipse.papyrus.migration.rsa.default_.URL;
-
-/**
- * <!-- 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.migration.rsa.default_.DefaultPackage
- * @generated
- */
-public class DefaultSwitch<T> extends Switch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static DefaultPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public DefaultSwitch() {
- if (modelPackage == null) {
- modelPackage = DefaultPackage.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 DefaultPackage.DOCUMENTATION: {
- Documentation documentation = (Documentation) theEObject;
- T result = caseDocumentation(documentation);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case DefaultPackage.URL: {
- URL url = (URL) theEObject;
- T result = caseURL(url);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case DefaultPackage.LINK: {
- Link link = (Link) theEObject;
- T result = caseLink(link);
- if (result == null) {
- result = caseURL(link);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case DefaultPackage.ABSTRACT_CONSTRAINT: {
- AbstractConstraint abstractConstraint = (AbstractConstraint) theEObject;
- T result = caseAbstractConstraint(abstractConstraint);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case DefaultPackage.META_CONSTRAINT: {
- MetaConstraint metaConstraint = (MetaConstraint) theEObject;
- T result = caseMetaConstraint(metaConstraint);
- if (result == null) {
- result = caseAbstractConstraint(metaConstraint);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case DefaultPackage.MARKING_MODEL: {
- MarkingModel markingModel = (MarkingModel) theEObject;
- T result = caseMarkingModel(markingModel);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case DefaultPackage.MARKING_IMPORT: {
- MarkingImport markingImport = (MarkingImport) theEObject;
- T result = caseMarkingImport(markingImport);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case DefaultPackage.DEFAULT_LANGUAGE: {
- DefaultLanguage defaultLanguage = (DefaultLanguage) theEObject;
- T result = caseDefaultLanguage(defaultLanguage);
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Documentation</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>Documentation</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDocumentation(Documentation object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>URL</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>URL</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseURL(URL object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Link</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>Link</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLink(Link object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Abstract Constraint</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>Abstract Constraint</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAbstractConstraint(AbstractConstraint object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Meta Constraint</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>Meta Constraint</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMetaConstraint(MetaConstraint object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Marking Model</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>Marking Model</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMarkingModel(MarkingModel object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Marking Import</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>Marking Import</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseMarkingImport(MarkingImport object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Language</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>Language</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDefaultLanguage(DefaultLanguage 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;
- }
-
-} // DefaultSwitch
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultXMLProcessor.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultXMLProcessor.java
deleted file mode 100644
index 5b9fa787cbb..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/default_/util/DefaultXMLProcessor.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.default_.util;
-
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class DefaultXMLProcessor extends XMLProcessor {
-
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public DefaultXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- DefaultPackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the DefaultResourceFactoryImpl factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected Map<String, Resource.Factory> getRegistrations() {
- if (registrations == null) {
- super.getRegistrations();
- registrations.put(XML_EXTENSION, new DefaultResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new DefaultResourceFactoryImpl());
- }
- return registrations;
- }
-
-} // DefaultXMLProcessor
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolder.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolder.java
deleted file mode 100644
index f71946fdc2a..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolder.java
+++ /dev/null
@@ -1,53 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.diagramholder;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EAnnotation;
-
-import org.eclipse.gmf.runtime.notation.Diagram;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Diagram Holder</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolder#getOwnedDiagrams <em>Owned Diagrams</em>}</li>
- * </ul>
- *
- * @see org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolderPackage#getDiagramHolder()
- * @model
- * @generated
- */
-public interface DiagramHolder extends EAnnotation {
- /**
- * Returns the value of the '<em><b>Owned Diagrams</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.gmf.runtime.notation.Diagram}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Owned Diagrams</em>' reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Owned Diagrams</em>' reference list.
- * @see org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolderPackage#getDiagramHolder_OwnedDiagrams()
- * @model
- * @generated
- */
- EList<Diagram> getOwnedDiagrams();
-
-} // DiagramHolder
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolderFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolderFactory.java
deleted file mode 100644
index 18b6757618f..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolderFactory.java
+++ /dev/null
@@ -1,51 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.diagramholder;
-
-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.migration.rsa.diagramholder.DiagramHolderPackage
- * @generated
- */
-public interface DiagramHolderFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- DiagramHolderFactory eINSTANCE = org.eclipse.papyrus.migration.rsa.diagramholder.impl.DiagramHolderFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Diagram Holder</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Diagram Holder</em>'.
- * @generated
- */
- DiagramHolder createDiagramHolder();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- DiagramHolderPackage getDiagramHolderPackage();
-
-} //DiagramHolderFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolderPackage.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolderPackage.java
deleted file mode 100644
index eb880324015..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/DiagramHolderPackage.java
+++ /dev/null
@@ -1,233 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.diagramholder;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EcorePackage;
-
-/**
- * <!-- 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 operation of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @see org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolderFactory
- * @model kind="package"
- * @generated
- */
-public interface DiagramHolderPackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "diagramholder";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/migration/diagramholder";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "res";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- DiagramHolderPackage eINSTANCE = org.eclipse.papyrus.migration.rsa.diagramholder.impl.DiagramHolderPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.diagramholder.impl.DiagramHolderImpl <em>Diagram Holder</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.papyrus.migration.rsa.diagramholder.impl.DiagramHolderImpl
- * @see org.eclipse.papyrus.migration.rsa.diagramholder.impl.DiagramHolderPackageImpl#getDiagramHolder()
- * @generated
- */
- int DIAGRAM_HOLDER = 0;
-
- /**
- * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER__EANNOTATIONS = EcorePackage.EANNOTATION__EANNOTATIONS;
-
- /**
- * The feature id for the '<em><b>Source</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER__SOURCE = EcorePackage.EANNOTATION__SOURCE;
-
- /**
- * The feature id for the '<em><b>Details</b></em>' map.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER__DETAILS = EcorePackage.EANNOTATION__DETAILS;
-
- /**
- * The feature id for the '<em><b>EModel Element</b></em>' container reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER__EMODEL_ELEMENT = EcorePackage.EANNOTATION__EMODEL_ELEMENT;
-
- /**
- * The feature id for the '<em><b>Contents</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER__CONTENTS = EcorePackage.EANNOTATION__CONTENTS;
-
- /**
- * The feature id for the '<em><b>References</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER__REFERENCES = EcorePackage.EANNOTATION__REFERENCES;
-
- /**
- * The feature id for the '<em><b>Owned Diagrams</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER__OWNED_DIAGRAMS = EcorePackage.EANNOTATION_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Diagram Holder</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER_FEATURE_COUNT = EcorePackage.EANNOTATION_FEATURE_COUNT + 1;
-
- /**
- * The operation id for the '<em>Get EAnnotation</em>' operation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER___GET_EANNOTATION__STRING = EcorePackage.EANNOTATION___GET_EANNOTATION__STRING;
-
- /**
- * The number of operations of the '<em>Diagram Holder</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int DIAGRAM_HOLDER_OPERATION_COUNT = EcorePackage.EANNOTATION_OPERATION_COUNT + 0;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolder <em>Diagram Holder</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Diagram Holder</em>'.
- * @see org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolder
- * @generated
- */
- EClass getDiagramHolder();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolder#getOwnedDiagrams <em>Owned Diagrams</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>Owned Diagrams</em>'.
- * @see org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolder#getOwnedDiagrams()
- * @see #getDiagramHolder()
- * @generated
- */
- EReference getDiagramHolder_OwnedDiagrams();
-
- /**
- * 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
- */
- DiagramHolderFactory getDiagramHolderFactory();
-
- /**
- * <!-- 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 operation 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.migration.rsa.diagramholder.impl.DiagramHolderImpl <em>Diagram Holder</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.papyrus.migration.rsa.diagramholder.impl.DiagramHolderImpl
- * @see org.eclipse.papyrus.migration.rsa.diagramholder.impl.DiagramHolderPackageImpl#getDiagramHolder()
- * @generated
- */
- EClass DIAGRAM_HOLDER = eINSTANCE.getDiagramHolder();
-
- /**
- * The meta object literal for the '<em><b>Owned Diagrams</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference DIAGRAM_HOLDER__OWNED_DIAGRAMS = eINSTANCE.getDiagramHolder_OwnedDiagrams();
-
- }
-
-} //DiagramHolderPackage
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderFactoryImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderFactoryImpl.java
deleted file mode 100644
index 45ba851b13f..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderFactoryImpl.java
+++ /dev/null
@@ -1,104 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.diagramholder.impl;
-
-import org.eclipse.emf.ecore.EClass;
-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.migration.rsa.diagramholder.*;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class DiagramHolderFactoryImpl extends EFactoryImpl implements DiagramHolderFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static DiagramHolderFactory init() {
- try {
- DiagramHolderFactory theDiagramHolderFactory = (DiagramHolderFactory)EPackage.Registry.INSTANCE.getEFactory(DiagramHolderPackage.eNS_URI);
- if (theDiagramHolderFactory != null) {
- return theDiagramHolderFactory;
- }
- }
- catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new DiagramHolderFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DiagramHolderFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case DiagramHolderPackage.DIAGRAM_HOLDER: return createDiagramHolder();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DiagramHolder createDiagramHolder() {
- DiagramHolderImpl diagramHolder = new DiagramHolderImpl();
- return diagramHolder;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DiagramHolderPackage getDiagramHolderPackage() {
- return (DiagramHolderPackage)getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static DiagramHolderPackage getPackage() {
- return DiagramHolderPackage.eINSTANCE;
- }
-
-} //DiagramHolderFactoryImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderImpl.java
deleted file mode 100644
index 7474c761c5f..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderImpl.java
+++ /dev/null
@@ -1,144 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.diagramholder.impl;
-
-import java.util.Collection;
-
-import org.eclipse.emf.common.util.EList;
-
-import org.eclipse.emf.ecore.EClass;
-
-import org.eclipse.emf.ecore.impl.EAnnotationImpl;
-
-import org.eclipse.emf.ecore.util.EObjectResolvingEList;
-
-import org.eclipse.gmf.runtime.notation.Diagram;
-
-import org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolder;
-import org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolderPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Diagram Holder</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.diagramholder.impl.DiagramHolderImpl#getOwnedDiagrams <em>Owned Diagrams</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class DiagramHolderImpl extends EAnnotationImpl implements DiagramHolder {
- /**
- * The cached value of the '{@link #getOwnedDiagrams() <em>Owned Diagrams</em>}' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see #getOwnedDiagrams()
- * @generated
- * @ordered
- */
- protected EList<Diagram> ownedDiagrams;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected DiagramHolderImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return DiagramHolderPackage.Literals.DIAGRAM_HOLDER;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EList<Diagram> getOwnedDiagrams() {
- if (ownedDiagrams == null) {
- ownedDiagrams = new EObjectResolvingEList<Diagram>(Diagram.class, this, DiagramHolderPackage.DIAGRAM_HOLDER__OWNED_DIAGRAMS);
- }
- return ownedDiagrams;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case DiagramHolderPackage.DIAGRAM_HOLDER__OWNED_DIAGRAMS:
- return getOwnedDiagrams();
- }
- 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 DiagramHolderPackage.DIAGRAM_HOLDER__OWNED_DIAGRAMS:
- getOwnedDiagrams().clear();
- getOwnedDiagrams().addAll((Collection<? extends Diagram>)newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case DiagramHolderPackage.DIAGRAM_HOLDER__OWNED_DIAGRAMS:
- getOwnedDiagrams().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case DiagramHolderPackage.DIAGRAM_HOLDER__OWNED_DIAGRAMS:
- return ownedDiagrams != null && !ownedDiagrams.isEmpty();
- }
- return super.eIsSet(featureID);
- }
-
-} //DiagramHolderImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderPackageImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderPackageImpl.java
deleted file mode 100644
index d77362b6ff2..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/impl/DiagramHolderPackageImpl.java
+++ /dev/null
@@ -1,195 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.diagramholder.impl;
-
-import org.eclipse.emf.ecore.EClass;
-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.gmf.runtime.notation.NotationPackage;
-import org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolder;
-import org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolderFactory;
-import org.eclipse.papyrus.migration.rsa.diagramholder.DiagramHolderPackage;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- * @generated
- */
-public class DiagramHolderPackageImpl extends EPackageImpl implements DiagramHolderPackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass diagramHolderEClass = 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.migration.rsa.diagramholder.DiagramHolderPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private DiagramHolderPackageImpl() {
- super(eNS_URI, DiagramHolderFactory.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 DiagramHolderPackage#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 DiagramHolderPackage init() {
- if (isInited) return (DiagramHolderPackage)EPackage.Registry.INSTANCE.getEPackage(DiagramHolderPackage.eNS_URI);
-
- // Obtain or create and register package
- DiagramHolderPackageImpl theDiagramHolderPackage = (DiagramHolderPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof DiagramHolderPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new DiagramHolderPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackage.eINSTANCE.eClass();
- NotationPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theDiagramHolderPackage.createPackageContents();
-
- // Initialize created meta-data
- theDiagramHolderPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theDiagramHolderPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(DiagramHolderPackage.eNS_URI, theDiagramHolderPackage);
- return theDiagramHolderPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getDiagramHolder() {
- return diagramHolderEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getDiagramHolder_OwnedDiagrams() {
- return (EReference)diagramHolderEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DiagramHolderFactory getDiagramHolderFactory() {
- return (DiagramHolderFactory)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
- diagramHolderEClass = createEClass(DIAGRAM_HOLDER);
- createEReference(diagramHolderEClass, DIAGRAM_HOLDER__OWNED_DIAGRAMS);
- }
-
- /**
- * <!-- 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);
- NotationPackage theNotationPackage = (NotationPackage)EPackage.Registry.INSTANCE.getEPackage(NotationPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- diagramHolderEClass.getESuperTypes().add(theEcorePackage.getEAnnotation());
-
- // Initialize classes, features, and operations; add parameters
- initEClass(diagramHolderEClass, DiagramHolder.class, "DiagramHolder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEReference(getDiagramHolder_OwnedDiagrams(), theNotationPackage.getDiagram(), null, "ownedDiagrams", null, 0, -1, DiagramHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //DiagramHolderPackageImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/util/DiagramHolderAdapterFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/util/DiagramHolderAdapterFactory.java
deleted file mode 100644
index 6a16ef6a9eb..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/util/DiagramHolderAdapterFactory.java
+++ /dev/null
@@ -1,167 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.diagramholder.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.EAnnotation;
-import org.eclipse.emf.ecore.EModelElement;
-import org.eclipse.emf.ecore.EObject;
-
-import org.eclipse.papyrus.migration.rsa.diagramholder.*;
-
-/**
- * <!-- 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.migration.rsa.diagramholder.DiagramHolderPackage
- * @generated
- */
-public class DiagramHolderAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static DiagramHolderPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DiagramHolderAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = DiagramHolderPackage.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 DiagramHolderSwitch<Adapter> modelSwitch =
- new DiagramHolderSwitch<Adapter>() {
- @Override
- public Adapter caseDiagramHolder(DiagramHolder object) {
- return createDiagramHolderAdapter();
- }
- @Override
- public Adapter caseEModelElement(EModelElement object) {
- return createEModelElementAdapter();
- }
- @Override
- public Adapter caseEAnnotation(EAnnotation object) {
- return createEAnnotationAdapter();
- }
- @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.migration.rsa.diagramholder.DiagramHolder <em>Diagram Holder</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.migration.rsa.diagramholder.DiagramHolder
- * @generated
- */
- public Adapter createDiagramHolderAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EModelElement <em>EModel Element</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.emf.ecore.EModelElement
- * @generated
- */
- public Adapter createEModelElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EAnnotation <em>EAnnotation</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.emf.ecore.EAnnotation
- * @generated
- */
- public Adapter createEAnnotationAdapter() {
- 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;
- }
-
-} //DiagramHolderAdapterFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/util/DiagramHolderSwitch.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/util/DiagramHolderSwitch.java
deleted file mode 100644
index 2145eeb1803..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/diagramholder/util/DiagramHolderSwitch.java
+++ /dev/null
@@ -1,153 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- */
-package org.eclipse.papyrus.migration.rsa.diagramholder.util;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EModelElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-
-import org.eclipse.emf.ecore.util.Switch;
-
-import org.eclipse.papyrus.migration.rsa.diagramholder.*;
-
-/**
- * <!-- 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.migration.rsa.diagramholder.DiagramHolderPackage
- * @generated
- */
-public class DiagramHolderSwitch<T> extends Switch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static DiagramHolderPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public DiagramHolderSwitch() {
- if (modelPackage == null) {
- modelPackage = DiagramHolderPackage.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 DiagramHolderPackage.DIAGRAM_HOLDER: {
- DiagramHolder diagramHolder = (DiagramHolder)theEObject;
- T result = caseDiagramHolder(diagramHolder);
- if (result == null) result = caseEAnnotation(diagramHolder);
- if (result == null) result = caseEModelElement(diagramHolder);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Diagram Holder</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>Diagram Holder</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDiagramHolder(DiagramHolder object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EModel Element</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>EModel Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEModelElement(EModelElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EAnnotation</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>EAnnotation</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEAnnotation(EAnnotation 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;
- }
-
-} //DiagramHolderSwitch
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileBaseFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileBaseFactory.java
deleted file mode 100644
index ac09c6fc641..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileBaseFactory.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase;
-
-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.migration.rsa.profilebase.ProfileBasePackage
- * @generated
- */
-public interface ProfileBaseFactory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- ProfileBaseFactory eINSTANCE = org.eclipse.papyrus.migration.rsa.profilebase.impl.ProfileBaseFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>Profile Constraint</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Profile Constraint</em>'.
- * @generated
- */
- ProfileConstraint createProfileConstraint();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- ProfileBasePackage getProfileBasePackage();
-
-} // ProfileBaseFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileBasePackage.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileBasePackage.java
deleted file mode 100644
index e54ab4d85c1..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileBasePackage.java
+++ /dev/null
@@ -1,215 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-
-/**
- * <!-- 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 operation of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.profilebase.ProfileBaseFactory
- * @model kind="package"
- * @generated
- */
-public interface ProfileBasePackage extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "profilebase";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/profile/profilebase";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "ProfileBase";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- ProfileBasePackage eINSTANCE = org.eclipse.papyrus.migration.rsa.profilebase.impl.ProfileBasePackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.profilebase.impl.ProfileConstraintImpl <em>Profile Constraint</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.profilebase.impl.ProfileConstraintImpl
- * @see org.eclipse.papyrus.migration.rsa.profilebase.impl.ProfileBasePackageImpl#getProfileConstraint()
- * @generated
- */
- int PROFILE_CONSTRAINT = 0;
-
- /**
- * The feature id for the '<em><b>Base Constraint</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE_CONSTRAINT__BASE_CONSTRAINT = DefaultPackage.ABSTRACT_CONSTRAINT__BASE_CONSTRAINT;
-
- /**
- * The feature id for the '<em><b>Evaluation Mode</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE_CONSTRAINT__EVALUATION_MODE = DefaultPackage.ABSTRACT_CONSTRAINT__EVALUATION_MODE;
-
- /**
- * The feature id for the '<em><b>Severity</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE_CONSTRAINT__SEVERITY = DefaultPackage.ABSTRACT_CONSTRAINT__SEVERITY;
-
- /**
- * The feature id for the '<em><b>Message Key</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE_CONSTRAINT__MESSAGE_KEY = DefaultPackage.ABSTRACT_CONSTRAINT_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>Profile Constraint</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE_CONSTRAINT_FEATURE_COUNT = DefaultPackage.ABSTRACT_CONSTRAINT_FEATURE_COUNT + 1;
-
- /**
- * The number of operations of the '<em>Profile Constraint</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int PROFILE_CONSTRAINT_OPERATION_COUNT = DefaultPackage.ABSTRACT_CONSTRAINT_OPERATION_COUNT + 0;
-
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint <em>Profile Constraint</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>Profile Constraint</em>'.
- * @see org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint
- * @generated
- */
- EClass getProfileConstraint();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint#getMessageKey <em>Message Key</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Message Key</em>'.
- * @see org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint#getMessageKey()
- * @see #getProfileConstraint()
- * @generated
- */
- EAttribute getProfileConstraint_MessageKey();
-
- /**
- * 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
- */
- ProfileBaseFactory getProfileBaseFactory();
-
- /**
- * <!-- 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 operation 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.migration.rsa.profilebase.impl.ProfileConstraintImpl <em>Profile Constraint</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.profilebase.impl.ProfileConstraintImpl
- * @see org.eclipse.papyrus.migration.rsa.profilebase.impl.ProfileBasePackageImpl#getProfileConstraint()
- * @generated
- */
- EClass PROFILE_CONSTRAINT = eINSTANCE.getProfileConstraint();
-
- /**
- * The meta object literal for the '<em><b>Message Key</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute PROFILE_CONSTRAINT__MESSAGE_KEY = eINSTANCE.getProfileConstraint_MessageKey();
-
- }
-
-} // ProfileBasePackage
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileConstraint.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileConstraint.java
deleted file mode 100644
index e4b679e9636..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/ProfileConstraint.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase;
-
-import org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Profile Constraint</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint#getMessageKey <em>Message Key</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage#getProfileConstraint()
- * @model
- * @generated
- */
-public interface ProfileConstraint extends AbstractConstraint {
- /**
- * Returns the value of the '<em><b>Message Key</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Message Key</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Message Key</em>' attribute.
- * @see #setMessageKey(String)
- * @see org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage#getProfileConstraint_MessageKey()
- * @model required="true"
- * @generated
- */
- String getMessageKey();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint#getMessageKey <em>Message Key</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Message Key</em>' attribute.
- * @see #getMessageKey()
- * @generated
- */
- void setMessageKey(String value);
-
-} // ProfileConstraint
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileBaseFactoryImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileBaseFactoryImpl.java
deleted file mode 100644
index 6c976e7bb5c..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileBaseFactoryImpl.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase.impl;
-
-import org.eclipse.emf.ecore.EClass;
-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.migration.rsa.profilebase.ProfileBaseFactory;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class ProfileBaseFactoryImpl extends EFactoryImpl implements ProfileBaseFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static ProfileBaseFactory init() {
- try {
- ProfileBaseFactory theProfileBaseFactory = (ProfileBaseFactory) EPackage.Registry.INSTANCE.getEFactory(ProfileBasePackage.eNS_URI);
- if (theProfileBaseFactory != null) {
- return theProfileBaseFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new ProfileBaseFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ProfileBaseFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case ProfileBasePackage.PROFILE_CONSTRAINT:
- return createProfileConstraint();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ProfileConstraint createProfileConstraint() {
- ProfileConstraintImpl profileConstraint = new ProfileConstraintImpl();
- return profileConstraint;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ProfileBasePackage getProfileBasePackage() {
- return (ProfileBasePackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static ProfileBasePackage getPackage() {
- return ProfileBasePackage.eINSTANCE;
- }
-
-} // ProfileBaseFactoryImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileBasePackageImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileBasePackageImpl.java
deleted file mode 100644
index 8ec7b8c6abe..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileBasePackageImpl.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileBaseFactory;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class ProfileBasePackageImpl extends EPackageImpl implements ProfileBasePackage {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass profileConstraintEClass = 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.migration.rsa.profilebase.ProfileBasePackage#eNS_URI
- * @see #init()
- * @generated
- */
- private ProfileBasePackageImpl() {
- super(eNS_URI, ProfileBaseFactory.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 ProfileBasePackage#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 ProfileBasePackage init() {
- if (isInited) {
- return (ProfileBasePackage) EPackage.Registry.INSTANCE.getEPackage(ProfileBasePackage.eNS_URI);
- }
-
- // Obtain or create and register package
- ProfileBasePackageImpl theProfileBasePackage = (ProfileBasePackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof ProfileBasePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new ProfileBasePackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- DefaultPackage.eINSTANCE.eClass();
-
- // Create package meta-data objects
- theProfileBasePackage.createPackageContents();
-
- // Initialize created meta-data
- theProfileBasePackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- theProfileBasePackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(ProfileBasePackage.eNS_URI, theProfileBasePackage);
- return theProfileBasePackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getProfileConstraint() {
- return profileConstraintEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getProfileConstraint_MessageKey() {
- return (EAttribute) profileConstraintEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public ProfileBaseFactory getProfileBaseFactory() {
- return (ProfileBaseFactory) 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
- profileConstraintEClass = createEClass(PROFILE_CONSTRAINT);
- createEAttribute(profileConstraintEClass, PROFILE_CONSTRAINT__MESSAGE_KEY);
- }
-
- /**
- * <!-- 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
- DefaultPackage theDefaultPackage = (DefaultPackage) EPackage.Registry.INSTANCE.getEPackage(DefaultPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- profileConstraintEClass.getESuperTypes().add(theDefaultPackage.getAbstractConstraint());
-
- // Initialize classes, features, and operations; add parameters
- initEClass(profileConstraintEClass, ProfileConstraint.class, "ProfileConstraint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getProfileConstraint_MessageKey(), ecorePackage.getEString(), "messageKey", null, 1, 1, ProfileConstraint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // ProfileBasePackageImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileConstraintImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileConstraintImpl.java
deleted file mode 100644
index dd1af3b4bc6..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/impl/ProfileConstraintImpl.java
+++ /dev/null
@@ -1,185 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase.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.migration.rsa.default_.impl.AbstractConstraintImpl;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Profile Constraint</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.profilebase.impl.ProfileConstraintImpl#getMessageKey <em>Message Key</em>}</li>
- * </ul>
- * </p>
- *
- * @generated
- */
-public class ProfileConstraintImpl extends AbstractConstraintImpl implements ProfileConstraint {
- /**
- * The default value of the '{@link #getMessageKey() <em>Message Key</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMessageKey()
- * @generated
- * @ordered
- */
- protected static final String MESSAGE_KEY_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getMessageKey() <em>Message Key</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getMessageKey()
- * @generated
- * @ordered
- */
- protected String messageKey = MESSAGE_KEY_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected ProfileConstraintImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return ProfileBasePackage.Literals.PROFILE_CONSTRAINT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getMessageKey() {
- return messageKey;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setMessageKey(String newMessageKey) {
- String oldMessageKey = messageKey;
- messageKey = newMessageKey;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, ProfileBasePackage.PROFILE_CONSTRAINT__MESSAGE_KEY, oldMessageKey, messageKey));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case ProfileBasePackage.PROFILE_CONSTRAINT__MESSAGE_KEY:
- return getMessageKey();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case ProfileBasePackage.PROFILE_CONSTRAINT__MESSAGE_KEY:
- setMessageKey((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case ProfileBasePackage.PROFILE_CONSTRAINT__MESSAGE_KEY:
- setMessageKey(MESSAGE_KEY_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case ProfileBasePackage.PROFILE_CONSTRAINT__MESSAGE_KEY:
- return MESSAGE_KEY_EDEFAULT == null ? messageKey != null : !MESSAGE_KEY_EDEFAULT.equals(messageKey);
- }
- 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(" (messageKey: ");
- result.append(messageKey);
- result.append(')');
- return result.toString();
- }
-
-} // ProfileConstraintImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseAdapterFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseAdapterFactory.java
deleted file mode 100644
index 112fb69673c..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseAdapterFactory.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase.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.migration.rsa.default_.AbstractConstraint;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint;
-
-/**
- * <!-- 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.migration.rsa.profilebase.ProfileBasePackage
- * @generated
- */
-public class ProfileBaseAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static ProfileBasePackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ProfileBaseAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = ProfileBasePackage.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 ProfileBaseSwitch<Adapter> modelSwitch =
- new ProfileBaseSwitch<Adapter>() {
- @Override
- public Adapter caseProfileConstraint(ProfileConstraint object) {
- return createProfileConstraintAdapter();
- }
-
- @Override
- public Adapter caseAbstractConstraint(AbstractConstraint object) {
- return createAbstractConstraintAdapter();
- }
-
- @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.migration.rsa.profilebase.ProfileConstraint <em>Profile Constraint</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.migration.rsa.profilebase.ProfileConstraint
- * @generated
- */
- public Adapter createProfileConstraintAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint <em>Abstract Constraint</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.migration.rsa.default_.AbstractConstraint
- * @generated
- */
- public Adapter createAbstractConstraintAdapter() {
- 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;
- }
-
-} // ProfileBaseAdapterFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseResourceFactoryImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseResourceFactoryImpl.java
deleted file mode 100644
index ef724e62d22..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseResourceFactoryImpl.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase.util;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
-import org.eclipse.emf.ecore.xmi.XMLResource;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource Factory</b> associated with the package.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.profilebase.util.ProfileBaseResourceImpl
- * @generated
- */
-public class ProfileBaseResourceFactoryImpl extends ResourceFactoryImpl {
- /**
- * Creates an instance of the resource factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ProfileBaseResourceFactoryImpl() {
- super();
- }
-
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Resource createResource(URI uri) {
- XMLResource result = new ProfileBaseResourceImpl(uri);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
- result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
-
- result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
- result.getDefaultSaveOptions().put(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
-
- result.getDefaultLoadOptions().put(XMLResource.OPTION_USE_LEXICAL_HANDLER, Boolean.TRUE);
- return result;
- }
-
-} // ProfileBaseResourceFactoryImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseResourceImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseResourceImpl.java
deleted file mode 100644
index 8e9ed0f1c09..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseResourceImpl.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase.util;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl;
-
-/**
- * <!-- begin-user-doc -->
- * The <b>Resource </b> associated with the package.
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.profilebase.util.ProfileBaseResourceFactoryImpl
- * @generated
- */
-public class ProfileBaseResourceImpl extends XMLResourceImpl {
- /**
- * Creates an instance of the resource.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param uri
- * the URI of the new resource.
- * @generated
- */
- public ProfileBaseResourceImpl(URI uri) {
- super(uri);
- }
-
-} // ProfileBaseResourceImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseSwitch.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseSwitch.java
deleted file mode 100644
index 619161bd3ad..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseSwitch.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase.util;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.papyrus.migration.rsa.default_.AbstractConstraint;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint;
-
-/**
- * <!-- 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.migration.rsa.profilebase.ProfileBasePackage
- * @generated
- */
-public class ProfileBaseSwitch<T> extends Switch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static ProfileBasePackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ProfileBaseSwitch() {
- if (modelPackage == null) {
- modelPackage = ProfileBasePackage.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 ProfileBasePackage.PROFILE_CONSTRAINT: {
- ProfileConstraint profileConstraint = (ProfileConstraint) theEObject;
- T result = caseProfileConstraint(profileConstraint);
- if (result == null) {
- result = caseAbstractConstraint(profileConstraint);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Profile Constraint</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>Profile Constraint</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseProfileConstraint(ProfileConstraint object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Abstract Constraint</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>Abstract Constraint</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAbstractConstraint(AbstractConstraint 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;
- }
-
-} // ProfileBaseSwitch
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseXMLProcessor.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseXMLProcessor.java
deleted file mode 100644
index 5a8e6c7b26b..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/profilebase/util/ProfileBaseXMLProcessor.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.profilebase.util;
-
-import java.util.Map;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage;
-
-/**
- * This class contains helper methods to serialize and deserialize XML documents
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class ProfileBaseXMLProcessor extends XMLProcessor {
-
- /**
- * Public constructor to instantiate the helper.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public ProfileBaseXMLProcessor() {
- super((EPackage.Registry.INSTANCE));
- ProfileBasePackage.eINSTANCE.eClass();
- }
-
- /**
- * Register for "*" and "xml" file extensions the ProfileBaseResourceFactoryImpl factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected Map<String, Resource.Factory> getRegistrations() {
- if (registrations == null) {
- super.getRegistrations();
- registrations.put(XML_EXTENSION, new ProfileBaseResourceFactoryImpl());
- registrations.put(STAR_EXTENSION, new ProfileBaseResourceFactoryImpl());
- }
- return registrations;
- }
-
-} // ProfileBaseXMLProcessor
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/PapyrusUMLNotationFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/PapyrusUMLNotationFactory.java
deleted file mode 100644
index 36c72335d81..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/PapyrusUMLNotationFactory.java
+++ /dev/null
@@ -1,116 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-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.migration.rsa.umlnotation.PapyrusUMLNotationPackage
- * @generated
- */
-public interface PapyrusUMLNotationFactory extends EFactory {
-
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- PapyrusUMLNotationFactory eINSTANCE = org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationFactoryImpl.init();
-
- /**
- * Returns a new object of class '<em>UML Diagram</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>UML Diagram</em>'.
- * @generated
- */
- UMLDiagram createUMLDiagram();
-
- /**
- * Returns a new object of class '<em>UML Frame</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>UML Frame</em>'.
- * @generated
- */
- UMLFrame createUMLFrame();
-
- /**
- * Returns a new object of class '<em>UML Shape Compartment</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>UML Shape Compartment</em>'.
- * @generated
- */
- UMLShapeCompartment createUMLShapeCompartment();
-
- /**
- * Returns a new object of class '<em>UML Shape</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>UML Shape</em>'.
- * @generated
- */
- UMLShape createUMLShape();
-
- /**
- * Returns a new object of class '<em>UML Connector</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>UML Connector</em>'.
- * @generated
- */
- UMLConnector createUMLConnector();
-
- /**
- * Returns a new object of class '<em>UML Component</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>UML Component</em>'.
- * @generated
- */
- UMLComponent createUMLComponent();
-
- /**
- * Returns a new object of class '<em>UML Classifier Shape</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>UML Classifier Shape</em>'.
- * @generated
- */
- UMLClassifierShape createUMLClassifierShape();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- PapyrusUMLNotationPackage getPapyrusUMLNotationPackage();
-
-} // PapyrusUMLNotationFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/PapyrusUMLNotationPackage.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/PapyrusUMLNotationPackage.java
deleted file mode 100644
index 84026138898..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/PapyrusUMLNotationPackage.java
+++ /dev/null
@@ -1,2913 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-
-/**
- * <!-- 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.migration.rsa.umlnotation.PapyrusUMLNotationFactory
- * @model kind="package"
- * @generated
- */
-public interface PapyrusUMLNotationPackage extends EPackage {
-
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNAME = "umlnotation";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/papyrus/umlnotation";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- String eNS_PREFIX = "umlnotationext";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- PapyrusUMLNotationPackage eINSTANCE = org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLDiagramImpl <em>UML Diagram</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLDiagramImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLDiagram()
- * @generated
- */
- int UML_DIAGRAM = 0;
-
- /**
- * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__EANNOTATIONS = NotationPackage.DIAGRAM__EANNOTATIONS;
-
- /**
- * The feature id for the '<em><b>Visible</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__VISIBLE = NotationPackage.DIAGRAM__VISIBLE;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__TYPE = NotationPackage.DIAGRAM__TYPE;
-
- /**
- * The feature id for the '<em><b>Mutable</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__MUTABLE = NotationPackage.DIAGRAM__MUTABLE;
-
- /**
- * The feature id for the '<em><b>Source Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__SOURCE_EDGES = NotationPackage.DIAGRAM__SOURCE_EDGES;
-
- /**
- * The feature id for the '<em><b>Target Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__TARGET_EDGES = NotationPackage.DIAGRAM__TARGET_EDGES;
-
- /**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__PERSISTED_CHILDREN = NotationPackage.DIAGRAM__PERSISTED_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Styles</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__STYLES = NotationPackage.DIAGRAM__STYLES;
-
- /**
- * The feature id for the '<em><b>Element</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__ELEMENT = NotationPackage.DIAGRAM__ELEMENT;
-
- /**
- * The feature id for the '<em><b>Diagram</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__DIAGRAM = NotationPackage.DIAGRAM__DIAGRAM;
-
- /**
- * The feature id for the '<em><b>Transient Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__TRANSIENT_CHILDREN = NotationPackage.DIAGRAM__TRANSIENT_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__NAME = NotationPackage.DIAGRAM__NAME;
-
- /**
- * The feature id for the '<em><b>Measurement Unit</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__MEASUREMENT_UNIT = NotationPackage.DIAGRAM__MEASUREMENT_UNIT;
-
- /**
- * The feature id for the '<em><b>Edges</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int DIAGRAM__PERSISTED_EDGES = NotationPackage.DIAGRAM__PERSISTED_EDGES;
-
- /**
- * The feature id for the '<em><b>Transient Edges</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__TRANSIENT_EDGES = NotationPackage.DIAGRAM__TRANSIENT_EDGES;
-
- /**
- * The feature id for the '<em><b>Show Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__SHOW_STEREOTYPE = NotationPackage.DIAGRAM_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Show List Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__SHOW_LIST_VISIBILITY = NotationPackage.DIAGRAM_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Show List Signature</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__SHOW_LIST_SIGNATURE = NotationPackage.DIAGRAM_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__ALIGNMENT = NotationPackage.DIAGRAM_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT = NotationPackage.DIAGRAM_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Show List Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM__SHOW_LIST_STEREOTYPE = NotationPackage.DIAGRAM_FEATURE_COUNT + 5;
-
- /**
- * The number of structural features of the '<em>UML Diagram</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_DIAGRAM_FEATURE_COUNT = NotationPackage.DIAGRAM_FEATURE_COUNT + 6;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl <em>UML Shape</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLShape()
- * @generated
- */
- int UML_SHAPE = 3;
-
- /**
- * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__EANNOTATIONS = NotationPackage.SHAPE__EANNOTATIONS;
-
- /**
- * The feature id for the '<em><b>Visible</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__VISIBLE = NotationPackage.SHAPE__VISIBLE;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__TYPE = NotationPackage.SHAPE__TYPE;
-
- /**
- * The feature id for the '<em><b>Mutable</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__MUTABLE = NotationPackage.SHAPE__MUTABLE;
-
- /**
- * The feature id for the '<em><b>Source Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__SOURCE_EDGES = NotationPackage.SHAPE__SOURCE_EDGES;
-
- /**
- * The feature id for the '<em><b>Target Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__TARGET_EDGES = NotationPackage.SHAPE__TARGET_EDGES;
-
- /**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__PERSISTED_CHILDREN = NotationPackage.SHAPE__PERSISTED_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Styles</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__STYLES = NotationPackage.SHAPE__STYLES;
-
- /**
- * The feature id for the '<em><b>Element</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__ELEMENT = NotationPackage.SHAPE__ELEMENT;
-
- /**
- * The feature id for the '<em><b>Diagram</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__DIAGRAM = NotationPackage.SHAPE__DIAGRAM;
-
- /**
- * The feature id for the '<em><b>Transient Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__TRANSIENT_CHILDREN = NotationPackage.SHAPE__TRANSIENT_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Layout Constraint</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__LAYOUT_CONSTRAINT = NotationPackage.SHAPE__LAYOUT_CONSTRAINT;
-
- /**
- * The feature id for the '<em><b>Font Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__FONT_COLOR = NotationPackage.SHAPE__FONT_COLOR;
-
- /**
- * The feature id for the '<em><b>Font Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__FONT_NAME = NotationPackage.SHAPE__FONT_NAME;
-
- /**
- * The feature id for the '<em><b>Font Height</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__FONT_HEIGHT = NotationPackage.SHAPE__FONT_HEIGHT;
-
- /**
- * The feature id for the '<em><b>Bold</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__BOLD = NotationPackage.SHAPE__BOLD;
-
- /**
- * The feature id for the '<em><b>Italic</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__ITALIC = NotationPackage.SHAPE__ITALIC;
-
- /**
- * The feature id for the '<em><b>Underline</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__UNDERLINE = NotationPackage.SHAPE__UNDERLINE;
-
- /**
- * The feature id for the '<em><b>Strike Through</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__STRIKE_THROUGH = NotationPackage.SHAPE__STRIKE_THROUGH;
-
- /**
- * The feature id for the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__DESCRIPTION = NotationPackage.SHAPE__DESCRIPTION;
-
- /**
- * The feature id for the '<em><b>Fill Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__FILL_COLOR = NotationPackage.SHAPE__FILL_COLOR;
-
- /**
- * The feature id for the '<em><b>Transparency</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__TRANSPARENCY = NotationPackage.SHAPE__TRANSPARENCY;
-
- /**
- * The feature id for the '<em><b>Gradient</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__GRADIENT = NotationPackage.SHAPE__GRADIENT;
-
- /**
- * The feature id for the '<em><b>Line Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__LINE_COLOR = NotationPackage.SHAPE__LINE_COLOR;
-
- /**
- * The feature id for the '<em><b>Line Width</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__LINE_WIDTH = NotationPackage.SHAPE__LINE_WIDTH;
-
- /**
- * The feature id for the '<em><b>Rounded Bendpoints Radius</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__ROUNDED_BENDPOINTS_RADIUS = NotationPackage.SHAPE__ROUNDED_BENDPOINTS_RADIUS;
-
- /**
- * The feature id for the '<em><b>Show Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__SHOW_STEREOTYPE = NotationPackage.SHAPE_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Show List Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__SHOW_LIST_VISIBILITY = NotationPackage.SHAPE_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Show List Signature</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__SHOW_LIST_SIGNATURE = NotationPackage.SHAPE_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__ALIGNMENT = NotationPackage.SHAPE_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT = NotationPackage.SHAPE_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Show List Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE__SHOW_LIST_STEREOTYPE = NotationPackage.SHAPE_FEATURE_COUNT + 5;
-
- /**
- * The number of structural features of the '<em>UML Shape</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_FEATURE_COUNT = NotationPackage.SHAPE_FEATURE_COUNT + 6;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLFrameImpl <em>UML Frame</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLFrameImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLFrame()
- * @generated
- */
- int UML_FRAME = 1;
-
- /**
- * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__EANNOTATIONS = UML_SHAPE__EANNOTATIONS;
-
- /**
- * The feature id for the '<em><b>Visible</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__VISIBLE = UML_SHAPE__VISIBLE;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__TYPE = UML_SHAPE__TYPE;
-
- /**
- * The feature id for the '<em><b>Mutable</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__MUTABLE = UML_SHAPE__MUTABLE;
-
- /**
- * The feature id for the '<em><b>Source Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__SOURCE_EDGES = UML_SHAPE__SOURCE_EDGES;
-
- /**
- * The feature id for the '<em><b>Target Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__TARGET_EDGES = UML_SHAPE__TARGET_EDGES;
-
- /**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__PERSISTED_CHILDREN = UML_SHAPE__PERSISTED_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Styles</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__STYLES = UML_SHAPE__STYLES;
-
- /**
- * The feature id for the '<em><b>Element</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__ELEMENT = UML_SHAPE__ELEMENT;
-
- /**
- * The feature id for the '<em><b>Diagram</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__DIAGRAM = UML_SHAPE__DIAGRAM;
-
- /**
- * The feature id for the '<em><b>Transient Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__TRANSIENT_CHILDREN = UML_SHAPE__TRANSIENT_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Layout Constraint</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__LAYOUT_CONSTRAINT = UML_SHAPE__LAYOUT_CONSTRAINT;
-
- /**
- * The feature id for the '<em><b>Font Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__FONT_COLOR = UML_SHAPE__FONT_COLOR;
-
- /**
- * The feature id for the '<em><b>Font Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__FONT_NAME = UML_SHAPE__FONT_NAME;
-
- /**
- * The feature id for the '<em><b>Font Height</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__FONT_HEIGHT = UML_SHAPE__FONT_HEIGHT;
-
- /**
- * The feature id for the '<em><b>Bold</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__BOLD = UML_SHAPE__BOLD;
-
- /**
- * The feature id for the '<em><b>Italic</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__ITALIC = UML_SHAPE__ITALIC;
-
- /**
- * The feature id for the '<em><b>Underline</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__UNDERLINE = UML_SHAPE__UNDERLINE;
-
- /**
- * The feature id for the '<em><b>Strike Through</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__STRIKE_THROUGH = UML_SHAPE__STRIKE_THROUGH;
-
- /**
- * The feature id for the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__DESCRIPTION = UML_SHAPE__DESCRIPTION;
-
- /**
- * The feature id for the '<em><b>Fill Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__FILL_COLOR = UML_SHAPE__FILL_COLOR;
-
- /**
- * The feature id for the '<em><b>Transparency</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__TRANSPARENCY = UML_SHAPE__TRANSPARENCY;
-
- /**
- * The feature id for the '<em><b>Gradient</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__GRADIENT = UML_SHAPE__GRADIENT;
-
- /**
- * The feature id for the '<em><b>Line Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__LINE_COLOR = UML_SHAPE__LINE_COLOR;
-
- /**
- * The feature id for the '<em><b>Line Width</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__LINE_WIDTH = UML_SHAPE__LINE_WIDTH;
-
- /**
- * The feature id for the '<em><b>Rounded Bendpoints Radius</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__ROUNDED_BENDPOINTS_RADIUS = UML_SHAPE__ROUNDED_BENDPOINTS_RADIUS;
-
- /**
- * The feature id for the '<em><b>Show Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__SHOW_STEREOTYPE = UML_SHAPE__SHOW_STEREOTYPE;
-
- /**
- * The feature id for the '<em><b>Show List Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__SHOW_LIST_VISIBILITY = UML_SHAPE__SHOW_LIST_VISIBILITY;
-
- /**
- * The feature id for the '<em><b>Show List Signature</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__SHOW_LIST_SIGNATURE = UML_SHAPE__SHOW_LIST_SIGNATURE;
-
- /**
- * The feature id for the '<em><b>Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__ALIGNMENT = UML_SHAPE__ALIGNMENT;
-
- /**
- * The feature id for the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT = UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
-
- /**
- * The feature id for the '<em><b>Show List Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME__SHOW_LIST_STEREOTYPE = UML_SHAPE__SHOW_LIST_STEREOTYPE;
-
- /**
- * The number of structural features of the '<em>UML Frame</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_FRAME_FEATURE_COUNT = UML_SHAPE_FEATURE_COUNT + 0;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl <em>UML Shape Compartment</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLShapeCompartment()
- * @generated
- */
- int UML_SHAPE_COMPARTMENT = 2;
-
- /**
- * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__EANNOTATIONS = NotationPackage.COMPARTMENT__EANNOTATIONS;
-
- /**
- * The feature id for the '<em><b>Visible</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__VISIBLE = NotationPackage.COMPARTMENT__VISIBLE;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__TYPE = NotationPackage.COMPARTMENT__TYPE;
-
- /**
- * The feature id for the '<em><b>Mutable</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__MUTABLE = NotationPackage.COMPARTMENT__MUTABLE;
-
- /**
- * The feature id for the '<em><b>Source Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__SOURCE_EDGES = NotationPackage.COMPARTMENT__SOURCE_EDGES;
-
- /**
- * The feature id for the '<em><b>Target Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__TARGET_EDGES = NotationPackage.COMPARTMENT__TARGET_EDGES;
-
- /**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__PERSISTED_CHILDREN = NotationPackage.COMPARTMENT__PERSISTED_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Styles</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__STYLES = NotationPackage.COMPARTMENT__STYLES;
-
- /**
- * The feature id for the '<em><b>Element</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__ELEMENT = NotationPackage.COMPARTMENT__ELEMENT;
-
- /**
- * The feature id for the '<em><b>Diagram</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__DIAGRAM = NotationPackage.COMPARTMENT__DIAGRAM;
-
- /**
- * The feature id for the '<em><b>Transient Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__TRANSIENT_CHILDREN = NotationPackage.COMPARTMENT__TRANSIENT_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Layout Constraint</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__LAYOUT_CONSTRAINT = NotationPackage.COMPARTMENT__LAYOUT_CONSTRAINT;
-
- /**
- * The feature id for the '<em><b>Collapsed</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__COLLAPSED = NotationPackage.COMPARTMENT__COLLAPSED;
-
- /**
- * The feature id for the '<em><b>Canonical</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__CANONICAL = NotationPackage.COMPARTMENT__CANONICAL;
-
- /**
- * The feature id for the '<em><b>Show Title</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__SHOW_TITLE = NotationPackage.COMPARTMENT__SHOW_TITLE;
-
- /**
- * The feature id for the '<em><b>Show Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE = NotationPackage.COMPARTMENT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Show List Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__SHOW_LIST_VISIBILITY = NotationPackage.COMPARTMENT_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Show List Signature</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__SHOW_LIST_SIGNATURE = NotationPackage.COMPARTMENT_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__ALIGNMENT = NotationPackage.COMPARTMENT_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT = NotationPackage.COMPARTMENT_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Show List Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__SHOW_LIST_STEREOTYPE = NotationPackage.COMPARTMENT_FEATURE_COUNT + 5;
-
- /**
- * The feature id for the '<em><b>Vertical Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT__VERTICAL_ALIGNMENT = NotationPackage.COMPARTMENT_FEATURE_COUNT + 6;
-
- /**
- * The number of structural features of the '<em>UML Shape Compartment</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_SHAPE_COMPARTMENT_FEATURE_COUNT = NotationPackage.COMPARTMENT_FEATURE_COUNT + 7;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl <em>UML Connector</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLConnector()
- * @generated
- */
- int UML_CONNECTOR = 4;
-
- /**
- * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__EANNOTATIONS = NotationPackage.CONNECTOR__EANNOTATIONS;
-
- /**
- * The feature id for the '<em><b>Visible</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__VISIBLE = NotationPackage.CONNECTOR__VISIBLE;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__TYPE = NotationPackage.CONNECTOR__TYPE;
-
- /**
- * The feature id for the '<em><b>Mutable</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__MUTABLE = NotationPackage.CONNECTOR__MUTABLE;
-
- /**
- * The feature id for the '<em><b>Source Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__SOURCE_EDGES = NotationPackage.CONNECTOR__SOURCE_EDGES;
-
- /**
- * The feature id for the '<em><b>Target Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__TARGET_EDGES = NotationPackage.CONNECTOR__TARGET_EDGES;
-
- /**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__PERSISTED_CHILDREN = NotationPackage.CONNECTOR__PERSISTED_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Styles</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__STYLES = NotationPackage.CONNECTOR__STYLES;
-
- /**
- * The feature id for the '<em><b>Element</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__ELEMENT = NotationPackage.CONNECTOR__ELEMENT;
-
- /**
- * The feature id for the '<em><b>Diagram</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__DIAGRAM = NotationPackage.CONNECTOR__DIAGRAM;
-
- /**
- * The feature id for the '<em><b>Transient Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__TRANSIENT_CHILDREN = NotationPackage.CONNECTOR__TRANSIENT_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Source</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__SOURCE = NotationPackage.CONNECTOR__SOURCE;
-
- /**
- * The feature id for the '<em><b>Target</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__TARGET = NotationPackage.CONNECTOR__TARGET;
-
- /**
- * The feature id for the '<em><b>Bendpoints</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__BENDPOINTS = NotationPackage.CONNECTOR__BENDPOINTS;
-
- /**
- * The feature id for the '<em><b>Source Anchor</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__SOURCE_ANCHOR = NotationPackage.CONNECTOR__SOURCE_ANCHOR;
-
- /**
- * The feature id for the '<em><b>Target Anchor</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__TARGET_ANCHOR = NotationPackage.CONNECTOR__TARGET_ANCHOR;
-
- /**
- * The feature id for the '<em><b>Rounded Bendpoints Radius</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__ROUNDED_BENDPOINTS_RADIUS = NotationPackage.CONNECTOR__ROUNDED_BENDPOINTS_RADIUS;
-
- /**
- * The feature id for the '<em><b>Routing</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__ROUTING = NotationPackage.CONNECTOR__ROUTING;
-
- /**
- * The feature id for the '<em><b>Smoothness</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__SMOOTHNESS = NotationPackage.CONNECTOR__SMOOTHNESS;
-
- /**
- * The feature id for the '<em><b>Avoid Obstructions</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__AVOID_OBSTRUCTIONS = NotationPackage.CONNECTOR__AVOID_OBSTRUCTIONS;
-
- /**
- * The feature id for the '<em><b>Closest Distance</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__CLOSEST_DISTANCE = NotationPackage.CONNECTOR__CLOSEST_DISTANCE;
-
- /**
- * The feature id for the '<em><b>Jump Link Status</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__JUMP_LINK_STATUS = NotationPackage.CONNECTOR__JUMP_LINK_STATUS;
-
- /**
- * The feature id for the '<em><b>Jump Link Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__JUMP_LINK_TYPE = NotationPackage.CONNECTOR__JUMP_LINK_TYPE;
-
- /**
- * The feature id for the '<em><b>Jump Links Reverse</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__JUMP_LINKS_REVERSE = NotationPackage.CONNECTOR__JUMP_LINKS_REVERSE;
-
- /**
- * The feature id for the '<em><b>Line Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__LINE_COLOR = NotationPackage.CONNECTOR__LINE_COLOR;
-
- /**
- * The feature id for the '<em><b>Line Width</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__LINE_WIDTH = NotationPackage.CONNECTOR__LINE_WIDTH;
-
- /**
- * The feature id for the '<em><b>Font Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__FONT_COLOR = NotationPackage.CONNECTOR_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Font Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__FONT_NAME = NotationPackage.CONNECTOR_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Font Height</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__FONT_HEIGHT = NotationPackage.CONNECTOR_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Bold</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__BOLD = NotationPackage.CONNECTOR_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Italic</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__ITALIC = NotationPackage.CONNECTOR_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Underline</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__UNDERLINE = NotationPackage.CONNECTOR_FEATURE_COUNT + 5;
-
- /**
- * The feature id for the '<em><b>Strike Through</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__STRIKE_THROUGH = NotationPackage.CONNECTOR_FEATURE_COUNT + 6;
-
- /**
- * The feature id for the '<em><b>Show Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__SHOW_STEREOTYPE = NotationPackage.CONNECTOR_FEATURE_COUNT + 7;
-
- /**
- * The feature id for the '<em><b>Show List Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__SHOW_LIST_VISIBILITY = NotationPackage.CONNECTOR_FEATURE_COUNT + 8;
-
- /**
- * The feature id for the '<em><b>Show List Signature</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__SHOW_LIST_SIGNATURE = NotationPackage.CONNECTOR_FEATURE_COUNT + 9;
-
- /**
- * The feature id for the '<em><b>Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__ALIGNMENT = NotationPackage.CONNECTOR_FEATURE_COUNT + 10;
-
- /**
- * The feature id for the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT = NotationPackage.CONNECTOR_FEATURE_COUNT + 11;
-
- /**
- * The feature id for the '<em><b>Show List Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR__SHOW_LIST_STEREOTYPE = NotationPackage.CONNECTOR_FEATURE_COUNT + 12;
-
- /**
- * The number of structural features of the '<em>UML Connector</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CONNECTOR_FEATURE_COUNT = NotationPackage.CONNECTOR_FEATURE_COUNT + 13;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl <em>UML View</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLView()
- * @generated
- */
- int UML_VIEW = 5;
-
- /**
- * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__EANNOTATIONS = NotationPackage.VIEW__EANNOTATIONS;
-
- /**
- * The feature id for the '<em><b>Visible</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__VISIBLE = NotationPackage.VIEW__VISIBLE;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__TYPE = NotationPackage.VIEW__TYPE;
-
- /**
- * The feature id for the '<em><b>Mutable</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__MUTABLE = NotationPackage.VIEW__MUTABLE;
-
- /**
- * The feature id for the '<em><b>Source Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__SOURCE_EDGES = NotationPackage.VIEW__SOURCE_EDGES;
-
- /**
- * The feature id for the '<em><b>Target Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__TARGET_EDGES = NotationPackage.VIEW__TARGET_EDGES;
-
- /**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__PERSISTED_CHILDREN = NotationPackage.VIEW__PERSISTED_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Styles</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__STYLES = NotationPackage.VIEW__STYLES;
-
- /**
- * The feature id for the '<em><b>Element</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__ELEMENT = NotationPackage.VIEW__ELEMENT;
-
- /**
- * The feature id for the '<em><b>Diagram</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__DIAGRAM = NotationPackage.VIEW__DIAGRAM;
-
- /**
- * The feature id for the '<em><b>Transient Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__TRANSIENT_CHILDREN = NotationPackage.VIEW__TRANSIENT_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Show Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__SHOW_STEREOTYPE = NotationPackage.VIEW_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Show List Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__SHOW_LIST_VISIBILITY = NotationPackage.VIEW_FEATURE_COUNT + 1;
-
- /**
- * The feature id for the '<em><b>Show List Signature</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__SHOW_LIST_SIGNATURE = NotationPackage.VIEW_FEATURE_COUNT + 2;
-
- /**
- * The feature id for the '<em><b>Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__ALIGNMENT = NotationPackage.VIEW_FEATURE_COUNT + 3;
-
- /**
- * The feature id for the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT = NotationPackage.VIEW_FEATURE_COUNT + 4;
-
- /**
- * The feature id for the '<em><b>Show List Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW__SHOW_LIST_STEREOTYPE = NotationPackage.VIEW_FEATURE_COUNT + 5;
-
- /**
- * The number of structural features of the '<em>UML View</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_VIEW_FEATURE_COUNT = NotationPackage.VIEW_FEATURE_COUNT + 6;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLComponentImpl <em>UML Component</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLComponentImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLComponent()
- * @generated
- */
- int UML_COMPONENT = 6;
-
- /**
- * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__EANNOTATIONS = UML_SHAPE__EANNOTATIONS;
-
- /**
- * The feature id for the '<em><b>Visible</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__VISIBLE = UML_SHAPE__VISIBLE;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__TYPE = UML_SHAPE__TYPE;
-
- /**
- * The feature id for the '<em><b>Mutable</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__MUTABLE = UML_SHAPE__MUTABLE;
-
- /**
- * The feature id for the '<em><b>Source Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__SOURCE_EDGES = UML_SHAPE__SOURCE_EDGES;
-
- /**
- * The feature id for the '<em><b>Target Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__TARGET_EDGES = UML_SHAPE__TARGET_EDGES;
-
- /**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__CHILDREN = UML_SHAPE__PERSISTED_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Styles</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__STYLES = UML_SHAPE__STYLES;
-
- /**
- * The feature id for the '<em><b>Element</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__ELEMENT = UML_SHAPE__ELEMENT;
-
- /**
- * The feature id for the '<em><b>Diagram</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__DIAGRAM = UML_SHAPE__DIAGRAM;
-
- /**
- * The feature id for the '<em><b>Transient Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__TRANSIENT_CHILDREN = UML_SHAPE__TRANSIENT_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Layout Constraint</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__LAYOUT_CONSTRAINT = UML_SHAPE__LAYOUT_CONSTRAINT;
-
- /**
- * The feature id for the '<em><b>Font Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__FONT_COLOR = UML_SHAPE__FONT_COLOR;
-
- /**
- * The feature id for the '<em><b>Font Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__FONT_NAME = UML_SHAPE__FONT_NAME;
-
- /**
- * The feature id for the '<em><b>Font Height</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__FONT_HEIGHT = UML_SHAPE__FONT_HEIGHT;
-
- /**
- * The feature id for the '<em><b>Bold</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__BOLD = UML_SHAPE__BOLD;
-
- /**
- * The feature id for the '<em><b>Italic</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__ITALIC = UML_SHAPE__ITALIC;
-
- /**
- * The feature id for the '<em><b>Underline</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__UNDERLINE = UML_SHAPE__UNDERLINE;
-
- /**
- * The feature id for the '<em><b>Strike Through</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__STRIKE_THROUGH = UML_SHAPE__STRIKE_THROUGH;
-
- /**
- * The feature id for the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__DESCRIPTION = UML_SHAPE__DESCRIPTION;
-
- /**
- * The feature id for the '<em><b>Fill Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__FILL_COLOR = UML_SHAPE__FILL_COLOR;
-
- /**
- * The feature id for the '<em><b>Transparency</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__TRANSPARENCY = UML_SHAPE__TRANSPARENCY;
-
- /**
- * The feature id for the '<em><b>Gradient</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__GRADIENT = UML_SHAPE__GRADIENT;
-
- /**
- * The feature id for the '<em><b>Line Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__LINE_COLOR = UML_SHAPE__LINE_COLOR;
-
- /**
- * The feature id for the '<em><b>Line Width</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__LINE_WIDTH = UML_SHAPE__LINE_WIDTH;
-
- /**
- * The feature id for the '<em><b>Rounded Bendpoints Radius</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__ROUNDED_BENDPOINTS_RADIUS = UML_SHAPE__ROUNDED_BENDPOINTS_RADIUS;
-
- /**
- * The feature id for the '<em><b>Show Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__SHOW_STEREOTYPE = UML_SHAPE__SHOW_STEREOTYPE;
-
- /**
- * The feature id for the '<em><b>Show List Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__SHOW_LIST_VISIBILITY = UML_SHAPE__SHOW_LIST_VISIBILITY;
-
- /**
- * The feature id for the '<em><b>Show List Signature</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__SHOW_LIST_SIGNATURE = UML_SHAPE__SHOW_LIST_SIGNATURE;
-
- /**
- * The feature id for the '<em><b>Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__ALIGNMENT = UML_SHAPE__ALIGNMENT;
-
- /**
- * The feature id for the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT = UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
-
- /**
- * The feature id for the '<em><b>Show Whitebox</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT__SHOW_WHITEBOX = UML_SHAPE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>UML Component</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_COMPONENT_FEATURE_COUNT = UML_SHAPE_FEATURE_COUNT + 1;
-
- /**
- * The meta object id for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLClassifierShapeImpl <em>UML Classifier Shape</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLClassifierShapeImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLClassifierShape()
- * @generated
- */
- int UML_CLASSIFIER_SHAPE = 7;
-
- /**
- * The feature id for the '<em><b>EAnnotations</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__EANNOTATIONS = UML_SHAPE__EANNOTATIONS;
-
- /**
- * The feature id for the '<em><b>Visible</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__VISIBLE = UML_SHAPE__VISIBLE;
-
- /**
- * The feature id for the '<em><b>Type</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__TYPE = UML_SHAPE__TYPE;
-
- /**
- * The feature id for the '<em><b>Mutable</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__MUTABLE = UML_SHAPE__MUTABLE;
-
- /**
- * The feature id for the '<em><b>Source Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__SOURCE_EDGES = UML_SHAPE__SOURCE_EDGES;
-
- /**
- * The feature id for the '<em><b>Target Edges</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__TARGET_EDGES = UML_SHAPE__TARGET_EDGES;
-
- /**
- * The feature id for the '<em><b>Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__CHILDREN = UML_SHAPE__PERSISTED_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Styles</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__STYLES = UML_SHAPE__STYLES;
-
- /**
- * The feature id for the '<em><b>Element</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__ELEMENT = UML_SHAPE__ELEMENT;
-
- /**
- * The feature id for the '<em><b>Diagram</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__DIAGRAM = UML_SHAPE__DIAGRAM;
-
- /**
- * The feature id for the '<em><b>Transient Children</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__TRANSIENT_CHILDREN = UML_SHAPE__TRANSIENT_CHILDREN;
-
- /**
- * The feature id for the '<em><b>Layout Constraint</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__LAYOUT_CONSTRAINT = UML_SHAPE__LAYOUT_CONSTRAINT;
-
- /**
- * The feature id for the '<em><b>Font Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__FONT_COLOR = UML_SHAPE__FONT_COLOR;
-
- /**
- * The feature id for the '<em><b>Font Name</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__FONT_NAME = UML_SHAPE__FONT_NAME;
-
- /**
- * The feature id for the '<em><b>Font Height</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__FONT_HEIGHT = UML_SHAPE__FONT_HEIGHT;
-
- /**
- * The feature id for the '<em><b>Bold</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__BOLD = UML_SHAPE__BOLD;
-
- /**
- * The feature id for the '<em><b>Italic</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__ITALIC = UML_SHAPE__ITALIC;
-
- /**
- * The feature id for the '<em><b>Underline</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__UNDERLINE = UML_SHAPE__UNDERLINE;
-
- /**
- * The feature id for the '<em><b>Strike Through</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__STRIKE_THROUGH = UML_SHAPE__STRIKE_THROUGH;
-
- /**
- * The feature id for the '<em><b>Description</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__DESCRIPTION = UML_SHAPE__DESCRIPTION;
-
- /**
- * The feature id for the '<em><b>Fill Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__FILL_COLOR = UML_SHAPE__FILL_COLOR;
-
- /**
- * The feature id for the '<em><b>Transparency</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__TRANSPARENCY = UML_SHAPE__TRANSPARENCY;
-
- /**
- * The feature id for the '<em><b>Gradient</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__GRADIENT = UML_SHAPE__GRADIENT;
-
- /**
- * The feature id for the '<em><b>Line Color</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__LINE_COLOR = UML_SHAPE__LINE_COLOR;
-
- /**
- * The feature id for the '<em><b>Line Width</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__LINE_WIDTH = UML_SHAPE__LINE_WIDTH;
-
- /**
- * The feature id for the '<em><b>Rounded Bendpoints Radius</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__ROUNDED_BENDPOINTS_RADIUS = UML_SHAPE__ROUNDED_BENDPOINTS_RADIUS;
-
- /**
- * The feature id for the '<em><b>Show Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__SHOW_STEREOTYPE = UML_SHAPE__SHOW_STEREOTYPE;
-
- /**
- * The feature id for the '<em><b>Show List Visibility</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__SHOW_LIST_VISIBILITY = UML_SHAPE__SHOW_LIST_VISIBILITY;
-
- /**
- * The feature id for the '<em><b>Show List Signature</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__SHOW_LIST_SIGNATURE = UML_SHAPE__SHOW_LIST_SIGNATURE;
-
- /**
- * The feature id for the '<em><b>Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__ALIGNMENT = UML_SHAPE__ALIGNMENT;
-
- /**
- * The feature id for the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT = UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
-
- /**
- * The feature id for the '<em><b>Show List Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__SHOW_LIST_STEREOTYPE = UML_SHAPE__SHOW_LIST_STEREOTYPE;
-
- /**
- * The feature id for the '<em><b>Use Classifier Shape</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE__USE_CLASSIFIER_SHAPE = UML_SHAPE_FEATURE_COUNT + 0;
-
- /**
- * The number of structural features of the '<em>UML Classifier Shape</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- * @ordered
- */
- int UML_CLASSIFIER_SHAPE_FEATURE_COUNT = UML_SHAPE_FEATURE_COUNT + 1;
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLDiagram <em>UML Diagram</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>UML Diagram</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLDiagram
- * @generated
- */
- EClass getUMLDiagram();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame <em>UML Frame</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>UML Frame</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame
- * @generated
- */
- EClass getUMLFrame();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment <em>UML Shape Compartment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>UML Shape Compartment</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment
- * @generated
- */
- EClass getUMLShapeCompartment();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment#isVerticalAlignment <em>Vertical Alignment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Vertical Alignment</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment#isVerticalAlignment()
- * @see #getUMLShapeCompartment()
- * @generated
- */
- EAttribute getUMLShapeCompartment_VerticalAlignment();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape <em>UML Shape</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>UML Shape</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape
- * @generated
- */
- EClass getUMLShape();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector <em>UML Connector</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>UML Connector</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector
- * @generated
- */
- EClass getUMLConnector();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView <em>UML View</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>UML View</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLView
- * @generated
- */
- EClass getUMLView();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowStereotype <em>Show Stereotype</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Show Stereotype</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowStereotype()
- * @see #getUMLView()
- * @generated
- */
- EAttribute getUMLView_ShowStereotype();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowListVisibility <em>Show List Visibility</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Show List Visibility</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowListVisibility()
- * @see #getUMLView()
- * @generated
- */
- EAttribute getUMLView_ShowListVisibility();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#isShowListSignature <em>Show List Signature</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Show List Signature</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#isShowListSignature()
- * @see #getUMLView()
- * @generated
- */
- EAttribute getUMLView_ShowListSignature();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getAlignment <em>Alignment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Alignment</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getAlignment()
- * @see #getUMLView()
- * @generated
- */
- EAttribute getUMLView_Alignment();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowStereotypeAttributeCompartment <em>Show Stereotype Attribute Compartment</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Show Stereotype Attribute Compartment</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowStereotypeAttributeCompartment()
- * @see #getUMLView()
- * @generated
- */
- EAttribute getUMLView_ShowStereotypeAttributeCompartment();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowListStereotype <em>Show List Stereotype</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Show List Stereotype</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowListStereotype()
- * @see #getUMLView()
- * @generated
- */
- EAttribute getUMLView_ShowListStereotype();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent <em>UML Component</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>UML Component</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent
- * @generated
- */
- EClass getUMLComponent();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent#isShowWhitebox <em>Show Whitebox</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Show Whitebox</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent#isShowWhitebox()
- * @see #getUMLComponent()
- * @generated
- */
- EAttribute getUMLComponent_ShowWhitebox();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape <em>UML Classifier Shape</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for class '<em>UML Classifier Shape</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape
- * @generated
- */
- EClass getUMLClassifierShape();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape#isUseClassifierShape <em>Use Classifier Shape</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the meta object for the attribute '<em>Use Classifier Shape</em>'.
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape#isUseClassifierShape()
- * @see #getUMLClassifierShape()
- * @generated
- */
- EAttribute getUMLClassifierShape_UseClassifierShape();
-
- /**
- * 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
- */
- PapyrusUMLNotationFactory getPapyrusUMLNotationFactory();
-
- /**
- * <!-- 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.migration.rsa.umlnotation.impl.UMLDiagramImpl <em>UML Diagram</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLDiagramImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLDiagram()
- * @generated
- */
- EClass UML_DIAGRAM = eINSTANCE.getUMLDiagram();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLFrameImpl <em>UML Frame</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLFrameImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLFrame()
- * @generated
- */
- EClass UML_FRAME = eINSTANCE.getUMLFrame();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl <em>UML Shape Compartment</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLShapeCompartment()
- * @generated
- */
- EClass UML_SHAPE_COMPARTMENT = eINSTANCE.getUMLShapeCompartment();
-
- /**
- * The meta object literal for the '<em><b>Vertical Alignment</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_SHAPE_COMPARTMENT__VERTICAL_ALIGNMENT = eINSTANCE.getUMLShapeCompartment_VerticalAlignment();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl <em>UML Shape</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLShape()
- * @generated
- */
- EClass UML_SHAPE = eINSTANCE.getUMLShape();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl <em>UML Connector</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLConnector()
- * @generated
- */
- EClass UML_CONNECTOR = eINSTANCE.getUMLConnector();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl <em>UML View</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLView()
- * @generated
- */
- EClass UML_VIEW = eINSTANCE.getUMLView();
-
- /**
- * The meta object literal for the '<em><b>Show Stereotype</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_VIEW__SHOW_STEREOTYPE = eINSTANCE.getUMLView_ShowStereotype();
-
- /**
- * The meta object literal for the '<em><b>Show List Visibility</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_VIEW__SHOW_LIST_VISIBILITY = eINSTANCE.getUMLView_ShowListVisibility();
-
- /**
- * The meta object literal for the '<em><b>Show List Signature</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_VIEW__SHOW_LIST_SIGNATURE = eINSTANCE.getUMLView_ShowListSignature();
-
- /**
- * The meta object literal for the '<em><b>Alignment</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_VIEW__ALIGNMENT = eINSTANCE.getUMLView_Alignment();
-
- /**
- * The meta object literal for the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT = eINSTANCE.getUMLView_ShowStereotypeAttributeCompartment();
-
- /**
- * The meta object literal for the '<em><b>Show List Stereotype</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_VIEW__SHOW_LIST_STEREOTYPE = eINSTANCE.getUMLView_ShowListStereotype();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLComponentImpl <em>UML Component</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLComponentImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLComponent()
- * @generated
- */
- EClass UML_COMPONENT = eINSTANCE.getUMLComponent();
-
- /**
- * The meta object literal for the '<em><b>Show Whitebox</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_COMPONENT__SHOW_WHITEBOX = eINSTANCE.getUMLComponent_ShowWhitebox();
-
- /**
- * The meta object literal for the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLClassifierShapeImpl <em>UML Classifier Shape</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLClassifierShapeImpl
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.impl.PapyrusUMLNotationPackageImpl#getUMLClassifierShape()
- * @generated
- */
- EClass UML_CLASSIFIER_SHAPE = eINSTANCE.getUMLClassifierShape();
-
- /**
- * The meta object literal for the '<em><b>Use Classifier Shape</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- EAttribute UML_CLASSIFIER_SHAPE__USE_CLASSIFIER_SHAPE = eINSTANCE.getUMLClassifierShape_UseClassifierShape();
-
- }
-
-} // PapyrusUMLNotationPackage
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLClassifierShape.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLClassifierShape.java
deleted file mode 100644
index 382b494f88b..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLClassifierShape.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UML Classifier Shape</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape#isUseClassifierShape <em>Use Classifier Shape</em>}</li>
- * </ul>
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLClassifierShape()
- * @model
- * @generated
- */
-public interface UMLClassifierShape extends UMLShape {
- /**
- * Returns the value of the '<em><b>Use Classifier Shape</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Use Classifier Shape</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Use Classifier Shape</em>' attribute.
- * @see #setUseClassifierShape(boolean)
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLClassifierShape_UseClassifierShape()
- * @model
- * @generated
- */
- boolean isUseClassifierShape();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape#isUseClassifierShape <em>Use Classifier Shape</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Use Classifier Shape</em>' attribute.
- * @see #isUseClassifierShape()
- * @generated
- */
- void setUseClassifierShape(boolean value);
-
-} // UMLClassifierShape
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLComponent.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLComponent.java
deleted file mode 100644
index 27e7ff406ae..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLComponent.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UML Component</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent#isShowWhitebox <em>Show Whitebox</em>}</li>
- * </ul>
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLComponent()
- * @model
- * @generated
- */
-public interface UMLComponent extends UMLShape {
-
- /**
- * Returns the value of the '<em><b>Show Whitebox</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Show Whitebox</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Show Whitebox</em>' attribute.
- * @see #setShowWhitebox(boolean)
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLComponent_ShowWhitebox()
- * @model
- * @generated
- */
- boolean isShowWhitebox();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent#isShowWhitebox <em>Show Whitebox</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Show Whitebox</em>' attribute.
- * @see #isShowWhitebox()
- * @generated
- */
- void setShowWhitebox(boolean value);
-} // UMLComponent
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLConnector.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLConnector.java
deleted file mode 100644
index cea2694fe07..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLConnector.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-import org.eclipse.gmf.runtime.notation.Connector;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UML Connector</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLConnector()
- * @model
- * @generated
- */
-public interface UMLConnector extends Connector, FontStyle, UMLView {
-} // UMLConnector
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLDiagram.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLDiagram.java
deleted file mode 100644
index 24f78227331..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLDiagram.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-import org.eclipse.gmf.runtime.notation.Diagram;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UML Diagram</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLDiagram()
- * @model
- * @generated
- */
-public interface UMLDiagram extends Diagram, UMLView {
-} // UMLDiagram
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLFrame.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLFrame.java
deleted file mode 100644
index d02b439e0bc..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLFrame.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UML Frame</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLFrame()
- * @model
- * @generated
- */
-public interface UMLFrame extends UMLShape {
-} // UMLFrame
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLShape.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLShape.java
deleted file mode 100644
index b5aa8bb6ee3..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLShape.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-import org.eclipse.gmf.runtime.notation.Shape;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UML Shape</b></em>'.
- * <!-- end-user-doc -->
- *
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLShape()
- * @model
- * @generated
- */
-public interface UMLShape extends Shape, UMLView {
-} // UMLShape
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLShapeCompartment.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLShapeCompartment.java
deleted file mode 100644
index edf0e68bc67..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLShapeCompartment.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-import org.eclipse.gmf.runtime.notation.Compartment;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UML Shape Compartment</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment#isVerticalAlignment <em>Vertical Alignment</em>}</li>
- * </ul>
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLShapeCompartment()
- * @model
- * @generated
- */
-public interface UMLShapeCompartment extends Compartment, UMLView {
-
- /**
- * Returns the value of the '<em><b>Vertical Alignment</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Vertical Alignment</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Vertical Alignment</em>' attribute.
- * @see #setVerticalAlignment(boolean)
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLShapeCompartment_VerticalAlignment()
- * @model default="true"
- * @generated
- */
- boolean isVerticalAlignment();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment#isVerticalAlignment <em>Vertical Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Vertical Alignment</em>' attribute.
- * @see #isVerticalAlignment()
- * @generated
- */
- void setVerticalAlignment(boolean value);
-} // UMLShapeCompartment
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLView.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLView.java
deleted file mode 100644
index 5f8194bad22..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/UMLView.java
+++ /dev/null
@@ -1,210 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.notation.View;
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>UML View</b></em>'.
- * <!-- end-user-doc -->
- *
- * <p>
- * The following features are supported:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowStereotype <em>Show Stereotype</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowListVisibility <em>Show List Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#isShowListSignature <em>Show List Signature</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getAlignment <em>Alignment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowStereotypeAttributeCompartment <em>Show Stereotype Attribute Compartment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowListStereotype <em>Show List Stereotype</em>}</li>
- * </ul>
- *
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLView()
- * @model abstract="true"
- * @generated
- */
-public interface UMLView extends EObject, View {
- /**
- * Returns the value of the '<em><b>Show Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Show Stereotype</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Show Stereotype</em>' attribute.
- * @see #setShowStereotype(String)
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLView_ShowStereotype()
- * @model
- * @generated
- */
- String getShowStereotype();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowStereotype <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Show Stereotype</em>' attribute.
- * @see #getShowStereotype()
- * @generated
- */
- void setShowStereotype(String value);
-
- /**
- * Returns the value of the '<em><b>Show List Visibility</b></em>' attribute.
- * The default value is <code>"None"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Show List 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>Show List Visibility</em>' attribute.
- * @see #setShowListVisibility(String)
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLView_ShowListVisibility()
- * @model default="None"
- * @generated
- */
- String getShowListVisibility();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowListVisibility <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Show List Visibility</em>' attribute.
- * @see #getShowListVisibility()
- * @generated
- */
- void setShowListVisibility(String value);
-
- /**
- * Returns the value of the '<em><b>Show List Signature</b></em>' attribute.
- * The default value is <code>"true"</code>.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Show List Signature</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Show List Signature</em>' attribute.
- * @see #setShowListSignature(boolean)
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLView_ShowListSignature()
- * @model default="true"
- * @generated
- */
- boolean isShowListSignature();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#isShowListSignature <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Show List Signature</em>' attribute.
- * @see #isShowListSignature()
- * @generated
- */
- void setShowListSignature(boolean value);
-
- /**
- * Returns the value of the '<em><b>Alignment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Alignment</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Alignment</em>' attribute.
- * @see #setAlignment(String)
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLView_Alignment()
- * @model
- * @generated
- */
- String getAlignment();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getAlignment <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Alignment</em>' attribute.
- * @see #getAlignment()
- * @generated
- */
- void setAlignment(String value);
-
- /**
- * Returns the value of the '<em><b>Show Stereotype Attribute Compartment</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Show Stereotype Attribute Compartment</em>' attribute isn't clear, there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Show Stereotype Attribute Compartment</em>' attribute.
- * @see #setShowStereotypeAttributeCompartment(String)
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLView_ShowStereotypeAttributeCompartment()
- * @model
- * @generated
- */
- String getShowStereotypeAttributeCompartment();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowStereotypeAttributeCompartment <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Show Stereotype Attribute Compartment</em>' attribute.
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- */
- void setShowStereotypeAttributeCompartment(String value);
-
- /**
- * Returns the value of the '<em><b>Show List Stereotype</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Show List Stereotype</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- *
- * @return the value of the '<em>Show List Stereotype</em>' attribute.
- * @see #setShowListStereotype(String)
- * @see org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage#getUMLView_ShowListStereotype()
- * @model
- * @generated
- */
- String getShowListStereotype();
-
- /**
- * Sets the value of the '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView#getShowListStereotype <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Show List Stereotype</em>' attribute.
- * @see #getShowListStereotype()
- * @generated
- */
- void setShowListStereotype(String value);
-
-} // UMLView
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/PapyrusUMLNotationFactoryImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/PapyrusUMLNotationFactoryImpl.java
deleted file mode 100644
index e7510abb127..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/PapyrusUMLNotationFactoryImpl.java
+++ /dev/null
@@ -1,202 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.impl;
-
-import org.eclipse.emf.ecore.EClass;
-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.migration.rsa.umlnotation.PapyrusUMLNotationFactory;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLDiagram;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class PapyrusUMLNotationFactoryImpl extends EFactoryImpl implements PapyrusUMLNotationFactory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public static PapyrusUMLNotationFactory init() {
- try {
- PapyrusUMLNotationFactory thePapyrusUMLNotationFactory = (PapyrusUMLNotationFactory) EPackage.Registry.INSTANCE.getEFactory(PapyrusUMLNotationPackage.eNS_URI);
- if (thePapyrusUMLNotationFactory != null) {
- return thePapyrusUMLNotationFactory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new PapyrusUMLNotationFactoryImpl();
- }
-
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PapyrusUMLNotationFactoryImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case PapyrusUMLNotationPackage.UML_DIAGRAM:
- return createUMLDiagram();
- case PapyrusUMLNotationPackage.UML_FRAME:
- return createUMLFrame();
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT:
- return createUMLShapeCompartment();
- case PapyrusUMLNotationPackage.UML_SHAPE:
- return createUMLShape();
- case PapyrusUMLNotationPackage.UML_CONNECTOR:
- return createUMLConnector();
- case PapyrusUMLNotationPackage.UML_COMPONENT:
- return createUMLComponent();
- case PapyrusUMLNotationPackage.UML_CLASSIFIER_SHAPE:
- return createUMLClassifierShape();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UMLDiagram createUMLDiagram() {
- UMLDiagramImpl umlDiagram = new UMLDiagramImpl();
- return umlDiagram;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UMLFrame createUMLFrame() {
- UMLFrameImpl umlFrame = new UMLFrameImpl();
- return umlFrame;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UMLShapeCompartment createUMLShapeCompartment() {
- UMLShapeCompartmentImpl umlShapeCompartment = new UMLShapeCompartmentImpl();
- return umlShapeCompartment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UMLShape createUMLShape() {
- UMLShapeImpl umlShape = new UMLShapeImpl();
- return umlShape;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UMLConnector createUMLConnector() {
- UMLConnectorImpl umlConnector = new UMLConnectorImpl();
- return umlConnector;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UMLComponent createUMLComponent() {
- UMLComponentImpl umlComponent = new UMLComponentImpl();
- return umlComponent;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public UMLClassifierShape createUMLClassifierShape() {
- UMLClassifierShapeImpl umlClassifierShape = new UMLClassifierShapeImpl();
- return umlClassifierShape;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public PapyrusUMLNotationPackage getPapyrusUMLNotationPackage() {
- return (PapyrusUMLNotationPackage) getEPackage();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static PapyrusUMLNotationPackage getPackage() {
- return PapyrusUMLNotationPackage.eINSTANCE;
- }
-
-} // PapyrusUMLNotationFactoryImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/PapyrusUMLNotationPackageImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/PapyrusUMLNotationPackageImpl.java
deleted file mode 100644
index abca4d1350f..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/PapyrusUMLNotationPackageImpl.java
+++ /dev/null
@@ -1,506 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.impl;
-
-import org.eclipse.emf.ecore.EAttribute;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.impl.EPackageImpl;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.impl.NotationPackageImpl;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationFactory;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLDiagram;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class PapyrusUMLNotationPackageImpl extends EPackageImpl implements PapyrusUMLNotationPackage {
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass umlDiagramEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass umlFrameEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass umlShapeCompartmentEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass umlShapeEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass umlConnectorEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass umlViewEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass umlComponentEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass umlClassifierShapeEClass = 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.migration.rsa.umlnotation.PapyrusUMLNotationPackage#eNS_URI
- * @see #init()
- * @generated
- */
- private PapyrusUMLNotationPackageImpl() {
- super(eNS_URI, PapyrusUMLNotationFactory.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 PapyrusUMLNotationPackage#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 PapyrusUMLNotationPackage init() {
- if (isInited) {
- return (PapyrusUMLNotationPackage) EPackage.Registry.INSTANCE.getEPackage(PapyrusUMLNotationPackage.eNS_URI);
- }
-
- // Obtain or create and register package
- PapyrusUMLNotationPackageImpl thePapyrusUMLNotationPackage = (PapyrusUMLNotationPackageImpl) (EPackage.Registry.INSTANCE.get(eNS_URI) instanceof PapyrusUMLNotationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI)
- : new PapyrusUMLNotationPackageImpl());
-
- isInited = true;
-
- // Obtain or create and register interdependencies
- NotationPackageImpl theNotationPackage = (NotationPackageImpl) (EPackage.Registry.INSTANCE.getEPackage(NotationPackage.eNS_URI) instanceof NotationPackageImpl
- ? EPackage.Registry.INSTANCE.getEPackage(NotationPackage.eNS_URI) : NotationPackage.eINSTANCE);
-
- // Create package meta-data objects
- thePapyrusUMLNotationPackage.createPackageContents();
- theNotationPackage.createPackageContents();
-
- // Initialize created meta-data
- thePapyrusUMLNotationPackage.initializePackageContents();
- theNotationPackage.initializePackageContents();
-
- // Mark meta-data to indicate it can't be changed
- thePapyrusUMLNotationPackage.freeze();
-
-
- // Update the registry and return the package
- EPackage.Registry.INSTANCE.put(PapyrusUMLNotationPackage.eNS_URI, thePapyrusUMLNotationPackage);
- return thePapyrusUMLNotationPackage;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getUMLDiagram() {
- return umlDiagramEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getUMLFrame() {
- return umlFrameEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getUMLShapeCompartment() {
- return umlShapeCompartmentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getUMLShapeCompartment_VerticalAlignment() {
- return (EAttribute) umlShapeCompartmentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getUMLShape() {
- return umlShapeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getUMLConnector() {
- return umlConnectorEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getUMLView() {
- return umlViewEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getUMLView_ShowStereotype() {
- return (EAttribute) umlViewEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getUMLView_ShowListVisibility() {
- return (EAttribute) umlViewEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getUMLView_ShowListSignature() {
- return (EAttribute) umlViewEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getUMLView_Alignment() {
- return (EAttribute) umlViewEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getUMLView_ShowStereotypeAttributeCompartment() {
- return (EAttribute) umlViewEClass.getEStructuralFeatures().get(4);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getUMLView_ShowListStereotype() {
- return (EAttribute) umlViewEClass.getEStructuralFeatures().get(5);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getUMLComponent() {
- return umlComponentEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getUMLComponent_ShowWhitebox() {
- return (EAttribute) umlComponentEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EClass getUMLClassifierShape() {
- return umlClassifierShapeEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EAttribute getUMLClassifierShape_UseClassifierShape() {
- return (EAttribute) umlClassifierShapeEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public PapyrusUMLNotationFactory getPapyrusUMLNotationFactory() {
- return (PapyrusUMLNotationFactory) 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
- umlDiagramEClass = createEClass(UML_DIAGRAM);
-
- umlFrameEClass = createEClass(UML_FRAME);
-
- umlShapeCompartmentEClass = createEClass(UML_SHAPE_COMPARTMENT);
- createEAttribute(umlShapeCompartmentEClass, UML_SHAPE_COMPARTMENT__VERTICAL_ALIGNMENT);
-
- umlShapeEClass = createEClass(UML_SHAPE);
-
- umlConnectorEClass = createEClass(UML_CONNECTOR);
-
- umlViewEClass = createEClass(UML_VIEW);
- createEAttribute(umlViewEClass, UML_VIEW__SHOW_STEREOTYPE);
- createEAttribute(umlViewEClass, UML_VIEW__SHOW_LIST_VISIBILITY);
- createEAttribute(umlViewEClass, UML_VIEW__SHOW_LIST_SIGNATURE);
- createEAttribute(umlViewEClass, UML_VIEW__ALIGNMENT);
- createEAttribute(umlViewEClass, UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT);
- createEAttribute(umlViewEClass, UML_VIEW__SHOW_LIST_STEREOTYPE);
-
- umlComponentEClass = createEClass(UML_COMPONENT);
- createEAttribute(umlComponentEClass, UML_COMPONENT__SHOW_WHITEBOX);
-
- umlClassifierShapeEClass = createEClass(UML_CLASSIFIER_SHAPE);
- createEAttribute(umlClassifierShapeEClass, UML_CLASSIFIER_SHAPE__USE_CLASSIFIER_SHAPE);
- }
-
- /**
- * <!-- 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
- NotationPackage theNotationPackage = (NotationPackage) EPackage.Registry.INSTANCE.getEPackage(NotationPackage.eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- umlDiagramEClass.getESuperTypes().add(theNotationPackage.getDiagram());
- umlDiagramEClass.getESuperTypes().add(this.getUMLView());
- umlFrameEClass.getESuperTypes().add(this.getUMLShape());
- umlShapeCompartmentEClass.getESuperTypes().add(theNotationPackage.getCompartment());
- umlShapeCompartmentEClass.getESuperTypes().add(this.getUMLView());
- umlShapeEClass.getESuperTypes().add(theNotationPackage.getShape());
- umlShapeEClass.getESuperTypes().add(this.getUMLView());
- umlConnectorEClass.getESuperTypes().add(theNotationPackage.getConnector());
- umlConnectorEClass.getESuperTypes().add(theNotationPackage.getFontStyle());
- umlConnectorEClass.getESuperTypes().add(this.getUMLView());
- umlViewEClass.getESuperTypes().add(theNotationPackage.getView());
- umlComponentEClass.getESuperTypes().add(this.getUMLShape());
- umlClassifierShapeEClass.getESuperTypes().add(this.getUMLShape());
-
- // Initialize classes, features, and operations; add parameters
- initEClass(umlDiagramEClass, UMLDiagram.class, "UMLDiagram", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(umlFrameEClass, UMLFrame.class, "UMLFrame", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(umlShapeCompartmentEClass, UMLShapeCompartment.class, "UMLShapeCompartment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getUMLShapeCompartment_VerticalAlignment(), ecorePackage.getEBoolean(), "verticalAlignment", "true", 0, 1, UMLShapeCompartment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
-
- initEClass(umlShapeEClass, UMLShape.class, "UMLShape", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(umlConnectorEClass, UMLConnector.class, "UMLConnector", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
-
- initEClass(umlViewEClass, UMLView.class, "UMLView", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getUMLView_ShowStereotype(), ecorePackage.getEString(), "showStereotype", null, 0, 1, UMLView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getUMLView_ShowListVisibility(), ecorePackage.getEString(), "showListVisibility", "None", 0, 1, UMLView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getUMLView_ShowListSignature(), ecorePackage.getEBoolean(), "showListSignature", "true", 0, 1, UMLView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getUMLView_Alignment(), ecorePackage.getEString(), "alignment", null, 0, 1, UMLView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getUMLView_ShowStereotypeAttributeCompartment(), ecorePackage.getEString(), "showStereotypeAttributeCompartment", null, 0, 1, UMLView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
- IS_ORDERED);
- initEAttribute(getUMLView_ShowListStereotype(), ecorePackage.getEString(), "showListStereotype", null, 0, 1, UMLView.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(umlComponentEClass, UMLComponent.class, "UMLComponent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getUMLComponent_ShowWhitebox(), ecorePackage.getEBoolean(), "showWhitebox", null, 0, 1, UMLComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- initEClass(umlClassifierShapeEClass, UMLClassifierShape.class, "UMLClassifierShape", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getUMLClassifierShape_UseClassifierShape(), ecorePackage.getEBoolean(), "useClassifierShape", null, 0, 1, UMLClassifierShape.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} // PapyrusUMLNotationPackageImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLClassifierShapeImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLClassifierShapeImpl.java
deleted file mode 100644
index d2b52089e0b..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLClassifierShapeImpl.java
+++ /dev/null
@@ -1,185 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.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.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UML Classifier Shape</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLClassifierShapeImpl#isUseClassifierShape <em>Use Classifier Shape</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class UMLClassifierShapeImpl extends UMLShapeImpl implements UMLClassifierShape {
-
- /**
- * The default value of the '{@link #isUseClassifierShape() <em>Use Classifier Shape</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isUseClassifierShape()
- * @generated
- * @ordered
- */
- protected static final boolean USE_CLASSIFIER_SHAPE_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isUseClassifierShape() <em>Use Classifier Shape</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isUseClassifierShape()
- * @generated
- * @ordered
- */
- protected boolean useClassifierShape = USE_CLASSIFIER_SHAPE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UMLClassifierShapeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PapyrusUMLNotationPackage.Literals.UML_CLASSIFIER_SHAPE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isUseClassifierShape() {
- return useClassifierShape;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setUseClassifierShape(boolean newUseClassifierShape) {
- boolean oldUseClassifierShape = useClassifierShape;
- useClassifierShape = newUseClassifierShape;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CLASSIFIER_SHAPE__USE_CLASSIFIER_SHAPE, oldUseClassifierShape, useClassifierShape));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_CLASSIFIER_SHAPE__USE_CLASSIFIER_SHAPE:
- return isUseClassifierShape();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_CLASSIFIER_SHAPE__USE_CLASSIFIER_SHAPE:
- setUseClassifierShape((Boolean) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_CLASSIFIER_SHAPE__USE_CLASSIFIER_SHAPE:
- setUseClassifierShape(USE_CLASSIFIER_SHAPE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_CLASSIFIER_SHAPE__USE_CLASSIFIER_SHAPE:
- return useClassifierShape != USE_CLASSIFIER_SHAPE_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(" (useClassifierShape: ");
- result.append(useClassifierShape);
- result.append(')');
- return result.toString();
- }
-
-} // UMLClassifierShapeImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLComponentImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLComponentImpl.java
deleted file mode 100644
index 3e263cfda06..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLComponentImpl.java
+++ /dev/null
@@ -1,184 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.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.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UML Component</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLComponentImpl#isShowWhitebox <em>Show Whitebox</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class UMLComponentImpl extends UMLShapeImpl implements UMLComponent {
-
- /**
- * The default value of the '{@link #isShowWhitebox() <em>Show Whitebox</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowWhitebox()
- * @generated
- * @ordered
- */
- protected static final boolean SHOW_WHITEBOX_EDEFAULT = false;
- /**
- * The cached value of the '{@link #isShowWhitebox() <em>Show Whitebox</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowWhitebox()
- * @generated
- * @ordered
- */
- protected boolean showWhitebox = SHOW_WHITEBOX_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UMLComponentImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PapyrusUMLNotationPackage.Literals.UML_COMPONENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isShowWhitebox() {
- return showWhitebox;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowWhitebox(boolean newShowWhitebox) {
- boolean oldShowWhitebox = showWhitebox;
- showWhitebox = newShowWhitebox;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_COMPONENT__SHOW_WHITEBOX, oldShowWhitebox, showWhitebox));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_COMPONENT__SHOW_WHITEBOX:
- return isShowWhitebox();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_COMPONENT__SHOW_WHITEBOX:
- setShowWhitebox((Boolean) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_COMPONENT__SHOW_WHITEBOX:
- setShowWhitebox(SHOW_WHITEBOX_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_COMPONENT__SHOW_WHITEBOX:
- return showWhitebox != SHOW_WHITEBOX_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(" (showWhitebox: ");
- result.append(showWhitebox);
- result.append(')');
- return result.toString();
- }
-
-} // UMLComponentImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLConnectorImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLConnectorImpl.java
deleted file mode 100644
index 8f51cb34052..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLConnectorImpl.java
+++ /dev/null
@@ -1,1019 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.gmf.runtime.notation.FontStyle;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.impl.ConnectorImpl;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UML Connector</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#getFontColor <em>Font Color</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#getFontName <em>Font Name</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#getFontHeight <em>Font Height</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#isBold <em>Bold</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#isItalic <em>Italic</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#isUnderline <em>Underline</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#isStrikeThrough <em>Strike Through</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#getShowStereotype <em>Show Stereotype</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#getShowListVisibility <em>Show List Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#isShowListSignature <em>Show List Signature</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#getAlignment <em>Alignment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#getShowStereotypeAttributeCompartment <em>Show Stereotype Attribute Compartment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLConnectorImpl#getShowListStereotype <em>Show List Stereotype</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class UMLConnectorImpl extends ConnectorImpl implements UMLConnector {
-
- /**
- * The default value of the '{@link #getFontColor() <em>Font Color</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFontColor()
- * @generated
- * @ordered
- */
- protected static final int FONT_COLOR_EDEFAULT = 0;
-
- /**
- * The cached value of the '{@link #getFontColor() <em>Font Color</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFontColor()
- * @generated
- * @ordered
- */
- protected int fontColor = FONT_COLOR_EDEFAULT;
-
- /**
- * The default value of the '{@link #getFontName() <em>Font Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFontName()
- * @generated
- * @ordered
- */
- protected static final String FONT_NAME_EDEFAULT = "Tahoma";
-
- /**
- * The cached value of the '{@link #getFontName() <em>Font Name</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFontName()
- * @generated
- * @ordered
- */
- protected String fontName = FONT_NAME_EDEFAULT;
-
- /**
- * The default value of the '{@link #getFontHeight() <em>Font Height</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFontHeight()
- * @generated
- * @ordered
- */
- protected static final int FONT_HEIGHT_EDEFAULT = 9;
-
- /**
- * The cached value of the '{@link #getFontHeight() <em>Font Height</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getFontHeight()
- * @generated
- * @ordered
- */
- protected int fontHeight = FONT_HEIGHT_EDEFAULT;
-
- /**
- * The default value of the '{@link #isBold() <em>Bold</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isBold()
- * @generated
- * @ordered
- */
- protected static final boolean BOLD_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isBold() <em>Bold</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isBold()
- * @generated
- * @ordered
- */
- protected boolean bold = BOLD_EDEFAULT;
-
- /**
- * The default value of the '{@link #isItalic() <em>Italic</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isItalic()
- * @generated
- * @ordered
- */
- protected static final boolean ITALIC_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isItalic() <em>Italic</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isItalic()
- * @generated
- * @ordered
- */
- protected boolean italic = ITALIC_EDEFAULT;
-
- /**
- * The default value of the '{@link #isUnderline() <em>Underline</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isUnderline()
- * @generated
- * @ordered
- */
- protected static final boolean UNDERLINE_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isUnderline() <em>Underline</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isUnderline()
- * @generated
- * @ordered
- */
- protected boolean underline = UNDERLINE_EDEFAULT;
-
- /**
- * The default value of the '{@link #isStrikeThrough() <em>Strike Through</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isStrikeThrough()
- * @generated
- * @ordered
- */
- protected static final boolean STRIKE_THROUGH_EDEFAULT = false;
-
- /**
- * The cached value of the '{@link #isStrikeThrough() <em>Strike Through</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isStrikeThrough()
- * @generated
- * @ordered
- */
- protected boolean strikeThrough = STRIKE_THROUGH_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected String showStereotype = SHOW_STEREOTYPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_VISIBILITY_EDEFAULT = "None";
-
- /**
- * The cached value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected String showListVisibility = SHOW_LIST_VISIBILITY_EDEFAULT;
-
- /**
- * The default value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected static final boolean SHOW_LIST_SIGNATURE_EDEFAULT = true;
-
- /**
- * The cached value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected boolean showListSignature = SHOW_LIST_SIGNATURE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected static final String ALIGNMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected String alignment = ALIGNMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected String showStereotypeAttributeCompartment = SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected String showListStereotype = SHOW_LIST_STEREOTYPE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UMLConnectorImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PapyrusUMLNotationPackage.Literals.UML_CONNECTOR;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int getFontColor() {
- return fontColor;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setFontColor(int newFontColor) {
- int oldFontColor = fontColor;
- fontColor = newFontColor;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_COLOR, oldFontColor, fontColor));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getFontName() {
- return fontName;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setFontName(String newFontName) {
- String oldFontName = fontName;
- fontName = newFontName;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_NAME, oldFontName, fontName));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int getFontHeight() {
- return fontHeight;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setFontHeight(int newFontHeight) {
- int oldFontHeight = fontHeight;
- fontHeight = newFontHeight;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_HEIGHT, oldFontHeight, fontHeight));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isBold() {
- return bold;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setBold(boolean newBold) {
- boolean oldBold = bold;
- bold = newBold;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__BOLD, oldBold, bold));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isItalic() {
- return italic;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setItalic(boolean newItalic) {
- boolean oldItalic = italic;
- italic = newItalic;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__ITALIC, oldItalic, italic));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isUnderline() {
- return underline;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setUnderline(boolean newUnderline) {
- boolean oldUnderline = underline;
- underline = newUnderline;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__UNDERLINE, oldUnderline, underline));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isStrikeThrough() {
- return strikeThrough;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setStrikeThrough(boolean newStrikeThrough) {
- boolean oldStrikeThrough = strikeThrough;
- strikeThrough = newStrikeThrough;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__STRIKE_THROUGH, oldStrikeThrough, strikeThrough));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotype() {
- return showStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotype(String newShowStereotype) {
- String oldShowStereotype = showStereotype;
- showStereotype = newShowStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE, oldShowStereotype, showStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListVisibility() {
- return showListVisibility;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListVisibility(String newShowListVisibility) {
- String oldShowListVisibility = showListVisibility;
- showListVisibility = newShowListVisibility;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_VISIBILITY, oldShowListVisibility, showListVisibility));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isShowListSignature() {
- return showListSignature;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListSignature(boolean newShowListSignature) {
- boolean oldShowListSignature = showListSignature;
- showListSignature = newShowListSignature;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_SIGNATURE, oldShowListSignature, showListSignature));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getAlignment() {
- return alignment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setAlignment(String newAlignment) {
- String oldAlignment = alignment;
- alignment = newAlignment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__ALIGNMENT, oldAlignment, alignment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotypeAttributeCompartment() {
- return showStereotypeAttributeCompartment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotypeAttributeCompartment(String newShowStereotypeAttributeCompartment) {
- String oldShowStereotypeAttributeCompartment = showStereotypeAttributeCompartment;
- showStereotypeAttributeCompartment = newShowStereotypeAttributeCompartment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT, oldShowStereotypeAttributeCompartment, showStereotypeAttributeCompartment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListStereotype() {
- return showListStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListStereotype(String newShowListStereotype) {
- String oldShowListStereotype = showListStereotype;
- showListStereotype = newShowListStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_STEREOTYPE, oldShowListStereotype, showListStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_COLOR:
- return getFontColor();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_NAME:
- return getFontName();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_HEIGHT:
- return getFontHeight();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__BOLD:
- return isBold();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ITALIC:
- return isItalic();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__UNDERLINE:
- return isUnderline();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__STRIKE_THROUGH:
- return isStrikeThrough();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE:
- return getShowStereotype();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_VISIBILITY:
- return getShowListVisibility();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_SIGNATURE:
- return isShowListSignature();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ALIGNMENT:
- return getAlignment();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return getShowStereotypeAttributeCompartment();
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_STEREOTYPE:
- return getShowListStereotype();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_COLOR:
- setFontColor((Integer) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_NAME:
- setFontName((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_HEIGHT:
- setFontHeight((Integer) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__BOLD:
- setBold((Boolean) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ITALIC:
- setItalic((Boolean) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__UNDERLINE:
- setUnderline((Boolean) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__STRIKE_THROUGH:
- setStrikeThrough((Boolean) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE:
- setShowStereotype((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_VISIBILITY:
- setShowListVisibility((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_SIGNATURE:
- setShowListSignature((Boolean) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ALIGNMENT:
- setAlignment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_STEREOTYPE:
- setShowListStereotype((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_COLOR:
- setFontColor(FONT_COLOR_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_NAME:
- setFontName(FONT_NAME_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_HEIGHT:
- setFontHeight(FONT_HEIGHT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__BOLD:
- setBold(BOLD_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ITALIC:
- setItalic(ITALIC_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__UNDERLINE:
- setUnderline(UNDERLINE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__STRIKE_THROUGH:
- setStrikeThrough(STRIKE_THROUGH_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE:
- setShowStereotype(SHOW_STEREOTYPE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_VISIBILITY:
- setShowListVisibility(SHOW_LIST_VISIBILITY_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_SIGNATURE:
- setShowListSignature(SHOW_LIST_SIGNATURE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ALIGNMENT:
- setAlignment(ALIGNMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment(SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_STEREOTYPE:
- setShowListStereotype(SHOW_LIST_STEREOTYPE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_COLOR:
- return fontColor != FONT_COLOR_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_NAME:
- return FONT_NAME_EDEFAULT == null ? fontName != null : !FONT_NAME_EDEFAULT.equals(fontName);
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_HEIGHT:
- return fontHeight != FONT_HEIGHT_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__BOLD:
- return bold != BOLD_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ITALIC:
- return italic != ITALIC_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__UNDERLINE:
- return underline != UNDERLINE_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__STRIKE_THROUGH:
- return strikeThrough != STRIKE_THROUGH_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE:
- return SHOW_STEREOTYPE_EDEFAULT == null ? showStereotype != null : !SHOW_STEREOTYPE_EDEFAULT.equals(showStereotype);
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_VISIBILITY:
- return SHOW_LIST_VISIBILITY_EDEFAULT == null ? showListVisibility != null : !SHOW_LIST_VISIBILITY_EDEFAULT.equals(showListVisibility);
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_SIGNATURE:
- return showListSignature != SHOW_LIST_SIGNATURE_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ALIGNMENT:
- return ALIGNMENT_EDEFAULT == null ? alignment != null : !ALIGNMENT_EDEFAULT.equals(alignment);
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT == null ? showStereotypeAttributeCompartment != null : !SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT.equals(showStereotypeAttributeCompartment);
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_STEREOTYPE:
- return SHOW_LIST_STEREOTYPE_EDEFAULT == null ? showListStereotype != null : !SHOW_LIST_STEREOTYPE_EDEFAULT.equals(showListStereotype);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) {
- if (baseClass == FontStyle.class) {
- switch (derivedFeatureID) {
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_COLOR:
- return NotationPackage.FONT_STYLE__FONT_COLOR;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_NAME:
- return NotationPackage.FONT_STYLE__FONT_NAME;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_HEIGHT:
- return NotationPackage.FONT_STYLE__FONT_HEIGHT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__BOLD:
- return NotationPackage.FONT_STYLE__BOLD;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ITALIC:
- return NotationPackage.FONT_STYLE__ITALIC;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__UNDERLINE:
- return NotationPackage.FONT_STYLE__UNDERLINE;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__STRIKE_THROUGH:
- return NotationPackage.FONT_STYLE__STRIKE_THROUGH;
- default:
- return -1;
- }
- }
- if (baseClass == UMLView.class) {
- switch (derivedFeatureID) {
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_VISIBILITY:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_SIGNATURE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__ALIGNMENT:
- return PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
- case PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE;
- default:
- return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) {
- if (baseClass == FontStyle.class) {
- switch (baseFeatureID) {
- case NotationPackage.FONT_STYLE__FONT_COLOR:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_COLOR;
- case NotationPackage.FONT_STYLE__FONT_NAME:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_NAME;
- case NotationPackage.FONT_STYLE__FONT_HEIGHT:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__FONT_HEIGHT;
- case NotationPackage.FONT_STYLE__BOLD:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__BOLD;
- case NotationPackage.FONT_STYLE__ITALIC:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__ITALIC;
- case NotationPackage.FONT_STYLE__UNDERLINE:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__UNDERLINE;
- case NotationPackage.FONT_STYLE__STRIKE_THROUGH:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__STRIKE_THROUGH;
- default:
- return -1;
- }
- }
- if (baseClass == UMLView.class) {
- switch (baseFeatureID) {
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_VISIBILITY;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_SIGNATURE;
- case PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__ALIGNMENT;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_CONNECTOR__SHOW_LIST_STEREOTYPE;
- default:
- return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (fontColor: ");
- result.append(fontColor);
- result.append(", fontName: ");
- result.append(fontName);
- result.append(", fontHeight: ");
- result.append(fontHeight);
- result.append(", bold: ");
- result.append(bold);
- result.append(", italic: ");
- result.append(italic);
- result.append(", underline: ");
- result.append(underline);
- result.append(", strikeThrough: ");
- result.append(strikeThrough);
- result.append(", showStereotype: ");
- result.append(showStereotype);
- result.append(", showListVisibility: ");
- result.append(showListVisibility);
- result.append(", showListSignature: ");
- result.append(showListSignature);
- result.append(", alignment: ");
- result.append(alignment);
- result.append(", showStereotypeAttributeCompartment: ");
- result.append(showStereotypeAttributeCompartment);
- result.append(", showListStereotype: ");
- result.append(showListStereotype);
- result.append(')');
- return result.toString();
- }
-
-} // UMLConnectorImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLDiagramImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLDiagramImpl.java
deleted file mode 100644
index 0019390226e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLDiagramImpl.java
+++ /dev/null
@@ -1,550 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.gmf.runtime.notation.impl.DiagramImpl;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLDiagram;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UML Diagram</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLDiagramImpl#getShowStereotype <em>Show Stereotype</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLDiagramImpl#getShowListVisibility <em>Show List Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLDiagramImpl#isShowListSignature <em>Show List Signature</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLDiagramImpl#getAlignment <em>Alignment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLDiagramImpl#getShowStereotypeAttributeCompartment <em>Show Stereotype Attribute Compartment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLDiagramImpl#getShowListStereotype <em>Show List Stereotype</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class UMLDiagramImpl extends DiagramImpl implements UMLDiagram {
-
- /**
- * The default value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected String showStereotype = SHOW_STEREOTYPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_VISIBILITY_EDEFAULT = "None";
-
- /**
- * The cached value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected String showListVisibility = SHOW_LIST_VISIBILITY_EDEFAULT;
-
- /**
- * The default value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected static final boolean SHOW_LIST_SIGNATURE_EDEFAULT = true;
-
- /**
- * The cached value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected boolean showListSignature = SHOW_LIST_SIGNATURE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected static final String ALIGNMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected String alignment = ALIGNMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected String showStereotypeAttributeCompartment = SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected String showListStereotype = SHOW_LIST_STEREOTYPE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UMLDiagramImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PapyrusUMLNotationPackage.Literals.UML_DIAGRAM;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotype() {
- return showStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotype(String newShowStereotype) {
- String oldShowStereotype = showStereotype;
- showStereotype = newShowStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE, oldShowStereotype, showStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListVisibility() {
- return showListVisibility;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListVisibility(String newShowListVisibility) {
- String oldShowListVisibility = showListVisibility;
- showListVisibility = newShowListVisibility;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_VISIBILITY, oldShowListVisibility, showListVisibility));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isShowListSignature() {
- return showListSignature;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListSignature(boolean newShowListSignature) {
- boolean oldShowListSignature = showListSignature;
- showListSignature = newShowListSignature;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_SIGNATURE, oldShowListSignature, showListSignature));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getAlignment() {
- return alignment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setAlignment(String newAlignment) {
- String oldAlignment = alignment;
- alignment = newAlignment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_DIAGRAM__ALIGNMENT, oldAlignment, alignment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotypeAttributeCompartment() {
- return showStereotypeAttributeCompartment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotypeAttributeCompartment(String newShowStereotypeAttributeCompartment) {
- String oldShowStereotypeAttributeCompartment = showStereotypeAttributeCompartment;
- showStereotypeAttributeCompartment = newShowStereotypeAttributeCompartment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT, oldShowStereotypeAttributeCompartment, showStereotypeAttributeCompartment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListStereotype() {
- return showListStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListStereotype(String newShowListStereotype) {
- String oldShowListStereotype = showListStereotype;
- showListStereotype = newShowListStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_STEREOTYPE, oldShowListStereotype, showListStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE:
- return getShowStereotype();
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_VISIBILITY:
- return getShowListVisibility();
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_SIGNATURE:
- return isShowListSignature();
- case PapyrusUMLNotationPackage.UML_DIAGRAM__ALIGNMENT:
- return getAlignment();
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return getShowStereotypeAttributeCompartment();
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_STEREOTYPE:
- return getShowListStereotype();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE:
- setShowStereotype((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_VISIBILITY:
- setShowListVisibility((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_SIGNATURE:
- setShowListSignature((Boolean) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__ALIGNMENT:
- setAlignment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_STEREOTYPE:
- setShowListStereotype((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE:
- setShowStereotype(SHOW_STEREOTYPE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_VISIBILITY:
- setShowListVisibility(SHOW_LIST_VISIBILITY_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_SIGNATURE:
- setShowListSignature(SHOW_LIST_SIGNATURE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__ALIGNMENT:
- setAlignment(ALIGNMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment(SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_STEREOTYPE:
- setShowListStereotype(SHOW_LIST_STEREOTYPE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE:
- return SHOW_STEREOTYPE_EDEFAULT == null ? showStereotype != null : !SHOW_STEREOTYPE_EDEFAULT.equals(showStereotype);
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_VISIBILITY:
- return SHOW_LIST_VISIBILITY_EDEFAULT == null ? showListVisibility != null : !SHOW_LIST_VISIBILITY_EDEFAULT.equals(showListVisibility);
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_SIGNATURE:
- return showListSignature != SHOW_LIST_SIGNATURE_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__ALIGNMENT:
- return ALIGNMENT_EDEFAULT == null ? alignment != null : !ALIGNMENT_EDEFAULT.equals(alignment);
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT == null ? showStereotypeAttributeCompartment != null : !SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT.equals(showStereotypeAttributeCompartment);
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_STEREOTYPE:
- return SHOW_LIST_STEREOTYPE_EDEFAULT == null ? showListStereotype != null : !SHOW_LIST_STEREOTYPE_EDEFAULT.equals(showListStereotype);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eBaseStructuralFeatureID(int derivedFeatureID, Class<?> baseClass) {
- if (baseClass == UMLView.class) {
- switch (derivedFeatureID) {
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_VISIBILITY:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_SIGNATURE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__ALIGNMENT:
- return PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
- case PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE;
- default:
- return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eDerivedStructuralFeatureID(int baseFeatureID, Class<?> baseClass) {
- if (baseClass == UMLView.class) {
- switch (baseFeatureID) {
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY:
- return PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_VISIBILITY;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE:
- return PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_SIGNATURE;
- case PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT:
- return PapyrusUMLNotationPackage.UML_DIAGRAM__ALIGNMENT;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_DIAGRAM__SHOW_LIST_STEREOTYPE;
- default:
- return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (showStereotype: ");
- result.append(showStereotype);
- result.append(", showListVisibility: ");
- result.append(showListVisibility);
- result.append(", showListSignature: ");
- result.append(showListSignature);
- result.append(", alignment: ");
- result.append(alignment);
- result.append(", showStereotypeAttributeCompartment: ");
- result.append(showStereotypeAttributeCompartment);
- result.append(", showListStereotype: ");
- result.append(showListStereotype);
- result.append(')');
- return result.toString();
- }
-
-} // UMLDiagramImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLFrameImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLFrameImpl.java
deleted file mode 100644
index 401e14138ec..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLFrameImpl.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UML Frame</b></em>'.
- * <!-- end-user-doc -->
- *
- * @generated
- */
-public class UMLFrameImpl extends UMLShapeImpl implements UMLFrame {
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UMLFrameImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PapyrusUMLNotationPackage.Literals.UML_FRAME;
- }
-
-} // UMLFrameImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLShapeCompartmentImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLShapeCompartmentImpl.java
deleted file mode 100644
index 954d0dc3a65..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLShapeCompartmentImpl.java
+++ /dev/null
@@ -1,611 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.gmf.runtime.notation.impl.CompartmentImpl;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UML Shape Compartment</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl#getShowStereotype <em>Show Stereotype</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl#getShowListVisibility <em>Show List Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl#isShowListSignature <em>Show List Signature</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl#getAlignment <em>Alignment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl#getShowStereotypeAttributeCompartment <em>Show Stereotype Attribute Compartment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl#getShowListStereotype <em>Show List Stereotype</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeCompartmentImpl#isVerticalAlignment <em>Vertical Alignment</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class UMLShapeCompartmentImpl extends CompartmentImpl implements UMLShapeCompartment {
-
- /**
- * The default value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected String showStereotype = SHOW_STEREOTYPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_VISIBILITY_EDEFAULT = "None";
-
- /**
- * The cached value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected String showListVisibility = SHOW_LIST_VISIBILITY_EDEFAULT;
-
- /**
- * The default value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected static final boolean SHOW_LIST_SIGNATURE_EDEFAULT = true;
-
- /**
- * The cached value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected boolean showListSignature = SHOW_LIST_SIGNATURE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected static final String ALIGNMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected String alignment = ALIGNMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected String showStereotypeAttributeCompartment = SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected String showListStereotype = SHOW_LIST_STEREOTYPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #isVerticalAlignment() <em>Vertical Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isVerticalAlignment()
- * @generated
- * @ordered
- */
- protected static final boolean VERTICAL_ALIGNMENT_EDEFAULT = true;
-
- /**
- * The cached value of the '{@link #isVerticalAlignment() <em>Vertical Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isVerticalAlignment()
- * @generated
- * @ordered
- */
- protected boolean verticalAlignment = VERTICAL_ALIGNMENT_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UMLShapeCompartmentImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PapyrusUMLNotationPackage.Literals.UML_SHAPE_COMPARTMENT;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotype() {
- return showStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotype(String newShowStereotype) {
- String oldShowStereotype = showStereotype;
- showStereotype = newShowStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE, oldShowStereotype, showStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListVisibility() {
- return showListVisibility;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListVisibility(String newShowListVisibility) {
- String oldShowListVisibility = showListVisibility;
- showListVisibility = newShowListVisibility;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_VISIBILITY, oldShowListVisibility, showListVisibility));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isShowListSignature() {
- return showListSignature;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListSignature(boolean newShowListSignature) {
- boolean oldShowListSignature = showListSignature;
- showListSignature = newShowListSignature;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_SIGNATURE, oldShowListSignature, showListSignature));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getAlignment() {
- return alignment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setAlignment(String newAlignment) {
- String oldAlignment = alignment;
- alignment = newAlignment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__ALIGNMENT, oldAlignment, alignment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotypeAttributeCompartment() {
- return showStereotypeAttributeCompartment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotypeAttributeCompartment(String newShowStereotypeAttributeCompartment) {
- String oldShowStereotypeAttributeCompartment = showStereotypeAttributeCompartment;
- showStereotypeAttributeCompartment = newShowStereotypeAttributeCompartment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT, oldShowStereotypeAttributeCompartment, showStereotypeAttributeCompartment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListStereotype() {
- return showListStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListStereotype(String newShowListStereotype) {
- String oldShowListStereotype = showListStereotype;
- showListStereotype = newShowListStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_STEREOTYPE, oldShowListStereotype, showListStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isVerticalAlignment() {
- return verticalAlignment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setVerticalAlignment(boolean newVerticalAlignment) {
- boolean oldVerticalAlignment = verticalAlignment;
- verticalAlignment = newVerticalAlignment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__VERTICAL_ALIGNMENT, oldVerticalAlignment, verticalAlignment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE:
- return getShowStereotype();
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_VISIBILITY:
- return getShowListVisibility();
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_SIGNATURE:
- return isShowListSignature();
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__ALIGNMENT:
- return getAlignment();
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return getShowStereotypeAttributeCompartment();
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_STEREOTYPE:
- return getShowListStereotype();
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__VERTICAL_ALIGNMENT:
- return isVerticalAlignment();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE:
- setShowStereotype((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_VISIBILITY:
- setShowListVisibility((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_SIGNATURE:
- setShowListSignature((Boolean) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__ALIGNMENT:
- setAlignment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_STEREOTYPE:
- setShowListStereotype((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__VERTICAL_ALIGNMENT:
- setVerticalAlignment((Boolean) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE:
- setShowStereotype(SHOW_STEREOTYPE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_VISIBILITY:
- setShowListVisibility(SHOW_LIST_VISIBILITY_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_SIGNATURE:
- setShowListSignature(SHOW_LIST_SIGNATURE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__ALIGNMENT:
- setAlignment(ALIGNMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment(SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_STEREOTYPE:
- setShowListStereotype(SHOW_LIST_STEREOTYPE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__VERTICAL_ALIGNMENT:
- setVerticalAlignment(VERTICAL_ALIGNMENT_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE:
- return SHOW_STEREOTYPE_EDEFAULT == null ? showStereotype != null : !SHOW_STEREOTYPE_EDEFAULT.equals(showStereotype);
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_VISIBILITY:
- return SHOW_LIST_VISIBILITY_EDEFAULT == null ? showListVisibility != null : !SHOW_LIST_VISIBILITY_EDEFAULT.equals(showListVisibility);
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_SIGNATURE:
- return showListSignature != SHOW_LIST_SIGNATURE_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__ALIGNMENT:
- return ALIGNMENT_EDEFAULT == null ? alignment != null : !ALIGNMENT_EDEFAULT.equals(alignment);
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT == null ? showStereotypeAttributeCompartment != null : !SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT.equals(showStereotypeAttributeCompartment);
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_STEREOTYPE:
- return SHOW_LIST_STEREOTYPE_EDEFAULT == null ? showListStereotype != null : !SHOW_LIST_STEREOTYPE_EDEFAULT.equals(showListStereotype);
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__VERTICAL_ALIGNMENT:
- return verticalAlignment != VERTICAL_ALIGNMENT_EDEFAULT;
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) {
- if (baseClass == UMLView.class) {
- switch (derivedFeatureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_VISIBILITY:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_SIGNATURE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__ALIGNMENT:
- return PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE;
- default:
- return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) {
- if (baseClass == UMLView.class) {
- switch (baseFeatureID) {
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY:
- return PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_VISIBILITY;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE:
- return PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_SIGNATURE;
- case PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT:
- return PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__ALIGNMENT;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT__SHOW_LIST_STEREOTYPE;
- default:
- return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (showStereotype: ");
- result.append(showStereotype);
- result.append(", showListVisibility: ");
- result.append(showListVisibility);
- result.append(", showListSignature: ");
- result.append(showListSignature);
- result.append(", alignment: ");
- result.append(alignment);
- result.append(", showStereotypeAttributeCompartment: ");
- result.append(showStereotypeAttributeCompartment);
- result.append(", showListStereotype: ");
- result.append(showListStereotype);
- result.append(", verticalAlignment: ");
- result.append(verticalAlignment);
- result.append(')');
- return result.toString();
- }
-
-} // UMLShapeCompartmentImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLShapeImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLShapeImpl.java
deleted file mode 100644
index 70f99c930f1..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLShapeImpl.java
+++ /dev/null
@@ -1,550 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.gmf.runtime.notation.impl.ShapeImpl;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UML Shape</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl#getShowStereotype <em>Show Stereotype</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl#getShowListVisibility <em>Show List Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl#isShowListSignature <em>Show List Signature</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl#getAlignment <em>Alignment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl#getShowStereotypeAttributeCompartment <em>Show Stereotype Attribute Compartment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLShapeImpl#getShowListStereotype <em>Show List Stereotype</em>}</li>
- * </ul>
- *
- * @generated
- */
-public class UMLShapeImpl extends ShapeImpl implements UMLShape {
-
- /**
- * The default value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected String showStereotype = SHOW_STEREOTYPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_VISIBILITY_EDEFAULT = "None";
-
- /**
- * The cached value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected String showListVisibility = SHOW_LIST_VISIBILITY_EDEFAULT;
-
- /**
- * The default value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected static final boolean SHOW_LIST_SIGNATURE_EDEFAULT = true;
-
- /**
- * The cached value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected boolean showListSignature = SHOW_LIST_SIGNATURE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected static final String ALIGNMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected String alignment = ALIGNMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected String showStereotypeAttributeCompartment = SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected String showListStereotype = SHOW_LIST_STEREOTYPE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UMLShapeImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PapyrusUMLNotationPackage.Literals.UML_SHAPE;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotype() {
- return showStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotype(String newShowStereotype) {
- String oldShowStereotype = showStereotype;
- showStereotype = newShowStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE, oldShowStereotype, showStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListVisibility() {
- return showListVisibility;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListVisibility(String newShowListVisibility) {
- String oldShowListVisibility = showListVisibility;
- showListVisibility = newShowListVisibility;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_VISIBILITY, oldShowListVisibility, showListVisibility));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isShowListSignature() {
- return showListSignature;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListSignature(boolean newShowListSignature) {
- boolean oldShowListSignature = showListSignature;
- showListSignature = newShowListSignature;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_SIGNATURE, oldShowListSignature, showListSignature));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getAlignment() {
- return alignment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setAlignment(String newAlignment) {
- String oldAlignment = alignment;
- alignment = newAlignment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE__ALIGNMENT, oldAlignment, alignment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotypeAttributeCompartment() {
- return showStereotypeAttributeCompartment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotypeAttributeCompartment(String newShowStereotypeAttributeCompartment) {
- String oldShowStereotypeAttributeCompartment = showStereotypeAttributeCompartment;
- showStereotypeAttributeCompartment = newShowStereotypeAttributeCompartment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT, oldShowStereotypeAttributeCompartment, showStereotypeAttributeCompartment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListStereotype() {
- return showListStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListStereotype(String newShowListStereotype) {
- String oldShowListStereotype = showListStereotype;
- showListStereotype = newShowListStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_STEREOTYPE, oldShowListStereotype, showListStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE:
- return getShowStereotype();
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_VISIBILITY:
- return getShowListVisibility();
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_SIGNATURE:
- return isShowListSignature();
- case PapyrusUMLNotationPackage.UML_SHAPE__ALIGNMENT:
- return getAlignment();
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return getShowStereotypeAttributeCompartment();
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_STEREOTYPE:
- return getShowListStereotype();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE:
- setShowStereotype((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_VISIBILITY:
- setShowListVisibility((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_SIGNATURE:
- setShowListSignature((Boolean) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__ALIGNMENT:
- setAlignment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_STEREOTYPE:
- setShowListStereotype((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE:
- setShowStereotype(SHOW_STEREOTYPE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_VISIBILITY:
- setShowListVisibility(SHOW_LIST_VISIBILITY_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_SIGNATURE:
- setShowListSignature(SHOW_LIST_SIGNATURE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__ALIGNMENT:
- setAlignment(ALIGNMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment(SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_STEREOTYPE:
- setShowListStereotype(SHOW_LIST_STEREOTYPE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE:
- return SHOW_STEREOTYPE_EDEFAULT == null ? showStereotype != null : !SHOW_STEREOTYPE_EDEFAULT.equals(showStereotype);
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_VISIBILITY:
- return SHOW_LIST_VISIBILITY_EDEFAULT == null ? showListVisibility != null : !SHOW_LIST_VISIBILITY_EDEFAULT.equals(showListVisibility);
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_SIGNATURE:
- return showListSignature != SHOW_LIST_SIGNATURE_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_SHAPE__ALIGNMENT:
- return ALIGNMENT_EDEFAULT == null ? alignment != null : !ALIGNMENT_EDEFAULT.equals(alignment);
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT == null ? showStereotypeAttributeCompartment != null : !SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT.equals(showStereotypeAttributeCompartment);
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_STEREOTYPE:
- return SHOW_LIST_STEREOTYPE_EDEFAULT == null ? showListStereotype != null : !SHOW_LIST_STEREOTYPE_EDEFAULT.equals(showListStereotype);
- }
- return super.eIsSet(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) {
- if (baseClass == UMLView.class) {
- switch (derivedFeatureID) {
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_VISIBILITY:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_SIGNATURE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE;
- case PapyrusUMLNotationPackage.UML_SHAPE__ALIGNMENT:
- return PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
- case PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE;
- default:
- return -1;
- }
- }
- return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) {
- if (baseClass == UMLView.class) {
- switch (baseFeatureID) {
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY:
- return PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_VISIBILITY;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE:
- return PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_SIGNATURE;
- case PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT:
- return PapyrusUMLNotationPackage.UML_SHAPE__ALIGNMENT;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return PapyrusUMLNotationPackage.UML_SHAPE__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE:
- return PapyrusUMLNotationPackage.UML_SHAPE__SHOW_LIST_STEREOTYPE;
- default:
- return -1;
- }
- }
- return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy()) {
- return super.toString();
- }
-
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (showStereotype: ");
- result.append(showStereotype);
- result.append(", showListVisibility: ");
- result.append(showListVisibility);
- result.append(", showListSignature: ");
- result.append(showListSignature);
- result.append(", alignment: ");
- result.append(alignment);
- result.append(", showStereotypeAttributeCompartment: ");
- result.append(showStereotypeAttributeCompartment);
- result.append(", showListStereotype: ");
- result.append(showListStereotype);
- result.append(')');
- return result.toString();
- }
-
-} // UMLShapeImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLViewImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLViewImpl.java
deleted file mode 100644
index 0c6c2872f2a..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/impl/UMLViewImpl.java
+++ /dev/null
@@ -1,491 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.impl;
-
-import org.eclipse.emf.common.notify.Notification;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.impl.ENotificationImpl;
-import org.eclipse.gmf.runtime.notation.impl.ViewImpl;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>UML View</b></em>'.
- * <!-- end-user-doc -->
- * <p>
- * The following features are implemented:
- * </p>
- * <ul>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl#getShowStereotype <em>Show Stereotype</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl#getShowListVisibility <em>Show List Visibility</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl#isShowListSignature <em>Show List Signature</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl#getAlignment <em>Alignment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl#getShowStereotypeAttributeCompartment <em>Show Stereotype Attribute Compartment</em>}</li>
- * <li>{@link org.eclipse.papyrus.migration.rsa.umlnotation.impl.UMLViewImpl#getShowListStereotype <em>Show List Stereotype</em>}</li>
- * </ul>
- *
- * @generated
- */
-public abstract class UMLViewImpl extends ViewImpl implements UMLView {
-
- /**
- * The default value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotype() <em>Show Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotype()
- * @generated
- * @ordered
- */
- protected String showStereotype = SHOW_STEREOTYPE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_VISIBILITY_EDEFAULT = "None";
-
- /**
- * The cached value of the '{@link #getShowListVisibility() <em>Show List Visibility</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListVisibility()
- * @generated
- * @ordered
- */
- protected String showListVisibility = SHOW_LIST_VISIBILITY_EDEFAULT;
-
- /**
- * The default value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected static final boolean SHOW_LIST_SIGNATURE_EDEFAULT = true;
-
- /**
- * The cached value of the '{@link #isShowListSignature() <em>Show List Signature</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #isShowListSignature()
- * @generated
- * @ordered
- */
- protected boolean showListSignature = SHOW_LIST_SIGNATURE_EDEFAULT;
-
- /**
- * The default value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected static final String ALIGNMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getAlignment() <em>Alignment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getAlignment()
- * @generated
- * @ordered
- */
- protected String alignment = ALIGNMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected static final String SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowStereotypeAttributeCompartment() <em>Show Stereotype Attribute Compartment</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowStereotypeAttributeCompartment()
- * @generated
- * @ordered
- */
- protected String showStereotypeAttributeCompartment = SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT;
-
- /**
- * The default value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected static final String SHOW_LIST_STEREOTYPE_EDEFAULT = null;
-
- /**
- * The cached value of the '{@link #getShowListStereotype() <em>Show List Stereotype</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @see #getShowListStereotype()
- * @generated
- * @ordered
- */
- protected String showListStereotype = SHOW_LIST_STEREOTYPE_EDEFAULT;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected UMLViewImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return PapyrusUMLNotationPackage.Literals.UML_VIEW;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotype() {
- return showStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotype(String newShowStereotype) {
- String oldShowStereotype = showStereotype;
- showStereotype = newShowStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE, oldShowStereotype, showStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListVisibility() {
- return showListVisibility;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListVisibility(String newShowListVisibility) {
- String oldShowListVisibility = showListVisibility;
- showListVisibility = newShowListVisibility;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY, oldShowListVisibility, showListVisibility));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean isShowListSignature() {
- return showListSignature;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListSignature(boolean newShowListSignature) {
- boolean oldShowListSignature = showListSignature;
- showListSignature = newShowListSignature;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE, oldShowListSignature, showListSignature));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getAlignment() {
- return alignment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setAlignment(String newAlignment) {
- String oldAlignment = alignment;
- alignment = newAlignment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT, oldAlignment, alignment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowStereotypeAttributeCompartment() {
- return showStereotypeAttributeCompartment;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowStereotypeAttributeCompartment(String newShowStereotypeAttributeCompartment) {
- String oldShowStereotypeAttributeCompartment = showStereotypeAttributeCompartment;
- showStereotypeAttributeCompartment = newShowStereotypeAttributeCompartment;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT, oldShowStereotypeAttributeCompartment, showStereotypeAttributeCompartment));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String getShowListStereotype() {
- return showListStereotype;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void setShowListStereotype(String newShowListStereotype) {
- String oldShowListStereotype = showListStereotype;
- showListStereotype = newShowListStereotype;
- if (eNotificationRequired()) {
- eNotify(new ENotificationImpl(this, Notification.SET, PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE, oldShowListStereotype, showListStereotype));
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE:
- return getShowStereotype();
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY:
- return getShowListVisibility();
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE:
- return isShowListSignature();
- case PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT:
- return getAlignment();
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return getShowStereotypeAttributeCompartment();
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE:
- return getShowListStereotype();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE:
- setShowStereotype((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY:
- setShowListVisibility((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE:
- setShowListSignature((Boolean) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT:
- setAlignment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment((String) newValue);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE:
- setShowListStereotype((String) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE:
- setShowStereotype(SHOW_STEREOTYPE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY:
- setShowListVisibility(SHOW_LIST_VISIBILITY_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE:
- setShowListSignature(SHOW_LIST_SIGNATURE_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT:
- setAlignment(ALIGNMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- setShowStereotypeAttributeCompartment(SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT);
- return;
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE:
- setShowListStereotype(SHOW_LIST_STEREOTYPE_EDEFAULT);
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE:
- return SHOW_STEREOTYPE_EDEFAULT == null ? showStereotype != null : !SHOW_STEREOTYPE_EDEFAULT.equals(showStereotype);
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_VISIBILITY:
- return SHOW_LIST_VISIBILITY_EDEFAULT == null ? showListVisibility != null : !SHOW_LIST_VISIBILITY_EDEFAULT.equals(showListVisibility);
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_SIGNATURE:
- return showListSignature != SHOW_LIST_SIGNATURE_EDEFAULT;
- case PapyrusUMLNotationPackage.UML_VIEW__ALIGNMENT:
- return ALIGNMENT_EDEFAULT == null ? alignment != null : !ALIGNMENT_EDEFAULT.equals(alignment);
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT:
- return SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT == null ? showStereotypeAttributeCompartment != null : !SHOW_STEREOTYPE_ATTRIBUTE_COMPARTMENT_EDEFAULT.equals(showStereotypeAttributeCompartment);
- case PapyrusUMLNotationPackage.UML_VIEW__SHOW_LIST_STEREOTYPE:
- return SHOW_LIST_STEREOTYPE_EDEFAULT == null ? showListStereotype != null : !SHOW_LIST_STEREOTYPE_EDEFAULT.equals(showListStereotype);
- }
- 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(" (showStereotype: ");
- result.append(showStereotype);
- result.append(", showListVisibility: ");
- result.append(showListVisibility);
- result.append(", showListSignature: ");
- result.append(showListSignature);
- result.append(", alignment: ");
- result.append(alignment);
- result.append(", showStereotypeAttributeCompartment: ");
- result.append(showStereotypeAttributeCompartment);
- result.append(", showListStereotype: ");
- result.append(showListStereotype);
- result.append(')');
- return result.toString();
- }
-
-} // UMLViewImpl
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusRSANotationAdapterFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusRSANotationAdapterFactory.java
deleted file mode 100644
index 3819afa43e2..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusRSANotationAdapterFactory.java
+++ /dev/null
@@ -1,766 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.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.EModelElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.notation.BasicCompartment;
-import org.eclipse.gmf.runtime.notation.BasicDecorationNode;
-import org.eclipse.gmf.runtime.notation.CanonicalStyle;
-import org.eclipse.gmf.runtime.notation.Compartment;
-import org.eclipse.gmf.runtime.notation.Connector;
-import org.eclipse.gmf.runtime.notation.ConnectorStyle;
-import org.eclipse.gmf.runtime.notation.DecorationNode;
-import org.eclipse.gmf.runtime.notation.DescriptionStyle;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-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.LineStyle;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.RoundedCornersStyle;
-import org.eclipse.gmf.runtime.notation.RoutingStyle;
-import org.eclipse.gmf.runtime.notation.Shape;
-import org.eclipse.gmf.runtime.notation.ShapeStyle;
-import org.eclipse.gmf.runtime.notation.Style;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLDiagram;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- 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.migration.rsa.umlnotation.PapyrusUMLNotationPackage
- * @generated
- */
-public class PapyrusRSANotationAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static PapyrusUMLNotationPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PapyrusRSANotationAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = PapyrusUMLNotationPackage.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 PapyrusRSANotationSwitch<Adapter> modelSwitch = new PapyrusRSANotationSwitch<Adapter>() {
- @Override
- public Adapter caseUMLDiagram(UMLDiagram object) {
- return createUMLDiagramAdapter();
- }
-
- @Override
- public Adapter caseUMLFrame(UMLFrame object) {
- return createUMLFrameAdapter();
- }
-
- @Override
- public Adapter caseUMLShapeCompartment(UMLShapeCompartment object) {
- return createUMLShapeCompartmentAdapter();
- }
-
- @Override
- public Adapter caseUMLShape(UMLShape object) {
- return createUMLShapeAdapter();
- }
-
- @Override
- public Adapter caseUMLConnector(UMLConnector object) {
- return createUMLConnectorAdapter();
- }
-
- @Override
- public Adapter caseUMLView(UMLView object) {
- return createUMLViewAdapter();
- }
-
- @Override
- public Adapter caseUMLComponent(UMLComponent object) {
- return createUMLComponentAdapter();
- }
-
- @Override
- public Adapter caseUMLClassifierShape(UMLClassifierShape object) {
- return createUMLClassifierShapeAdapter();
- }
-
- @Override
- public Adapter caseEModelElement(EModelElement object) {
- return createEModelElementAdapter();
- }
-
- @Override
- public Adapter caseView(View object) {
- return createViewAdapter();
- }
-
- @Override
- public Adapter caseDiagram(Diagram object) {
- return createDiagramAdapter();
- }
-
- @Override
- public Adapter caseNode(Node object) {
- return createNodeAdapter();
- }
-
- @Override
- public Adapter caseStyle(Style object) {
- return createStyleAdapter();
- }
-
- @Override
- public Adapter caseFontStyle(FontStyle object) {
- return createFontStyleAdapter();
- }
-
- @Override
- public Adapter caseDescriptionStyle(DescriptionStyle object) {
- return createDescriptionStyleAdapter();
- }
-
- @Override
- public Adapter caseFillStyle(FillStyle object) {
- return createFillStyleAdapter();
- }
-
- @Override
- public Adapter caseLineStyle(LineStyle object) {
- return createLineStyleAdapter();
- }
-
- @Override
- public Adapter caseRoundedCornersStyle(RoundedCornersStyle object) {
- return createRoundedCornersStyleAdapter();
- }
-
- @Override
- public Adapter caseShapeStyle(ShapeStyle object) {
- return createShapeStyleAdapter();
- }
-
- @Override
- public Adapter caseShape(Shape object) {
- return createShapeAdapter();
- }
-
- @Override
- public Adapter caseBasicDecorationNode(BasicDecorationNode object) {
- return createBasicDecorationNodeAdapter();
- }
-
- @Override
- public Adapter caseDecorationNode(DecorationNode object) {
- return createDecorationNodeAdapter();
- }
-
- @Override
- public Adapter caseDrawerStyle(DrawerStyle object) {
- return createDrawerStyleAdapter();
- }
-
- @Override
- public Adapter caseBasicCompartment(BasicCompartment object) {
- return createBasicCompartmentAdapter();
- }
-
- @Override
- public Adapter caseCanonicalStyle(CanonicalStyle object) {
- return createCanonicalStyleAdapter();
- }
-
- @Override
- public Adapter caseTitleStyle(TitleStyle object) {
- return createTitleStyleAdapter();
- }
-
- @Override
- public Adapter caseCompartment(Compartment object) {
- return createCompartmentAdapter();
- }
-
- @Override
- public Adapter caseEdge(Edge object) {
- return createEdgeAdapter();
- }
-
- @Override
- public Adapter caseRoutingStyle(RoutingStyle object) {
- return createRoutingStyleAdapter();
- }
-
- @Override
- public Adapter caseConnectorStyle(ConnectorStyle object) {
- return createConnectorStyleAdapter();
- }
-
- @Override
- public Adapter caseConnector(Connector object) {
- return createConnectorAdapter();
- }
-
- @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.migration.rsa.umlnotation.UMLDiagram <em>UML Diagram</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.migration.rsa.umlnotation.UMLDiagram
- * @generated
- */
- public Adapter createUMLDiagramAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame <em>UML Frame</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.migration.rsa.umlnotation.UMLFrame
- * @generated
- */
- public Adapter createUMLFrameAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment <em>UML Shape Compartment</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.migration.rsa.umlnotation.UMLShapeCompartment
- * @generated
- */
- public Adapter createUMLShapeCompartmentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape <em>UML Shape</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.migration.rsa.umlnotation.UMLShape
- * @generated
- */
- public Adapter createUMLShapeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector <em>UML Connector</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.migration.rsa.umlnotation.UMLConnector
- * @generated
- */
- public Adapter createUMLConnectorAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView <em>UML View</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.migration.rsa.umlnotation.UMLView
- * @generated
- */
- public Adapter createUMLViewAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent <em>UML Component</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.migration.rsa.umlnotation.UMLComponent
- * @generated
- */
- public Adapter createUMLComponentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape <em>UML Classifier Shape</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.migration.rsa.umlnotation.UMLClassifierShape
- * @generated
- */
- public Adapter createUMLClassifierShapeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EModelElement <em>EModel Element</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.emf.ecore.EModelElement
- * @generated
- */
- public Adapter createEModelElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.View <em>View</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.gmf.runtime.notation.View
- * @generated
- */
- public Adapter createViewAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Diagram <em>Diagram</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.gmf.runtime.notation.Diagram
- * @generated
- */
- public Adapter createDiagramAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Node <em>Node</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.gmf.runtime.notation.Node
- * @generated
- */
- public Adapter createNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Style <em>Style</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.gmf.runtime.notation.Style
- * @generated
- */
- public Adapter createStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.FontStyle <em>Font Style</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.gmf.runtime.notation.FontStyle
- * @generated
- */
- public Adapter createFontStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.DescriptionStyle <em>Description Style</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.gmf.runtime.notation.DescriptionStyle
- * @generated
- */
- public Adapter createDescriptionStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.FillStyle <em>Fill Style</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.gmf.runtime.notation.FillStyle
- * @generated
- */
- public Adapter createFillStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.LineStyle <em>Line Style</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.gmf.runtime.notation.LineStyle
- * @generated
- */
- public Adapter createLineStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.RoundedCornersStyle <em>Rounded Corners Style</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.gmf.runtime.notation.RoundedCornersStyle
- * @generated
- */
- public Adapter createRoundedCornersStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.ShapeStyle <em>Shape Style</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.gmf.runtime.notation.ShapeStyle
- * @generated
- */
- public Adapter createShapeStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Shape <em>Shape</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.gmf.runtime.notation.Shape
- * @generated
- */
- public Adapter createShapeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.BasicDecorationNode <em>Basic Decoration Node</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.gmf.runtime.notation.BasicDecorationNode
- * @generated
- */
- public Adapter createBasicDecorationNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.DecorationNode <em>Decoration Node</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.gmf.runtime.notation.DecorationNode
- * @generated
- */
- public Adapter createDecorationNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.DrawerStyle <em>Drawer Style</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.gmf.runtime.notation.DrawerStyle
- * @generated
- */
- public Adapter createDrawerStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.BasicCompartment <em>Basic Compartment</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.gmf.runtime.notation.BasicCompartment
- * @generated
- */
- public Adapter createBasicCompartmentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.CanonicalStyle <em>Canonical Style</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.gmf.runtime.notation.CanonicalStyle
- * @generated
- */
- public Adapter createCanonicalStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.TitleStyle <em>Title Style</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.gmf.runtime.notation.TitleStyle
- * @generated
- */
- public Adapter createTitleStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Compartment <em>Compartment</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.gmf.runtime.notation.Compartment
- * @generated
- */
- public Adapter createCompartmentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Edge <em>Edge</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.gmf.runtime.notation.Edge
- * @generated
- */
- public Adapter createEdgeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.RoutingStyle <em>Routing Style</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.gmf.runtime.notation.RoutingStyle
- * @generated
- */
- public Adapter createRoutingStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.ConnectorStyle <em>Connector Style</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.gmf.runtime.notation.ConnectorStyle
- * @generated
- */
- public Adapter createConnectorStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Connector <em>Connector</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.gmf.runtime.notation.Connector
- * @generated
- */
- public Adapter createConnectorAdapter() {
- 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;
- }
-
-} // PapyrusRSANotationAdapterFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusRSANotationSwitch.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusRSANotationSwitch.java
deleted file mode 100644
index f276289fca4..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusRSANotationSwitch.java
+++ /dev/null
@@ -1,965 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.util;
-
-import org.eclipse.emf.ecore.EModelElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.gmf.runtime.notation.BasicCompartment;
-import org.eclipse.gmf.runtime.notation.BasicDecorationNode;
-import org.eclipse.gmf.runtime.notation.CanonicalStyle;
-import org.eclipse.gmf.runtime.notation.Compartment;
-import org.eclipse.gmf.runtime.notation.Connector;
-import org.eclipse.gmf.runtime.notation.ConnectorStyle;
-import org.eclipse.gmf.runtime.notation.DecorationNode;
-import org.eclipse.gmf.runtime.notation.DescriptionStyle;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-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.LineStyle;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.RoundedCornersStyle;
-import org.eclipse.gmf.runtime.notation.RoutingStyle;
-import org.eclipse.gmf.runtime.notation.Shape;
-import org.eclipse.gmf.runtime.notation.ShapeStyle;
-import org.eclipse.gmf.runtime.notation.Style;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLDiagram;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- 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.migration.rsa.umlnotation.PapyrusUMLNotationPackage
- * @generated
- */
-public class PapyrusRSANotationSwitch<T> extends Switch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static PapyrusUMLNotationPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PapyrusRSANotationSwitch() {
- if (modelPackage == null) {
- modelPackage = PapyrusUMLNotationPackage.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 PapyrusUMLNotationPackage.UML_DIAGRAM: {
- UMLDiagram umlDiagram = (UMLDiagram) theEObject;
- T result = caseUMLDiagram(umlDiagram);
- if (result == null) {
- result = caseDiagram(umlDiagram);
- }
- if (result == null) {
- result = caseUMLView(umlDiagram);
- }
- if (result == null) {
- result = caseView(umlDiagram);
- }
- if (result == null) {
- result = caseEModelElement(umlDiagram);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_FRAME: {
- UMLFrame umlFrame = (UMLFrame) theEObject;
- T result = caseUMLFrame(umlFrame);
- if (result == null) {
- result = caseUMLShape(umlFrame);
- }
- if (result == null) {
- result = caseShape(umlFrame);
- }
- if (result == null) {
- result = caseUMLView(umlFrame);
- }
- if (result == null) {
- result = caseNode(umlFrame);
- }
- if (result == null) {
- result = caseShapeStyle(umlFrame);
- }
- if (result == null) {
- result = caseView(umlFrame);
- }
- if (result == null) {
- result = caseFontStyle(umlFrame);
- }
- if (result == null) {
- result = caseDescriptionStyle(umlFrame);
- }
- if (result == null) {
- result = caseFillStyle(umlFrame);
- }
- if (result == null) {
- result = caseLineStyle(umlFrame);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlFrame);
- }
- if (result == null) {
- result = caseEModelElement(umlFrame);
- }
- if (result == null) {
- result = caseStyle(umlFrame);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT: {
- UMLShapeCompartment umlShapeCompartment = (UMLShapeCompartment) theEObject;
- T result = caseUMLShapeCompartment(umlShapeCompartment);
- if (result == null) {
- result = caseCompartment(umlShapeCompartment);
- }
- if (result == null) {
- result = caseUMLView(umlShapeCompartment);
- }
- if (result == null) {
- result = caseBasicCompartment(umlShapeCompartment);
- }
- if (result == null) {
- result = caseCanonicalStyle(umlShapeCompartment);
- }
- if (result == null) {
- result = caseTitleStyle(umlShapeCompartment);
- }
- if (result == null) {
- result = caseDecorationNode(umlShapeCompartment);
- }
- if (result == null) {
- result = caseDrawerStyle(umlShapeCompartment);
- }
- if (result == null) {
- result = caseBasicDecorationNode(umlShapeCompartment);
- }
- if (result == null) {
- result = caseStyle(umlShapeCompartment);
- }
- if (result == null) {
- result = caseNode(umlShapeCompartment);
- }
- if (result == null) {
- result = caseView(umlShapeCompartment);
- }
- if (result == null) {
- result = caseEModelElement(umlShapeCompartment);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_SHAPE: {
- UMLShape umlShape = (UMLShape) theEObject;
- T result = caseUMLShape(umlShape);
- if (result == null) {
- result = caseShape(umlShape);
- }
- if (result == null) {
- result = caseUMLView(umlShape);
- }
- if (result == null) {
- result = caseNode(umlShape);
- }
- if (result == null) {
- result = caseShapeStyle(umlShape);
- }
- if (result == null) {
- result = caseView(umlShape);
- }
- if (result == null) {
- result = caseFontStyle(umlShape);
- }
- if (result == null) {
- result = caseDescriptionStyle(umlShape);
- }
- if (result == null) {
- result = caseFillStyle(umlShape);
- }
- if (result == null) {
- result = caseLineStyle(umlShape);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlShape);
- }
- if (result == null) {
- result = caseEModelElement(umlShape);
- }
- if (result == null) {
- result = caseStyle(umlShape);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_CONNECTOR: {
- UMLConnector umlConnector = (UMLConnector) theEObject;
- T result = caseUMLConnector(umlConnector);
- if (result == null) {
- result = caseConnector(umlConnector);
- }
- if (result == null) {
- result = caseFontStyle(umlConnector);
- }
- if (result == null) {
- result = caseUMLView(umlConnector);
- }
- if (result == null) {
- result = caseEdge(umlConnector);
- }
- if (result == null) {
- result = caseConnectorStyle(umlConnector);
- }
- if (result == null) {
- result = caseView(umlConnector);
- }
- if (result == null) {
- result = caseRoutingStyle(umlConnector);
- }
- if (result == null) {
- result = caseLineStyle(umlConnector);
- }
- if (result == null) {
- result = caseEModelElement(umlConnector);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlConnector);
- }
- if (result == null) {
- result = caseStyle(umlConnector);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_VIEW: {
- UMLView umlView = (UMLView) theEObject;
- T result = caseUMLView(umlView);
- if (result == null) {
- result = caseView(umlView);
- }
- if (result == null) {
- result = caseEModelElement(umlView);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_COMPONENT: {
- UMLComponent umlComponent = (UMLComponent) theEObject;
- T result = caseUMLComponent(umlComponent);
- if (result == null) {
- result = caseUMLShape(umlComponent);
- }
- if (result == null) {
- result = caseShape(umlComponent);
- }
- if (result == null) {
- result = caseUMLView(umlComponent);
- }
- if (result == null) {
- result = caseNode(umlComponent);
- }
- if (result == null) {
- result = caseShapeStyle(umlComponent);
- }
- if (result == null) {
- result = caseView(umlComponent);
- }
- if (result == null) {
- result = caseFontStyle(umlComponent);
- }
- if (result == null) {
- result = caseDescriptionStyle(umlComponent);
- }
- if (result == null) {
- result = caseFillStyle(umlComponent);
- }
- if (result == null) {
- result = caseLineStyle(umlComponent);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlComponent);
- }
- if (result == null) {
- result = caseEModelElement(umlComponent);
- }
- if (result == null) {
- result = caseStyle(umlComponent);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_CLASSIFIER_SHAPE: {
- UMLClassifierShape umlClassifierShape = (UMLClassifierShape) theEObject;
- T result = caseUMLClassifierShape(umlClassifierShape);
- if (result == null) {
- result = caseUMLShape(umlClassifierShape);
- }
- if (result == null) {
- result = caseShape(umlClassifierShape);
- }
- if (result == null) {
- result = caseUMLView(umlClassifierShape);
- }
- if (result == null) {
- result = caseNode(umlClassifierShape);
- }
- if (result == null) {
- result = caseShapeStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseView(umlClassifierShape);
- }
- if (result == null) {
- result = caseFontStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseDescriptionStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseFillStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseLineStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseEModelElement(umlClassifierShape);
- }
- if (result == null) {
- result = caseStyle(umlClassifierShape);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Diagram</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>UML Diagram</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLDiagram(UMLDiagram object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Frame</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>UML Frame</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLFrame(UMLFrame object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Shape Compartment</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>UML Shape Compartment</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLShapeCompartment(UMLShapeCompartment object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Shape</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>UML Shape</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLShape(UMLShape object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Connector</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>UML Connector</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLConnector(UMLConnector object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML View</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>UML View</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLView(UMLView object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Component</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>UML Component</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLComponent(UMLComponent object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Classifier Shape</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>UML Classifier Shape</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLClassifierShape(UMLClassifierShape object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EModel Element</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>EModel Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEModelElement(EModelElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>View</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>View</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseView(View object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Diagram</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>Diagram</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDiagram(Diagram object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Node</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>Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNode(Node object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Style</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>Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseStyle(Style object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Font Style</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>Font Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseFontStyle(FontStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Description Style</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>Description Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDescriptionStyle(DescriptionStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Fill Style</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>Fill Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseFillStyle(FillStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Line Style</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>Line Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLineStyle(LineStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Rounded Corners Style</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>Rounded Corners Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRoundedCornersStyle(RoundedCornersStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Shape Style</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>Shape Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseShapeStyle(ShapeStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Shape</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>Shape</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseShape(Shape object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Basic Decoration Node</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>Basic Decoration Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBasicDecorationNode(BasicDecorationNode object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Decoration Node</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>Decoration Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDecorationNode(DecorationNode object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Drawer Style</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>Drawer Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDrawerStyle(DrawerStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Basic Compartment</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>Basic Compartment</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBasicCompartment(BasicCompartment object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Canonical Style</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>Canonical Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCanonicalStyle(CanonicalStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Title Style</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>Title Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseTitleStyle(TitleStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Compartment</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>Compartment</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCompartment(Compartment object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Edge</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>Edge</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEdge(Edge object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Routing Style</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>Routing Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRoutingStyle(RoutingStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Connector Style</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>Connector Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseConnectorStyle(ConnectorStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Connector</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>Connector</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseConnector(Connector 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;
- }
-
-} // PapyrusRSANotationSwitch
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusUMLNotationAdapterFactory.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusUMLNotationAdapterFactory.java
deleted file mode 100644
index d8dfc82961c..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusUMLNotationAdapterFactory.java
+++ /dev/null
@@ -1,766 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.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.EModelElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gmf.runtime.notation.BasicCompartment;
-import org.eclipse.gmf.runtime.notation.BasicDecorationNode;
-import org.eclipse.gmf.runtime.notation.CanonicalStyle;
-import org.eclipse.gmf.runtime.notation.Compartment;
-import org.eclipse.gmf.runtime.notation.Connector;
-import org.eclipse.gmf.runtime.notation.ConnectorStyle;
-import org.eclipse.gmf.runtime.notation.DecorationNode;
-import org.eclipse.gmf.runtime.notation.DescriptionStyle;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-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.LineStyle;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.RoundedCornersStyle;
-import org.eclipse.gmf.runtime.notation.RoutingStyle;
-import org.eclipse.gmf.runtime.notation.Shape;
-import org.eclipse.gmf.runtime.notation.ShapeStyle;
-import org.eclipse.gmf.runtime.notation.Style;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLDiagram;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- 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.migration.rsa.umlnotation.PapyrusUMLNotationPackage
- * @generated
- */
-public class PapyrusUMLNotationAdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static PapyrusUMLNotationPackage modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PapyrusUMLNotationAdapterFactory() {
- if (modelPackage == null) {
- modelPackage = PapyrusUMLNotationPackage.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 PapyrusUMLNotationSwitch<Adapter> modelSwitch = new PapyrusUMLNotationSwitch<Adapter>() {
- @Override
- public Adapter caseUMLDiagram(UMLDiagram object) {
- return createUMLDiagramAdapter();
- }
-
- @Override
- public Adapter caseUMLFrame(UMLFrame object) {
- return createUMLFrameAdapter();
- }
-
- @Override
- public Adapter caseUMLShapeCompartment(UMLShapeCompartment object) {
- return createUMLShapeCompartmentAdapter();
- }
-
- @Override
- public Adapter caseUMLShape(UMLShape object) {
- return createUMLShapeAdapter();
- }
-
- @Override
- public Adapter caseUMLConnector(UMLConnector object) {
- return createUMLConnectorAdapter();
- }
-
- @Override
- public Adapter caseUMLView(UMLView object) {
- return createUMLViewAdapter();
- }
-
- @Override
- public Adapter caseUMLComponent(UMLComponent object) {
- return createUMLComponentAdapter();
- }
-
- @Override
- public Adapter caseUMLClassifierShape(UMLClassifierShape object) {
- return createUMLClassifierShapeAdapter();
- }
-
- @Override
- public Adapter caseEModelElement(EModelElement object) {
- return createEModelElementAdapter();
- }
-
- @Override
- public Adapter caseView(View object) {
- return createViewAdapter();
- }
-
- @Override
- public Adapter caseDiagram(Diagram object) {
- return createDiagramAdapter();
- }
-
- @Override
- public Adapter caseNode(Node object) {
- return createNodeAdapter();
- }
-
- @Override
- public Adapter caseStyle(Style object) {
- return createStyleAdapter();
- }
-
- @Override
- public Adapter caseFontStyle(FontStyle object) {
- return createFontStyleAdapter();
- }
-
- @Override
- public Adapter caseDescriptionStyle(DescriptionStyle object) {
- return createDescriptionStyleAdapter();
- }
-
- @Override
- public Adapter caseFillStyle(FillStyle object) {
- return createFillStyleAdapter();
- }
-
- @Override
- public Adapter caseLineStyle(LineStyle object) {
- return createLineStyleAdapter();
- }
-
- @Override
- public Adapter caseRoundedCornersStyle(RoundedCornersStyle object) {
- return createRoundedCornersStyleAdapter();
- }
-
- @Override
- public Adapter caseShapeStyle(ShapeStyle object) {
- return createShapeStyleAdapter();
- }
-
- @Override
- public Adapter caseShape(Shape object) {
- return createShapeAdapter();
- }
-
- @Override
- public Adapter caseBasicDecorationNode(BasicDecorationNode object) {
- return createBasicDecorationNodeAdapter();
- }
-
- @Override
- public Adapter caseDecorationNode(DecorationNode object) {
- return createDecorationNodeAdapter();
- }
-
- @Override
- public Adapter caseDrawerStyle(DrawerStyle object) {
- return createDrawerStyleAdapter();
- }
-
- @Override
- public Adapter caseBasicCompartment(BasicCompartment object) {
- return createBasicCompartmentAdapter();
- }
-
- @Override
- public Adapter caseCanonicalStyle(CanonicalStyle object) {
- return createCanonicalStyleAdapter();
- }
-
- @Override
- public Adapter caseTitleStyle(TitleStyle object) {
- return createTitleStyleAdapter();
- }
-
- @Override
- public Adapter caseCompartment(Compartment object) {
- return createCompartmentAdapter();
- }
-
- @Override
- public Adapter caseEdge(Edge object) {
- return createEdgeAdapter();
- }
-
- @Override
- public Adapter caseRoutingStyle(RoutingStyle object) {
- return createRoutingStyleAdapter();
- }
-
- @Override
- public Adapter caseConnectorStyle(ConnectorStyle object) {
- return createConnectorStyleAdapter();
- }
-
- @Override
- public Adapter caseConnector(Connector object) {
- return createConnectorAdapter();
- }
-
- @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.migration.rsa.umlnotation.UMLDiagram <em>UML Diagram</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.migration.rsa.umlnotation.UMLDiagram
- * @generated
- */
- public Adapter createUMLDiagramAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame <em>UML Frame</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.migration.rsa.umlnotation.UMLFrame
- * @generated
- */
- public Adapter createUMLFrameAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment <em>UML Shape Compartment</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.migration.rsa.umlnotation.UMLShapeCompartment
- * @generated
- */
- public Adapter createUMLShapeCompartmentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape <em>UML Shape</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.migration.rsa.umlnotation.UMLShape
- * @generated
- */
- public Adapter createUMLShapeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector <em>UML Connector</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.migration.rsa.umlnotation.UMLConnector
- * @generated
- */
- public Adapter createUMLConnectorAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLView <em>UML View</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.migration.rsa.umlnotation.UMLView
- * @generated
- */
- public Adapter createUMLViewAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent <em>UML Component</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.migration.rsa.umlnotation.UMLComponent
- * @generated
- */
- public Adapter createUMLComponentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape <em>UML Classifier Shape</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.migration.rsa.umlnotation.UMLClassifierShape
- * @generated
- */
- public Adapter createUMLClassifierShapeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.ecore.EModelElement <em>EModel Element</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.emf.ecore.EModelElement
- * @generated
- */
- public Adapter createEModelElementAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.View <em>View</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.gmf.runtime.notation.View
- * @generated
- */
- public Adapter createViewAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Diagram <em>Diagram</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.gmf.runtime.notation.Diagram
- * @generated
- */
- public Adapter createDiagramAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Node <em>Node</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.gmf.runtime.notation.Node
- * @generated
- */
- public Adapter createNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Style <em>Style</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.gmf.runtime.notation.Style
- * @generated
- */
- public Adapter createStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.FontStyle <em>Font Style</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.gmf.runtime.notation.FontStyle
- * @generated
- */
- public Adapter createFontStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.DescriptionStyle <em>Description Style</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.gmf.runtime.notation.DescriptionStyle
- * @generated
- */
- public Adapter createDescriptionStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.FillStyle <em>Fill Style</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.gmf.runtime.notation.FillStyle
- * @generated
- */
- public Adapter createFillStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.LineStyle <em>Line Style</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.gmf.runtime.notation.LineStyle
- * @generated
- */
- public Adapter createLineStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.RoundedCornersStyle <em>Rounded Corners Style</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.gmf.runtime.notation.RoundedCornersStyle
- * @generated
- */
- public Adapter createRoundedCornersStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.ShapeStyle <em>Shape Style</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.gmf.runtime.notation.ShapeStyle
- * @generated
- */
- public Adapter createShapeStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Shape <em>Shape</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.gmf.runtime.notation.Shape
- * @generated
- */
- public Adapter createShapeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.BasicDecorationNode <em>Basic Decoration Node</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.gmf.runtime.notation.BasicDecorationNode
- * @generated
- */
- public Adapter createBasicDecorationNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.DecorationNode <em>Decoration Node</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.gmf.runtime.notation.DecorationNode
- * @generated
- */
- public Adapter createDecorationNodeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.DrawerStyle <em>Drawer Style</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.gmf.runtime.notation.DrawerStyle
- * @generated
- */
- public Adapter createDrawerStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.BasicCompartment <em>Basic Compartment</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.gmf.runtime.notation.BasicCompartment
- * @generated
- */
- public Adapter createBasicCompartmentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.CanonicalStyle <em>Canonical Style</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.gmf.runtime.notation.CanonicalStyle
- * @generated
- */
- public Adapter createCanonicalStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.TitleStyle <em>Title Style</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.gmf.runtime.notation.TitleStyle
- * @generated
- */
- public Adapter createTitleStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Compartment <em>Compartment</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.gmf.runtime.notation.Compartment
- * @generated
- */
- public Adapter createCompartmentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Edge <em>Edge</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.gmf.runtime.notation.Edge
- * @generated
- */
- public Adapter createEdgeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.RoutingStyle <em>Routing Style</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.gmf.runtime.notation.RoutingStyle
- * @generated
- */
- public Adapter createRoutingStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.ConnectorStyle <em>Connector Style</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.gmf.runtime.notation.ConnectorStyle
- * @generated
- */
- public Adapter createConnectorStyleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.gmf.runtime.notation.Connector <em>Connector</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.gmf.runtime.notation.Connector
- * @generated
- */
- public Adapter createConnectorAdapter() {
- 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;
- }
-
-} // PapyrusUMLNotationAdapterFactory
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusUMLNotationSwitch.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusUMLNotationSwitch.java
deleted file mode 100644
index cdb897ba910..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src-gen/org/eclipse/papyrus/migration/rsa/umlnotation/util/PapyrusUMLNotationSwitch.java
+++ /dev/null
@@ -1,966 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.umlnotation.util;
-
-import org.eclipse.emf.ecore.EModelElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.util.Switch;
-import org.eclipse.gmf.runtime.notation.BasicCompartment;
-import org.eclipse.gmf.runtime.notation.BasicDecorationNode;
-import org.eclipse.gmf.runtime.notation.CanonicalStyle;
-import org.eclipse.gmf.runtime.notation.Compartment;
-import org.eclipse.gmf.runtime.notation.Connector;
-import org.eclipse.gmf.runtime.notation.ConnectorStyle;
-import org.eclipse.gmf.runtime.notation.DecorationNode;
-import org.eclipse.gmf.runtime.notation.DescriptionStyle;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.DrawerStyle;
-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.LineStyle;
-import org.eclipse.gmf.runtime.notation.Node;
-import org.eclipse.gmf.runtime.notation.RoundedCornersStyle;
-import org.eclipse.gmf.runtime.notation.RoutingStyle;
-import org.eclipse.gmf.runtime.notation.Shape;
-import org.eclipse.gmf.runtime.notation.ShapeStyle;
-import org.eclipse.gmf.runtime.notation.Style;
-import org.eclipse.gmf.runtime.notation.TitleStyle;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.papyrus.migration.rsa.umlnotation.PapyrusUMLNotationPackage;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLClassifierShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLComponent;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLConnector;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLDiagram;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLFrame;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShape;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLShapeCompartment;
-import org.eclipse.papyrus.migration.rsa.umlnotation.UMLView;
-
-/**
- * <!-- 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.migration.rsa.umlnotation.PapyrusUMLNotationPackage
- * @generated
- */
-public class PapyrusUMLNotationSwitch<T> extends Switch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- protected static PapyrusUMLNotationPackage modelPackage;
-
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public PapyrusUMLNotationSwitch() {
- if (modelPackage == null) {
- modelPackage = PapyrusUMLNotationPackage.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 PapyrusUMLNotationPackage.UML_DIAGRAM: {
- UMLDiagram umlDiagram = (UMLDiagram) theEObject;
- T result = caseUMLDiagram(umlDiagram);
- if (result == null) {
- result = caseDiagram(umlDiagram);
- }
- if (result == null) {
- result = caseUMLView(umlDiagram);
- }
- if (result == null) {
- result = caseView(umlDiagram);
- }
- if (result == null) {
- result = caseEModelElement(umlDiagram);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_FRAME: {
- UMLFrame umlFrame = (UMLFrame) theEObject;
- T result = caseUMLFrame(umlFrame);
- if (result == null) {
- result = caseUMLShape(umlFrame);
- }
- if (result == null) {
- result = caseShape(umlFrame);
- }
- if (result == null) {
- result = caseUMLView(umlFrame);
- }
- if (result == null) {
- result = caseNode(umlFrame);
- }
- if (result == null) {
- result = caseShapeStyle(umlFrame);
- }
- if (result == null) {
- result = caseView(umlFrame);
- }
- if (result == null) {
- result = caseFontStyle(umlFrame);
- }
- if (result == null) {
- result = caseDescriptionStyle(umlFrame);
- }
- if (result == null) {
- result = caseFillStyle(umlFrame);
- }
- if (result == null) {
- result = caseLineStyle(umlFrame);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlFrame);
- }
- if (result == null) {
- result = caseEModelElement(umlFrame);
- }
- if (result == null) {
- result = caseStyle(umlFrame);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_SHAPE_COMPARTMENT: {
- UMLShapeCompartment umlShapeCompartment = (UMLShapeCompartment) theEObject;
- T result = caseUMLShapeCompartment(umlShapeCompartment);
- if (result == null) {
- result = caseCompartment(umlShapeCompartment);
- }
- if (result == null) {
- result = caseUMLView(umlShapeCompartment);
- }
- if (result == null) {
- result = caseBasicCompartment(umlShapeCompartment);
- }
- if (result == null) {
- result = caseCanonicalStyle(umlShapeCompartment);
- }
- if (result == null) {
- result = caseTitleStyle(umlShapeCompartment);
- }
- if (result == null) {
- result = caseDecorationNode(umlShapeCompartment);
- }
- if (result == null) {
- result = caseDrawerStyle(umlShapeCompartment);
- }
- if (result == null) {
- result = caseBasicDecorationNode(umlShapeCompartment);
- }
- if (result == null) {
- result = caseStyle(umlShapeCompartment);
- }
- if (result == null) {
- result = caseNode(umlShapeCompartment);
- }
- if (result == null) {
- result = caseView(umlShapeCompartment);
- }
- if (result == null) {
- result = caseEModelElement(umlShapeCompartment);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_SHAPE: {
- UMLShape umlShape = (UMLShape) theEObject;
- T result = caseUMLShape(umlShape);
- if (result == null) {
- result = caseShape(umlShape);
- }
- if (result == null) {
- result = caseUMLView(umlShape);
- }
- if (result == null) {
- result = caseNode(umlShape);
- }
- if (result == null) {
- result = caseShapeStyle(umlShape);
- }
- if (result == null) {
- result = caseView(umlShape);
- }
- if (result == null) {
- result = caseFontStyle(umlShape);
- }
- if (result == null) {
- result = caseDescriptionStyle(umlShape);
- }
- if (result == null) {
- result = caseFillStyle(umlShape);
- }
- if (result == null) {
- result = caseLineStyle(umlShape);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlShape);
- }
- if (result == null) {
- result = caseEModelElement(umlShape);
- }
- if (result == null) {
- result = caseStyle(umlShape);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_CONNECTOR: {
- UMLConnector umlConnector = (UMLConnector) theEObject;
- T result = caseUMLConnector(umlConnector);
- if (result == null) {
- result = caseConnector(umlConnector);
- }
- if (result == null) {
- result = caseFontStyle(umlConnector);
- }
- if (result == null) {
- result = caseUMLView(umlConnector);
- }
- if (result == null) {
- result = caseEdge(umlConnector);
- }
- if (result == null) {
- result = caseConnectorStyle(umlConnector);
- }
- if (result == null) {
- result = caseView(umlConnector);
- }
- if (result == null) {
- result = caseRoutingStyle(umlConnector);
- }
- if (result == null) {
- result = caseLineStyle(umlConnector);
- }
- if (result == null) {
- result = caseEModelElement(umlConnector);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlConnector);
- }
- if (result == null) {
- result = caseStyle(umlConnector);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_VIEW: {
- UMLView umlView = (UMLView) theEObject;
- T result = caseUMLView(umlView);
- if (result == null) {
- result = caseView(umlView);
- }
- if (result == null) {
- result = caseEModelElement(umlView);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_COMPONENT: {
- UMLComponent umlComponent = (UMLComponent) theEObject;
- T result = caseUMLComponent(umlComponent);
- if (result == null) {
- result = caseUMLShape(umlComponent);
- }
- if (result == null) {
- result = caseShape(umlComponent);
- }
- if (result == null) {
- result = caseUMLView(umlComponent);
- }
- if (result == null) {
- result = caseNode(umlComponent);
- }
- if (result == null) {
- result = caseShapeStyle(umlComponent);
- }
- if (result == null) {
- result = caseView(umlComponent);
- }
- if (result == null) {
- result = caseFontStyle(umlComponent);
- }
- if (result == null) {
- result = caseDescriptionStyle(umlComponent);
- }
- if (result == null) {
- result = caseFillStyle(umlComponent);
- }
- if (result == null) {
- result = caseLineStyle(umlComponent);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlComponent);
- }
- if (result == null) {
- result = caseEModelElement(umlComponent);
- }
- if (result == null) {
- result = caseStyle(umlComponent);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- case PapyrusUMLNotationPackage.UML_CLASSIFIER_SHAPE: {
- UMLClassifierShape umlClassifierShape = (UMLClassifierShape) theEObject;
- T result = caseUMLClassifierShape(umlClassifierShape);
- if (result == null) {
- result = caseUMLShape(umlClassifierShape);
- }
- if (result == null) {
- result = caseShape(umlClassifierShape);
- }
- if (result == null) {
- result = caseUMLView(umlClassifierShape);
- }
- if (result == null) {
- result = caseNode(umlClassifierShape);
- }
- if (result == null) {
- result = caseShapeStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseView(umlClassifierShape);
- }
- if (result == null) {
- result = caseFontStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseDescriptionStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseFillStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseLineStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseRoundedCornersStyle(umlClassifierShape);
- }
- if (result == null) {
- result = caseEModelElement(umlClassifierShape);
- }
- if (result == null) {
- result = caseStyle(umlClassifierShape);
- }
- if (result == null) {
- result = defaultCase(theEObject);
- }
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Diagram</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>UML Diagram</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLDiagram(UMLDiagram object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Frame</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>UML Frame</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLFrame(UMLFrame object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Shape Compartment</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>UML Shape Compartment</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLShapeCompartment(UMLShapeCompartment object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Shape</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>UML Shape</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLShape(UMLShape object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Connector</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>UML Connector</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLConnector(UMLConnector object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML View</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>UML View</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLView(UMLView object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Component</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>UML Component</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLComponent(UMLComponent object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>UML Classifier Shape</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>UML Classifier Shape</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUMLClassifierShape(UMLClassifierShape object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>EModel Element</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>EModel Element</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEModelElement(EModelElement object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>View</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>View</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseView(View object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Diagram</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>Diagram</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDiagram(Diagram object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Node</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>Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseNode(Node object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Style</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>Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseStyle(Style object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Font Style</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>Font Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseFontStyle(FontStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Description Style</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>Description Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDescriptionStyle(DescriptionStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Fill Style</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>Fill Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseFillStyle(FillStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Line Style</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>Line Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLineStyle(LineStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Rounded Corners Style</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>Rounded Corners Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRoundedCornersStyle(RoundedCornersStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Shape Style</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>Shape Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseShapeStyle(ShapeStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Shape</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>Shape</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseShape(Shape object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Basic Decoration Node</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>Basic Decoration Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBasicDecorationNode(BasicDecorationNode object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Decoration Node</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>Decoration Node</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDecorationNode(DecorationNode object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Drawer Style</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>Drawer Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseDrawerStyle(DrawerStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Basic Compartment</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>Basic Compartment</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBasicCompartment(BasicCompartment object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Canonical Style</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>Canonical Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCanonicalStyle(CanonicalStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Title Style</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>Title Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseTitleStyle(TitleStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Compartment</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>Compartment</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseCompartment(Compartment object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Edge</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>Edge</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseEdge(Edge object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Routing Style</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>Routing Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRoutingStyle(RoutingStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Connector Style</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>Connector Style</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseConnectorStyle(ConnectorStyle object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '<em>Connector</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>Connector</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseConnector(Connector 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;
- }
-
-} // PapyrusUMLNotationSwitch
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/Activator.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/Activator.java
deleted file mode 100644
index b74126b3b32..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/Activator.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa;
-
-import org.eclipse.papyrus.infra.core.log.LogHelper;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class Activator extends AbstractUIPlugin {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.papyrus.migration.rsa"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- public static LogHelper log;
-
- /**
- * The constructor
- */
- public Activator() {
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext context) throws Exception {
- super.start(context);
- plugin = this;
- log = new LogHelper(this);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext context) throws Exception {
- plugin = null;
- super.stop(context);
- }
-
- /**
- * Returns the shared instance
- *
- * @return the shared instance
- */
- public static Activator getDefault() {
- return plugin;
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/blackbox/ProfileBaseHelper.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/blackbox/ProfileBaseHelper.java
deleted file mode 100644
index 3c55cedf0ed..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/blackbox/ProfileBaseHelper.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.blackbox;
-
-
-import java.util.Properties;
-
-import org.eclipse.m2m.qvt.oml.blackbox.java.Operation;
-import org.eclipse.m2m.qvt.oml.blackbox.java.Operation.Kind;
-import org.eclipse.m2m.qvt.oml.util.IContext;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileConstraint;
-
-
-public class ProfileBaseHelper {
-
- /** Key of the ConfigProperty containing the java.util.Properties for ProfileBase#messageKey mappings */
- public static final String PROFILE_BASE_PROPERTIES = "profilebase.properties";
-
- /**
- * Reads the constraint's message from the ProfileBase properties file
- * If the message is not found, the messageKey is returned
- *
- * @param context
- * @param constraint
- * The ProfileConstraint element (From ProfileBase profile)
- * @return
- * The ProfileConstraint's message (From the properties file), or the ProfileConstraint's messageKey if the message is not defined
- */
- @Operation(contextual = true, kind = Kind.QUERY, withExecutionContext = true)
- public String getConstraintMessage(IContext context, ProfileConstraint constraint) {
- String key = constraint.getMessageKey();
-
- if(key == null) {
- return null;
- }
-
- Object propertiesObject = context.getConfigProperty(PROFILE_BASE_PROPERTIES);
- if(propertiesObject instanceof Properties) {
- Properties properties = (Properties)propertiesObject;
- return properties.getProperty(key, key);
- }
-
- return key;
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/blackbox/RTMappings.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/blackbox/RTMappings.java
deleted file mode 100644
index 9889c6d3f1a..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/blackbox/RTMappings.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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.migration.rsa.blackbox;
-
-import java.util.Collection;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.m2m.qvt.oml.blackbox.java.Operation;
-import org.eclipse.m2m.qvt.oml.blackbox.java.Operation.Kind;
-import org.eclipse.m2m.qvt.oml.util.IContext;
-import org.eclipse.uml2.common.util.CacheAdapter;
-import org.eclipse.uml2.uml.CallEvent;
-import org.eclipse.uml2.uml.Collaboration;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.LiteralString;
-import org.eclipse.uml2.uml.OpaqueExpression;
-import org.eclipse.uml2.uml.SignalEvent;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * Implements the Blackbox mappings for RSARTToPapyrusRT
- *
- * @author Camille Letavernier
- *
- */
-public class RTMappings {
-
- @Operation(contextual = true, kind = Kind.MAPPING, withExecutionContext = true)
- public static org.eclipse.uml2.uml.Class toClass(IContext context, Collaboration collaboration) {
- return refactorType(context, collaboration, UMLPackage.eINSTANCE.getClass_(), org.eclipse.uml2.uml.Class.class);
- }
-
- @Operation(contextual = true, kind = Kind.MAPPING, withExecutionContext = true)
- public static SignalEvent toSignalEvent(IContext context, CallEvent callEvent) {
- return refactorType(context, callEvent, UMLPackage.eINSTANCE.getSignalEvent(), SignalEvent.class);
- }
-
- @Operation(contextual = true, kind = Kind.MAPPING, withExecutionContext = false)
- public static LiteralString toLiteralString(OpaqueExpression expression) {
- return refactorType(null, expression, UMLPackage.eINSTANCE.getLiteralString(), LiteralString.class);
- }
-
- // Not public to avoid confusing QVTo (Public methods are part of the Blackbox unit API)
- private static <T extends Element> T refactorType(IContext context, EObject sourceElement, EClass targetEClass, java.lang.Class<T> resultType) {
- // Retrieve the resource at the beginning, because the source element will be removed from its container at some point
- // Resource resource = sourceElement.eResource();
-
- // Create a Class and maintain the features (Attributes and References)
- T result = resultType.cast(UMLFactory.eINSTANCE.create(targetEClass));
- for (EStructuralFeature sourceFeature : sourceElement.eClass().getEAllStructuralFeatures()) {
- EStructuralFeature targetFeature = result.eClass().getEStructuralFeature(sourceFeature.getName());
- if (targetFeature != null && targetFeature.isChangeable() && sourceElement.eIsSet(sourceFeature)) {
- result.eSet(targetFeature, sourceElement.eGet(sourceFeature));
- }
- }
-
- // Fix incoming references
- Collection<EStructuralFeature.Setting> incomingReferences = CacheAdapter.getInstance().getInverseReferences(sourceElement);
- for (EStructuralFeature.Setting setting : incomingReferences) {
- EStructuralFeature feature = setting.getEStructuralFeature();
- if (feature.isChangeable() && feature.getEType().isInstance(result)) {
- if (feature.isMany()) {
- Object value = setting.get(true);
- if (value instanceof Collection<?>) {
- List<Object> copy = new LinkedList<Object>((Collection<?>) value);
-
- while (true) {
- int index = copy.indexOf(sourceElement);
- if (index < 0) {
- break;
- }
-
- copy.remove(index);
- copy.add(index, result);
- }
-
- setting.set(copy);
- }
- } else {
- setting.set(result);
- }
- }
- }
-
- // TODO: Keep the same XMI ID
- // This algorithm doesn't work here, because the object has been added to a temporary resource (ModelExtent), which doesn't support IDs mapping
- // We need to track the mapping somewhere else
-
- // if(resource instanceof XMLResource) {
- // XMLResource xmlResource = (XMLResource)resource;
- // xmlResource.setID(result, xmlResource.getID(sourceElement));
- // }
- return result;
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ExecutorsPool.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ExecutorsPool.java
deleted file mode 100644
index 357530e9cd4..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ExecutorsPool.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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.concurrent;
-
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.m2m.qvt.oml.TransformationExecutor;
-import org.eclipse.papyrus.migration.rsa.Activator;
-
-/**
- * Thread safe pool of Transformation Executors
- *
- * @author Camille Letavernier
- *
- */
-public class ExecutorsPool {
-
- // The cache can be used to increase performances (For small and medium sized models, most of the execution time is spent in loading the transformation)
- // Warning: using the cache prevents dynamic transformations (i.e. it should not be used in Debug Mode)
- protected boolean cacheTransformations = true;
-
- private final int poolSize;
-
- public ExecutorsPool(int size) {
- this.poolSize = size;
- }
-
- private final Map<URI, Pool> executors = new HashMap<URI, Pool>();
-
- private final Map<TransformationExecutor, URI> executorsURIs = new HashMap<TransformationExecutor, URI>();
-
- /**
- * Gets an available executor for the given transformation URI. Creates it if needed,
- * and we haven't reached the poolSize for this transformationURI
- *
- * Transformation executor needs to be released after usage
- *
- * @param transformationURI
- * @return
- */
- public TransformationExecutor getExecutor(URI transformationURI) {
- if (!cacheTransformations) {
- return new Pool(transformationURI).createExecutor();
- }
-
- synchronized (executors) {
- if (!executors.containsKey(transformationURI)) {
- executors.put(transformationURI, new Pool(transformationURI));
- }
- }
-
- Pool pool = executors.get(transformationURI);
- return pool.getExecutor();
- }
-
- /**
- * Preloads all instances for the given URI
- *
- * @param transformationURI
- * @return
- */
- public synchronized IStatus preLoad(URI transformationURI) {
- // Don't preload if there is no cache
- if (!cacheTransformations) {
- return Status.OK_STATUS;
- }
-
- synchronized (this) {
- if (!executors.containsKey(transformationURI)) {
- Pool pool = new Pool(transformationURI);
- executors.put(transformationURI, pool);
- pool.preload();
- }
- }
-
- return Status.OK_STATUS;
- }
-
- /**
- * Releases a transformation executor after usage
- *
- * @param executor
- */
- public void releaseExecutor(TransformationExecutor executor) {
- if (!cacheTransformations) {
- return;
- }
- URI transformationURI = executorsURIs.get(executor);
- Pool pool = executors.get(transformationURI);
- pool.release(executor);
- }
-
- private class Pool {
- private List<TransformationExecutor> allExecutors = new LinkedList<TransformationExecutor>();
-
- private List<TransformationExecutor> busyExecutors = new LinkedList<TransformationExecutor>();
-
- private final URI transformationURI;
-
- public Pool(URI transformationURI) {
- this.transformationURI = transformationURI;
- }
-
- public void preload() {
- for (int i = 0; i < poolSize; i++) {
- createExecutor();
- }
- busyExecutors.clear();
- }
-
- public synchronized void release(TransformationExecutor executor) {
- busyExecutors.remove(executor);
- }
-
- public TransformationExecutor getExecutor() {
- while (true) {
- synchronized (this) {
- for (TransformationExecutor executor : allExecutors) {
- if (isAvailable(executor)) {
- return getExecutor(executor);
- }
- }
-
- if (allExecutors.size() < poolSize) {
- return createExecutor();
- }
- }
-
- try {
- Thread.sleep(25);
- } catch (InterruptedException ex) {
- Activator.log.error(ex);
- return null;
- }
- }
- }
-
- private boolean isAvailable(TransformationExecutor executor) {
- return !busyExecutors.contains(executor);
- }
-
- private TransformationExecutor getExecutor(TransformationExecutor executor) {
- busyExecutors.add(executor);
- return executor;
- }
-
- private TransformationExecutor createExecutor() {
- TransformationExecutor executor = new TransformationExecutor(transformationURI);
- executor.loadTransformation();
- allExecutors.add(executor);
- executorsURIs.put(executor, transformationURI);
- return getExecutor(executor);
- }
-
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ResourceAccessHelper.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ResourceAccessHelper.java
deleted file mode 100644
index 32885d03b18..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ResourceAccessHelper.java
+++ /dev/null
@@ -1,101 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.concurrent;
-
-import java.io.IOException;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.concurrent.locks.Lock;
-import java.util.concurrent.locks.ReadWriteLock;
-import java.util.concurrent.locks.ReentrantReadWriteLock;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-
-/**
- * This class is used to synchronize access to physical EMF Resources (Load/Save)
- *
- * @author Camille Letavernier
- *
- */
-public class ResourceAccessHelper {
- public static ResourceAccessHelper INSTANCE = new ResourceAccessHelper();
-
- private final Map<URI, ReadWriteLock> locks = new HashMap<URI, ReadWriteLock>();
-
- private ResourceAccessHelper() {
- // Singleton
- }
-
- private Lock getSaveLock(Resource resource) {
- ReadWriteLock lock = getLock(resource);
- return lock.writeLock();
- }
-
- private Lock getLoadLoack(Resource resource) {
- ReadWriteLock lock = getLock(resource);
- return lock.readLock();
- }
-
- /**
- * Saves a resource in a thread-safe way. Ensures that the underlying physical
- * resource is not being read during the save action
- *
- * @param resource
- * @param options
- * @throws IOException
- */
- public void saveResource(Resource resource, Map<?, ?> options) throws IOException {
- Lock lock = getSaveLock(resource);
- lock.lock();
- try {
- resource.save(options);
- } finally {
- lock.unlock();
- }
- }
-
- /**
- * Loads a resource in a thread-safe way. Ensures that the underlying physical
- * resource is not being saved during the load action. Concurrent read operations
- * may still happen
- *
- * @param resource
- * @param options
- * @throws IOException
- */
- public void loadResource(Resource resource, Map<?, ?> options) throws IOException {
- Lock lock = getLoadLoack(resource);
- lock.lock();
- try {
- resource.load(options);
- } finally {
- lock.unlock();
- }
- }
-
- private ReadWriteLock getLock(Resource resource) {
- URI uri = resource.getURI();
- if (uri == null) {
- return null;
- }
-
- synchronized (this) {
- if (!locks.containsKey(uri)) {
- locks.put(uri, new ReentrantReadWriteLock());
- }
-
- return locks.get(uri);
- }
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ThreadSafeModelSet.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ThreadSafeModelSet.java
deleted file mode 100644
index 01d6a822ec6..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ThreadSafeModelSet.java
+++ /dev/null
@@ -1,33 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.concurrent;
-
-import java.io.IOException;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.papyrus.infra.core.utils.DiResourceSet;
-
-/**
- * A ModelSet with thread-safe load operations
- *
- * Note: since Save operations are delegated to IModels, save operations are <strong>thread-safe</strong>.
- * Resources of this ResourceSet should be saved by delegating to {@link ResourceAccessHelper#saveResource(Resource, Map<?, ?>)}
- *
- * @see {@link ResourceAccessHelper}
- */
-public class ThreadSafeModelSet extends DiResourceSet {
- @Override
- protected void demandLoad(Resource resource) throws IOException {
- Resource resourceWithOptions = setResourceOptions(resource);
- ResourceAccessHelper.INSTANCE.loadResource(resourceWithOptions, getLoadOptions());
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ThreadSafeResourceSet.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ThreadSafeResourceSet.java
deleted file mode 100644
index ceeabbd378b..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/concurrent/ThreadSafeResourceSet.java
+++ /dev/null
@@ -1,33 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.concurrent;
-
-import java.io.IOException;
-
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;
-
-/**
- * A ResourceSet with thread-safe Load operations
- *
- * Resources should be saved using {@link ResourceAccessHelper#saveResource(Resource, java.util.Map)}
- *
- * @author Camille Letavernier
- *
- * @see {@link ResourceAccessHelper}
- */
-public class ThreadSafeResourceSet extends ResourceSetImpl {
- @Override
- protected void demandLoad(Resource resource) throws IOException {
- ResourceAccessHelper.INSTANCE.loadResource(resource, getLoadOptions());
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/constants/TransformationWizardConstants.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/constants/TransformationWizardConstants.java
deleted file mode 100755
index 958d80d5306..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/constants/TransformationWizardConstants.java
+++ /dev/null
@@ -1,47 +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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.constants;
-
-import org.eclipse.papyrus.migration.rsa.Activator;
-
-/**
- * Constants used in the wizard
- */
-public interface TransformationWizardConstants {
-
- /**
- * The extensions used in the default filters
- */
- public static final String[] EXTENSIONS = { "*", "*.emx", "*.epx", "*.epx;*.emx" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-
- public static final String[] EXTENSIONS_NAMES = { "All", "*.emx", "*.epx", "*.epx and *.emx" }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-
- /**
- * The name used for the settings file
- */
- public static final String TRANSFORMATION_WIZARD_SETTINGS = Activator.PLUGIN_ID + "Wizard.lastUnselection"; //$NON-NLS-1$
-
- /**
- * The key to retrieve the selection preferences from the settings file
- */
- public static final String WIZARD_SELECTION_KEY = "selectionPeferences"; //$NON-NLS-1$
-
- public static final String FILEDIALOG_SELECTION_KEY = "previousDialogSelection"; //$NON-NLS-1$
-
- /**
- * The name of the newly created project's folders
- */
- public static final String SRC_FOLDER = "src"; //$NON-NLS-1$
-
- public static final String RSC_FOLDER = "resources"; //$NON-NLS-1$
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/handler/ImportHandler.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/handler/ImportHandler.java
deleted file mode 100644
index c12a9cb02b0..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/handler/ImportHandler.java
+++ /dev/null
@@ -1,154 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2017 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 505330
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.handler;
-
-import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Set;
-import java.util.concurrent.atomic.AtomicBoolean;
-
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.infra.properties.ui.creation.PropertyEditorFactory;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersFactory;
-import org.eclipse.papyrus.migration.rsa.internal.ConfigurationManager;
-import org.eclipse.papyrus.migration.rsa.transformation.ImportTransformationLauncher;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.handlers.HandlerUtil;
-
-
-public class ImportHandler extends AbstractHandler {
-
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
- ISelection selection = HandlerUtil.getCurrentSelection(event);
- if (selection == null || selection.isEmpty()) {
- return null;
- }
-
- Set<IFile> filesToImport = new HashSet<IFile>();
-
- if (selection instanceof IStructuredSelection) {
- IStructuredSelection structuredSelection = (IStructuredSelection) selection;
- Iterator<?> selectionIterator = structuredSelection.iterator();
- while (selectionIterator.hasNext()) {
- Object selectedElement = selectionIterator.next();
- if (selectedElement instanceof IAdaptable) {
- IFile selectedFile = ((IAdaptable) selectedElement).getAdapter(IFile.class);
- if (selectedFile == null) {
- continue;
- }
-
- // EFX files can be selected (Makes it easier to select a set of files),
- // but they will be imported by their parent model
- String fileExtension = selectedFile.getFileExtension();
- if ("epx".equals(fileExtension) || "emx".equals(fileExtension)) { //$NON-NLS-1$ //$NON-NLS-2$
- filesToImport.add(selectedFile);
- }
- }
- }
- }
-
- if (filesToImport.isEmpty()) {
- Activator.log.warn("The selection doesn't contain any *.epx nor *.emx file");
- } else {
- importFiles(filesToImport, event);
- }
-
- return null;
- }
-
- public void importFiles(Set<IFile> selectedFiles, ExecutionEvent event) {
- Config config = getTransformationParameters(event);
-
- if (config == null) {
- return;
- }
-
- List<URI> urisToImport = new LinkedList<URI>();
-
- for (IFile selectedFile : selectedFiles) {
- URI uri = URI.createPlatformResourceURI(selectedFile.getFullPath().toString(), true);
-
- urisToImport.add(uri);
- }
-
- // The Event's control is (or may be) a Context Menu, which will be disposed soon: retrieve its own parent instead (The main Window), if it has one.
- Control baseControl = HandlerUtil.getActiveShell(event);
- if (baseControl != null && !baseControl.isDisposed() && baseControl.getParent() != null) {
- baseControl = baseControl.getParent();
- }
-
- // On some platforms, it seems that the ActiveShell (Context Menu) may already be disposed (Bug 455011). Use the Active Workbench Window directly
- if (baseControl == null || baseControl.isDisposed()) {
- baseControl = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
- }
-
- ImportTransformationLauncher launcher = new ImportTransformationLauncher(config, baseControl);
- launcher.run(urisToImport);
- }
-
- public Config getTransformationParameters(ExecutionEvent event) {
- Config config = RSAToPapyrusParametersFactory.eINSTANCE.createConfig();
- ConfigurationManager configMan = new ConfigurationManager();
- configMan.loadConfig(config);
-
- Shell activeShell = HandlerUtil.getActiveShell(event);
-
- final AtomicBoolean okPressed = new AtomicBoolean(true);
- PropertyEditorFactory factory = new PropertyEditorFactory() {
- @Override
- public String getEditionDialogTitle(Object objectToEdit) {
- return "Transformation parameters";
- }
-
- @Override
- protected void handleEditCancelled(Control widget, Object source) {
- okPressed.set(false);
- super.handleEditCancelled(widget, source);
- }
- };
-
- Object result = factory.edit(activeShell, config);
-
- if (!okPressed.get()) {
- configMan.dispose();
- return null;
- }
-
- // Result can be null, the source config, or a new config
- if (result instanceof Config) {
- config = (Config) result;
- }
-
- configMan.saveConfig(config);
- configMan.dispose();
-
- return config;
- }
-
-
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/ConfigurationManager.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/ConfigurationManager.java
deleted file mode 100644
index 61190a70444..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/ConfigurationManager.java
+++ /dev/null
@@ -1,97 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2017 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.migration.rsa.internal;
-
-import java.io.IOException;
-
-import org.eclipse.emf.common.util.EList;
-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.resource.impl.ResourceSetImpl;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersFactory;
-
-/**
- * Persistence manager for the basic import configuration properties.
- */
-public class ConfigurationManager {
-
- private ResourceSet rset = new ResourceSetImpl();
- private Resource configResource;
- private Config config;
-
- public ConfigurationManager() {
- super();
-
- // Load or create the configuration resource in the workspace metadata
- URI configURI = URI.createFileURI(Activator.getDefault().getStateLocation().toOSString())
- .appendSegment("config.xmi"); //$NON-NLS-1$
- try {
- configResource = rset.getResource(configURI, true);
- } catch (Exception e) {
- // Doesn't exist. Fine. We insist
- configResource = rset.getResource(configURI, false);
- }
-
- // Get or create the configuration in the configuration resource
- EList<EObject> contents = configResource.getContents();
- if (!contents.isEmpty() && (contents.get(0) instanceof Config)) {
- config = (Config) contents.get(0);
- } else {
- config = RSAToPapyrusParametersFactory.eINSTANCE.createConfig();
- contents.clear();
- contents.add(config);
- }
- }
-
- public void dispose() {
- config = null;
- configResource = null;
- EMFHelper.unload(rset);
- }
-
- public void loadConfig(Config config) {
- EcoreUtil.Copier copier = new EcoreUtil.Copier() {
- private static final long serialVersionUID = 1L;
-
- @Override
- protected EObject createCopy(EObject eObject) {
- return (eObject == ConfigurationManager.this.config)
- ? config
- : super.createCopy(eObject);
- }
- };
-
- copier.copy(this.config);
- }
-
- public void saveConfig(Config newConfig) {
- try {
- if (newConfig == null) {
- // Delete the saved configuration
- configResource.delete(null);
- } else if (!EcoreUtil.equals(config, newConfig)) {
- EcoreUtil.replace(config, EcoreUtil.copy(newConfig));
- configResource.save(null);
- }
- } catch (IOException e) {
- Activator.log.error(e);
- }
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/extension/PostProcessExtension.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/extension/PostProcessExtension.java
deleted file mode 100644
index 5e8421eeed2..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/extension/PostProcessExtension.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2017 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.migration.rsa.internal.extension;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.m2m.qvt.oml.ExecutionContext;
-
-/**
- * <p>
- * Extension to the RSA-to-Papyrus transformation's post-processing phase
- * for dependency migration and stereotype repair. {@link TransformationExtension}s
- * may additionally implement this interface to be invoked after all other
- * post-processing is done by the core import framework.
- * </p>
- * <p>
- * This is provisional API.
- * </p>
- */
-public interface PostProcessExtension extends TransformationExtension {
- /**
- * <p>
- * Post-processes the completed imported model. This method is invoked in the
- * context of a write transaction, so the implementation is free to make any
- * edits to the model directly, without the use of commands. Note that this
- * does imply that the changes made to the model are not undoable and cannot
- * be rolled back in case of any failure.
- * </p>
- * <p>
- * <b>Note</b> also that this post-processing is performed in different resource
- * set to the one in which the base transformation extensions are performed.
- * Therefore, before this method is invoked, the receiver will have been
- * assigned a new {@link #setResourceSet(ResourceSet) resourceSet}.
- * </p>
- *
- * @param context
- * the QVTo execution context
- * @param monitor
- * for optional reporting of progress if the post-processing is
- * expected to be a long-running operation. This is a private
- * monitor for the extension that should be started and finished
- * as usual. So, the {@linkplain #getNumberOfSteps() number of steps}
- * reported by the base transformation must not include this
- * post-processing phase
- *
- * @return a status indicating success or problems
- *
- * @see #setResourceSet(ResourceSet)
- * @see #getNumberOfSteps()
- */
- IStatus postProcess(ExecutionContext context, IProgressMonitor monitor);
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/extension/TransformationExtension.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/extension/TransformationExtension.java
deleted file mode 100644
index 545d28e2ad5..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/extension/TransformationExtension.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2015, 2017 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 505330
- *
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.internal.extension;
-
-import java.util.Set;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.m2m.qvt.oml.ExecutionContext;
-import org.eclipse.papyrus.migration.rsa.concurrent.ExecutorsPool;
-import org.eclipse.papyrus.migration.rsa.transformation.ImportTransformation;
-
-/**
- * Extension to the RSA-to-Papyrus model transformation
- *
- * Provisional API
- *
- * @author Camille Letavernier
- *
- */
-public interface TransformationExtension {
- /**
- * Invoked only once when the extension is loaded for the first time (Before any execution)
- *
- * @return
- * The source EPackages required by this transformation (Typically source profile definitions)
- */
- public Set<EPackage> getAdditionalSourceEPackages();
-
- /**
- * The resource set used by the main transformation. Contains the source and target resources
- *
- * @param resourceSet
- */
- public void setResourceSet(ResourceSet resourceSet);
-
- /**
- * The ExecutorsPool used for manipulating parallel QVTo transformations
- *
- * @param executorsPool
- */
- public void setExecutorsPool(ExecutorsPool executorsPool);
-
- /**
- *
- * @param importTransformation
- */
- public void setTransformation(ImportTransformation importTransformation);
-
- /**
- * Part of the transformation that is executed before the main transformation's semantics and graphics import
- *
- * @param context
- * The QVTo execution context
- * @param monitor
- * The current progress monitor. The monitor is reused from the main transformation; only use subtask/worked methods
- * @return
- */
- public IStatus executeBefore(ExecutionContext context, IProgressMonitor monitor);
-
- /**
- * Part of the transformation that is executed after both the semantics and graphics have been imported
- *
- * @param context
- * The QVTo execution context
- * @param monitor
- * The current progress monitor. The monitor is reused from the main transformation; only use subtask/worked methods
- * @return
- */
- public IStatus executeAfter(ExecutionContext context, IProgressMonitor monitor);
-
- /**
- * The number of work steps required by this transformation. Corresponds to the total number of worked() you can invoke in executeBefore/executeAfter.
- * This does not include any work that is done in optional extensions such as {@link PostProcessExtension}.
- *
- * @return the total number of steps consumed from the shared progress monitor in
- * my {@link #executeBefore(ExecutionContext, IProgressMonitor) executeBefore} and
- * {@link #executeAfter(ExecutionContext, IProgressMonitor) executeAfter}
- */
- public int getNumberOfSteps();
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/JobWrapper.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/JobWrapper.java
deleted file mode 100644
index c6fe6cf76a3..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/JobWrapper.java
+++ /dev/null
@@ -1,44 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.internal.schedule;
-
-import org.eclipse.core.runtime.jobs.Job;
-
-public class JobWrapper implements Schedulable {
-
- protected final Job job;
-
- public JobWrapper(Job job) {
- this.job = job;
- }
-
- @Override
- public void start() {
- job.schedule();
- }
-
- @Override
- public boolean isComplete() {
- return job.getResult() != null;
- }
-
- @Override
- public String getName() {
- return job.getName();
- }
-
- @Override
- public void cancel() {
- job.cancel();
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/Schedulable.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/Schedulable.java
deleted file mode 100644
index f3ef627fdc8..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/Schedulable.java
+++ /dev/null
@@ -1,44 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.internal.schedule;
-
-/**
- * Minimal API for schedulable tasks
- *
- * @author Camille Letavernier
- *
- */
-public interface Schedulable {
- /**
- *
- * @return true if the task is complete
- */
- public boolean isComplete();
-
- /**
- *
- * @return the label of the tasks
- */
- public String getName();
-
- /**
- * Starts the task. The implementation should start in a separate thread (e.g. via a Job)
- */
- public void start();
-
- /**
- * Requests the task to cancel. The task may not be canceled immediately; invoker should wait
- * for isComplete() to return true after invoking this method
- */
- public void cancel();
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/Scheduler.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/Scheduler.java
deleted file mode 100644
index b02bf5bbf7b..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/Scheduler.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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.internal.schedule;
-
-import java.util.Iterator;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.papyrus.migration.rsa.Activator;
-
-/**
- * Executes a number of parallel tasks on the specified (maximum) amount of threads
- *
- * @author Camille Letavernier
- *
- */
-public class Scheduler {
-
- protected int maxThreads;
-
- public Scheduler(int maxThreads) {
- this.maxThreads = Math.max(1, maxThreads);
- }
-
- public void schedule(IProgressMonitor monitor, List<? extends Schedulable> tasks) {
-
- List<Schedulable> remainingTasks = new LinkedList<Schedulable>(tasks);
- List<Schedulable> runningTasks = new LinkedList<Schedulable>();
-
- while (!remainingTasks.isEmpty()) {
- if (monitor.isCanceled()) {
- monitor.subTask("Canceling remaining jobs...");
- for (Schedulable task : runningTasks) {
- task.cancel();
- }
- remainingTasks.clear(); // Don't start these transformations at all
- // Keep waiting: the cancel operation is asynchronous, we still need to wait for the jobs to complete
- }
-
- // Schedule transformations if we have enough threads and they have not all been scheduled
- while (runningTasks.size() < maxThreads && !remainingTasks.isEmpty()) {
- final Schedulable task = remainingTasks.remove(0); // Get and remove
- task.start();
- runningTasks.add(task);
- }
-
- if (!runningTasks.isEmpty()) {
- String waitFor = runningTasks.get(0).getName();
- monitor.subTask("Waiting for Import " + waitFor + " to complete...");
- }
-
- // We can continue if at least one transformation is complete (Leaving a free Thread)
- boolean canContinue = false;
-
- Iterator<Schedulable> iterator = runningTasks.iterator();
- while (iterator.hasNext()) {
- Schedulable runningTask = iterator.next();
- if (runningTask.isComplete()) {
- canContinue = true;
- iterator.remove();
- monitor.worked(1);
- }
- }
-
- if (!canContinue) {
- try {
- Thread.sleep(100);
- } catch (InterruptedException ex) {
- Activator.log.error(ex);
- }
- }
- }
-
- // All transformations have been scheduled (But not necessarily completed): wait for all of them to complete
- wait(runningTasks, monitor);
- }
-
-
- // Wait for all (remaining) import transformations to complete
- protected void wait(List<Schedulable> tasks, IProgressMonitor monitor) {
-
- // Transformations still running
- List<Schedulable> runningTasks = new LinkedList<Schedulable>(tasks);
-
- while (!runningTasks.isEmpty()) {
- if (monitor.isCanceled()) {
- monitor.subTask("Canceling remaining jobs...");
- for (Schedulable task : runningTasks) {
- task.cancel();
- }
- // Keep waiting: the cancel operation is asynchronous, we still need to wait for the jobs to complete
- }
-
- Iterator<Schedulable> iterator = runningTasks.iterator();
- while (iterator.hasNext()) {
- Schedulable task = iterator.next();
- if (task.isComplete()) {
- iterator.remove();
- monitor.worked(1);
- }
- }
-
- if (!runningTasks.isEmpty()) {
- String waitFor = runningTasks.get(0).getName();
- monitor.subTask("Waiting for " + waitFor + " to complete...");
-
- try {
- Thread.sleep(100);
- } catch (InterruptedException ex) {
- Activator.log.error(ex);
- return;
- }
- }
- }
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/TransformationWrapper.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/TransformationWrapper.java
deleted file mode 100644
index 417474fb4b0..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/internal/schedule/TransformationWrapper.java
+++ /dev/null
@@ -1,44 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.internal.schedule;
-
-import org.eclipse.papyrus.migration.rsa.transformation.ImportTransformation;
-
-public class TransformationWrapper implements Schedulable {
-
- protected ImportTransformation transformation;
-
- public TransformationWrapper(ImportTransformation transformation) {
- this.transformation = transformation;
- }
-
- @Override
- public boolean isComplete() {
- return transformation.isComplete();
- }
-
- @Override
- public String getName() {
- return transformation.getModelName();
- }
-
- @Override
- public void start() {
- transformation.run(false);
- }
-
- @Override
- public void cancel() {
- transformation.cancel();
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/messages/Messages.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/messages/Messages.java
deleted file mode 100755
index 8f45fffe7df..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/messages/Messages.java
+++ /dev/null
@@ -1,43 +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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.messages;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * UI text to externalize
- */
-public class Messages extends NLS {
-
- private static final String BUNDLE_NAME = "org.eclipse.papyrus.migration.rsa.messages.messages"; //$NON-NLS-1$
- public static String TransformationWizard_Title;
- public static String TransformationSelectionPage_Name;
- public static String TransformationSelectionPage_Title;
- public static String TransformationSelectionPage_Description;
- public static String FileDialogTitle;
- public static String TransformationConfigPage_Name;
- public static String TransformationConfigPage_Title;
- public static String TransformationConfigPage_Description;
- public static String Button_SelectAll;
- public static String Button_DeselectAll;
- public static String Button_FileSystemSelection;
- public static String MultipleStringFileEditor_2;
- public static String WrongFileType;
-
- static {
- // initialize resource bundle
- NLS.initializeMessages(BUNDLE_NAME, Messages.class);
- }
-
- private Messages() {
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/messages/messages.properties b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/messages/messages.properties
deleted file mode 100755
index 17b3de25719..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/messages/messages.properties
+++ /dev/null
@@ -1,26 +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:
-# Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
-#
-###############################################################################
-
-TransformationWizard_Title=RSA transformation wizard
-TransformationSelectionPage_Name=Workspace selection
-TransformationSelectionPage_Title=Select a scope for the transformation
-TransformationSelectionPage_Description=Select the folders or files for the transformation
-FileDialogTitle=Select the files to import
-TransformationConfigPage_Name=Parameters selection
-TransformationConfigPage_Title=Define the transformation parameters
-TransformationConfigPage_Description=Select the files and the configuration options for the transformation
-Button_SelectAll=Select All
-Button_DeselectAll=Deselect All
-Button_FileSystemSelection=File System Selection
-MultipleStringFileEditor_2=FilterExtensions and FilterNames do not match
-WrongFileType=Not an IFile, wrong type to transform
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/DependencyAnalysisHelper.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/DependencyAnalysisHelper.java
deleted file mode 100644
index 033ab051ba1..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/DependencyAnalysisHelper.java
+++ /dev/null
@@ -1,474 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.transformation;
-
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-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.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.xmi.XMLResource;
-import org.eclipse.emf.ecore.xml.type.AnyType;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersFactory;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-import org.eclipse.papyrus.migration.rsa.concurrent.ThreadSafeResourceSet;
-import org.eclipse.papyrus.uml.extensionpoints.library.IRegisteredLibrary;
-import org.eclipse.papyrus.uml.extensionpoints.library.RegisteredLibrary;
-import org.eclipse.papyrus.uml.extensionpoints.profile.IRegisteredProfile;
-import org.eclipse.papyrus.uml.extensionpoints.profile.RegisteredProfile;
-import org.eclipse.uml2.uml.Element;
-
-import com.google.common.collect.Sets;
-
-public class DependencyAnalysisHelper {
-
- protected final Config config;
-
- protected final static Set<String> rsaExtensions = Sets.newHashSet("emx", "efx"); //$NON-NLS-1$ //$NON-NLS-2$
-
- protected final static String rsaProfileExtension = "epx"; //$NON-NLS-1$
-
- // ResourceSet used to load and explore Static Libraries
- protected final ResourceSet localResourceSet = new ThreadSafeResourceSet();
-
- // Store the broken URIs without trying to resolve them. We don't have enough information to resolve them during the first phase of the model import
- // The Key is the resource URI, the value is the Set of each individual EObject Fragment (We need the EObject fragments to find potential matches)
- protected final Map<URI, Set<String>> brokenUris = new HashMap<URI, Set<String>>();
-
- protected final Set<URI> brokenProfiles = new HashSet<URI>();
-
- public DependencyAnalysisHelper(Config config) {
- this.config = config;
-
- configureResourceSet();
- }
-
- protected void configureResourceSet() {
- localResourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_ATTACHMENT, true);
- localResourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_IDREF_RESOLUTION, true);
- localResourceSet.getLoadOptions().put(XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
- localResourceSet.getLoadOptions().put(XMLResource.OPTION_USE_PACKAGE_NS_URI_AS_LOCATION, Boolean.FALSE);
- }
-
- protected void unloadResourceSet() {
- EMFHelper.unload(localResourceSet);
- }
-
- public void computeURIMappings(Collection<Resource> sourceModels) {
- for (Resource sourceModel : sourceModels) {
- doComputeURIMappings(sourceModel);
- }
- }
-
- public synchronized void resolveAllMappings(Map<URI, URI> urisToReplace, Map<URI, URI> profileUrisToReplace) {
- if (config.getMappingParameters() == null) {
- config.setMappingParameters(RSAToPapyrusParametersFactory.eINSTANCE.createMappingParameters());
- }
-
- try {
- for (Entry<URI, Set<String>> resourceToRepair : brokenUris.entrySet()) {
-
- // Already known mapping
- if (urisToReplace.containsKey(resourceToRepair.getKey())) {
- continue;
- }
- findMatch(resourceToRepair.getKey(), resourceToRepair.getValue());
- }
-
- for (URI profileDefinition : brokenProfiles) {
-
- // Already known mapping
- if (profileUrisToReplace.containsKey(profileDefinition.trimFragment().trimQuery())) {
- continue;
- }
- findMatch(profileDefinition);
- }
- } finally {
- unloadResourceSet();
- brokenUris.clear();
- brokenProfiles.clear();
- }
- }
-
- protected void findMatch(URI resourceURI, Set<String> fragments) {
- URIMapping mapping = null;
-
- for (String fragment : fragments) {
- URI eObjectURI = resourceURI.appendFragment(fragment);
- mapping = findExistingMapping(eObjectURI, localResourceSet);
-
- if (mapping != null) {
- break;
- }
- }
-
- if (mapping == null) {
- mapping = RSAToPapyrusParametersFactory.eINSTANCE.createURIMapping();
- mapping.setSourceURI(resourceURI.toString());
- mapping.setTargetURI(mapping.getSourceURI());
- }
-
- config.getMappingParameters().getUriMappings().add(mapping);
- }
-
- protected void findMatch(URI profileDefinitionURI) {
- URIMapping match = findExistingProfileMapping(profileDefinitionURI, localResourceSet);
-
- if (match == null) {
- match = RSAToPapyrusParametersFactory.eINSTANCE.createURIMapping();
- match.setSourceURI(profileDefinitionURI.trimFragment().trimQuery().toString());
- match.setTargetURI(match.getSourceURI());
- }
-
- config.getMappingParameters().getProfileUriMappings().add(match);
- }
-
- protected void doComputeURIMappings(Resource sourceModel) {
- doComputeProfileURIMappings(sourceModel);
-
- TreeIterator<EObject> resourceContents = sourceModel.getAllContents();
- ResourceSet resourceSet = sourceModel.getResourceSet();
-
- while (resourceContents.hasNext()) {
- EObject next = resourceContents.next();
- for (EReference reference : next.eClass().getEAllReferences()) {
- if (reference.isContainer() || reference.isContainment() || reference.isDerived() || reference.isTransient()) {
- continue;
- }
-
- Object value = next.eGet(reference, false);
- if (value instanceof EObject) {
- handleURIMapping((EObject) value, resourceSet);
- } else if (value instanceof Collection<?>) {
- for (Object element : (Collection<?>) value) {
- if (element instanceof EObject) {
- handleURIMapping((EObject) element, resourceSet);
- }
- }
- }
- }
- }
- }
-
- protected void doComputeProfileURIMappings(Resource sourceModel) {
- ResourceSet resourceSet = sourceModel.getResourceSet();
-
- for (EObject rootObject : sourceModel.getContents()) {
- if (isInvalidStereotypeApplication(rootObject)) {
- handleProfileURIMapping(rootObject, resourceSet);
- }
- }
- }
-
- protected boolean isInvalidStereotypeApplication(EObject eObject) {
- if (eObject instanceof Element) {
- return false;
- }
-
- // The package is not resolved: probably a missing profile
- if (eObject instanceof AnyType) {
- return true;
- }
-
- // If the package is resolved but is contained in an EPX resource, it needs to be mapped to the Papyrus equivalent
- EPackage ePackage = eObject.eClass().getEPackage();
- if ("epx".equals(ePackage.eResource().getURI().fileExtension())) {
- return true;
- }
-
- return false;
- }
-
- protected boolean isRSAModelElement(EObject eObject) {
- return isRSAModelElement(EcoreUtil.getURI(eObject));
- }
-
- protected boolean isRSAModelElement(URI objectURI) {
- String fileExtension = objectURI.fileExtension();
- return rsaExtensions.contains(fileExtension) || rsaProfileExtension.equals(fileExtension);
- }
-
- protected synchronized Set<String> getFragments(URI resourceURI) {
- if (!brokenUris.containsKey(resourceURI)) {
- brokenUris.put(resourceURI, new HashSet<String>());
- }
-
- return brokenUris.get(resourceURI);
- }
-
- protected synchronized void handleBrokenReference(EObject proxy) {
- URI proxyURI = EcoreUtil.getURI(proxy);
- URI resourceURI = proxyURI.trimFragment().trimQuery();
-
- String fragment = proxyURI.fragment();
- Set<String> fragments = getFragments(resourceURI);
- fragments.add(fragment);
- }
-
- protected synchronized void addBrokenProfileDefinition(URI packageURI) {
- brokenProfiles.add(packageURI);
- }
-
-
- protected void handleProfileURIMapping(EObject stereotypeApplication, ResourceSet resourceSet) {
-
- EPackage profileDefinition = stereotypeApplication.eClass().getEPackage();
- URI packageURI = EcoreUtil.getURI(profileDefinition);
- if (packageURI.trimFragment().isEmpty()) {
- packageURI = URI.createURI(profileDefinition.getNsURI());
- }
- addBrokenProfileDefinition(packageURI);
-
- }
-
- protected void handleURIMapping(EObject eObject, ResourceSet resourceSet) {
-
- if (isRSAModelElement(eObject)) {
- handleBrokenReference(eObject);
- return;
- }
-
- if (eObject.eIsProxy()) {
- eObject = EcoreUtil.resolve(eObject, resourceSet);
- if (eObject.eIsProxy()) {
- handleBrokenReference(eObject);
- return;
- }
- }
-
- }
-
- protected URIMapping findExistingProfileMapping(URI profileDefinitionURI, ResourceSet resourceSet) {
-
- String fileExtension = profileDefinitionURI.fileExtension();
-
- URIMapping mapping = RSAToPapyrusParametersFactory.eINSTANCE.createURIMapping();
- URI sourceURI = profileDefinitionURI.trimFragment().trimQuery();
- mapping.setSourceURI(sourceURI.toString());
-
- URI targetURI = null;
-
- if ("epx".equals(fileExtension)) {
- targetURI = sourceURI.trimFileExtension().appendFileExtension("profile").appendFileExtension("uml");
- try {
- Resource resource = resourceSet.getResource(targetURI, true);
- if (resource != null && !resource.getContents().isEmpty()) {
- mapping.setTargetURI(targetURI.toString());
- return mapping;
- }
- } catch (Exception ex) {
- // Ignore: we can't find the target resource
- }
- }
-
- return findExistingMapping(profileDefinitionURI, resourceSet);
- }
-
- protected URIMapping findExistingMapping(URI proxyURI, ResourceSet resourceSet) {
- String fileExtension = proxyURI.fileExtension();
-
- URIMapping mapping = RSAToPapyrusParametersFactory.eINSTANCE.createURIMapping();
- mapping.setSourceURI(proxyURI.trimFragment().trimQuery().toString());
-
- URI targetURI = null;
- // Maybe the element has been migrated locally
- if (rsaExtensions.contains(fileExtension)) {
- targetURI = proxyURI.trimFileExtension().appendFileExtension("uml");
- } else if (rsaProfileExtension.equals(fileExtension)) {
- targetURI = proxyURI.trimFileExtension().appendFileExtension("profile.uml");
- }
-
- if (targetURI != null) {
- try {
- EObject targetElement = resourceSet.getEObject(targetURI, true);
- if (targetElement != null) {
-
- targetURI = EcoreUtil.getURI(targetElement);
-
- mapping.setTargetURI(targetURI.trimFragment().trimQuery().toString());
-
- return mapping;
- }
- } catch (Exception ex) {
- // Ignore: we can't find a target element for the given proxy
- }
- }
-
-
- if (!isRSAModelElement(proxyURI)) {
- // Maybe the resource exists, but doesn't contain this specific element
- URI resourceURI = proxyURI.trimFragment().trimQuery();
- try {
- Resource resource = resourceSet.getResource(resourceURI, true);
- if (resource != null && !resource.getContents().isEmpty()) {
-
- mapping.setTargetURI(resourceURI.toString());
-
- return mapping;
- }
- } catch (Exception ex) {
- // Ignore: we can't find the target resource
- }
- }
-
- // If the URI fragment is a path, don't explore registered libraries/profiles: almost all libraries will
- // have a matching element, although there is no specific correspondence
- if (isPathFragment(proxyURI)) {
- return null;
- }
-
- // Otherwise, we have an ID fragment
-
- // Maybe the resource has already been migrated, then deployed as a static library. Browse all registered libraries and try to find a matching XMI ID
- for (IRegisteredLibrary library : RegisteredLibrary.getRegisteredLibraries()) {
- URI libraryURI = library.getUri();
- try {
- Resource libraryResource = localResourceSet.getResource(libraryURI, true);
- if (libraryResource != null) {
- EObject resolvedElement = libraryResource.getEObject(proxyURI.fragment());
- if (resolvedElement != null && !resolvedElement.eIsProxy()) {
- mapping.setTargetURI(libraryURI.toString());
-
- return mapping;
- }
- }
- } catch (Exception ex) {
- // Ignore
- }
- }
-
- // Maybe the object is a Profile, so let's browse registered profiles as well
- for (IRegisteredProfile profile : RegisteredProfile.getRegisteredProfiles()) {
- URI profileURI = profile.getUri();
- try {
- Resource profileResource = localResourceSet.getResource(profileURI, true);
- if (profileResource != null) {
- EObject resolvedElement = profileResource.getEObject(proxyURI.fragment());
- if (resolvedElement != null && !resolvedElement.eIsProxy()) {
- mapping.setTargetURI(profileURI.toString());
-
- return mapping;
- }
- }
- } catch (Exception ex) {
- // Ignore
- }
- }
-
- return null;
- }
-
- protected boolean isPathFragment(URI proxyURI) {
- String uriFragment = proxyURI.fragment();
-
- return uriFragment != null && uriFragment.charAt(0) == '/';
- }
-
- protected URIMapping findExistingMapping(EObject proxy, ResourceSet resourceSet) {
- URI proxyURI = EcoreUtil.getURI(proxy);
- return findExistingMapping(proxyURI, resourceSet);
- }
-
- /** Propagates the URI Mappings to all duplicates */
- public void propagateURIMappings(List<URIMapping> allMappings, MappingParameters result) {
- for (URIMapping mapping : allMappings) {
- for (URIMapping uriMapping : result.getUriMappings()) {
- if (uriMapping.getSourceURI().equals(mapping.getSourceURI())) {
- uriMapping.setTargetURI(mapping.getTargetURI());
- }
- }
-
- for (URIMapping profileURIMapping : result.getProfileUriMappings()) {
- if (profileURIMapping.getSourceURI().equals(mapping.getSourceURI())) {
- profileURIMapping.setTargetURI(mapping.getTargetURI());
- }
- }
- }
- }
-
- public List<URIMapping> flattenURIMappings(MappingParameters result) {
- List<URIMapping> allMappings = new LinkedList<URIMapping>();
- allMappings.addAll(result.getUriMappings());
- allMappings.addAll(result.getProfileUriMappings());
-
- removeDuplicates(allMappings);
-
- return allMappings;
- }
-
- /**
- * Remove duplicate mappings. Mappings are duplicate if they have the same SourceURI.
- * Less specific mappings will be discarded (Usually, the ones with the same Source and Target URI)
- */
- protected void removeDuplicates(List<URIMapping> allMappings) {
- List<URIMapping> mappingsCopy = new LinkedList<URIMapping>(allMappings);
-
- for (URIMapping mapping : mappingsCopy) {
- for (URIMapping m : allMappings) {
- if (m == mapping) {
- continue;
- }
-
- // This is a duplicate
- if (mapping.getSourceURI().equals(m.getSourceURI())) {
- // If both mappings are still present, remove one of them
- if (allMappings.contains(mapping) && allMappings.contains(m)) {
- URIMapping mappingToRemove = findLessSpecificMapping(mapping, m);
-
- allMappings.remove(mappingToRemove);
- break;
- }
- }
- }
- }
- }
-
- /**
- * If 2 mappings have the same sourceURI but different targetURI, returns the less pertinent one
- * (Usually, the one with the same Source and Target)
- *
- * @param mapping1
- * @param mapping2
- * @return
- */
- protected URIMapping findLessSpecificMapping(URIMapping mapping1, URIMapping mapping2) {
- if (!isUsefulMapping(mapping1)) {
- return mapping1;
- }
-
- return mapping2;
- }
-
- protected boolean isUsefulMapping(URIMapping mapping) {
- if (mapping.getTargetURI() == null || "".equals(mapping.getTargetURI()) || mapping.getTargetURI().equals(mapping.getSourceURI())) {
- return false;
- }
-
- return true;
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ImportTransformation.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ImportTransformation.java
deleted file mode 100644
index 06c4b91ba3e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ImportTransformation.java
+++ /dev/null
@@ -1,1498 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2017 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bugs 496439, 496299, 505330
- *
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.transformation;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStreamWriter;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Arrays;
-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.Map;
-import java.util.Optional;
-import java.util.Properties;
-import java.util.Set;
-import java.util.stream.Collectors;
-
-import org.eclipse.core.runtime.Assert;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.MultiStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.SubMonitor;
-import org.eclipse.core.runtime.jobs.IJobChangeEvent;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.core.runtime.jobs.JobChangeAdapter;
-import org.eclipse.emf.common.util.BasicDiagnostic;
-import org.eclipse.emf.common.util.Diagnostic;
-import org.eclipse.emf.common.util.DiagnosticException;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.common.util.WrappedException;
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EModelElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.util.ExtendedMetaData;
-import org.eclipse.emf.ecore.xmi.XMIResource;
-import org.eclipse.emf.ecore.xmi.XMLResource;
-import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;
-import org.eclipse.gmf.runtime.emf.core.resources.GMFResource;
-import org.eclipse.gmf.runtime.notation.Diagram;
-import org.eclipse.gmf.runtime.notation.Style;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.m2m.qvt.oml.BasicModelExtent;
-import org.eclipse.m2m.qvt.oml.ExecutionContext;
-import org.eclipse.m2m.qvt.oml.ExecutionContextImpl;
-import org.eclipse.m2m.qvt.oml.ExecutionDiagnostic;
-import org.eclipse.m2m.qvt.oml.ModelExtent;
-import org.eclipse.m2m.qvt.oml.TransformationExecutor;
-import org.eclipse.m2m.qvt.oml.util.ISessionData;
-import org.eclipse.m2m.qvt.oml.util.Trace;
-import org.eclipse.m2m.qvt.oml.util.WriterLog;
-import org.eclipse.papyrus.dsml.validation.PapyrusDSMLValidationRule.PapyrusDSMLValidationRulePackage;
-import org.eclipse.papyrus.infra.core.resource.ModelSet;
-import org.eclipse.papyrus.infra.emf.resource.ShardResourceHelper;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.papyrus.infra.gmfdiag.common.model.NotationModel;
-import org.eclipse.papyrus.infra.tools.util.ClassLoaderHelper;
-import org.eclipse.papyrus.infra.tools.util.ListHelper;
-import org.eclipse.papyrus.m2m.qvto.TraceHelper;
-import org.eclipse.papyrus.m2m.qvto.TransformationUI;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersFactory;
-import org.eclipse.papyrus.migration.rsa.blackbox.ProfileBaseHelper;
-import org.eclipse.papyrus.migration.rsa.concurrent.ExecutorsPool;
-import org.eclipse.papyrus.migration.rsa.concurrent.ResourceAccessHelper;
-import org.eclipse.papyrus.migration.rsa.default_.DefaultPackage;
-import org.eclipse.papyrus.migration.rsa.internal.extension.PostProcessExtension;
-import org.eclipse.papyrus.migration.rsa.internal.extension.TransformationExtension;
-import org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage;
-import org.eclipse.papyrus.uml.documentation.Documentation.DocumentationPackage;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.statushandlers.StatusManager;
-import org.eclipse.uml2.common.util.CacheAdapter;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.Extension;
-import org.eclipse.uml2.uml.OpaqueExpression;
-import org.eclipse.uml2.uml.resource.UMLResource;
-import org.eclipse.uml2.uml.util.UMLUtil;
-
-import com.google.common.collect.ImmutableList;
-
-/**
- * Executes a single RSA-to-Papyrus transformation
- *
- * @author Camille Letavernier
- *
- */
-public class ImportTransformation {
-
- /** For debug purpose */
- private static final boolean DEBUG = false;
-
- // SourceURI is the input
- protected URI sourceURI;
-
- // targetURI is computed during the transformation
- protected URI targetURI;
-
- protected ModelExtent outUML, outNotation, outSashModel, inParameters, inPapyrusProfiles;
-
- protected MigrationResourceSet resourceSet;
-
- protected Job job;
-
- protected Resource umlResource;
-
- protected Config parameters;
-
- protected boolean complete = false;
-
- // For logging purpose (Bug 455001)
- // Starts when the job starts; ends when the job returns
- /** Execution time, in nano-seconds */
- protected long executionTime = 0L;
-
- /** Execution time of the initial model loading / ns */
- protected long loadingTime = 0L;
-
- /** Execution time for handling dangling references / ns */
- protected long danglingRefTime = 0L;
-
- /** Execution time for executing the UML-RT transformation / ns */
- protected long importExtensionsTime = 0L;
-
- /** Source URI to Target URI map (For Models/Libraries/Fragments) */
- protected final Map<URI, URI> uriMappings = new HashMap<>();
-
- /** Source URI to Target URI map (For Profiles) */
- protected final Map<URI, URI> profileURIMappings = new HashMap<>();
-
- protected List<Diagram> diagramsToDelete = new LinkedList<>();
-
- protected static final ExecutorsPool executorsPool = new ExecutorsPool(2);
-
- /** EPackages corresponding to source native profiles with specific support in the transformation */
- protected static final Set<EPackage> sourceEPackages = new HashSet<>();
-
- protected final DependencyAnalysisHelper analysisHelper;
-
- /** Store the extension classes to avoid re-parsing the extension point, but still be able to instantiate them in parallel/multiple times */
- protected final static List<Class<? extends TransformationExtension>> extensionClasses = ImmutableList.copyOf(loadExtensionClasses());
-
- /** Extensions contributed via other plug-ins */
- protected final List<TransformationExtension> extensions;
-
- /** The extension point contributing {@link TransformationExtension}s */
- public static final String EXTENSION_POINT_ID = Activator.PLUGIN_ID + ".extensions";
-
- /** Accumulation of incremental update traces from each transformation. */
- private Trace trace = Trace.createEmptyTrace();
-
- /** Transformation execution context used for all transformation runs. */
- private ExecutionContext context;
-
- static {
- sourceEPackages.add(org.eclipse.papyrus.migration.rsa.default_.DefaultPackage.eINSTANCE);
- sourceEPackages.add(org.eclipse.papyrus.migration.rsa.profilebase.ProfileBasePackage.eINSTANCE);
-
- for (TransformationExtension extension : getAllExtensions()) {
- sourceEPackages.addAll(extension.getAdditionalSourceEPackages());
- }
- }
-
- public ImportTransformation(URI sourceURI) {
- this(sourceURI, RSAToPapyrusParametersFactory.eINSTANCE.createConfig(), null);
- }
-
- public ImportTransformation(URI sourceURI, Config config, DependencyAnalysisHelper analysisHelper) {
- Assert.isNotNull(sourceURI);
- this.sourceURI = sourceURI;
- this.parameters = config;
- this.analysisHelper = analysisHelper;
- this.extensions = getAllExtensions();
- }
-
- /**
- * Parse the extension point and return all valid classes (To be instantiated by each instance of the transformation)
- *
- * @return
- * All the valid (i.e. instantiatable) extensions to the RSA-to-Papyrus transformation. The list is never null, but can be empty
- */
- protected static List<Class<? extends TransformationExtension>> loadExtensionClasses() {
- LinkedList<Class<? extends TransformationExtension>> result = new LinkedList<>();
-
- IConfigurationElement[] config = Platform.getExtensionRegistry().getConfigurationElementsFor(EXTENSION_POINT_ID);
- for (IConfigurationElement e : config) {
- try {
- String className = e.getAttribute("className");
-
- Class<? extends TransformationExtension> extensionClass = ClassLoaderHelper.loadClass(className, TransformationExtension.class);
- if (result == null) {
- continue; // ClassLoaderHelper has already logged an exception (ClassNotFound, not type-compliant, ...)
- }
-
- if (extensionClass.getConstructor() == null) { // No default constructor
- Activator.log.error(new IllegalArgumentException(String.format("The class %s contributed by %s should have a default constructor", extensionClass.getName(), e.getContributor())));
- }
-
- result.add(extensionClass);
- } catch (Throwable t) { // Other errors (Most common ones should have already been caught)
- Activator.log.error(String.format("The plug-in %s contributed an invalid class", e.getContributor()), t);
- }
- }
-
- return result;
- }
-
- /**
- * Instantiate all the extensions for a specific transformation
- *
- * @return
- * A non-null (potentially empty) list of extensions
- */
- protected static List<TransformationExtension> getAllExtensions() {
- List<TransformationExtension> extensions = new ArrayList<>(extensionClasses.size());
-
- for (Class<? extends TransformationExtension> extension : extensionClasses) {
- try {
- extensions.add(extension.newInstance()); // Extension has already been checked while parsing the extension point. We don't expect any error here
- } catch (Exception ex) {
- Activator.log.error(ex);
- }
- }
-
- return extensions;
- }
-
- public void run() {
- run(true);
- }
-
- /**
- * Executes the transformation
- *
- * The transformation will be executed asynchronously in a Job
- */
- public void run(final boolean isUserJob) {
-
- job = new Job("Import " + getModelName()) {
-
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- long begin = System.nanoTime();
- IStatus result = ImportTransformation.this.run(monitor);
- long end = System.nanoTime();
- executionTime = end - begin;
- return result;
- }
- };
-
- job.setUser(isUserJob);
-
- job.addJobChangeListener(new JobChangeAdapter() {
-
- @Override
- public void done(IJobChangeEvent event) {
- complete = true;
- if (isUserJob) {
- if (event.getResult().getSeverity() == IStatus.OK) {
- Display.getDefault().asyncExec(new Runnable() {
-
- @Override
- public void run() {
- MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), job.getName(), String.format("Model %s has been successfully imported", getModelName()));
- }
- });
-
- } else if (event.getResult().getSeverity() == IStatus.CANCEL) {
- Display.getDefault().asyncExec(new Runnable() {
-
- @Override
- public void run() {
- MessageDialog.openInformation(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), job.getName(), String.format("Operation canceled: %s", getModelName()));
- }
- });
- } else {
- StatusManager.getManager().handle(event.getResult(), StatusManager.BLOCK);
- }
- }
- }
-
- });
-
- job.schedule();
- }
-
- public void waitForCompletion() {
- try {
- job.join();
- } catch (InterruptedException ex) {
- Activator.log.error(ex);
- }
- }
-
- public boolean isComplete() {
- return complete;
- }
-
- public IStatus getStatus() {
- if (job == null) { // If job hasn't been created, the operation has probably been canceled before the transformation is ran
- return new Status(IStatus.CANCEL, Activator.PLUGIN_ID, "Operation canceled");
- }
- return job.getResult();
- }
-
- public long getExecutionTime() {
- return executionTime;
- }
-
- public long getLoadingTime() {
- return loadingTime;
- }
-
- public long getHandleDanglingRefTime() {
- return danglingRefTime;
- }
-
- public long getImportExtensionsTime() {
- return importExtensionsTime;
- }
-
- public Map<URI, URI> getURIMappings() {
- return uriMappings;
- }
-
- public Map<URI, URI> getProfileURIMappings() {
- return profileURIMappings;
- }
-
- public URI getTargetURI() {
- return targetURI;
- }
-
- /**
- * Initializes the resource set, and resolve all dependencies
- */
- protected void initResourceSet(IProgressMonitor monitor) {
- resourceSet = new MigrationResourceSetImpl(analysisHelper);
- synchronized (UMLUtil.class) {
- UMLUtil.init(resourceSet);
- }
- resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_ATTACHMENT, true);
- resourceSet.getLoadOptions().put(XMLResource.OPTION_DEFER_IDREF_RESOLUTION, true);
- resourceSet.getLoadOptions().put(XMLResource.OPTION_RECORD_UNKNOWN_FEATURE, Boolean.TRUE);
- resourceSet.getLoadOptions().put(XMLResource.OPTION_USE_PACKAGE_NS_URI_AS_LOCATION, Boolean.FALSE);
-
- monitor.subTask("Loading source model " + getModelName());
-
- try {
- resourceSet.getResource(sourceURI, true);
- loadInPapyrusProfiles();
- } catch (Exception ex) {
- Activator.log.error("An error occurred while loading " + getModelName(), ex);
- }
- }
-
- protected void initResourceSet(URI sourceURI, MigrationResourceSet resourceSet) {
- this.sourceURI = sourceURI;
- this.resourceSet = resourceSet;
- this.umlResource = resourceSet.getResource(sourceURI, false);
-
- // These are all new in the new resource set
- outUML = null;
- outNotation = null;
- outSashModel = null;
- inPapyrusProfiles = null;
- }
-
- /**
- * Returns the number of elements to be migrated (i.e. diagrams to be migrated + specific non-trivial elements)
- * Used to initialize the progress monitor
- *
- * @return
- * The total number of elements to be migrated
- */
- protected int countSupportedElements() {
- int i = 0;
-
- ModelExtent extent = getInOutUMLModel();
- for (EObject eObject : extent.getContents()) {
-
- TreeIterator<EObject> modelIterator = EcoreUtil.getAllContents(eObject, true);
- while (modelIterator.hasNext()) {
- EObject next = modelIterator.next();
- if (next instanceof Diagram) {
- Diagram diagram = (Diagram) next;
- if (isSupported(diagram)) {
- i++;
- diagramsToDelete.add(diagram);
- }
- modelIterator.prune(); // Don't navigate Diagram children
- } else if (next instanceof OpaqueExpression) {
- if (parameters.isConvertOpaqueExpressionToLiteralString()) {
- OpaqueExpression exp = (OpaqueExpression) next;
- if (needsConversion(exp)) {
- i++;
- }
- }
- }
- }
- }
-
- i += getAllTransformationURIs().size();
-
- // Add the number of steps required by each extension
- for (TransformationExtension extension : getExtensions()) {
- int extraSteps = extension.getNumberOfSteps();
- if (extraSteps > 0) {
- i += extraSteps;
- }
- }
-
- return i;
- }
-
- /**
- * Returns true if the OpaqueExpression is to be converted to a LiteralString
- * OpaqueExpressions are converted to LiteralString when they have a single body with no language
- *
- * @param exp
- * @return
- */
- protected static boolean needsConversion(OpaqueExpression exp) {
- List<String> languages = exp.getLanguages();
- List<String> bodies = exp.getBodies();
- if (bodies.size() > 1) {
- return false;
- }
-
- if (languages.isEmpty() || (languages.size() == 1 && exp.getLanguages().get(0).isEmpty())) {
- return true;
- }
-
- return false;
- }
-
- protected static final Set<String> supportedDiagramIds = new HashSet<>();
-
- protected static boolean isSupported(Diagram diagram) {
- return supportedDiagramIds.contains(diagram.getType());
- }
-
- // Preloads all required transformations (Either locally or statically, depending on the cache parameter)
- protected IStatus loadTransformations(IProgressMonitor monitor) {
- for (URI transformationURI : getAllTransformationURIs()) {
- executorsPool.preLoad(transformationURI);
- monitor.worked(1);
- }
-
- return Status.OK_STATUS;
- }
-
- // MemoryLeak: Don't rely on BasicDiagnostic.toIStatus
- // The source Diagnostic contains references to the QVTo ModelExtents, referencing the Model elements (used in #extractPapyrusProfiles())
- // When using the standard conversion, these references are not discarded
- protected static IStatus createStatusFromDiagnostic(Diagnostic diagnostic) {
- return new Status(diagnostic.getSeverity(),
- diagnostic.getSource(),
- diagnostic.getMessage(),
- diagnostic.getException());
- }
-
- /**
- * Actually runs the transformation (in the current thread)
- *
- * @param monitor
- * @return The transformation IStatus
- */
- protected IStatus run(final IProgressMonitor monitor) {
-
- //
- // INITIALIZATION / LOADING
- //
-
- monitor.subTask("Loading source model " + getModelName());
-
- long startLoad = System.nanoTime();
- initResourceSet(monitor);
-
- int numberOfElements = countSupportedElements();
-
-
- monitor.beginTask("Importing " + getModelName(), numberOfElements);
-
- monitor.subTask("Loading transformations (This may take a few seconds for the first import)...");
- loadTransformations(monitor);
-
-
- List<ModelExtent> extents = getModelExtents();
-
- String statusMessage = String.format("Import %s", getModelName());
- MultiStatus generationStatus = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, statusMessage, null);
-
- context = createExecutionContext(monitor, generationStatus);
-
- try {
- getInPapyrusProfiles(); // Preload profiles
-
- long endLoad = System.nanoTime();
- loadingTime = endLoad - startLoad;
-
- //
- // TRANSFORMATIONS
- //
-
- IStatus result; // Result of an individual transformation (Will be aggregated to the complete GenerationStatus)
-
- prepareExtensions();
-
- long startExtensions = System.nanoTime();
- result = importExtensions(context, monitor, ExtensionFunction::executeBefore);
- long endExtensions = System.nanoTime();
- this.importExtensionsTime = endExtensions - startExtensions;
- generationStatus.add(result);
-
- // Diagrams
- Collection<URI> transformations = getDiagramTransformationURIs();
-
- monitor.subTask("Importing diagrams...");
- for (URI transformationURI : transformations) {
- result = runTransformation(transformationURI, extents, monitor);
- generationStatus.add(result);
- }
-
- // Semantic model changes (Default language for OpaqueExpressions...)
- monitor.subTask("Importing semantic model...");
- result = runTransformation(getSemanticTransformationURI(), extents, monitor);
- generationStatus.add(result);
-
- if (!monitor.isCanceled()) {
- monitor.subTask("Handle additional profiles...");
- // Default.epx and ProfileBase.epx
- result = importRSAProfiles(context, monitor);
- generationStatus.add(result);
- }
-
- Collection<URI> additional = getAdditionalTransformationURIs();
- if (!additional.isEmpty()) {
- monitor.subTask("Additional transformations...");
- for (URI transformationURI : additional) {
- result = runTransformation(transformationURI, extents, monitor);
- generationStatus.add(result);
- }
- }
-
- long startExtensionsAfter = System.nanoTime();
- result = importExtensions(context, monitor, ExtensionFunction::executeAfter);
- long endExtensionsAfter = System.nanoTime();
- this.importExtensionsTime += endExtensionsAfter - startExtensionsAfter;
- } finally {
- context = null;
- }
-
- //
- // FRAGMENTS & SAVE
- //
-
- if (generationStatus.getSeverity() <= Diagnostic.WARNING) {
-
- monitor.subTask("Cleaning-up target model...");
- URI notationModelURI = null;
- URI sashModelURI = null;
-
- targetURI = convertToPapyrus(sourceURI, UMLResource.FILE_EXTENSION);
- notationModelURI = convertToPapyrus(sourceURI, "notation"); // TODO use constant
- sashModelURI = convertToPapyrus(sourceURI, "di"); // TODO use constant
-
- if ("epx".equals(sourceURI.fileExtension())) {
- profileURIMappings.put(sourceURI, targetURI);
- }
- // Profile mappings are also library mappings
- uriMappings.put(sourceURI, targetURI);
-
- umlResource = createUMLResource(resourceSet, sourceURI, targetURI);
-
- // This list contains all the objects from the initial ModelExtent, plus all the ones
- // which were created during the QVTo transformations.
- List<EObject> outUMLObjects = getInOutUMLModel().getContents();
- umlResource.getContents().addAll(outUMLObjects);
-
- GMFResource notationResource = new GMFResource(notationModelURI); // GMF Resource content type?
- resourceSet.getResources().add(notationResource);
- List<EObject> outNotationObjects = getInoutNotationModel().getContents();
- notationResource.getContents().addAll(outNotationObjects);
-
- // Cleanup empty diagrams (FIXME: They should not be generated)
- List<EObject> contentsCopy = new LinkedList<>(notationResource.getContents());
- for (EObject next : contentsCopy) {
- if (next instanceof Diagram) {
- Diagram diagram = (Diagram) next;
- if (diagram.getType() == null || "".equals(diagram.getType())) {
- delete(diagram);
- }
- }
- }
-
- XMIResource sashResource = new XMIResourceImpl(sashModelURI);
- resourceSet.getResources().add(sashResource);
- List<EObject> sashModelObjects = getOutSashModel().getContents();
- sashResource.getContents().addAll(sashModelObjects);
-
- configureResource(sashResource);
- configureResource(notationResource);
- configureResource((XMIResource) umlResource);
-
- // Handle orphaned elements: remove them and log a warning (Log temporarily disabled to avoid spamming the console)
- List<EObject> notationRootElements = new LinkedList<>(notationResource.getContents());
- for (EObject rootElement : notationRootElements) {
- if (rootElement instanceof View) {
- View rootView = (View) rootElement;
- if (!(rootView instanceof Diagram)) {
- if (DEBUG) {
- String objectType = rootView.getElement() == null ? "None" : rootView.getElement().eClass().getName();
- String viewType = rootView.getType() == null ? "None" : rootView.getType();
- generationStatus.add(new Status(IStatus.WARNING, Activator.PLUGIN_ID, "An orphaned view has been found after the migration. It will be removed. View Type: " + viewType + ", semantic type: " + objectType));
- }
-
- delete(rootElement);
- }
- } else if (rootElement instanceof Style) {
-
- if (DEBUG) {
- String styleType = rootElement.eClass().getName();
- generationStatus.add(new Status(IStatus.WARNING, Activator.PLUGIN_ID, "An orphaned style has been found after the migration. It will be removed. Style Type: " + styleType));
- }
-
- delete(rootElement);
- }
- }
-
- monitor.subTask("Handling fragments...");
-
- Collection<Resource> resourcesToSave = handleFragments(umlResource, notationResource, sashResource);
-
- for (Resource resource : resourcesToSave) {
- List<EObject> rootElements = new LinkedList<>(resource.getContents());
- for (EObject rootElement : rootElements) {
- EPackage ePackage = rootElement.eClass().getEPackage();
- if (ePackage == ProfileBasePackage.eINSTANCE || ePackage == DefaultPackage.eINSTANCE) {
- delete(rootElement);
- }
- }
- }
-
- monitor.subTask("Deleting source diagrams...");
-
- for (Diagram diagram : diagramsToDelete) {
- EObject container = diagram.eContainer();
- delete(diagram);
- if (container instanceof EAnnotation) {
- EAnnotation annotation = (EAnnotation) container;
- if (annotation.getContents().isEmpty()) {
- delete(annotation);
- }
- }
- }
-
- diagramsToDelete.clear();
-
- monitor.subTask("Analyzing dangling references...");
-
- long startDangling = System.nanoTime();
- handleDanglingURIs(resourcesToSave);
- long endDangling = System.nanoTime();
- this.danglingRefTime = endDangling - startDangling;
-
- monitor.subTask("Saving models...");
-
- for (Resource resource : resourcesToSave) {
- try {
- cleanMetadataAnnotations(resource);
- ResourceAccessHelper.INSTANCE.saveResource(resource, null);
- } catch (Exception ex) {
- Activator.log.error(ex);
- generationStatus.add(new Status(IStatus.ERROR, Activator.PLUGIN_ID, "An exception occurred during save", ex));
- }
- }
- }
-
- monitor.subTask("Releasing memory...");
-
- unloadResourceSet(this.resourceSet);
-
- this.resourceSet = null;
- this.umlResource = null;
- this.outNotation = this.inParameters = this.outSashModel = this.outUML = null;
-
- monitor.done();
- return generationStatus;
- }
-
- /**
- * Functional interface to abstract {@link TransformationExtension#executeBefore(ExecutionContext, IProgressMonitor)}
- * and {@link TransformationExtension#executeAfter(ExecutionContext, IProgressMonitor)}
- *
- * @author Camille Letavernier
- *
- */
- @FunctionalInterface
- protected static interface ExtensionFunction {
- public IStatus apply(TransformationExtension extension, ExecutionContext context, IProgressMonitor monitor);
-
- /**
- * Implements ExtensionFunction
- *
- * Delegates to {@link TransformationExtension#executeBefore(ExecutionContext, IProgressMonitor)}
- */
- public static IStatus executeBefore(TransformationExtension extension, ExecutionContext context, IProgressMonitor monitor) {
- return extension.executeBefore(context, monitor);
- }
-
- /**
- * Implements ExtensionFunction
- *
- * Delegates to {@link TransformationExtension#executeAfter(ExecutionContext, IProgressMonitor)}
- */
- public static IStatus executeAfter(TransformationExtension extension, ExecutionContext context, IProgressMonitor monitor) {
- return extension.executeAfter(context, monitor);
- }
-
- /**
- * Delegates to {@link PostProcessExtension#postProcess(ExecutionContext, IProgressMonitor)}.
- */
- public static IStatus postProcess(TransformationExtension extension, ExecutionContext context, IProgressMonitor monitor) {
- return Optional.of(extension)
- .filter(PostProcessExtension.class::isInstance)
- .map(PostProcessExtension.class::cast)
- .map(post -> post.postProcess(context, SubMonitor.convert(monitor, 1)))
- .orElse(Status.OK_STATUS);
- }
- }
-
- protected void prepareExtensions() {
- for (TransformationExtension extension : getExtensions()) {
- extension.setResourceSet(resourceSet);
- extension.setExecutorsPool(executorsPool);
- extension.setTransformation(this);
- }
- }
-
- /**
- * @return the extensions
- */
- protected List<TransformationExtension> getExtensions() {
- return extensions;
- }
-
- protected IStatus importExtensions(ExecutionContext context, IProgressMonitor monitor, ExtensionFunction function) {
- List<IStatus> allResults = new ArrayList<>(getExtensions().size());
- for (TransformationExtension extension : getExtensions()) {
- IStatus result = function.apply(extension, context, monitor);
- allResults.add(result);
- }
-
- if (allResults.isEmpty()) {
- return Status.OK_STATUS;
- } else if (allResults.size() == 1) {
- return allResults.get(0);
- } else {
- return aggregateStatus(allResults);
- }
- }
-
- // FIXME implement properly
- public static MultiStatus aggregateStatus(List<IStatus> statuses) {
- return new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, statuses.toArray(new IStatus[statuses.size()]), "", null);
- }
-
- /**
- * @param resource
- */
- private void cleanMetadataAnnotations(Resource resource) {
- // Bug 471684: UML2.x to UML2.5 creates (invalid) Ecore Metadata EAnnotations, which then cause OCL validation to fail
- // Remove these EAnnotations from the model to avoid side effects
- Iterator<EObject> rootElementsIterator = resource.getContents().iterator();
- while (rootElementsIterator.hasNext()) {
- EObject root = rootElementsIterator.next();
- if (root instanceof EAnnotation) {
- EAnnotation annotation = (EAnnotation) root;
- if (ExtendedMetaData.ANNOTATION_URI.equals(annotation.getSource())) {
- rootElementsIterator.remove();
- }
- }
- }
- }
-
- protected void handleDanglingURIs(Collection<Resource> resourcesToSave) {
- if (analysisHelper != null) {
- resourceSet.freeze();
- try {
- analysisHelper.computeURIMappings(resourcesToSave);
- } finally {
- resourceSet.unfreeze();
- }
- }
- }
-
- protected void unloadResourceSet(ResourceSet resourceSet) {
- EMFHelper.unload(resourceSet);
- }
-
- protected IStatus importRSAProfiles(ExecutionContext context, IProgressMonitor monitor) {
- URI transformationURI = getProfilesTransformationURI();
-
- List<ModelExtent> extents = new LinkedList<>();
- extents.add(getInOutUMLModel());
- extents.add(getInoutNotationModel());
- Diagnostic loadedProfiles = loadInPapyrusProfiles();
- extents.add(getInPapyrusProfiles());
- extents.add(getInProfileDefinitions());
- extents.add(getInConfig());
-
- IStatus transformationStatus = runTransformation(transformationURI, extents, monitor);
- IStatus loadedProfilesStatus = createStatusFromDiagnostic(loadedProfiles);
-
- int severity = Math.max(loadedProfiles.getSeverity(), transformationStatus.getSeverity());
-
- String message;
- if (severity > IStatus.OK) {
- message = "The following errors occurred:";
- } else {
- message = "OK";
- }
-
- IStatus completeResult = new MultiStatus(Activator.PLUGIN_ID, severity, new IStatus[] { loadedProfilesStatus, transformationStatus }, message, null);
-
- return completeResult;
- }
-
- protected TransformationExecutor getTransformation(URI transformationURI, IProgressMonitor monitor) throws DiagnosticException {
- return executorsPool.getExecutor(transformationURI);
- }
-
- // Static synchronized, as it seems that QVTo can't load 2 transformations at the same time, even in separate execution contexts
- protected static synchronized TransformationExecutor loadTransformationExecutor(URI transformationURI, IProgressMonitor monitor) throws DiagnosticException {
- TransformationExecutor executor = new TransformationExecutor(transformationURI);
- Diagnostic diagnostic = executor.loadTransformation(monitor);
-
- if (diagnostic.getSeverity() != Diagnostic.OK) {
- throw new DiagnosticException(diagnostic);
- }
-
- return executor;
- }
-
- protected Properties readProfileBaseProperties() {
- URI propertiesURI = sourceURI.trimFileExtension().appendFileExtension("properties");
-
- Properties properties = new Properties();
- InputStream inputStream = null;
-
- try {
- URL url = new URL(propertiesURI.toString());
- inputStream = url.openStream();
- properties.load(inputStream);
- } catch (FileNotFoundException ex) {
- // Ignore: the file doesn't exist
- } catch (IOException ex) {
- Activator.log.error(ex);
- } finally {
- if (inputStream != null) {
- try {
- inputStream.close();
- } catch (IOException ex) {
- Activator.log.error(ex);
- }
- }
- }
-
- return properties;
- }
-
- protected ModelExtent getInProfileDefinitions() {
- return new BasicModelExtent(Arrays.asList(new EPackage[] {
- PapyrusDSMLValidationRulePackage.eINSTANCE,
- DocumentationPackage.eINSTANCE
- }));
- }
-
- protected ModelExtent getInPapyrusProfiles() {
- if (inPapyrusProfiles == null) {
- loadInPapyrusProfiles();
- }
-
- return inPapyrusProfiles;
- }
-
- /**
- * Returns a Diagnostic. Diagnostic#data is the ModelExtent containing the loaded profiles
- *
- * @return
- * @throws WrappedException
- */
- protected Diagnostic loadInPapyrusProfiles() {
- if (inPapyrusProfiles != null) {
- return Diagnostic.OK_INSTANCE;
- }
-
- List<String> missingProfiles = new LinkedList<>();
-
- List<EObject> allContents = new LinkedList<>();
- try {
- URI validationProfileURI = URI.createURI("pathmap://DSMLValidation_PROFILES/PapyrusValidationRuleDSML.uml");
- Resource validationProfile = resourceSet.getResource(validationProfileURI, true);
- checkResource(validationProfile);
- allContents.addAll(validationProfile.getContents());
- } catch (WrappedException ex) {
- missingProfiles.add("Validation Rules Profile");
- }
-
- try {
- URI documentationProfileURI = URI.createURI("pathmap://PAPYRUS_DOCUMENTATION/Papyrus.profile.uml");
- Resource documentationProfile = resourceSet.getResource(documentationProfileURI, true);
- checkResource(documentationProfile);
- allContents.addAll(documentationProfile.getContents());
- } catch (WrappedException ex) {
- missingProfiles.add("Documentation Profile");
- }
-
- inPapyrusProfiles = new BasicModelExtent(allContents);
-
- String message;
- int code;
- if (missingProfiles.isEmpty()) {
- message = "OK";
- code = Diagnostic.OK;
- } else {
- message = "The following Papyrus profiles cannot be found: " + ListHelper.deepToString(missingProfiles, ", ");
- code = Diagnostic.ERROR;
- }
-
- Diagnostic diagnostic = new BasicDiagnostic(code, Activator.PLUGIN_ID, code, message, null);
-
- return diagnostic;
- }
-
- protected void checkResource(Resource resource) {
- Assert.isNotNull(resource);
- Assert.isTrue(!resource.getContents().isEmpty(), "The resource " + resource.getURI() + " is empty");
- for (EObject rootElement : resource.getContents()) {
- Assert.isTrue(!rootElement.eIsProxy());
- }
- }
-
- protected Resource createUMLResource(ResourceSet resourceSet, URI sourceResourceURI, URI targetResourceURI) {
- // Use the same resource to ensure that XMI IDs are maintained
- Resource resource = resourceSet.getResource(sourceResourceURI, false);
- resource.setURI(targetResourceURI);
- return resource;
- }
-
- protected ModelExtent getInConfig() {
- if (inParameters == null) {
- inParameters = new BasicModelExtent(Collections.singletonList(parameters));
- }
- return inParameters;
- }
-
- protected Collection<Resource> handleFragments(Resource umlResource, Resource notationResource, Resource sashResource) {
- Collection<Resource> result = new HashSet<>();
- result.add(umlResource);
- result.add(notationResource);
- result.add(sashResource);
-
- ResourceSet resourceSet = umlResource.getResourceSet();
-
- Iterator<EObject> elementIterator = umlResource.getAllContents();
-
- Set<Resource> fragmentResources = new HashSet<>();
- List<EAnnotation> rsaAnnotations = new ArrayList<>();
-
- while (elementIterator.hasNext()) {
- EObject element = elementIterator.next();
- Resource possibleFragment = element.eResource();
- if ((possibleFragment != umlResource) && possibleFragment.getContents().contains(element)) { // Controlled/Fragment root
- fragmentResources.add(possibleFragment);
- }
-
- collectRSAAnnotations(element, rsaAnnotations);
- }
-
- // Strip all RSA fragment annotations
- rsaAnnotations.forEach(EcoreUtil::remove);
-
- List<Resource> fragmentUMLResources = new LinkedList<>();
-
- for (Resource fragmentResource : fragmentResources) {
- URI papyrusFragmentURI = convertToPapyrus(fragmentResource.getURI(), UMLResource.FILE_EXTENSION);
-
- uriMappings.put(fragmentResource.getURI(), papyrusFragmentURI);
-
- Resource newResource = resourceSet.getResource(papyrusFragmentURI, false);
- if (newResource == null) {
- newResource = createUMLResource(resourceSet, fragmentResource.getURI(), papyrusFragmentURI);
-
- fragmentUMLResources.add(newResource);
-
- Resource fragmentNotationResource = new GMFResource(convertToPapyrus(papyrusFragmentURI, "notation"));
- Resource fragmentDiResource = new XMIResourceImpl(convertToPapyrus(papyrusFragmentURI, "di"));
-
- result.add(fragmentNotationResource);
- result.add(fragmentDiResource);
-
- resourceSet.getResources().add(fragmentNotationResource);
- resourceSet.getResources().add(fragmentDiResource);
- }
-
- newResource.getContents().addAll(fragmentResource.getContents());
-
- // Make it a Papyrus controlled unit of the "shard" variety
- try (ShardResourceHelper shard = new ShardResourceHelper(newResource)) {
- shard.setShard(true);
- }
-
- result.add(newResource);
- }
-
- deleteSourceStereotypes(fragmentResources);
-
- List<EObject> importedElements = new LinkedList<>(notationResource.getContents());
- for (EObject notationElement : importedElements) {
- if (notationElement instanceof Diagram) {
- EObject semanticElement = ((Diagram) notationElement).getElement();
- if (semanticElement.eResource() != umlResource && semanticElement.eResource() != null) {
-
- URI notationFragmentURI = convertToPapyrus(semanticElement.eResource().getURI(), "notation");
-
- Resource newNotationResource = resourceSet.getResource(notationFragmentURI, false);
- if (newNotationResource == null) {
- newNotationResource = new GMFResource(notationFragmentURI);
- resourceSet.getResources().add(newNotationResource);
- }
- newNotationResource.getContents().add(notationElement);
- result.add(newNotationResource);
- }
- }
- }
-
- handleFragmentStereotypes(umlResource, fragmentUMLResources);
-
- for (Resource resource : result) {
- if (resource instanceof XMIResource) {
- configureResource((XMIResource) resource);
- }
- }
-
- return result;
- }
-
- /*
- * Bug 447097: [Model Import] Importing a fragmented model causes stereotype applications to be lost in resulting submodel
- * https://bugs.eclipse.org/bugs/show_bug.cgi?id=447097
- *
- * Before the transformation, We moved all root elements from the fragment resources to the main
- * resource, then we transformed some of them to Papyrus Stereotype Applications. We need to move
- * these stereotype applications back to the proper fragment resource
- */
- protected void handleFragmentStereotypes(Resource mainUMLResource, List<Resource> umlResources) {
- Iterator<EObject> rootElementIterator = mainUMLResource.getContents().iterator();
- while (rootElementIterator.hasNext()) {
- EObject rootElement = rootElementIterator.next();
- if (rootElement instanceof Element) {
- continue;
- }
-
- Resource targetStereotypeResource = getTargetStereotypeResource(rootElement, umlResources);
- if (targetStereotypeResource != null && targetStereotypeResource != mainUMLResource) {
- rootElementIterator.remove(); // To avoid ConcurrentModificationException when moving to the other resource
- targetStereotypeResource.getContents().add(rootElement);
- }
- }
- }
-
- protected Resource getTargetStereotypeResource(EObject rootElement, List<Resource> umlResources) {
- for (EReference eReference : rootElement.eClass().getEAllReferences()) {
- if (eReference.getName().startsWith(Extension.METACLASS_ROLE_PREFIX)) {
- Object value = rootElement.eGet(eReference);
- if (value instanceof Element) {
- return ((Element) value).eResource();
- }
- }
- }
-
- return null;
- }
-
- protected void deleteSourceStereotypes(Collection<Resource> fragmentResources) {
- Set<Resource> allResources = new HashSet<>(fragmentResources);
- allResources.add(umlResource);
-
- for (Resource resource : allResources) {
-
- // For performance reasons, RSA RT Stereotypes have not been deleted during the QVTo transformation (Bug 444379)
- // Delete them as a post-action. Iterate on all controlled models and delete the RealTime stereotypes at the root of each resource
- List<EObject> resourceContents = new LinkedList<>(resource.getContents());
- for (EObject rootElement : resourceContents) {
- if (sourceEPackages.contains(rootElement.eClass().getEPackage())) {
- delete(rootElement);
- }
- }
- }
- }
-
- /**
- * Collects the RSA-style fragment linkage annotations, RSA diagrams, and other
- * RSA-specific annotations attached to an {@code object}.
- *
- * @param object
- * an object in the model
- * @param annotations
- * collects the RSA-specific annotations
- */
- protected void collectRSAAnnotations(EObject object, Collection<? super EAnnotation> annotations) {
- if (object instanceof EModelElement) {
- EModelElement modelElement = (EModelElement) object;
- modelElement.getEAnnotations().stream()
- .filter(this::isRSASpecificAnnotation)
- .forEach(annotations::add);
- }
- }
-
- protected boolean isRSASpecificAnnotation(EAnnotation annotation) {
- boolean result = false;
-
- String source = annotation.getSource();
- if (source != null) {
- // This covers both the fragments and the fragmentContainer annotation
- result = source.startsWith("com.ibm.xtools.uml.msl.fragment") //$NON-NLS-1$
- || source.equals("uml2.diagrams") //$NON-NLS-1$
- // Covers the UI-reduction annotation
- || source.startsWith("com.ibm.xtools.common.ui."); //$NON-NLS-1$
- }
-
- return result;
- }
-
- protected URI convertToPapyrus(URI rsaURI, String extension) {
- if ("epx".equals(rsaURI.fileExtension())) { //$NON-NLS-1$
- // Profiles: myProfile.profile.uml, myProfile.profile.notation, ...
- return rsaURI.trimFileExtension().appendFileExtension("profile").appendFileExtension(extension); //$NON-NLS-1$
- } else {
- // Models and Fragments: myModel.uml, myFragment.uml, ...
- return rsaURI.trimFileExtension().appendFileExtension(extension);
- }
- }
-
- /**
- * Runs a transformation using the context shared by all transformations.
- *
- * @param transformationURI
- * the transformation to run
- * @param extents
- * the extents on which to apply the transformation
- * @param monitor
- * progress monitor
- *
- * @return the result of the transformation execution
- */
- public IStatus runTransformation(URI transformationURI, List<ModelExtent> extents, IProgressMonitor monitor) {
- return runTransformation(transformationURI, context, monitor, extents);
- }
-
- protected IStatus runTransformation(URI transformationURI, ExecutionContext context, IProgressMonitor monitor, List<ModelExtent> extents) {
- if (monitor.isCanceled()) {
- return new Status(IStatus.CANCEL, Activator.PLUGIN_ID, "Operation canceled");
- }
-
- TransformationExecutor executor;
- try {
- executor = getTransformation(transformationURI, monitor);
- } catch (DiagnosticException ex) {
- Diagnostic diagnostic = ex.getDiagnostic();
-
- Activator.log.warn(String.format("Cannot load the transformation : %s. Diagnostic: %s", transformationURI, diagnostic.getMessage()));
- return createStatusFromDiagnostic(diagnostic);
- }
-
- ExecutionDiagnostic result;
- synchronized (executor) {
- try {
- // Gather the new execution traces
- Trace newTraces = Trace.createEmptyTrace();
- @SuppressWarnings("restriction")
- ISessionData.SimpleEntry<Trace> traceKey = org.eclipse.m2m.internal.qvt.oml.evaluator.QVTEvaluationOptions.INCREMENTAL_UPDATE_TRACE;
- context.getSessionData().setValue(traceKey, newTraces);
-
- result = executor.execute(context, extents.toArray(new ModelExtent[0]));
-
- // Append to our history
- List<EObject> history = new ArrayList<>(trace.getTraceContent());
- history.addAll(newTraces.getTraceContent());
- trace.setTraceContent(history);
- } finally {
- executor.cleanup();
- executorsPool.releaseExecutor(executor);
- }
- }
-
- return createStatusFromDiagnostic(result);
- }
-
- protected ExecutionContext createExecutionContext(final IProgressMonitor monitor, final MultiStatus generationStatus) {
- ExecutionContextImpl context = new ExecutionContextImpl();
- context.setConfigProperty("keepModeling", true); //$NON-NLS-1$ o
- context.setConfigProperty(TransformationUI.MONITOR, monitor);
-
- // context.setProgressMonitor(monitor);
-
- context.setLog(new WriterLog(new OutputStreamWriter(System.out)) {
-
- @Override
- public void log(String message) {
- super.log(message);
- }
-
- @Override
- public void log(String message, Object param) {
- super.log(message, param);
- }
-
- @Override
- public void log(int level, String message) {
- super.log(level, message);
- if (level >= 1) {
- generationStatus.merge(new Status(level, Activator.PLUGIN_ID, message));
- }
-
- }
-
- @Override
- public void log(int level, String message, Object param) {
- super.log(level, message, param);
- if (level >= 1) {
- generationStatus.merge(new Status(level, Activator.PLUGIN_ID, message + ", data:" + param));
- }
- }
- });
-
- initTransformationProperties(context);
-
- // Invoke extensions as incremental transformations
-
- context.getSessionData().setValue(TraceHelper.TRACE_HISTORY, trace);
-
- this.context = context;
- return context;
- }
-
- /**
- * Initializes the ExecutionContext with configuration properties required by transformations
- *
- * This is a lightweight mechanism to avoid initializing ModelExtents for a single EObject reference, or for non-EMF values
- *
- * Typically used by blackbox methods
- *
- * @param context
- */
- protected void initTransformationProperties(ExecutionContextImpl context) {
- // Load the *.properties file associated to ProfileBase
- context.setConfigProperty(ProfileBaseHelper.PROFILE_BASE_PROPERTIES, readProfileBaseProperties());
-
- // Load the InnerClassDiagramView (From viewpoints)
- URI innerClassDiagramViewURI = URI.createPlatformPluginURI("org.eclipse.papyrus.infra.viewpoints.policy/builtin/default.configuration", false);
- innerClassDiagramViewURI = innerClassDiagramViewURI.appendFragment("//@viewpoints.0/@modelKinds.0");
-
- context.setConfigProperty("InnerClassDiagramView", resourceSet.getEObject(innerClassDiagramViewURI, true));
- }
-
- protected void configureResource(XMIResource resource) {
- Map<Object, Object> saveOptions = new HashMap<>();
-
- // default save options.
- saveOptions.put(XMLResource.OPTION_DECLARE_XML, Boolean.TRUE);
- saveOptions.put(XMLResource.OPTION_PROCESS_DANGLING_HREF, XMLResource.OPTION_PROCESS_DANGLING_HREF_DISCARD);
- saveOptions.put(XMLResource.OPTION_SCHEMA_LOCATION, Boolean.TRUE);
- saveOptions.put(XMIResource.OPTION_USE_XMI_TYPE, Boolean.TRUE);
- saveOptions.put(XMLResource.OPTION_SAVE_TYPE_INFORMATION, Boolean.TRUE);
- saveOptions.put(XMLResource.OPTION_SKIP_ESCAPE_URI, Boolean.FALSE);
- saveOptions.put(XMLResource.OPTION_ENCODING, "UTF-8");
-
- // see bug 397987: [Core][Save] The referenced plugin models are saved using relative path
- saveOptions.put(XMLResource.OPTION_URI_HANDLER, new org.eclipse.emf.ecore.xmi.impl.URIHandlerImpl.PlatformSchemeAware());
-
- resource.setEncoding("UTF-8");
- resource.getDefaultSaveOptions().putAll(saveOptions);
- }
-
- protected List<ModelExtent> getModelExtents() {
- List<ModelExtent> allExtents = new LinkedList<>();
- allExtents.add(getInOutUMLModel());
- allExtents.add(getInoutNotationModel());
- allExtents.add(getOutSashModel());
- allExtents.add(getInConfig());
- return allExtents;
- }
-
- public ModelExtent getInOutUMLModel() {
- if (outUML == null) {
- try {
- Resource resource = resourceSet.getResource(sourceURI, true);
-
- /*
- * Bug 447097: [Model Import] Importing a fragmented model causes stereotype applications to be lost in resulting submodel
- * https://bugs.eclipse.org/bugs/show_bug.cgi?id=447097
- *
- * StereotypeApplications from Fragments are not considered "rootElements" by QVTo, and
- * there is no logical link between UML Elements and stereotype applications in fragments
- * We need to make all root Elements available to the QVTo ModelExtent (Including the ones
- * from fragments)
- */
- List<EObject> allStereotypeApplications = new LinkedList<>();
- TreeIterator<EObject> allContents = resource.getAllContents();
- Set<Resource> browsedResources = new HashSet<>();
- browsedResources.add(resource);
- while (allContents.hasNext()) {
- EObject next = allContents.next();
- if (!(next instanceof Element)) { // Only navigate the UML hierarchy
- allContents.prune();
- continue;
- }
-
- Resource nextResource = next.eResource();
- if (!browsedResources.contains(nextResource)) {
- browsedResources.add(nextResource);
- for (EObject rootElement : nextResource.getContents()) {
- EPackage rootElementPackage = rootElement.eClass().getEPackage();
- if (sourceEPackages.contains(rootElementPackage)) {
- // We're interested in all stereotype applications which require a specific support in the QVTo transformation
- allStereotypeApplications.add(rootElement);
- }
- }
- }
- }
-
- List<EObject> allRootElements = new LinkedList<>(resource.getContents());
- allRootElements.addAll(allStereotypeApplications);
-
- // outUML = new BasicModelExtent(resource.getContents());
- outUML = new BasicModelExtent(allRootElements);
-
- } catch (Exception ex) {
- Activator.log.error(ex);
- }
- }
-
- return outUML;
- }
-
- /* Notation model is initially empty, but will be filled successively by each transformation */
- public ModelExtent getInoutNotationModel() {
- if (outNotation == null) {
- try {
- if (resourceSet instanceof ModelSet) {
- // This is the post-processing phase, so we already have the notations
- NotationModel notation = (NotationModel) ((ModelSet) resourceSet).getModel(NotationModel.MODEL_ID);
- if (notation != null) {
- List<EObject> diagrams = notation.getResources().stream()
- .flatMap(res -> res.getContents().stream())
- .filter(Diagram.class::isInstance)
- .collect(Collectors.toList());
- outNotation = new BasicModelExtent(diagrams);
- }
- }
- } catch (Exception e) {
- Activator.log.error(e);
- }
-
- if (outNotation == null) {
- // Guess it's not the post-processing phase
- outNotation = new BasicModelExtent();
- }
- }
-
- return outNotation;
- }
-
- protected ModelExtent getOutSashModel() {
- if (outSashModel == null) {
- outSashModel = new BasicModelExtent();
- }
-
- return outSashModel;
- }
-
- static {
- supportedDiagramIds.addAll(Arrays.asList(new String[] {
- "Class", // Includes Profiles
- "Object",
- "Activity",
- // "Component", //Not yet
- // "Sequence", // Not yet
- "Statechart",
- "Structure"
- }));
- }
-
- protected Collection<URI> getDiagramTransformationURIs() {
- return ListHelper.asList(new URI[] {
- getTransformationURI("RSAClassDiagram"),
- // getTransformationURI("RSASequenceDiagram"), //Disabled since Sequence Diagrams are not properly supported
- getTransformationURI("RSAStructureDiagram"),
- getTransformationURI("RSAActivityDiagram"),
- getTransformationURI("RSAStateMachineDiagram"),
- getTransformationURI("RSAProfileDiagram"),
- getTransformationURI("RSAUsecaseDiagram")
- });
- }
-
- protected URI getSemanticTransformationURI() {
- return getTransformationURI("RSAModelToPapyrus");
- }
-
- protected URI getProfilesTransformationURI() {
- return getTransformationURI("RSAProfilesToPapyrus");
- }
-
- protected Collection<URI> getAdditionalTransformationURIs() {
- return Collections.emptyList();
- }
-
- protected Collection<URI> getAllTransformationURIs() {
- Collection<URI> allTransformations = getDiagramTransformationURIs();
- allTransformations.add(getProfilesTransformationURI());
- allTransformations.add(getSemanticTransformationURI());
- allTransformations.addAll(getAdditionalTransformationURIs());
- return allTransformations;
- }
-
- protected URI getTransformationURI(String transformationName) {
- return URI.createPlatformPluginURI(String.format("%s/transform/%s.qvto", Activator.PLUGIN_ID, transformationName), true); //$NON-NLS-1$
- }
-
- public String getModelName() {
- return URI.decode(sourceURI.lastSegment());
- }
-
- public void cancel() {
- job.cancel();
- }
-
- /** Lightweight delete operation, which only removes the object from its parent. Incoming references are not deleted */
- public void delete(EObject elementToDelete) {
- CacheAdapter adapter = CacheAdapter.getCacheAdapter(elementToDelete);
- if (adapter == null) {
- adapter = CacheAdapter.getInstance();
- }
- adapter.unsetTarget(elementToDelete);
- if (elementToDelete.eResource() != null) {
- elementToDelete.eResource().getContents().remove(elementToDelete);
- }
-
- EObject parent = elementToDelete.eContainer();
- if (parent == null) {
- return;
- }
- EReference containmentFeature = elementToDelete.eContainmentFeature();
-
- if (containmentFeature.getUpperBound() == 1) {
- parent.eUnset(containmentFeature);
- } else {
- List<?> values = (List<?>) parent.eGet(containmentFeature);
- values.remove(elementToDelete);
- }
- }
-
- public URI getSourceURI() {
- return sourceURI;
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ImportTransformationLauncher.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ImportTransformationLauncher.java
deleted file mode 100644
index 1f3071109d6..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ImportTransformationLauncher.java
+++ /dev/null
@@ -1,967 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014, 2017 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bugs 496439, 505330
- *
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.transformation;
-
-import java.io.IOException;
-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.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-import java.util.concurrent.atomic.AtomicReference;
-
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.MultiStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.core.runtime.SubMonitor;
-import org.eclipse.core.runtime.jobs.IJobChangeEvent;
-import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.core.runtime.jobs.JobChangeAdapter;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EReference;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.transaction.RollbackException;
-import org.eclipse.emf.transaction.Transaction;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.transaction.impl.InternalTransactionalEditingDomain;
-import org.eclipse.gmf.runtime.notation.DecorationNode;
-import org.eclipse.gmf.runtime.notation.NotationFactory;
-import org.eclipse.gmf.runtime.notation.NotationPackage;
-import org.eclipse.gmf.runtime.notation.StringValueStyle;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.m2m.qvt.oml.ExecutionContext;
-import org.eclipse.m2m.qvt.oml.util.Trace;
-import org.eclipse.papyrus.infra.core.resource.IEMFModel;
-import org.eclipse.papyrus.infra.core.resource.IModel;
-import org.eclipse.papyrus.infra.core.resource.ModelMultiException;
-import org.eclipse.papyrus.infra.core.resource.ModelSet;
-import org.eclipse.papyrus.infra.emf.resource.DependencyManagementHelper;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.papyrus.infra.tools.util.StringHelper;
-import org.eclipse.papyrus.m2m.qvto.TraceHelper;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-import org.eclipse.papyrus.migration.rsa.concurrent.ResourceAccessHelper;
-import org.eclipse.papyrus.migration.rsa.internal.extension.PostProcessExtension;
-import org.eclipse.papyrus.migration.rsa.internal.schedule.JobWrapper;
-import org.eclipse.papyrus.migration.rsa.internal.schedule.Schedulable;
-import org.eclipse.papyrus.migration.rsa.internal.schedule.Scheduler;
-import org.eclipse.papyrus.migration.rsa.internal.schedule.TransformationWrapper;
-import org.eclipse.papyrus.migration.rsa.transformation.ImportTransformation.ExtensionFunction;
-import org.eclipse.papyrus.migration.rsa.transformation.ui.URIMappingDialog;
-import org.eclipse.papyrus.uml.tools.model.UmlModel;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.console.ConsolePlugin;
-import org.eclipse.ui.console.IConsole;
-import org.eclipse.ui.console.IConsoleManager;
-import org.eclipse.ui.console.MessageConsole;
-import org.eclipse.ui.console.MessageConsoleStream;
-import org.eclipse.ui.dialogs.SelectionDialog;
-import org.eclipse.ui.statushandlers.StatusManager;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.Profile;
-import org.eclipse.uml2.uml.ProfileApplication;
-import org.eclipse.uml2.uml.Stereotype;
-
-/**
- * Executes a batch of {@link ImportTransformation}s, then restores the dependencies (References)
- * between each other
- *
- * @author Camille Letavernier
- *
- */
-public class ImportTransformationLauncher {
-
- // Nano to Second
- protected final static long SECOND = 1000 * 1000 * 1000;
-
- // Nano to Milliseconds
- protected final static long MILLIS = 1000 * 1000;
-
- protected final Config config;
-
- protected final Control baseControl;
-
- /**
- * Own execution time, in nano-seconds. Doesn't take individual transformation's exec
- * time into account. Also ignores the time when Blocking user Dialogs are opened
- */
- protected long ownExecutionTime;
-
- /**
- * Own loading time (For initial model loading)
- */
- protected long ownLoadingTime;
-
- /**
- * Own cumulated execution time for repairing stereotypes
- */
- protected long ownRepairStereotypesTime;
-
- /**
- * Own cumulated execution time for post-processing extensions
- */
- protected long ownPostProcessingTime;
-
- /**
- * Own cumulated execution time for repairing libraries
- */
- protected long ownRepairLibrariesTime;
-
- /**
- * Own execution time for resolving all matches for broken profiles/libraries
- */
- protected long resolveAllDependencies;
-
- /**
- * The top-level job for this transformation
- */
- protected Job importDependenciesJob;
-
- /**
- * Total time for all invidivual transformations to complete. Since they are executed in parallel,
- * this may be different from their cumulated execution time (Unless a single thread is used)
- */
- protected long transformationsExecutionTime = 0L;
-
- protected DependencyAnalysisHelper analysisHelper;
-
- public ImportTransformationLauncher(Config config) {
- this(config, null);
- }
-
- public ImportTransformationLauncher(Config config, Control baseControl) {
- this.config = config;
- this.baseControl = baseControl;
- }
-
- /**
- * Executes the transformation (Asynchronous)
- *
- * @param urisToImport
- */
- public void run(List<URI> urisToImport) {
- List<ImportTransformation> transformations = new LinkedList<ImportTransformation>();
-
- analysisHelper = new DependencyAnalysisHelper(config);
-
- for (URI uri : urisToImport) {
- ImportTransformation transformation = createTransformation(uri);
- transformations.add(transformation);
- }
-
- // Always use the batch launcher, even if there is only 1 transformation (Bug 455012)
- importModels(transformations);
- }
-
- protected ImportTransformation createTransformation(URI transformationURI) {
- return new ImportTransformation(transformationURI, config, analysisHelper);
- }
-
- /**
- * Start a Job and delegate to {@link #importModels(IProgressMonitor, List)}
- *
- * @param transformations
- */
- protected void importModels(final List<ImportTransformation> transformations) {
- importDependenciesJob = new Job("Import Models") {
-
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- IStatus result = ImportTransformationLauncher.this.importModels(monitor, transformations);
-
- if (monitor.isCanceled()) {
- return new Status(IStatus.CANCEL, Activator.PLUGIN_ID, "Operation Canceled");
- }
-
- long cumulatedLoadingTime = 0L;
- long cumulatedTransformationTime = 0L;
- long cumulatedHandleDanglingTime = 0L;
- long cumulatedImportExtensionsTime = 0L;
- for (ImportTransformation transformation : transformations) {
- cumulatedLoadingTime += transformation.getLoadingTime();
- cumulatedImportExtensionsTime += transformation.getImportExtensionsTime();
- cumulatedHandleDanglingTime += transformation.getHandleDanglingRefTime();
-
- cumulatedTransformationTime += transformation.getExecutionTime();
-
- log("Import " + transformation.getModelName());
- log("First phase (0-50%):");
- log("\tTotal loading time: " + timeFormat(transformation.getLoadingTime()));
- log("\tTotal Import Extensions time: " + timeFormat(transformation.getImportExtensionsTime()));
- log("\tTotal Handle Dangling References time: " + timeFormat(transformation.getHandleDanglingRefTime()));
- log("\tTotal execution time: " + timeFormat(transformation.getExecutionTime()));
-
- Long loadingTime = loadingTimeV2.get(transformation);
- Long repairProxiesTime = proxiesTime.get(transformation);
- Long repairStereoTime = stereoTime.get(transformation);
- Long postTime = postProcessTime.get(transformation);
- Long totalPhase2 = totalTimeV2.get(transformation);
-
- log("Second phase (50-100%):");
- log("\tTotal loading time: " + timeFormat(loadingTime));
- log("\tTotal fix proxies time: " + timeFormat(repairProxiesTime));
- log("\tTotal fix stereotypes time: " + timeFormat(repairStereoTime));
- log("\tTotal post-processing time: " + timeFormat(postTime));
- log("\tTotal execution time: " + timeFormat(totalPhase2));
-
- log("Total");
- log("\tTotal execution time: " + timeFormat(transformation.getExecutionTime() + totalPhase2));
- log("\n");
- }
-
- int nbThreads = Math.max(1, config.getMaxThreads());
- log("First phase (0-50%) / " + nbThreads + " Threads");
- log("\tCumulated Transformation Time: " + timeFormat(cumulatedTransformationTime));
- log("\tCumulated Loading Time: " + timeFormat(cumulatedLoadingTime));
- log("\tCumulated Handle Dangling Refs Time: " + timeFormat(cumulatedHandleDanglingTime));
- log("\tCumulated Import Extensions Time: " + timeFormat(cumulatedImportExtensionsTime));
- log("\tTotal Transformation Time: " + timeFormat(transformationsExecutionTime));
-
- log("Second phase (50-100%) / " + nbThreads + " Threads");
- log("\tTotal Handle all Dangling References: " + timeFormat(resolveAllDependencies));
- log("\tCumulated Loading Time: " + timeFormat(ownLoadingTime));
- log("\tCumulated Fix Libraries Time: " + timeFormat(ownRepairLibrariesTime));
- log("\tCumulated Fix Stereotypes Time: " + timeFormat(ownRepairStereotypesTime));
- log("\tCumulated Post-processing Time: " + timeFormat(ownPostProcessingTime));
- log("\tTotal Fix Dependencies Time: " + timeFormat(ownExecutionTime));
-
- log("Total");
- log("\tCumulated Total time: " + timeFormat(ownExecutionTime + cumulatedTransformationTime));
- log("\tTotal time: " + timeFormat(ownExecutionTime + transformationsExecutionTime));
-
- log("Import Complete");
- log("");
-
- return result;
- }
-
- };
-
- importDependenciesJob.addJobChangeListener(new JobChangeAdapter() {
- @Override
- public void done(IJobChangeEvent event) {
-
- MultiStatus multiStatus = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, "", null);
-
- multiStatus.merge(event.getResult());
-
- for (ImportTransformation transformation : transformations) {
- multiStatus.merge(transformation.getStatus());
- }
-
- int severity = multiStatus.getSeverity();
- String message;
-
- switch (severity) {
- case IStatus.OK:
- message = "The selected models have been successfully imported";
- break;
- case IStatus.CANCEL:
- message = "Operation canceled";
- break;
- case IStatus.WARNING:
- message = "The selected models have been imported; some warnings have been reported";
- break;
- default:
- message = "Some errors occurred during model import";
- break;
- }
-
-
- handle(new MultiStatus(Activator.PLUGIN_ID, severity, multiStatus.getChildren(), message, null));
- }
-
- protected void handle(final IStatus status) {
- if (baseControl == null) {
- int severity = status.getSeverity();
- if (severity == IStatus.OK || severity == IStatus.CANCEL) {
- return;
- }
-
- StatusManager.getManager().handle(status, StatusManager.LOG);
- return;
- }
-
- Display display = baseControl.getDisplay();
-
- if (status.getSeverity() == IStatus.OK) {
- display.asyncExec(new Runnable() {
-
- @Override
- public void run() {
- MessageDialog.openInformation(baseControl.getShell(), "Import models", status.getMessage());
- }
- });
-
- } else if (status.getSeverity() == IStatus.CANCEL) {
- display.asyncExec(new Runnable() {
-
- @Override
- public void run() {
- MessageDialog.openInformation(baseControl.getShell(), "Import models", status.getMessage());
- }
- });
- } else {
- StatusManager.getManager().handle(status, StatusManager.BLOCK);
- }
- }
- });
-
- importDependenciesJob.setUser(true);
- importDependenciesJob.schedule();
- }
-
- protected void log(String message) {
- System.out.println(message);
-
- MessageConsole console = getConsole();
- MessageConsoleStream out = console.newMessageStream();
- out.println(message);
- }
-
- protected static final String CONSOLE_NAME = "Model Import Results"; // The name is both the ID and the Label
-
- protected MessageConsole getConsole() {
- ConsolePlugin plugin = ConsolePlugin.getDefault();
- IConsoleManager consoleManager = plugin.getConsoleManager();
- IConsole[] existing = consoleManager.getConsoles();
- for (int i = 0; i < existing.length; i++) {
- if (CONSOLE_NAME.equals(existing[i].getName())) {
- return (MessageConsole) existing[i];
- }
- }
- // no console found, so create a new one
- MessageConsole rsaConsole = new MessageConsole(CONSOLE_NAME, null);
- consoleManager.addConsoles(new IConsole[] { rsaConsole });
- return rsaConsole;
- }
-
- protected String timeFormat(Long nano) {
- if (nano == null) {
- return "?"; // FIXME: crash?
- }
- long seconds = nano / SECOND;
- if (seconds < 1) {
- long millis = nano / MILLIS;
- return String.format("%s ms", millis);
- }
- return String.format("%d:%02d:%02d", seconds / 3600, (seconds % 3600) / 60, (seconds % 60));
- }
-
- /**
- * Schedules all the individual transformations, wait for completion, then
- * call {@link #handleModelDependencies(List, IProgressMonitor)}
- *
- * @param monitor
- * @param transformations
- * @return
- */
- protected IStatus importModels(IProgressMonitor monitor, List<ImportTransformation> transformations) {
-
- long begin = System.nanoTime();
-
- monitor.setTaskName("Waiting for import tasks to complete...");
- int numTasks = transformations.size() * 2; // For each transformation: wait for completion, then handle dependencies
- monitor.beginTask("Importing Models...", numTasks);
-
- List<Schedulable> tasks = new LinkedList<Schedulable>();
-
- for (ImportTransformation transformation : transformations) {
- tasks.add(new TransformationWrapper(transformation));
- }
-
- Scheduler scheduler = new Scheduler(config.getMaxThreads());
- scheduler.schedule(monitor, tasks);
-
- long end = System.nanoTime();
- transformationsExecutionTime = end - begin;
-
- if (monitor.isCanceled()) {
- return new Status(IStatus.CANCEL, Activator.PLUGIN_ID, "Operation canceled");
- }
-
- handleModelDependencies(transformations, monitor);
-
- return Status.OK_STATUS;
- }
-
- /**
- * Convert all model dependencies (For "imported model -> emx library" to "imported model -> imported library")
- * Also repairs profile and stereotype applications
- *
- * @param transformations
- * @param monitor
- */
- protected void handleModelDependencies(List<ImportTransformation> transformations, IProgressMonitor monitor) {
-
- long begin = System.nanoTime();
-
- long timeToIgnore = 0L;
-
-
- final Map<URI, URI> urisToReplace = new HashMap<URI, URI>();
- final Map<URI, URI> profileUrisToReplace = new HashMap<URI, URI>();
-
- for (ImportTransformation transformation : transformations) {
- urisToReplace.putAll(transformation.getURIMappings());
- profileUrisToReplace.putAll(transformation.getProfileURIMappings());
- }
-
- monitor.subTask("Analysing unresolved references...");
- long startResolveAll = System.nanoTime();
- analysisHelper.resolveAllMappings(urisToReplace, profileUrisToReplace);
- long endResolveAll = System.nanoTime();
- resolveAllDependencies = endResolveAll - startResolveAll;
-
- if (!config.getMappingParameters().getUriMappings().isEmpty() || !config.getMappingParameters().getProfileUriMappings().isEmpty()) {
-
- long beginDialog = System.nanoTime();
- MappingParameters parameters = confirmURIMappings(config.getMappingParameters());
- long endDialog = System.nanoTime();
- timeToIgnore = endDialog - beginDialog;
-
- config.setMappingParameters(parameters);
-
- // Include the user-defined URI mappings
- populateURIMap(parameters.getUriMappings(), urisToReplace);
- populateURIMap(parameters.getUriMappings(), profileUrisToReplace);
- populateURIMap(parameters.getProfileUriMappings(), profileUrisToReplace);
- }
-
- removeEmptyMappings(urisToReplace);
-
- List<Schedulable> tasks = new LinkedList<Schedulable>();
- for (final ImportTransformation transformation : transformations) {
- Job transformationJob = new Job("Importing dependencies for " + transformation.getModelName()) {
- @Override
- protected IStatus run(IProgressMonitor monitor) {
- long startFix = System.nanoTime();
- IStatus fixStatus = fixDependencies(transformation, monitor, urisToReplace, profileUrisToReplace);
- long endFix = System.nanoTime();
- synchronized (ImportTransformationLauncher.this) {
- totalTimeV2.put(transformation, endFix - startFix);
- }
-
- return fixStatus;
- }
- };
-
- tasks.add(new JobWrapper(transformationJob));
- }
-
- Scheduler scheduler = new Scheduler(config.getMaxThreads());
- scheduler.schedule(monitor, tasks);
-
- long end = System.nanoTime();
-
- ownExecutionTime = end - begin - timeToIgnore;
- }
-
- protected void removeEmptyMappings(Map<URI, URI> urisToReplace) {
- Iterator<Map.Entry<URI, URI>> iterator = urisToReplace.entrySet().iterator();
- while (iterator.hasNext()) {
- Map.Entry<URI, URI> entry = iterator.next();
- if (entry.getKey().equals(entry.getValue())) {
- iterator.remove();
- }
- }
- }
-
- final protected Map<ImportTransformation, Long> loadingTimeV2 = new HashMap<ImportTransformation, Long>();
-
- final protected Map<ImportTransformation, Long> proxiesTime = new HashMap<ImportTransformation, Long>();
-
- final protected Map<ImportTransformation, Long> stereoTime = new HashMap<ImportTransformation, Long>();
-
- final protected Map<ImportTransformation, Long> postProcessTime = new HashMap<ImportTransformation, Long>();
-
- final protected Map<ImportTransformation, Long> totalTimeV2 = new HashMap<ImportTransformation, Long>();
-
- protected IStatus fixDependencies(ImportTransformation transformation, IProgressMonitor monitor, Map<URI, URI> urisToReplace, Map<URI, URI> profileUrisToReplace) {
- monitor.subTask("Importing dependencies for " + transformation.getModelName());
- final MigrationModelSet modelSet = new MigrationModelSet();
-
- final Collection<Resource> resourcesToRepair;
- try {
- URI targetURI = transformation.getTargetURI();
- if (targetURI == null) {
- // The transformation didn't complete properly
- monitor.worked(1);
- return Status.OK_STATUS;
- }
-
- long startLoading = System.nanoTime();
- modelSet.loadModels(transformation.getTargetURI());
- resourcesToRepair = resolveOwnResources(modelSet);
- long endLoading = System.nanoTime();
- synchronized (ImportTransformationLauncher.this) {
- ownLoadingTime += endLoading - startLoading;
- loadingTimeV2.put(transformation, endLoading - startLoading);
- }
- } catch (ModelMultiException e) {
- Activator.log.error(e);
- monitor.worked(1);
- return new Status(IStatus.ERROR, Activator.PLUGIN_ID, "An exception occurred when repairing library dependencies", e);
- }
-
- try {
- long startProxies = System.nanoTime();
- modelSet.freeze(); // The repairProxies operation will try to load referenced resources, which we want to avoid (For performances)
- try {
- repairProxies(modelSet, resourcesToRepair, urisToReplace, monitor); // Repairing proxies first will change the Applied Profiles. This helps repairing stereotypes
- } finally {
- modelSet.unfreeze();
- }
- long endProxies = System.nanoTime();
- synchronized (ImportTransformationLauncher.this) {
- ownRepairLibrariesTime += endProxies - startProxies;
- proxiesTime.put(transformation, endProxies - startProxies);
- }
- } catch (Exception ex) {
- Activator.log.error(ex);
- return new Status(IStatus.ERROR, Activator.PLUGIN_ID, "An exception occurred when repairing library dependencies", ex);
- }
-
- RepairStereotypes repairStereotypesAction = new RepairStereotypes(modelSet, resourcesToRepair, profileUrisToReplace);
- try {
- long startStereotypes = System.nanoTime();
- repairStereotypesAction.execute();
- long endStereotypes = System.nanoTime();
- synchronized (ImportTransformationLauncher.this) {
- ownRepairStereotypesTime += endStereotypes - startStereotypes;
- stereoTime.put(transformation, endStereotypes - startStereotypes);
- }
- } catch (Exception ex) {
- Activator.log.error(ex);
- return new Status(IStatus.ERROR, Activator.PLUGIN_ID, "An exception occurred when repairing profiles/stereotypes", ex);
- }
-
- if (config.isRemoveUnmappedProfilesAndStereotypes()) {
- try {
- for (final Resource resource : resourcesToRepair) {
- final List<EObject> eObjectsToDelete = new LinkedList<EObject>();
- TreeIterator<EObject> allContents = resource.getAllContents();
- while (allContents.hasNext()) {
- EObject next = allContents.next();
- if (next.eResource() != resource) {
- allContents.prune();
- continue;
- }
-
- // Delete instances of RSA Stereotypes
- URI eClassURI = EcoreUtil.getURI(next.eClass());
- if (StringHelper.equals("epx", eClassURI.fileExtension())) {
- eObjectsToDelete.add(next);
- allContents.prune();
- continue;
- }
-
- // Delete applications of RSA Profiles
- if (next instanceof ProfileApplication) {
- ProfileApplication profileApplication = (ProfileApplication) next;
- Profile appliedProfile = profileApplication.getAppliedProfile();
- if (appliedProfile != null) {
- URI profileURI = EcoreUtil.getURI(appliedProfile);
- if (StringHelper.equals("epx", profileURI.fileExtension())) {
- eObjectsToDelete.add(next);
- allContents.prune();
- continue;
- }
- }
- }
- }
-
- Runnable runnable = new Runnable() {
- @Override
- public void run() {
- for (EObject eObject : eObjectsToDelete) {
- EObject parentElement = eObject.eContainer();
- if (parentElement == null) {
- resource.getContents().remove(eObject);
- } else {
- EStructuralFeature containingFeature = eObject.eContainingFeature();
- EcoreUtil.remove(parentElement, containingFeature, eObject);
- }
- }
- }
- };
-
- runFastTransaction(modelSet.getTransactionalEditingDomain(), runnable);
-
- }
- } catch (Exception ex) {
- Activator.log.error(ex);
- return new Status(IStatus.ERROR, Activator.PLUGIN_ID, "An exception occurred when repairing profiles/stereotypes", ex);
- }
- }
-
- IStatus repairDisplayStatus = repairStereotypeDisplay(modelSet, resourcesToRepair);
- if (!repairDisplayStatus.isOK()) {
- return repairDisplayStatus;
- }
-
- IStatus result = Status.OK_STATUS;
-
- // Post-processing extensions
- long postProcessors = transformation.getExtensions().stream()
- .filter(PostProcessExtension.class::isInstance)
- .count();
- if (postProcessors > 0L) {
- final TransactionalEditingDomain domain = modelSet.getTransactionalEditingDomain();
-
- String statusMessage = String.format("Post-process %s", transformation.getModelName());
- MultiStatus postProcessStatus = new MultiStatus(Activator.PLUGIN_ID, IStatus.OK, statusMessage, null);
-
- long startPostProcessing = System.nanoTime();
-
- try {
- runFastTransaction(domain, () -> {
- // Re-initialize the transformation for the new resource set
- transformation.initResourceSet(transformation.getTargetURI(), modelSet);
-
- ExecutionContext context = transformation.createExecutionContext(
- SubMonitor.convert(monitor, 1),
- postProcessStatus);
-
- // Cannot increment on previous transformations because they were in a different resource set
- context.getSessionData().setValue(TraceHelper.TRACE_HISTORY, Trace.createEmptyTrace());
-
- postProcessStatus.merge(transformation.importExtensions(context, monitor, ExtensionFunction::postProcess));
- });
- } catch (RollbackException ex) {
- Activator.log.error(ex);
- } catch (InterruptedException ex) {
- Activator.log.error(ex);
- } finally {
- long endPostProcessing = System.nanoTime();
- synchronized (ImportTransformationLauncher.this) {
- ownPostProcessingTime += endPostProcessing - startPostProcessing;
- postProcessTime.put(transformation, endPostProcessing - startPostProcessing);
- }
- }
-
- if (postProcessStatus.getSeverity() > IStatus.WARNING) {
- return postProcessStatus;
- }
-
- result = postProcessStatus;
- }
-
- try {
-
- for (Resource resource : resourcesToRepair) {
- ResourceAccessHelper.INSTANCE.saveResource(resource, null);
- }
-
- monitor.worked(1);
-
- TransactionalEditingDomain domain = modelSet.getTransactionalEditingDomain();
- runFastTransaction(domain, () -> EMFHelper.unload(modelSet));
-
- domain.dispose();
-
- } catch (IOException ex) {
- Activator.log.error(ex);
- } catch (RollbackException ex) {
- Activator.log.error(ex);
- } catch (InterruptedException ex) {
- Activator.log.error(ex);
- }
-
- return result;
- }
-
- protected IStatus repairStereotypeDisplay(ModelSet modelSet, Collection<Resource> resourcesToRepair) {
-
- Map<View, List<DecorationNode>> nodesToCreate = new HashMap<View, List<DecorationNode>>();
-
- final TransactionalEditingDomain domain = modelSet.getTransactionalEditingDomain();
-
- InternalTransactionalEditingDomain internalDomain = (InternalTransactionalEditingDomain) domain;
-
- Map<String, Object> options = new HashMap<String, Object>();
- options.put(Transaction.OPTION_NO_UNDO, true);
- options.put(Transaction.OPTION_NO_VALIDATION, true);
- options.put(Transaction.OPTION_NO_TRIGGERS, true);
- options.put(Transaction.OPTION_UNPROTECTED, true);
-
- List<StringValueStyle> stylesToDelete = new LinkedList<StringValueStyle>();
-
- try {
-
- // We're in a batch environment, with no undo/redo support. Run a vanilla transaction to improve performances
- Transaction fastTransaction = internalDomain.startTransaction(false, options);
-
- for (Resource resource : resourcesToRepair) {
- if ("notation".equals(resource.getURI().fileExtension())) {
- TreeIterator<EObject> contents = resource.getAllContents();
- while (contents.hasNext()) {
- EObject next = contents.next();
-
- if (next instanceof StringValueStyle) {
- StringValueStyle style = (StringValueStyle) next;
- if ("stereotypeDisplayBackup".equals(style.getName())) {
- stylesToDelete.add(style); // Cannot use iterator.remove(), it is not supported. Store and delete later
- continue;
- }
- }
-
- if (!(next instanceof View)) {
- contents.prune();
- continue;
- }
-
- View content = (View) next;
- StringValueStyle stereotypeDisplay = (StringValueStyle) content.getNamedStyle(NotationPackage.eINSTANCE.getStringValueStyle(), "stereotypeDisplayBackup");
- if (stereotypeDisplay == null) {
- continue;
- }
-
- final String value = stereotypeDisplay.getStringValue();
- if (value == null) {
- continue;
- }
-
- switch (value) {
- case "None": // Other values not handled yet //$NON-NLS-1$
- EObject semanticElement = content.getElement();
- if (!(semanticElement instanceof Element)) {
- continue;
- }
-
- Element umlElement = (Element) semanticElement;
-
- List<Stereotype> stereotypes = umlElement.getAppliedStereotypes();
-
- List<DecorationNode> childNodesToCreate = new LinkedList<DecorationNode>();
- nodesToCreate.put(content, childNodesToCreate);
-
- for (Stereotype appliedStereotype : stereotypes) {
- DecorationNode stereotypeLabel = NotationFactory.eINSTANCE.createDecorationNode();
- stereotypeLabel.setType("StereotypeLabel");
- stereotypeLabel.setVisible(false);
-
- StringValueStyle stereotypeStyle = (StringValueStyle) stereotypeLabel.createStyle(NotationPackage.eINSTANCE.getStringValueStyle());
- stereotypeStyle.setName("stereotype");
- stereotypeStyle.setStringValue(appliedStereotype.getQualifiedName());
- stereotypeLabel.setElement(appliedStereotype);
-
- stereotypeLabel.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
-
- childNodesToCreate.add(stereotypeLabel);
- }
- break;
- default:
- // Not handled
- }
- }
- }
- }
-
- for (Entry<View, List<DecorationNode>> toCreate : nodesToCreate.entrySet()) {
- View parent = toCreate.getKey();
- for (DecorationNode decorationNode : toCreate.getValue()) {
- parent.getPersistedChildren().add(decorationNode);
- }
- }
-
- // Simple delete for performances (These styles don't have any incoming reference other than the containment)
- for (StringValueStyle styleToDelete : stylesToDelete) {
- EObject container = styleToDelete.eContainer();
- EReference feature = styleToDelete.eContainmentFeature();
-
- if (container != null && feature != null) {
-
- if (feature.isMany()) {
- List<?> values = (List<?>) container.eGet(feature);
- values.remove(styleToDelete);
- } else {
- container.eUnset(feature);
- }
- }
- }
-
- fastTransaction.commit();
- } catch (Exception ex) {
- Activator.log.error(ex);
- return new Status(IStatus.ERROR, Activator.PLUGIN_ID, "An error occurred while trying to migrate Stereotype Display", ex);
- }
-
- return Status.OK_STATUS;
- }
-
- protected Collection<Resource> resolveOwnResources(ModelSet modelSet) {
- UmlModel umlModel = (UmlModel) modelSet.getModel(UmlModel.MODEL_ID);
- if (umlModel == null) {
- return Collections.emptySet();
- }
-
- // Iterate on the main resource's contents (Including fragments).
- // The ModelSet will take care of loading any associated resource (notation, di)
-
- Resource mainResource = umlModel.getResource();
- if (mainResource == null) {
- return Collections.emptySet();
- }
-
- Iterator<EObject> contents = mainResource.getAllContents();
- while (contents.hasNext()) {
- contents.next();
- }
-
- Set<Resource> resourcesToRepair = new HashSet<Resource>();
- for (Resource resource : modelSet.getResources()) {
- if (isMainModelResource(modelSet, resource)) {
- resourcesToRepair.add(resource);
- }
- }
- return resourcesToRepair;
- }
-
- /**
- * A resource belongs to the main model if it is one of the 4-files model (Di, Notation, Uml, Sash), or if it is
- * a resource associated to a Sub-model of the main model (i.e. child of the main UML resource,
- * or resource associated to a child of the main UML resource)
- *
- * @param modelSet
- * @param resource
- * @return
- */
- protected boolean isMainModelResource(ModelSet modelSet, Resource resource) {
- IModel model = modelSet.getModelFor(resource);
- if (model instanceof IEMFModel) {
- IEMFModel logicalModel = (IEMFModel) model;
- if (logicalModel.getResource() == resource || logicalModel.isControlled(resource)) {
- return true;
- }
- }
-
- return false;
- }
-
- protected void repairProxies(final ModelSet modelSet, final Collection<Resource> resourcesToRepair, final Map<URI, URI> urisToReplace, IProgressMonitor monitor) throws InterruptedException, RollbackException {
- final TransactionalEditingDomain domain = modelSet.getTransactionalEditingDomain();
- Runnable runnable = new Runnable() {
- @Override
- public void run() {
- DependencyManagementHelper.batchUpdateDependencies(urisToReplace, resourcesToRepair, domain);
- }
- };
-
- runFastTransaction(domain, runnable);
- }
-
- protected static final void runFastTransaction(TransactionalEditingDomain domain, Runnable runnable) throws InterruptedException, RollbackException {
- InternalTransactionalEditingDomain internalDomain = (InternalTransactionalEditingDomain) domain;
-
- Map<String, Object> options = new HashMap<String, Object>();
- options.put(Transaction.OPTION_NO_UNDO, true);
- options.put(Transaction.OPTION_NO_VALIDATION, true);
- options.put(Transaction.OPTION_NO_TRIGGERS, true);
- options.put(Transaction.OPTION_UNPROTECTED, true);
-
- // We're in a batch environment, with no undo/redo support. Run a vanilla transaction to improve performances
- Transaction fastTransaction = internalDomain.startTransaction(false, options);
- try {
- runnable.run();
- } finally {
- fastTransaction.commit();
- }
- }
-
- /**
- * Convert and add all the URIMappings into the URI Map
- *
- * @param mappings
- * @param uriMap
- */
- protected static void populateURIMap(List<URIMapping> mappings, Map<URI, URI> uriMap) {
- for (URIMapping mapping : mappings) {
- if (mapping == null) {
- continue;
- }
- String source = mapping.getSourceURI();
- String target = mapping.getTargetURI();
-
- if (source != null && target != null && !source.trim().isEmpty() && !target.trim().isEmpty()) {
-
- URI sourceURI = URI.createURI(mapping.getSourceURI());
- URI targetURI = URI.createURI(mapping.getTargetURI());
-
- if (uriMap.containsKey(sourceURI)) {
- continue;
- }
-
- uriMap.put(sourceURI, targetURI);
- }
- }
- }
-
- protected MappingParameters confirmURIMappings(final MappingParameters mappingParameters) {
- List<URIMapping> flatMappings = analysisHelper.flattenURIMappings(mappingParameters);
- analysisHelper.propagateURIMappings(flatMappings, mappingParameters);
-
- if (config.isAlwaysAcceptSuggestedMappings()) {
- return mappingParameters;
- }
-
- final AtomicReference<MappingParameters> newParameters = new AtomicReference<MappingParameters>(mappingParameters);
-
- if (baseControl != null && !baseControl.isDisposed()) {
- baseControl.getDisplay().syncExec(new Runnable() {
- @Override
- public void run() {
- newParameters.set(openMappingsDialog(mappingParameters));
- }
- });
- }
-
- return newParameters.get();
- }
-
- protected MappingParameters openMappingsDialog(final MappingParameters mappingParameters) {
- final Shell shell = baseControl.getShell();
-
- SelectionDialog dialog = new URIMappingDialog(shell, mappingParameters, analysisHelper);
-
- dialog.open();
- return (MappingParameters) dialog.getResult()[0];
- }
-
- /** Mainly for test purpose */
- public void waitForCompletion() throws Exception {
- importDependenciesJob.join();
- }
-
- /** Mainly for test purpose */
- public IStatus getResult() {
- return importDependenciesJob.getResult();
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationModelSet.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationModelSet.java
deleted file mode 100644
index b24109057dd..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationModelSet.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*****************************************************************************
- * 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.migration.rsa.transformation;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.papyrus.migration.rsa.concurrent.ThreadSafeModelSet;
-
-/**
- * @author Camille Letavernier
- *
- */
-public class MigrationModelSet extends ThreadSafeModelSet implements MigrationResourceSet {
-
- private boolean frozen = false;
-
- /**
- * @see org.eclipse.papyrus.migration.rsa.transformation.MigrationResourceSet#freeze()
- *
- */
- @Override
- public void freeze() {
- this.frozen = true;
- }
-
- /**
- * @see org.eclipse.papyrus.migration.rsa.transformation.MigrationResourceSet#unfreeze()
- *
- */
- @Override
- public void unfreeze() {
- this.frozen = false;
- }
-
- /**
- * @see org.eclipse.emf.ecore.resource.impl.ResourceSetImpl#getResource(org.eclipse.emf.common.util.URI, boolean)
- *
- * @param uri
- * @param loadOnDemand
- * @return
- */
- @Override
- public Resource getResource(URI uri, boolean loadOnDemand) {
- return super.getResource(uri, frozen ? false : loadOnDemand);
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationResourceSet.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationResourceSet.java
deleted file mode 100644
index d3df27402ca..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationResourceSet.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*****************************************************************************
- * 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.migration.rsa.transformation;
-
-import org.eclipse.emf.ecore.resource.ResourceSet;
-
-/**
- * A ResourceSet which can optionally be "frozen". In frozen state,
- * it won't load any additional resource, until {@link #unfreeze()} is called
- *
- * Freezing the ResourceSet may violate the EMF Contract of getResource() and should be used carefully.
- *
- * Use this when using eGet(EStructuralFeature, resolve = false) is not sufficient (Bug 457341 / Comment 17)
- *
- * @author Camille Letavernier
- *
- */
-public interface MigrationResourceSet extends ResourceSet {
-
- /**
- * Freeze this resource set: resources will not be demand-loaded anymore
- * Resources which are already present in the workspace will still be accessible
- *
- * Frozen ResourceSets may violate the API Contract for {@link #getResource(org.eclipse.emf.common.util.URI, boolean)} ; use with care
- */
- public void freeze();
-
- /**
- * Unfreeze this resource set: come back to a normal state
- */
- public void unfreeze();
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationResourceSetImpl.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationResourceSetImpl.java
deleted file mode 100644
index aed65550072..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/MigrationResourceSetImpl.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2015, 2016 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 505330
- *
- *****************************************************************************/
-
-package org.eclipse.papyrus.migration.rsa.transformation;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.papyrus.migration.rsa.concurrent.ThreadSafeResourceSet;
-
-/**
- * @author Camille Letavernier
- *
- */
-public class MigrationResourceSetImpl extends ThreadSafeResourceSet implements MigrationResourceSet {
-
- private boolean frozen = false;
-
- /**
- * Initializes me without a dependency analysis helper, which is not recommended
- * because then it will be difficult for me to resolve profile namespace locations.
- *
- * @deprecated Use the {@link #MigrationResourceSetImpl(DependencyAnalysisHelper)} constructor, instead
- */
- @Deprecated
- public MigrationResourceSetImpl() {
- this(null);
- }
-
- /**
- * Initializes me with my dependency analysis helper.
- *
- * @param dependencyHelper
- * my dependency analysis helper, or {@code null} if none
- */
- public MigrationResourceSetImpl(DependencyAnalysisHelper dependencyHelper) {
- super();
-
- if (dependencyHelper != null) {
- // Install a URI converter that maps *.epx to *.profile.uml where
- // the target actually exists
- setURIConverter(new ProfileMappingAwareURIConverter(this, dependencyHelper));
- }
- }
-
- @Override
- public void freeze() {
- this.frozen = true;
- }
-
- @Override
- public void unfreeze() {
- this.frozen = false;
- }
-
- @Override
- public Resource getResource(URI uri, boolean loadOnDemand) {
- return super.getResource(uri, frozen ? false : loadOnDemand);
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ProfileMappingAwareURIConverter.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ProfileMappingAwareURIConverter.java
deleted file mode 100644
index f50bdb24085..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ProfileMappingAwareURIConverter.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2016 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.migration.rsa.transformation;
-
-import static org.eclipse.emf.common.util.URI.createURI;
-
-import java.util.Map;
-import java.util.Optional;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.emf.ecore.resource.URIConverter;
-import org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl;
-import org.eclipse.emf.ecore.resource.impl.URIMappingRegistryImpl;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-
-import com.google.common.collect.Maps;
-
-/**
- * A custom URI converter that lets the resource set find the Papyrus versions of
- * profiles imported from RSA automatically, especially to resolve schema locations
- * before the dependency-mapping/stereotype-repair phase.
- */
-class ProfileMappingAwareURIConverter extends ExtensibleURIConverterImpl {
-
- private final ResourceSet owner;
- private final DependencyAnalysisHelper dependencyHelper;
-
- private final Map<URI, Optional<URIMapping>> profileMappings = Maps.newConcurrentMap();
-
- /**
- * Initializes me with the resource set that owns me and a dependency analysis
- * helper that resolves profile mappings within it.
- *
- * @param owner
- * my contextual resource set
- * @param dependencyHelper
- * the profile mapping helper
- */
- public ProfileMappingAwareURIConverter(ResourceSet owner, DependencyAnalysisHelper dependencyHelper) {
- super();
-
- this.owner = owner;
- this.dependencyHelper = dependencyHelper;
- }
-
- @Override
- protected URIMap getInternalURIMap() {
-
- if (uriMap == null) {
- URIMap delegate = super.getInternalURIMap();
- uriMap = (URIMap) new URIMappingRegistryImpl() {
- private static final long serialVersionUID = 1L;
-
- @Override
- protected URI delegatedGetURI(URI uri) {
- URI result;
-
- if (!"epx".equalsIgnoreCase(uri.fileExtension())) {
- result = delegate.getURI(uri);
- } else {
- Optional<URIMapping> mapping = getProfileMapping(uri);
- result = mapping
- .map(m -> createURI(m.getTargetURI()))
- .orElseGet(() -> delegate.getURI(uri));
- }
-
- return result;
- }
- }.map();
- }
-
- return uriMap;
-
- }
-
- private Optional<URIMapping> getProfileMapping(URI uri) {
- return profileMappings.computeIfAbsent(uri, this::findProfileMapping);
- }
-
- private Optional<URIMapping> findProfileMapping(URI uri) {
- // If the EPX actually exists, use it. And we must use an independent
- // converter instance for this test, because otherwise we will
- // deadlock on re-entrance into looking for a profile mapping
- URIMapping result = URIConverter.INSTANCE.exists(uri, null)
- ? null
- : dependencyHelper.findExistingProfileMapping(uri, owner);
- return Optional.ofNullable(result);
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/RepairStereotypes.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/RepairStereotypes.java
deleted file mode 100644
index db122ffe79f..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/RepairStereotypes.java
+++ /dev/null
@@ -1,224 +0,0 @@
-/*****************************************************************************
- * 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
- * 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
- * Christian W. Damus - bug 436666
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.transformation;
-
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.Set;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.emf.common.util.BasicDiagnostic;
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.transaction.RollbackException;
-import org.eclipse.emf.transaction.Transaction;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.emf.transaction.impl.InternalTransactionalEditingDomain;
-import org.eclipse.papyrus.infra.core.resource.ModelSet;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderService;
-import org.eclipse.papyrus.infra.services.labelprovider.service.impl.LabelProviderServiceImpl;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.uml.modelrepair.internal.stereotypes.IRepairAction;
-import org.eclipse.papyrus.uml.modelrepair.internal.stereotypes.ZombieStereotypesDescriptor;
-import org.eclipse.uml2.uml.Component;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.Package;
-import org.eclipse.uml2.uml.Profile;
-import org.eclipse.uml2.uml.ProfileApplication;
-import org.eclipse.uml2.uml.UMLPackage;
-
-import com.google.common.base.Function;
-import com.google.common.base.Predicates;
-import com.google.common.collect.Iterators;
-import com.google.common.collect.Lists;
-import com.google.common.collect.Sets;
-
-/**
- * Repairs stereotype applications in the specified model set, using the default action for each
- *
- * The given URI Map is used when the proper profile can't be found automatically
- *
- * @author Camille Letavernier
- *
- */
-public class RepairStereotypes {
-
- private final ModelSet modelSet;
-
- private final Collection<Resource> resourcesToRepair;
-
- private final Map<URI, URI> profileMappings;
-
- public RepairStereotypes(ModelSet modelSet, Collection<Resource> resourcesToRepair, Map<URI, URI> profileMappings) {
- this.modelSet = modelSet;
- this.resourcesToRepair = resourcesToRepair;
- this.profileMappings = profileMappings;
- }
-
- /**
- * Finds all zombie stereotypes, and repair them with the default action.
- *
- * If the profile can't be found automatically, the profileMappings map is used
- *
- * @throws InterruptedException
- * @throws RollbackException
- */
- public void execute() throws InterruptedException, RollbackException {
- ZombieStereotypesDescriptor result = null;
-
- LabelProviderService labelProvider = new LabelProviderServiceImpl();
- try {
- labelProvider.startService();
- } catch (Exception ex) {
- Activator.log.error(ex);
- return;
- }
-
- Function<? super EPackage, Profile> profileSupplier = getProfileSupplier();
-
- for (Resource resource : resourcesToRepair) {
- Element rootElement = (Element) EcoreUtil.getObjectByType(resource.getContents(), UMLPackage.Literals.ELEMENT);
-
- if (rootElement == null || rootElement.getNearestPackage() == null) {
- continue;
- }
-
- Package rootPackage = rootElement.getNearestPackage();
-
- Collection<ProfileApplication> profileApplications = Lists.newArrayList();
- for (TreeIterator<EObject> iter = EcoreUtil.getAllProperContents(Collections.singleton(rootPackage), false); iter.hasNext();) {
- EObject next = iter.next();
- if (next instanceof ProfileApplication) {
- profileApplications.add((ProfileApplication) next);
- iter.prune();
- } else if (!(next instanceof Package) && !(next instanceof Component)) {
- // No sense looking for packages except in the things that can contain packages
- iter.prune();
- }
- }
-
- Set<EPackage> appliedDefinitions = getAppliedDefinitions(profileApplications);
-
- ZombieStereotypesDescriptor zombies = new ZombieStereotypesDescriptor(resource, rootPackage, appliedDefinitions, profileSupplier, labelProvider);
-
- for (EObject next : resource.getContents()) {
- if (!(next instanceof Element)) {
- zombies.analyze(next);
- }
- }
-
- if (zombies.hasZombies()) {
- result = zombies;
- }
-
- if (result == null) {
- continue;
- }
-
- final ZombieStereotypesDescriptor descriptor = result;
-
- final TransactionalEditingDomain domain = modelSet.getTransactionalEditingDomain();
-
-
- InternalTransactionalEditingDomain internalDomain = (InternalTransactionalEditingDomain) domain;
-
- Map<String, Object> options = new HashMap<String, Object>();
- options.put(Transaction.OPTION_NO_UNDO, true);
- options.put(Transaction.OPTION_NO_VALIDATION, true);
- options.put(Transaction.OPTION_NO_TRIGGERS, true);
- options.put(Transaction.OPTION_UNPROTECTED, true);
-
- // We're in a batch environment, with no undo/redo support. Run a vanilla transaction to improve performances
- Transaction fastTransaction = internalDomain.startTransaction(false, options);
- try {
- final BasicDiagnostic diagnostics = new BasicDiagnostic(Activator.PLUGIN_ID, 0, "Problems in repairing stereotypes", null);
-
- for (IAdaptable packageToRepair : descriptor.getZombieSchemas()) {
- IRepairAction action = descriptor.getRepairAction(packageToRepair, IRepairAction.Kind.APPLY_LATEST_PROFILE_DEFINITION);
- descriptor.repair(packageToRepair, action, diagnostics, new NullProgressMonitor());
- }
- } finally {
- fastTransaction.commit();
- }
-
- }
-
- try {
- labelProvider.disposeService();
- } catch (ServiceException ex) {
- Activator.log.error(ex);
- }
- }
-
- /**
- * Maps a zombie EPackage with an existing Profile. Called only if the Profile can't be resolved automatically
- *
- * @return
- */
- protected Function<? super EPackage, Profile> getProfileSupplier() {
- return new Function<EPackage, Profile>() {
-
- // If we're here, we didn't find a perfect match for the profile. We need to make some guesses
- @Override
- public Profile apply(EPackage input) {
- if (input.eResource() == null || input.eResource().getURI() == null) {
- return null;
- }
-
- URI packageResourceURI = input.eResource().getURI();
- URI targetResourceURI = profileMappings.get(packageResourceURI);
-
- Profile result = null;
- URI selectedProfileURI = targetResourceURI;
- if (selectedProfileURI != null) {
- result = EMFHelper.load(modelSet, selectedProfileURI, Profile.class);
-
- // If there is a single Profile, there is no ambiguity. Just return it
- if ((result != null) && !hasNestedProfiles(result)) {
- return result;
- }
-
- // TODO: handle the case with nested profiles (We already opened a popup dialog earlier; wouldn't be a good idea to pop another dialog here)
- }
-
- return null;
- }
-
- boolean hasNestedProfiles(Profile profile) {
- return Iterators.any(profile.eAllContents(), Predicates.instanceOf(Profile.class));
- }
- };
- }
-
- protected Set<EPackage> getAppliedDefinitions(Iterable<? extends ProfileApplication> profileApplications) {
- Set<EPackage> result = Sets.newHashSet();
-
- for (ProfileApplication next : profileApplications) {
- EPackage definition = next.getAppliedDefinition();
- if ((definition != null) && !definition.eIsProxy()) {
- result.add(definition);
- }
- }
-
- return result;
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ui/RegisteredItemLabelProvider.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ui/RegisteredItemLabelProvider.java
deleted file mode 100644
index 4db38360df9..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ui/RegisteredItemLabelProvider.java
+++ /dev/null
@@ -1,43 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.transformation.ui;
-
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.papyrus.uml.extensionpoints.IRegisteredItem;
-import org.eclipse.swt.graphics.Image;
-
-/**
- * Label Provider for RegisteredItems (Libraries & Profiles)
- *
- * @author Camille Letavernier
- *
- */
-public class RegisteredItemLabelProvider extends LabelProvider {
- @Override
- public Image getImage(Object element) {
- if (element instanceof IRegisteredItem) {
- IRegisteredItem library = (IRegisteredItem) element;
- return library.getImage();
- }
- return super.getImage(element);
- }
-
- @Override
- public String getText(Object element) {
- if (element instanceof IRegisteredItem) {
- IRegisteredItem library = (IRegisteredItem) element;
- return library.getName();
- }
-
- return super.getText(element);
- }
-} \ No newline at end of file
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ui/URIMappingDialog.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ui/URIMappingDialog.java
deleted file mode 100644
index cef8939a647..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/transformation/ui/URIMappingDialog.java
+++ /dev/null
@@ -1,367 +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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.transformation.ui;
-
-import java.text.Collator;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.jface.viewers.ColumnLabelProvider;
-import org.eclipse.jface.viewers.ColumnWeightData;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.TableLayout;
-import org.eclipse.jface.viewers.TableViewer;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.jface.viewers.ViewerCell;
-import org.eclipse.jface.viewers.ViewerComparator;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderService;
-import org.eclipse.papyrus.infra.services.labelprovider.service.impl.LabelProviderServiceImpl;
-import org.eclipse.papyrus.infra.widgets.editors.TreeSelectorDialog;
-import org.eclipse.papyrus.infra.widgets.providers.CollectionContentProvider;
-import org.eclipse.papyrus.infra.widgets.providers.EncapsulatedContentProvider;
-import org.eclipse.papyrus.infra.widgets.providers.StaticContentProvider;
-import org.eclipse.papyrus.infra.widgets.providers.WorkspaceContentProvider;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.MappingParameters;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.URIMapping;
-import org.eclipse.papyrus.migration.rsa.transformation.DependencyAnalysisHelper;
-import org.eclipse.papyrus.uml.extensionpoints.IRegisteredItem;
-import org.eclipse.papyrus.uml.extensionpoints.Registry;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Table;
-import org.eclipse.swt.widgets.TableColumn;
-import org.eclipse.ui.dialogs.SelectionDialog;
-
-/**
- * Opens a dialog allowing the user to manipulate/change the URIMappings of the transformation
- * (Dependency repair)
- *
- * @author Camille Letavernier
- *
- */
-public class URIMappingDialog extends SelectionDialog {
-
- MappingParameters mappingParameters, result;
-
- TableViewer viewer;
-
- LabelProviderService labelProviderService;
-
- private static final int BROWSE_WORKSPACE_ID = IDialogConstants.CLIENT_ID + 1;
-
- private static final int BROWSE_REGISTERED_ID = IDialogConstants.CLIENT_ID + 2;
-
- private static final int BROWSE_PROFILES_ID = IDialogConstants.CLIENT_ID + 3;
-
- List<URIMapping> allMappings;
-
- final DependencyAnalysisHelper dependencyHelper;
-
- public URIMappingDialog(Shell shell, MappingParameters mappingParameters, DependencyAnalysisHelper dependencyHelper) {
- super(shell);
- this.dependencyHelper = dependencyHelper;
- this.mappingParameters = mappingParameters;
- }
-
- @Override
- protected void configureShell(Shell shell) {
- setTitle("Some dependencies are missing");
- super.configureShell(shell);
- }
-
- @Override
- protected Control createDialogArea(Composite parent) {
- Composite area = (Composite) super.createDialogArea(parent);
-
- labelProviderService = new LabelProviderServiceImpl();
- try {
- labelProviderService.startService();
- } catch (ServiceException e) {
- Activator.log.error(e);
- }
-
- Label description = new Label(area, SWT.WRAP);
- description.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
- description.setText("Some elements in the following resources can't be resolved. Please choose the resources to replace them.");
-
- Composite self = new Composite(area, SWT.NONE);
- self.setLayout(new GridLayout(1, true));
- self.setLayoutData(new GridData(GridData.FILL_BOTH));
-
- // Do a copy: if Cancel is pressed, it can be discarded
- result = EcoreUtil.copy(mappingParameters);
- setResult(Collections.singletonList(mappingParameters)); // Default result (If Cancel is pressed)
-
- Composite buttonsBarComposite = new Composite(self, SWT.NONE);
-
- GridLayout buttonsLayout = new GridLayout(0, false);
- buttonsLayout.marginWidth = 0;
-
- buttonsBarComposite.setLayout(buttonsLayout);
- buttonsBarComposite.setLayoutData(new GridData(SWT.END, SWT.CENTER, false, false));
-
- Button browseWorkspace = createButton(buttonsBarComposite, BROWSE_WORKSPACE_ID, "", false);
- browseWorkspace.setImage(org.eclipse.papyrus.infra.widgets.Activator.getDefault().getImage("icons/browse_12x12.gif"));
- browseWorkspace.setToolTipText("Browse Workspace");
- Button browseRegistered = createButton(buttonsBarComposite, BROWSE_REGISTERED_ID, "", false);
- browseRegistered.setImage(org.eclipse.papyrus.infra.widgets.Activator.getDefault().getImage("icons/Add_12x12.gif"));
- browseRegistered.setToolTipText("Browse Registered Libraries");
- Button browseProfiles = createButton(buttonsBarComposite, BROWSE_PROFILES_ID, "", false);
- browseProfiles.setImage(org.eclipse.papyrus.infra.widgets.Activator.getDefault().getImage("icons/AddReg.gif"));
- browseProfiles.setToolTipText("Browse Registered Profiles");
-
- viewer = new TableViewer(self, SWT.FULL_SELECTION | SWT.BORDER);
- Table table = viewer.getTable();
- TableLayout layout = new TableLayout();
- table.setLayout(layout);
- GridData tableData = new GridData(SWT.FILL, SWT.FILL, true, true);
-
- tableData.minimumHeight = 120;
- table.setLayoutData(tableData);
- table.setHeaderVisible(true);
-
- TableColumn locationColumn = new TableColumn(table, SWT.NONE);
- locationColumn.setText("Location");
- layout.addColumnData(new ColumnWeightData(50, 250, true));
-
- TableColumn newLocationColumn = new TableColumn(table, SWT.NONE);
- newLocationColumn.setText("New Location");
- layout.addColumnData(new ColumnWeightData(50, 250, true));
-
- viewer.setContentProvider(CollectionContentProvider.instance);
-
- viewer.setLabelProvider(new URIColumnsLabelProvider());
- viewer.setComparator(new ViewerComparator() {
- @Override
- public int compare(Viewer viewer, Object e1, Object e2) {
- if (e1 instanceof URIMapping && e2 instanceof URIMapping) {
- URIMapping map1 = (URIMapping) e1;
- URIMapping map2 = (URIMapping) e2;
-
- return Collator.getInstance().compare(map1.getSourceURI(), map2.getSourceURI());
- }
- return 0;
- }
- });
-
- allMappings = dependencyHelper.flattenURIMappings(result);
-
- viewer.setInput(allMappings);
-
- viewer.addSelectionChangedListener(new ISelectionChangedListener() {
-
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- updateControls();
- }
- });
-
- updateControls();
-
- return self;
- }
-
- @Override
- public boolean close() {
- try {
- labelProviderService.disposeService();
- } catch (Exception e) {
- Activator.log.error(e);
- }
- return super.close();
- }
-
- protected void updateControls() {
- boolean enableBrowse = !viewer.getSelection().isEmpty();
-
- getButton(BROWSE_REGISTERED_ID).setEnabled(enableBrowse);
- getButton(BROWSE_WORKSPACE_ID).setEnabled(enableBrowse);
- getButton(BROWSE_PROFILES_ID).setEnabled(enableBrowse);
-
- viewer.refresh();
- }
-
- @Override
- protected void buttonPressed(int buttonId) {
- switch (buttonId) {
- case BROWSE_REGISTERED_ID:
- browseRegisteredLibraries();
- return;
- case BROWSE_WORKSPACE_ID:
- browseWorkspaceLibraries();
- return;
- case BROWSE_PROFILES_ID:
- browseRegisteredProfiles();
- return;
- }
-
- super.buttonPressed(buttonId);
- }
-
- protected URIMapping getSelectedMapping() {
- ISelection selection = viewer.getSelection();
- if (selection.isEmpty()) {
- return null;
- }
-
- if (selection instanceof IStructuredSelection) {
- Object selectedElement = ((IStructuredSelection) selection).getFirstElement();
- if (selectedElement instanceof URIMapping) {
- return (URIMapping) selectedElement;
- }
- }
-
- return null;
- }
-
- protected void browseWorkspaceLibraries() {
- if (getSelectedMapping() == null) {
- return;
- }
-
- Map<String, String> extensionFilters = new LinkedHashMap<String, String>();
- extensionFilters.put("*.uml", "UML (*.uml)");
- extensionFilters.put("*", "All (*)");
-
- TreeSelectorDialog dialog = new TreeSelectorDialog(getShell());
- dialog.setTitle("Browse Workspace");
- dialog.setDescription("Select a library in the workspace.");
- WorkspaceContentProvider workspaceContentProvider = new WorkspaceContentProvider();
- workspaceContentProvider.setExtensionFilters(extensionFilters);
- dialog.setContentProvider(workspaceContentProvider);
-
- dialog.setLabelProvider(labelProviderService.getLabelProvider());
-
-
- if (dialog.open() == Window.OK) {
- Object[] result = dialog.getResult();
- if (result == null || result.length == 0) {
- return;
- }
-
- Object selectedFile = result[0];
-
- if (selectedFile instanceof IFile) {
- IPath filePath = ((IFile) selectedFile).getFullPath();
- URI workspaceURI = URI.createPlatformResourceURI(filePath.toString(), true);
-
- replaceSelectionWith(workspaceURI);
- }
- }
- }
-
- protected void replaceSelectionWith(URI targetURI) {
- URIMapping mapping = getSelectedMapping();
- mapping.setTargetURI(targetURI.toString());
- updateControls();
- }
-
- protected void browseRegisteredLibraries() {
- browseRegisteredItems(Registry.getRegisteredLibraries(), "Browse Registered Libraries", "Select one of the registered libraries below.");
- }
-
- protected void browseRegisteredProfiles() {
- browseRegisteredItems(Registry.getRegisteredProfiles(), "Browse Registered Profiles", "Select one of the registered profiles below.");
- }
-
- protected void browseRegisteredItems(Collection<? extends IRegisteredItem> items, String dialogTitle, String dialogDescription) {
- TreeSelectorDialog dialog = new TreeSelectorDialog(getShell());
- dialog.setTitle(dialogTitle);
- dialog.setDescription(dialogDescription);
- dialog.setContentProvider(new EncapsulatedContentProvider(new StaticContentProvider(items.toArray(new IRegisteredItem[0]))));
- dialog.setLabelProvider(new RegisteredItemLabelProvider());
-
- if (dialog.open() == Window.OK) {
- Object[] result = dialog.getResult();
- if (result == null || result.length == 0) {
- return;
- }
-
- Object selectedElement = result[0];
- if (selectedElement instanceof IRegisteredItem) {
- IRegisteredItem item = (IRegisteredItem) selectedElement;
-
- replaceSelectionWith(item.getUri());
- }
- }
- }
-
- @Override
- protected void okPressed() {
- dependencyHelper.propagateURIMappings(allMappings, result);
- setResult(Collections.singletonList(result)); // Set the new result
- super.okPressed();
- }
-
-
-
- private class URIColumnsLabelProvider extends ColumnLabelProvider {
-
- @Override
- public void update(ViewerCell cell) {
- Object element = cell.getElement();
-
- URIMapping mapping = (element instanceof URIMapping) ? (URIMapping) element : null;
-
- switch (cell.getColumnIndex()) {
- case 0:
- updateLocation(cell, mapping);
- break;
- case 1:
- updateNewLocation(cell, mapping);
- break;
- }
-
- }
-
- public void updateLocation(ViewerCell cell, URIMapping mapping) {
- String location = "Unknown";
- if (mapping != null) {
- location = mapping.getSourceURI();
- }
-
- cell.setText(location);
- }
-
- public void updateNewLocation(ViewerCell cell, URIMapping mapping) {
- String location = "";
-
- if (mapping.getTargetURI() != null) {
- location = mapping.getTargetURI();
- }
-
- cell.setText(location);
- }
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/utils/CreateFile.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/utils/CreateFile.java
deleted file mode 100644
index 1cb5f9fa650..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/utils/CreateFile.java
+++ /dev/null
@@ -1,161 +0,0 @@
-package org.eclipse.papyrus.migration.rsa.utils;
-
-import java.io.BufferedReader;
-import java.io.BufferedWriter;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.io.PrintWriter;
-import java.net.URL;
-import java.security.CodeSource;
-import java.security.ProtectionDomain;
-import java.util.jar.JarEntry;
-import java.util.jar.JarFile;
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.NullProgressMonitor;
-
-public class CreateFile {
-
- public static IFile createFile(String filePath, IContainer container, String content)
- throws Exception
- {
- IFile file = null;
- if ((container instanceof IProject)) {
- file = ((IProject) container).getFile(filePath);
- } else if ((container instanceof IFolder)) {
- file = ((IFolder) container).getFile(filePath);
- } else {
- throw new Exception("Cannot find the file " +
- filePath +
- " under " +
- container.getName());
- }
- IContainer parent = file.getParent();
- if ((parent instanceof IFolder)) {
- mkdirs((IFolder) parent);
- }
- InputStream stream = new ByteArrayInputStream(content.getBytes(file.getCharset()));
- if (file.exists()) {
- file.setContents(stream, true, true, null);
- } else {
- file.create(stream, true, null);
- }
- stream.close();
-
- return file;
- }
-
- public static void mkdirs(IFolder folder)
- throws CoreException
- {
- if (!folder.exists())
- {
- if ((folder.getParent() instanceof IFolder)) {
- mkdirs((IFolder) folder.getParent());
- }
- folder.create(true, true, null);
- }
- }
-
- public static String getContents(String relativePath, String resource, Class clazz)
- throws IOException
- {
- String resourcePath = relativePath + '/' + resource;
- File sourcePrj = getSourceProject(clazz);
-
-
- JarFile jar = null;
- InputStream resourceStream;
- if (sourcePrj.isFile())
- {
- jar = new JarFile(sourcePrj);
- JarEntry resEntry = jar.getJarEntry(resourcePath);
- resourceStream = jar.getInputStream(resEntry);
- }
- else
- {
- resourceStream = new FileInputStream(sourcePrj.getAbsolutePath() +
- "/" +
- resourcePath);
- }
- byte[] buffer = new byte[4096];
- ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
- for (;;)
- {
- int read = resourceStream.read(buffer);
- if (read == -1) {
- break;
- }
- outputStream.write(buffer, 0, read);
- }
- outputStream.close();
- resourceStream.close();
- if (jar != null) {
- jar.close();
- }
- return outputStream.toString("iso-8859-1");
- }
-
- private static File getSourceProject(Class clazz)
- {
- ProtectionDomain protectionDomain = clazz.getProtectionDomain();
- CodeSource codeSource = protectionDomain.getCodeSource();
- URL location = codeSource.getLocation();
- File sourcePrj = new File(location.getFile());
- return sourcePrj;
- }
-
- public static void appendContents(IFile pagesFile, String data)
- throws IOException
- {
- File file = pagesFile.getLocation().toFile();
- if (!file.exists()) {
- file.createNewFile();
- }
- FileWriter fileWriter = new FileWriter(file, true);
- BufferedWriter buffWriter = new BufferedWriter(fileWriter);
- PrintWriter writer = new PrintWriter(buffWriter);
- writer.println(data);
- writer.close();
- buffWriter.close();
- fileWriter.close();
- }
-
- public static void replaceContents(IFile file, String template, String newContent)
- throws CoreException, IOException
- {
- String content = getContents(file).replace(template, newContent);
- InputStream stream = new ByteArrayInputStream(content.getBytes(file.getCharset()));
- if (file.exists()) {
- file.setContents(stream, true, true, new NullProgressMonitor());
- }
- stream.close();
- }
-
- public static String getContents(IFile iFile)
- throws IOException
- {
- File file = iFile.getLocation().toFile();
- FileInputStream stream = new FileInputStream(file);
- StringBuffer contents = new StringBuffer();
- BufferedReader br = new BufferedReader(new InputStreamReader(stream));
- String line;
- while ((line = br.readLine()) != null)
- {
- contents.append(line).append("\n");
- }
- br.close();
- stream.close();
- return contents.toString();
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/utils/CreateProject.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/utils/CreateProject.java
deleted file mode 100644
index 9ac80857520..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/utils/CreateProject.java
+++ /dev/null
@@ -1,132 +0,0 @@
-package org.eclipse.papyrus.migration.rsa.utils;
-
-import java.io.File;
-import java.net.URI;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.IWorkspace;
-import org.eclipse.core.resources.IWorkspaceRoot;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.jface.dialogs.IInputValidator;
-import org.eclipse.jface.dialogs.InputDialog;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.ui.PlatformUI;
-
-public class CreateProject {
-
- protected String projectName;
-
- protected IProject createdProject;
-
- protected Collection<Object> inputFiles;
-
- public CreateProject(Collection<Object> inputFiles) {
- this.projectName = getProjectName();
- this.inputFiles = inputFiles;
-
- if (projectName != null) {
- try {
- this.createdProject = createProject();
- } catch (Exception e) {
- Activator.log.error(e);
- }
- }
- }
-
-
- protected IProject createProject() throws Exception {
- IWorkspace workspace = ResourcesPlugin.getWorkspace();
- IProject project = workspace.getRoot().getProject(projectName);
-
- if (! project.exists()){
- project.create(new NullProgressMonitor());
- }
-
- if (! project.isOpen()){
- project.open(new NullProgressMonitor());
- }
-
- if (inputFiles != null && !inputFiles.isEmpty()) {
- // create resource folder
- createFolder("resources", project, inputFiles);
- }
-
- return project;
- }
-
- protected void createFolder(String folderName, IProject project, Collection<Object> inputFiles) throws Exception {
- IFolder folder = project.getFolder(folderName);
- folder.create(false, true, null);
-
- List<Object> inputList = new ArrayList<Object>(inputFiles);
- for (Object object : inputList) {
- File file = ((File) object);
- IFile linkedFile = folder.getFile(file.getName());
- URI fileURI = file.toURI();
- linkedFile.createLink(fileURI, IResource.NONE, null);
- }
-
- }
-
- protected void createBuildProps(IProject project, List<String> srcFolders) throws Exception {
- StringBuilder bpContent = new StringBuilder("source.. = ");
-
- if (srcFolders != null && !srcFolders.isEmpty()) {
- for (Iterator<String> iterator = srcFolders.iterator(); iterator.hasNext();)
- {
- bpContent.append(iterator.next()).append(File.separatorChar);
- if (iterator.hasNext()) {
- bpContent.append(",");
- }
- }
- }
-
- bpContent.append("\n");
- bpContent.append("bin.includes = META-INF/,.\n");
- CreateFile.createFile("build.properties", project, bpContent.toString());
- }
-
-
- public IProject getCreatedProject() {
- return this.createdProject;
- }
-
- protected String getProjectName() {
- String init_value = "project_" + System.currentTimeMillis();
-
- Shell activeShell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
-
- InputDialog dialog = new InputDialog(activeShell, "Create Project", "Provide project name...", init_value, new IInputValidator() {
- @Override
- public String isValid(String newText)
- {
- IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
- IProject[] projs = root.getProjects();
- for (int i = 0; i < projs.length; i++) {
- if (projs[i].getName().equalsIgnoreCase(newText)) {
- return "This project already exists";
- }
- }
-
- return null;
- }
- });
-
- if (dialog.open() == Window.CANCEL) {
- return null;
- }
-
- return dialog.getValue();
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/TransformationWizard.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/TransformationWizard.java
deleted file mode 100644
index ec6466fc8c4..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/TransformationWizard.java
+++ /dev/null
@@ -1,174 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014, 2017 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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 505330
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.wizard;
-
-import java.util.LinkedList;
-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.emf.common.util.URI;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.wizard.IWizardPage;
-import org.eclipse.jface.wizard.Wizard;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.internal.ConfigurationManager;
-import org.eclipse.papyrus.migration.rsa.messages.Messages;
-import org.eclipse.papyrus.migration.rsa.transformation.ImportTransformationLauncher;
-import org.eclipse.papyrus.migration.rsa.wizard.pages.DialogData;
-import org.eclipse.papyrus.migration.rsa.wizard.pages.TransformationConfigPage;
-import org.eclipse.papyrus.migration.rsa.wizard.pages.TransformationSelectionPage;
-import org.eclipse.ui.IImportWizard;
-import org.eclipse.ui.IWorkbench;
-
-/**
- *
- * Wizard handling the selection and transformation of .emx/.epx files
- *
- * @author Quentin Le Menez
- *
- */
-public class TransformationWizard extends Wizard implements IImportWizard {
-
- protected IWizardPage currentPage;
-
- protected DialogData dialogData = new DialogData();
-
- protected TransformationSelectionPage selectionPage = new TransformationSelectionPage(dialogData);
-
- protected TransformationConfigPage configPage = new TransformationConfigPage(dialogData);
-
- private ConfigurationManager configMan = new ConfigurationManager();
-
- public TransformationWizard() {
- setWindowTitle(Messages.TransformationWizard_Title);
-
- configMan.loadConfig(dialogData.getConfig());
- }
-
- @Override
- public void dispose() {
- try {
- configMan.dispose();
- } finally {
- super.dispose();
- }
- }
-
- @Override
- public void addPages() {
- this.addPage(selectionPage);
- this.addPage(configPage);
- }
-
- @Override
- public IWizardPage getNextPage(IWizardPage currentPage) {
- if (currentPage == selectionPage) {
- this.currentPage = configPage;
- // Resets the viewer input in order to show the newly selected elements from the selectionPage
- configPage.resetViewerInput();
- return configPage;
- }
- if (this.currentPage == configPage) {
- this.currentPage = selectionPage;
- }
- return null;
- }
-
- @Override
- public boolean canFinish() {
- if (currentPage == configPage) {
- return super.canFinish();
- }
- return false;
- }
-
- @Override
- public boolean performCancel() {
- removeWizardImportedProjects();
- return super.performCancel();
- }
-
- @Override
- public boolean performFinish() {
- configMan.saveConfig(dialogData.getConfig());
-
- // Set or update the unchecked elements for future executions of the plugin
- dialogData.setSelectionMap();
- importFiles();
-
- // Remove the imported projects from the workspace
- // removeWizardImportedProjects();
-
- return true;
- }
-
-
- /**
- *
- * Remove any imported projects, through the wizard, from the workspace
- *
- */
- public void removeWizardImportedProjects() {
- if (/* dialogData != null && */dialogData.getImportedProjects() != null) {
- for (Object object : dialogData.getImportedProjects()) {
- if (object instanceof IProject) {
- IProject project = (IProject) object;
- try {
- project.delete(false, true, null);
- } catch (CoreException e) {
- Activator.log.error(e);
- }
- }
- }
- }
- }
-
- /**
- *
- * Launch the transformation with the previously selected files and configuration parameters
- *
- */
- protected void importFiles() {
- Config config = dialogData.getConfig();
- if (config == null) {
- return;
- }
-
- List<URI> urisToImport = new LinkedList<URI>();
-
- for (Object selectedFile : dialogData.getTransformationFiles()) {
- String path = null;
- if (selectedFile instanceof IFile) {
- path = ((IFile) selectedFile).getFullPath().toString();
- }
- if (path != null) {
- URI uri = URI.createPlatformResourceURI(path, true);
- urisToImport.add(uri);
- }
- }
-
- // The wizard's Shell will be disposed because the transformation is asynchronous. Use the Shell's parent instead
- ImportTransformationLauncher launcher = new ImportTransformationLauncher(config, this.getShell().getParent());
- launcher.run(urisToImport);
- }
-
- @Override
- public void init(IWorkbench workbench, IStructuredSelection selection) {
- // nothing
- }
-
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogData.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogData.java
deleted file mode 100755
index acef3d78fef..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogData.java
+++ /dev/null
@@ -1,269 +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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.wizard.pages;
-
-import java.io.File;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.LinkedList;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.jface.dialogs.IDialogSettings;
-import org.eclipse.papyrus.infra.widgets.util.FileUtil;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.RSAToPapyrusParametersFactory;
-import org.eclipse.papyrus.migration.rsa.constants.TransformationWizardConstants;
-
-/**
- *
- * Class containing the bulk of the wizard's data for an easy access throughout the wizard
- *
- * @author Quentin Le Menez
- *
- */
-public class DialogData {
-
- protected Collection<Object> selectedFiles;
-
- protected Collection<Object> systemSelectedFiles;
-
- protected Collection<Object> transformationFiles;
-
- protected Config config = RSAToPapyrusParametersFactory.eINSTANCE.createConfig();
-
- protected Collection<String> unselectedFiles;
-
- public IDialogSettings dialogSection;
-
- protected Collection<Object> uncheckedFiles;
-
- protected Collection<Object> importedProjects;
-
- /**
- *
- * Constructor, instantiate the configuration file to store the user's selections, if none exist, or retrieve it
- *
- */
- public DialogData() {
- // Necessary for storing and recalling the previous selections
- dialogSection = Activator.getDefault().getDialogSettings().getSection(TransformationWizardConstants.TRANSFORMATION_WIZARD_SETTINGS);
- if (dialogSection == null) {
- dialogSection = Activator.getDefault().getDialogSettings().addNewSection(TransformationWizardConstants.TRANSFORMATION_WIZARD_SETTINGS);
- }
-
- systemSelectedFiles = new LinkedList<Object>();
- }
-
- /**
- *
- * @param selectedFiles
- * The selected files from the workspace to be displayed in the transformation page
- */
- public void setSelectedFiles(Collection<Object> selectedFiles) {
- this.selectedFiles = selectedFiles;
- }
-
- /**
- *
- * @param selectedFiles
- * The selected files outside of the workspace to be displayed in the transformation page
- */
- public void setSystemSelectedFiles(Collection<String> systemPaths) {
- for (String filePath : systemPaths) {
- File file = new File(filePath);
- if (file != null && !systemSelectedFiles.contains(file)) {
- systemSelectedFiles.add(file);
- }
- }
- }
-
- /**
- *
- * @param transformationFiles
- * The selected files in the configuration page to be transformed
- */
- public void setTransformationFiles(Collection<Object> transformationFiles) {
- this.transformationFiles = transformationFiles;
- }
-
- /**
- *
- * @return
- * The default extensions used to filter the workspace
- */
- public String[] getExtensions() {
- return TransformationWizardConstants.EXTENSIONS;
- }
-
- /**
- *
- * @return
- * The default extensions' name used to filter the workspace
- */
- public String[] getExtensionsNames() {
- return TransformationWizardConstants.EXTENSIONS_NAMES;
- }
-
- /**
- *
- * @return
- * The selected files from the workspace
- */
- public Collection<Object> getSelectedFiles() {
- return selectedFiles;
- }
-
- /**
- *
- * @return
- * The selected files outside of the workspace
- */
- public Collection<Object> getSystemSelectedFiles() {
- return systemSelectedFiles;
- }
-
- /**
- *
- * @return
- * The selected files from both workspace and outside selections
- */
- public Collection<Object> getAllSelectedFiles() {
- Collection<Object> allSelectedFiles = new LinkedList<Object>();
- if (selectedFiles != null && selectedFiles.size() > 0) {
- // TODO select only the files that are not already present in the selection done outside of the workspace
- // Test
- // for (Object object : selectedFiles) {
- // if (!systemSelectedFiles.contains(object)) {
- // allSelectedFiles.add(object);
- // }
- // }
- // endTest
- allSelectedFiles.addAll(selectedFiles);
- }
- // if (systemSelectedFiles != null && systemSelectedFiles.size() > 0) {
- // allSelectedFiles.addAll(systemSelectedFiles);
- // }
- return allSelectedFiles;
- }
-
- /**
- *
- * @return
- * The parameters used for the transformation
- */
- public Config getConfig() {
- return config;
- }
-
- /**
- *
- * @return
- * The selected files to be transformed
- */
- public Collection<Object> getTransformationFiles() {
- return transformationFiles;
- }
-
- /**
- *
- * @param uncheckedFiles
- * The selected files to be ignored during the transformation
- */
- public void setUncheckedFiles(Collection<Object> uncheckedFiles) {
- this.uncheckedFiles = uncheckedFiles;
- }
-
- /**
- *
- * Sets or updates the projects to be imported in the workspace
- *
- * @param importedProjects
- * The selcted projects
- */
- public void setImportedProjects(Collection<Object> importedProjects) {
- this.importedProjects = importedProjects;
- }
-
- /**
- *
- * @return
- * The imported projects
- */
- public Collection<Object> getImportedProjects() {
- return this.importedProjects;
- }
-
- /**
- *
- * Update or create the selection map stored inside the configuration file in order to remember the previous selection choices
- *
- */
- public void setSelectionMap() {
- // Retrieve or create the list of unselected elements
- if (getUnSelectionArray() != null) {
- unselectedFiles = new LinkedList<String>(Arrays.asList(getUnSelectionArray()));
- }
- else {
- unselectedFiles = new LinkedList<String>();
- }
- // Updates the unselected files for future references
- for (Object object : uncheckedFiles) {
- if (object instanceof IFile) {
- IFile ifile = (IFile) object;
- String ifilePath = FileUtil.getPath(ifile, true);
- if (!unselectedFiles.contains(ifilePath)) {
- unselectedFiles.add(ifilePath);
- }
- }
- if (object instanceof File) {
- File file = (File) object;
- String filePath = file.getAbsolutePath();
- if (!unselectedFiles.contains(filePath)) {
- unselectedFiles.add(filePath);
- }
- }
- }
- // Remove any newly selected files from the unselected files pool
- for (Object object : transformationFiles) {
- if (object instanceof IFile) {
- IFile ifile = (IFile) object;
- String ifilePath = FileUtil.getPath(ifile, true);
- if (unselectedFiles.contains(ifilePath)) {
- unselectedFiles.remove(ifilePath);
- }
- }
- if (object instanceof File) {
- File file = (File) object;
- String filePath = file.getAbsolutePath();
- if (unselectedFiles.contains(filePath)) {
- unselectedFiles.remove(filePath);
- }
- }
- }
-
- // Update the map
- dialogSection.put(TransformationWizardConstants.WIZARD_SELECTION_KEY, unselectedFiles.toArray(new String[unselectedFiles.size()]));
- }
-
- /**
- *
- * Used to set the checked state of the selected files inside the viewer
- *
- * @return
- * The user's previously unchecked files in the configPage
- */
- public String[] getUnSelectionArray() {
- return dialogSection.getArray(TransformationWizardConstants.WIZARD_SELECTION_KEY);
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogDataConfigComposite.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogDataConfigComposite.java
deleted file mode 100644
index 57e4e13d068..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogDataConfigComposite.java
+++ /dev/null
@@ -1,200 +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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.wizard.pages;
-
-import java.io.File;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.LinkedList;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.papyrus.infra.widgets.util.FileUtil;
-import org.eclipse.papyrus.migration.rsa.messages.Messages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- *
- * Actual composite used to display the previously selected elements and the migration options
- *
- * @author Quentin Le Menez
- *
- */
-public class DialogDataConfigComposite extends ImportConfigComposite {
-
- protected DialogData dialogData;
-
- protected SelectionListener buttonListener;
-
- protected Button selectAll;
-
- protected Button deselectAll;
-
- /**
- *
- * Constructor used when a DialogData class is employed to store the different informations of the dialog
- *
- * @param parent
- * The parent composite
- * @param style
- * The swt style used for this ConfigurationComposite
- * @param dialogData
- * The DialogData in which is stored all the necessary informations
- */
- public DialogDataConfigComposite(Composite parent, int style, DialogData dialogData) {
- super(parent, style, dialogData.getConfig());
- this.dialogData = dialogData;
- this.setViewerInput(dialogData.getSelectedFiles());
- }
-
-
- /**
- *
- * Fills the composite with the selection buttons
- *
- * @param parent
- * The parent composite
- */
- @Override
- protected void createSelectionButtons(Composite parent) {
- Composite buttonsComposite = new Composite(parent, SWT.NONE);
- buttonsComposite.setLayout(new GridLayout());
-
- buttonListener = new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent event) {
- fireButtonSelectionEvent(event);
- }
- };
-
- selectAll = new Button(buttonsComposite, SWT.PUSH);
- selectAll.setData(true);
- selectAll.setText(Messages.Button_SelectAll);
- selectAll.addSelectionListener(buttonListener);
- selectAll.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
-
- deselectAll = new Button(buttonsComposite, SWT.PUSH);
- deselectAll.setData(false);
- deselectAll.setText(Messages.Button_DeselectAll);
- deselectAll.addSelectionListener(buttonListener);
- deselectAll.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
-
- }
-
- /**
- *
- * Handles the selections inside the tableViewer
- *
- * @param event
- * The event linked to the tableViewer's selection buttons
- */
- protected void fireButtonSelectionEvent(SelectionEvent event) {
- listViewer.setAllChecked((Boolean) ((Button) event.widget).getData());
- setTransformationFiles();
- setUncheckedFiles();
-
- if (dialogData != null) {
- dialogData.setTransformationFiles(transformationFiles);
- dialogData.setUncheckedFiles(uncheckedFiles);
- }
- }
-
- @Override
- protected void fireSelectionEvent(SelectionChangedEvent event) {
- transformationFiles = new LinkedList<Object>(Arrays.asList(listViewer.getCheckedElements()));
- setUncheckedFiles();
-
- if (dialogData != null) {
- dialogData.setTransformationFiles(transformationFiles);
- dialogData.setUncheckedFiles(uncheckedFiles);
- }
- }
-
- @Override
- public void setViewerInput(Collection<Object> selectedFiles) {
- listViewer.setInput(selectedFiles);
-
- if (dialogData != null) {
- if (dialogData.getUnSelectionArray() == null) {
- // Default selection when opening the viewer without previous executions
- listViewer.setAllChecked(true);
- }
- else {
- // Recall the last unselected files to update the display
- Collection<String> previousUnSelection = Arrays.asList(dialogData.getUnSelectionArray());
- for (Object object : selectedFiles) {
- if (object instanceof IFile) {
- IFile ifile = (IFile) object;
- String ifilePath = FileUtil.getPath(ifile, true);
- if (previousUnSelection.contains(ifilePath)) {
- listViewer.setChecked(object, false);
- }
- else {
- listViewer.setChecked(object, true);
- }
- }
- else if (object instanceof File) {
- File file = (File) object;
- String filePath = file.getAbsolutePath();
- if (previousUnSelection.contains(filePath)) {
- listViewer.setChecked(object, false);
- }
- else {
- listViewer.setChecked(object, true);
- }
- }
- }
- }
-
- setTransformationFiles();
- setUncheckedFiles();
-
- dialogData.setTransformationFiles(transformationFiles);
- dialogData.setUncheckedFiles(uncheckedFiles);
- }
- }
-
- /**
- *
- * Updates the unchecked files in the wizard's dialog settings to remember the last selection when reopening the wizard
- *
- */
- protected void setUncheckedFiles() {
- if (dialogData != null) {
- uncheckedFiles = new LinkedList<Object>();
- for (Object object : dialogData.getAllSelectedFiles()) {
- if (!transformationFiles.contains(object)) {
- uncheckedFiles.add(object);
- }
- }
- dialogData.setUncheckedFiles(uncheckedFiles);
- }
- }
-
- @Override
- public void dispose() {
- if (buttonListener != null) {
- selectAll.removeSelectionListener(buttonListener);
- deselectAll.removeSelectionListener(buttonListener);
- }
-
- super.dispose();
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogDataTreeComposite.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogDataTreeComposite.java
deleted file mode 100644
index 96950569dbf..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/DialogDataTreeComposite.java
+++ /dev/null
@@ -1,335 +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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.wizard.pages;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.papyrus.infra.widgets.util.FileUtil;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.migration.rsa.constants.TransformationWizardConstants;
-import org.eclipse.papyrus.migration.rsa.messages.Messages;
-import org.eclipse.papyrus.migration.rsa.utils.CreateProject;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.FileDialog;
-
-
-/**
- *
- * Actual composite used to display the workspace and select the wanted elements
- *
- * @author Quentin Le Menez
- *
- */
-public class DialogDataTreeComposite extends ImportTreeComposite {
-
- protected DialogData dialogData;
-
- protected String systemDialogFiles;
-
- protected SelectionListener selectionButtonListener;
-
- protected SelectionListener systemSelectionListener;
-
- protected Button selectAllButton;
-
- protected Button deselectAllButton;
-
- protected Button systemSelectionButton;
-
-
- /**
- *
- * Constructor.
- *
- * @param parent
- * The parent composite
- * @param style
- * The swt style used for this ConfigurationComposite
- * @param dialogData
- * The DialogData in which is stored all the necessary informations
- */
- public DialogDataTreeComposite(Composite parent, int style, DialogData dialogData) {
- super(parent, style, dialogData.getExtensions(), dialogData.getExtensionsNames());
-
- this.dialogData = dialogData;
-
- ISelection treeSelection = treeViewer.getSelection();
- if (treeSelection instanceof StructuredSelection) {
- setSelectedFiles(((StructuredSelection) treeSelection).toArray());
- this.dialogData.setSelectedFiles(getSelectedFiles());
- }
- }
-
-
- @Override
- protected void fireTreeSelectionEvent(SelectionChangedEvent event) {
- ISelection selection = event.getSelection();
-
- if (selection instanceof IStructuredSelection) {
- // Updates the selected files
- selectedFiles.clear();
- IStructuredSelection sSelection = (IStructuredSelection) selection;
- setSelectedFiles(sSelection.toArray());
-
- if (dialogData != null) {
- dialogData.setSelectedFiles(selectedFiles);
- }
- }
-
- }
-
- @Override
- protected void createSelectionButtons(Composite parent) {
- // The composite will contain three buttons, two general selection (all and none) and one for selections using a fileDialog window
- selectionButtonsComposite = new Composite(parent, SWT.NONE);
- selectionButtonsComposite.setLayout(new GridLayout());
-
- systemSelectionListener = new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent event) {
- fireSystemBrowseEvent(event);
- }
- };
-
- systemSelectionButton = new Button(selectionButtonsComposite, SWT.PUSH);
- systemSelectionButton.setText(Messages.Button_FileSystemSelection);
- systemSelectionButton.addSelectionListener(systemSelectionListener);
- systemSelectionButton.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false));
-
-
- selectionButtonListener = new SelectionAdapter() {
- @Override
- public void widgetSelected(SelectionEvent event) {
- fireButtonSelectionEvent(event);
- }
- };
-
- selectAllButton = new Button(selectionButtonsComposite, SWT.PUSH);
- selectAllButton.setText(Messages.Button_SelectAll);
- selectAllButton.setData(true);
- selectAllButton.addSelectionListener(selectionButtonListener);
- selectAllButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
-
- deselectAllButton = new Button(selectionButtonsComposite, SWT.PUSH);
- deselectAllButton.setText(Messages.Button_DeselectAll);
- deselectAllButton.setData(false);
- deselectAllButton.addSelectionListener(selectionButtonListener);
- deselectAllButton.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
- }
-
-
- /**
- *
- * Handles the selectAll/deselectAll options
- *
- * @param event
- * The event linked to the selection buttons
- */
- protected void fireButtonSelectionEvent(SelectionEvent event) {
- if ((Boolean) ((Button) event.widget).getData()) {
- treeViewer.getTree().selectAll();
- // Updates the selectedFiles collection
- getNestedFiles(((IStructuredSelection) treeViewer.getSelection()).toArray());
-
- if (dialogData != null) {
- dialogData.setSelectedFiles(selectedFiles);
- }
- } else {
- treeViewer.getTree().deselectAll();
- selectedFiles.clear();
-
- if (dialogData != null) {
- dialogData.setSelectedFiles(selectedFiles);
- }
- }
- }
-
- /**
- *
- * handle the selections outside of the workspace
- *
- * @param event
- * The event linked to the button
- */
- protected void fireSystemBrowseEvent(SelectionEvent event) {
-
- // Clears the previous selection
- dialogData.getSystemSelectedFiles().clear();
- // Instantiates a new selection window
- FileDialog dialog = new FileDialog(treeViewerComposite.getShell(), SWT.MULTI);
- dialog.setText(Messages.FileDialogTitle);
- dialog.setFilterExtensions(TransformationWizardConstants.EXTENSIONS);
- dialog.setFilterNames(TransformationWizardConstants.EXTENSIONS_NAMES);
-
- if (dialogData != null) {
- // Fetches the last visited folder or uses the Home of the current user
- if (dialogData.dialogSection.get(TransformationWizardConstants.FILEDIALOG_SELECTION_KEY) != null) {
- dialog.setFilterPath(dialogData.dialogSection.get(TransformationWizardConstants.FILEDIALOG_SELECTION_KEY));
- } else {
- String homeFolder = System.getProperty("user.home"); //$NON-NLS-1$
- dialog.setFilterPath(homeFolder);
- }
-
- // Opens the selection window and stores the selected files
- systemDialogFiles = dialog.open();
- if (systemDialogFiles != null) {
- // stores the last folder/directory visited
- dialogData.dialogSection.put(TransformationWizardConstants.FILEDIALOG_SELECTION_KEY, systemDialogFiles);
- String[] names = dialog.getFileNames();
- // Empty the list to avoid remembering old selections
- systemPaths.clear();
- for (int i = 0, n = names.length; i < n; i++) {
- StringBuffer buf = new StringBuffer(dialog.getFilterPath());
- if (buf.charAt(buf.length() - 1) != File.separatorChar) {
- buf.append(File.separatorChar);
- }
- buf.append(names[i]);
- systemPaths.add(buf.toString());
- }
- // clear the list to accept the new input
- dialogData.getSystemSelectedFiles().clear();
- dialogData.setSystemSelectedFiles(systemPaths);
- }
- }
-
- Collection<Object> systemSelection = dialogData.getSystemSelectedFiles();
- getProjects(systemSelection);
- if (!systemSelection.isEmpty()) {
- // The selected files are inside a project
- if (!foundProjects.isEmpty()) {
- for (Object object : foundProjects) {
- if (isWorkspaceObject(object)) {
- revealSelectedFiles(systemSelection);
- }
- // Creates the project before revealing any imported files
- else if (importProjects(foundProjects)) {
- revealSelectedFiles(systemSelection);
- }
- }
- }
- // We need to create a project in order to house the selected files
- else if (systemDialogFiles != null) {
- try {
- List<String> srcFolders = new ArrayList<String>();
- srcFolders.add(TransformationWizardConstants.SRC_FOLDER);
- CreateProject placeHolder = new CreateProject(dialogData.getSystemSelectedFiles());
- IProject newProject = placeHolder.getCreatedProject();
- Collection<Object> revealList = new ArrayList<Object>();
- // This case can happen by pressing the cancel button and therefore interrupting the creation of the project
- if (newProject != null) {
- for (IResource resource : Arrays.asList(newProject.getFolder(TransformationWizardConstants.RSC_FOLDER).members())) {
- if (resource instanceof IFile) {
- revealList.add((IFile) resource);
- }
- }
- revealSelectedFiles(revealList);
- }
- } catch (Exception e) {
- Activator.log.error(e);
- }
- }
- }
-
- }
-
- /**
- *
- * Verify if the provided object is or is not inside the workspace
- *
- * @param object
- * The object
- * @return
- * True or False
- */
- protected boolean isWorkspaceObject(Object object) {
- if (object instanceof File) {
- File file = (File) object;
- IFile ifile = FileUtil.getIFile(file.getAbsolutePath());
- // Assumes that any files outside the workbench are not IFiles and therefore wont be find, i.e. are null
- if (ifile != null) {
- return true;
- }
- }
- return false;
- }
-
- /**
- *
- * Handles the creation of the new workspace projects in case of a selection outside of an existing project or workspace
- *
- * @param foundProjects
- * The projects previously found
- * @return
- * The success of the creation
- */
- protected boolean importProjects(Collection<Object> foundProjects) {
- Collection<Object> importedProjects = new LinkedList<Object>();
- boolean importStatus = false;
- for (Object object : foundProjects) {
- if (object instanceof File) {
- File file = (File) object;
- Path filePath = new Path(file.getAbsolutePath());
- try {
- IProjectDescription description = ResourcesPlugin.getWorkspace().loadProjectDescription(filePath);
- IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(description.getName());
- importedProjects.add(project);
- project.create(description, null);
- project.open(null);
- importStatus = true;
- } catch (CoreException e) {
- Activator.log.error(e);
- }
- }
- }
-
- dialogData.setImportedProjects(importedProjects);
- return importStatus;
- }
-
- @Override
- public void dispose() {
- if (selectionButtonListener != null) {
- selectAllButton.removeSelectionListener(selectionButtonListener);
- deselectAllButton.removeSelectionListener(selectionButtonListener);
- }
- if (systemSelectionListener != null) {
- systemSelectionButton.removeSelectionListener(systemSelectionListener);
- }
-
- super.dispose();
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/ImportConfigComposite.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/ImportConfigComposite.java
deleted file mode 100644
index be36a589d1c..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/ImportConfigComposite.java
+++ /dev/null
@@ -1,196 +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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.wizard.pages;
-
-import java.io.File;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.LinkedList;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.jface.viewers.ArrayContentProvider;
-import org.eclipse.jface.viewers.CheckboxTableViewer;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.papyrus.infra.properties.ui.runtime.DisplayEngine;
-import org.eclipse.papyrus.infra.properties.ui.util.PropertiesDisplayHelper;
-import org.eclipse.papyrus.infra.widgets.util.FileUtil;
-import org.eclipse.papyrus.migration.rsa.messages.Messages;
-import org.eclipse.papyrus.migration.rsa.RSAToPapyrusParameters.Config;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- *
- * Generic and reusable composite used to display the previously selected elements and the migration options
- *
- * @author Quentin Le Menez
- *
- */
-public abstract class ImportConfigComposite extends Composite {
-
- protected Config config;
-
- protected Collection<Object> transformationFiles;
-
- protected CheckboxTableViewer listViewer;
-
- protected ISelectionChangedListener listListener;
-
- protected DisplayEngine displayEngine;
-
- protected Collection<Object> uncheckedFiles;
-
- /**
- *
- * Constructor.
- *
- * @param parent
- * The parent composite
- * @param style
- * The swt style used for this ConfigurationComposite
- * @param config
- * The configuration used to display the transformation options
- */
- public ImportConfigComposite(Composite parent, int style, Config config) {
- super(parent, style);
- this.setLayout(new GridLayout(1, false));
- this.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- this.config = config;
-
- Composite filesComposite = new Composite(this, SWT.BORDER);
- filesComposite.setLayout(new FillLayout());
- filesComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- Composite configComposite = new Composite(this, SWT.BORDER);
- configComposite.setLayout(new FillLayout());
- configComposite.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
-
- createFilesComposite(filesComposite);
-
- createParamComposite(configComposite);
- }
-
-
- /**
- *
- * Fills the selection area with all the files selected previously
- *
- * @param parent
- * The parent composite
- */
- protected void createFilesComposite(Composite parent) {
- Composite listComposite = new Composite(parent, SWT.NONE);
- GridLayout gridLayout = new GridLayout(2, false);
- listComposite.setLayout(gridLayout);
-
- listViewer = CheckboxTableViewer.newCheckList(listComposite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
- GridData viewerGrid = new GridData(SWT.FILL, SWT.FILL, true, true);
- listViewer.getTable().setLayoutData(viewerGrid);
-
- listViewer.setLabelProvider(new LabelProvider() {
- @Override
- public String getText(Object element) {
- if (element instanceof IFile) {
- return FileUtil.getPath((IFile) element, true);
- } else if (element instanceof File) {
- return ((File) element).getAbsolutePath();
- } else {
- return Messages.WrongFileType;
- }
- }
- });
-
- listViewer.setContentProvider(new ArrayContentProvider());
-
- listListener = new ISelectionChangedListener() {
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- fireSelectionEvent(event);
- }
- };
-
- listViewer.addSelectionChangedListener(listListener);
-
- setTransformationFiles();
-
- createSelectionButtons(listComposite);
-
- }
-
-
- /**
- *
- * Used to update the display from a changed selection in the ConfigPage
- *
- * @param selectedFiles
- * The new list of selected files
- */
- abstract void setViewerInput(Collection<Object> selectedFiles);
-
- /**
- *
- * Abstract method to be implemented by the child in order to create the useful buttons to manipulate the tableViewer's elements
- *
- * @param parent
- * The parent composite in which the new buttons will be created
- */
- abstract void createSelectionButtons(Composite parent);
-
- /**
- *
- * Abstract method to be implemented by the child in order to handle the transformation options
- *
- * @param event
- * The event linked to the configuration's selection buttons
- */
- abstract void fireSelectionEvent(SelectionChangedEvent event);
-
-
- /**
- *
- * Updates the list of files to be transformed
- *
- */
- public void setTransformationFiles() {
- transformationFiles = new LinkedList<Object>(Arrays.asList(listViewer.getCheckedElements()));
- }
-
-
- /**
- *
- * Fills the composite with the configuration parameters
- *
- * @param parent
- * The parent composite
- */
- public void createParamComposite(Composite parent) {
- displayEngine = PropertiesDisplayHelper.display(config, parent);
- }
-
-
- @Override
- public void dispose() {
- if (displayEngine != null) {
- displayEngine.dispose();
- }
- if (listListener != null) {
- listViewer.removeSelectionChangedListener(listListener);
- }
- super.dispose();
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/ImportTreeComposite.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/ImportTreeComposite.java
deleted file mode 100644
index 3dad2a5103d..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/ImportTreeComposite.java
+++ /dev/null
@@ -1,540 +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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.wizard.pages;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.LinkedHashMap;
-import java.util.LinkedList;
-import java.util.List;
-
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IFolder;
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.resources.ResourcesPlugin;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
-import org.eclipse.jface.viewers.StructuredSelection;
-import org.eclipse.jface.viewers.TreeViewer;
-import org.eclipse.jface.viewers.ViewerFilter;
-import org.eclipse.papyrus.infra.core.services.ServiceException;
-import org.eclipse.papyrus.infra.services.labelprovider.service.LabelProviderService;
-import org.eclipse.papyrus.infra.services.labelprovider.service.impl.LabelProviderServiceImpl;
-import org.eclipse.papyrus.infra.widgets.providers.IGraphicalContentProvider;
-import org.eclipse.papyrus.infra.widgets.providers.PatternViewerFilter;
-import org.eclipse.papyrus.infra.widgets.providers.WorkspaceContentProvider;
-import org.eclipse.papyrus.migration.rsa.Activator;
-import org.eclipse.papyrus.migration.rsa.messages.Messages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.dialogs.PatternFilter;
-
-
-/**
- *
- * Generic and reusable composite used to display the workspace and select the wanted elements
- *
- * @author Quentin Le Menez
- *
- */
-public abstract class ImportTreeComposite extends Composite {
-
- protected TreeViewer treeViewer;
-
- protected LabelProviderService labelProviderService;
-
- protected ILabelProvider treeViewerlabelProvider;
-
- protected WorkspaceContentProvider treeViewercontentProvider;
-
- protected ISelectionChangedListener treeViewerListener;
-
- protected final List<String> filterNames;
-
- protected final List<String> filterExtensions;
-
- protected Collection<Object> selectedFiles;
-
- protected Collection<String> systemPaths;
-
- protected FillLayout layout;
-
- protected Composite treeViewerComposite;
-
- protected Composite selectionButtonsComposite;
-
- protected Collection<Object> foundProjects;
-
- /**
- *
- * Constructor.
- *
- * @param parent
- * The parent composite
- * @param style
- * The swt style used for this ConfigurationComposite
- * @param extensions
- * The default extensions used to filter the displayed results
- * @param extensionsNames
- * The displayed names of those filters
- */
- public ImportTreeComposite(Composite parent, int style, String[] extensions, String[] extensionsNames) {
- super(parent, style);
- this.setLayout(new GridLayout(2, false));
- this.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
-
- selectedFiles = new LinkedList<Object>();
- filterNames = new LinkedList<String>();
- filterExtensions = new LinkedList<String>();
- systemPaths = new LinkedList<String>();
- foundProjects = new LinkedList<Object>();
-
- createTreeViewerComposite(this, extensions, extensionsNames);
-
- createSelectionButtons(this);
- }
-
-
- /**
- *
- * Creates the visual representation of the workspace
- *
- * @param parent
- * The parent Composite
- * @param extensions
- * The default extensions used to filter the displayed results
- * @param extensionsNames
- * The displayed names of those filters
- */
- private void createTreeViewerComposite(Composite parent, String[] extensions, String[] extensionsNames) {
- treeViewerComposite = new Composite(parent, SWT.NONE);
- treeViewerComposite.setLayout(new GridLayout(1, true));
- treeViewerComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- Composite beforeTreeComposite = new Composite(treeViewerComposite, SWT.NONE);
-
- Composite treeComposite = new Composite(treeViewerComposite, SWT.NONE);
- treeComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- layout = new FillLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- treeComposite.setLayout(layout);
-
- treeViewer = new TreeViewer(treeComposite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
- treeViewer.setFilters(new ViewerFilter[] { new PatternFilter() });
-
- labelProviderService = new LabelProviderServiceImpl();
- try {
- labelProviderService.startService();
- } catch (ServiceException ex) {
- Activator.log.error(ex);
- }
-
- treeViewerlabelProvider = labelProviderService.getLabelProvider();
- treeViewercontentProvider = new WorkspaceContentProvider();
- setFilters(extensions, extensionsNames);
-
- treeViewercontentProvider.setExtensionFilters(new LinkedHashMap<String, String>());
- for (int i = 0; i < Math.min(filterNames.size(), filterExtensions.size()); i++) {
- treeViewercontentProvider.addExtensionFilter(filterExtensions.get(i), filterNames.get(i));
- }
-
- treeViewer.setContentProvider(treeViewercontentProvider);
- treeViewer.setLabelProvider(treeViewerlabelProvider);
-
- defaultViewerInput();
-
- treeViewerListener = new ISelectionChangedListener() {
-
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- fireTreeSelectionEvent(event);
- }
- };
-
- treeViewer.addSelectionChangedListener(treeViewerListener);
-
- // This is used to display both of the filters (before and after the treeViewer)
- if (treeViewercontentProvider instanceof IGraphicalContentProvider) {
- IGraphicalContentProvider graphicalContentProvider = treeViewercontentProvider;
-
- beforeTreeComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- layout = new FillLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- beforeTreeComposite.setLayout(layout);
- graphicalContentProvider.createBefore(beforeTreeComposite);
- beforeTreeComposite.moveAbove(treeViewer.getTree());
-
- Composite afterTreeComposite = new Composite(treeViewerComposite, SWT.NONE);
- layout = new FillLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- afterTreeComposite.setLayout(layout);
- afterTreeComposite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
- graphicalContentProvider.createAfter(afterTreeComposite);
- }
-
- }
-
- /**
- *
- * Sets the filters for the treeViewer, matching the names with the extensions
- *
- * @param filterExtensions
- * The extensions
- * @param filterNames
- * The associated names
- */
- protected void setFilters(String[] filterExtensions, String[] filterNames) {
- if (filterExtensions.length != filterNames.length) {
- // This is a simple warning. Only valid filters will be retained.
- Activator.log.warn(Messages.MultipleStringFileEditor_2);
- }
-
- setFilterNames(getFilterLabels(filterNames, filterExtensions));
- setFilterExtensions(filterExtensions);
- }
-
- /**
- *
- * Builds the filter labels to be displayed
- *
- * @param filterNames
- * @param filterExtensions
- * @return
- * The array containing the built labels
- */
- protected String[] getFilterLabels(String[] filterNames, String[] filterExtensions) {
- int size = Math.min(filterNames.length, filterExtensions.length);
- String[] filters = new String[size];
- for (int i = 0; i < size; i++) {
- filters[i] = filterNames[i] + " (" + filterExtensions[i] + ")"; //$NON-NLS-1$ //$NON-NLS-2$
- }
- return filters;
- }
-
- /**
- *
- * Fills the local array to be manipulated
- *
- * @param filterExtensions
- * The input extensions
- */
- protected void setFilterExtensions(String[] filterExtensions) {
- this.filterExtensions.clear();
- this.filterExtensions.addAll(Arrays.asList(filterExtensions));
- }
-
- /**
- *
- * Fills the local array to be manipulated
- *
- * @param filterNames
- * The input names
- */
- protected void setFilterNames(String[] filterNames) {
- this.filterNames.clear();
- this.filterNames.addAll(Arrays.asList(filterNames));
- }
-
-
- /**
- *
- * This method allows to set the default input of the treeViewer
- *
- */
- protected void defaultViewerInput() {
- treeViewer.setInput(File.listRoots());
- // Gets the selection in the workspace at the time of the launch
- ISelection workbenchSelection = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService().getSelection();
- // Sets the first selection of the treeviewer from the selection in the workspace
- revealSelection(workbenchSelection);
- treeViewer.setSelection(workbenchSelection, true);
- }
-
-
- /**
- *
- * Abstract method to be implemented by the child in order to create the useful buttons to manipulate the tree's elements
- *
- * @param parent
- * The parent composite in which the new buttons will be created
- */
- abstract void createSelectionButtons(Composite parent);
-
- /**
- *
- * Abstract method to be implemented by the child in order to handle the treeViewer element selection
- *
- * @param event
- * The event linked to the selections inside the treeViewer
- */
- abstract void fireTreeSelectionEvent(SelectionChangedEvent event);
-
-
- /**
- *
- * This method reveals the elements selected outside of the workspace or from the workspace selection at launch by expanding the tree
- *
- * @param importedFiles
- * The list of selected files
- */
- protected void revealSelectedFiles(Collection<Object> importedFiles) {
- // this method calls to expand any folders or projects containg the selected files in order to show the workspace selection
- Collection<IFile> ifiles = new ArrayList<IFile>();
- // Collection<IProject> iprojects = new ArrayList<IProject>();
- // Collection<IFolder> ifolders = new ArrayList<IFolder>();
- if (importedFiles != null && !importedFiles.isEmpty()) {
- for (Object object : importedFiles) {
- treeViewer.refresh();
- if (object instanceof File) {
- File file = (File) object;
- IFile ifile = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(new Path(file.getAbsolutePath()));
- if (ifile != null) {
- ifiles.add(ifile);
- revealTreeElement(ifile);
- }
- }
- if (object instanceof IFile) {
- IFile ifile = (IFile) object;
- ifiles.add(ifile);
- revealTreeElement(ifile);
- }
- // if (object instanceof IFolder) {
- // IFolder ifolder = (IFolder) object;
- // ifolders.add(ifolder);
- // revealTreeElement(ifolder);
- // }
- // if (object instanceof IProject) {
- // IProject iproject = (IProject) object;
- // iprojects.add(iproject);
- // // As a project is a root element, no need to expand it
- // }
- }
- }
-
- treeViewer.setSelection(new StructuredSelection(ifiles.toArray()), true);
- // treeViewer.setSelection(new StructuredSelection(ifolders.toArray()), true);
- // treeViewer.setSelection(new StructuredSelection(iprojects.toArray()), true);
- }
-
- /**
- *
- * Handles the workspace selection
- *
- * @param iselection
- * The selection
- */
- protected void revealSelection(ISelection iselection) {
- if (iselection instanceof IStructuredSelection) {
- IStructuredSelection sselection = (IStructuredSelection) iselection;
- revealSelectedFiles(Arrays.asList(sselection.toArray()));
- }
- }
-
- /**
- *
- * Reveal each elements from the selected elements list
- *
- * @param object
- * The selected object
- */
- protected void revealTreeElement(Object object) {
- // verify the possibility of getting the file's parent and that the root directory is not already selected
- if (object instanceof IFile && !(object instanceof IProject)) {
- IFile ifile = (IFile) object;
- treeViewer.setExpandedState(ifile.getParent(), true);
- if (!(ifile.getParent() instanceof IProject)) {
- revealTreeElement(ifile.getParent());
- }
- }
- if (object instanceof IFolder && !(object instanceof IProject)) {
- IFolder ifolder = (IFolder) object;
- treeViewer.setExpandedState(ifolder.getParent(), true);
- if (!(ifolder.getParent() instanceof IProject)) {
- revealTreeElement(ifolder.getParent());
- }
- }
- }
-
- /**
- *
- * This method is used to get the projects containing the selected objects
- *
- * @param systemSelection
- * The selection outside of the workspace
- * @return
- * The list of projects found
- */
- protected Collection<Object> getProjects(Collection<Object> systemSelection) {
- if (systemSelection != null && !systemSelection.isEmpty()) {
- for (Object object : systemSelection) {
- if (object instanceof File) {
- File file = (File) object;
- getProject(file);
- }
- }
- }
- return foundProjects;
- }
-
- /**
- *
- * This method is used to get the projects containing the file
- *
- * @param file
- * The selected file
- */
- protected void getProject(File file) {
- File parentFile = file.getParentFile();
- if (parentFile == null) {
- // No containing project has been found
- return;
- }
-
- Collection<File> parentChildren = Arrays.asList(parentFile.listFiles());
- for (File nestedFile : parentChildren) {
- // String fileExtension = Files.getFileExtension(nestedFile.getAbsolutePath());
- String fileExtension = getFileExtensions(nestedFile);
- if (fileExtension.equals(".project") && !foundProjects.contains(nestedFile)) { // $NON-NLS-1$
- // A containing project has been found
- foundProjects.add(nestedFile);
- return;
- }
- }
-
- getProject(parentFile);
- }
-
- /**
- *
- * This method gathers the file extensions in order to filter them
- *
- * @param file
- * The file
- * @return
- * The file's extension
- */
- protected String getFileExtensions(File file) {
- String fileName = file.getName();
- if (fileName.lastIndexOf(".") != -1 /* && fileName.lastIndexOf(".") != 0 */) { // $NON-NLS-1$
- return fileName.substring(fileName.lastIndexOf(".")); // $NON-NLS-1$
- } else {
- return "";
- }
- }
-
- /**
- *
- * Constructs the list of the treeViewer's selected files
- *
- * @param elements
- */
- public void setSelectedFiles(Object[] elements) {
- // get the viewer selection to obtain the filtered files
- getNestedFiles(elements);
- }
-
- /**
- *
- * getter used to access the selectedFiles list
- *
- * @return
- * the list of selected files
- */
- public Collection<Object> getSelectedFiles() {
- return selectedFiles;
- }
-
- /**
- *
- * Gets all the files from the user's selection in the viewer and updates the local selection list
- *
- * @param nestedElements
- * The array containing the selected elements, be they files or folders
- */
- protected void getNestedFiles(Object[] nestedElements) {
- Collection<Object> projectList = new LinkedList<Object>();
- Collection<Object> folderList = new LinkedList<Object>();
- List<PatternViewerFilter> currentFilters = new ArrayList<PatternViewerFilter>();
- for (ViewerFilter filter : treeViewer.getFilters()) {
- if (filter instanceof PatternViewerFilter) {
- currentFilters.add((PatternViewerFilter) filter);
- }
- }
-
- for (Object element : nestedElements) {
- if (element instanceof IProject) {
- projectList.add(element);
- }
- if (element instanceof IFolder) {
- folderList.add(element);
- }
- if (element instanceof IFile) {
- Boolean isVisible = false;
- IFile selectedFile = (IFile) element;
- String fileExtension = "*." + selectedFile.getFileExtension(); //$NON-NLS-1$
- if (filterExtensions.contains(fileExtension) && !selectedFiles.contains(selectedFile)) {
- isVisible = true;
- }
- for (int index = 0; index < currentFilters.size() && isVisible; index++) {
- isVisible = currentFilters.get(index).isVisible(treeViewer, selectedFile.getParent(), selectedFile);
- }
- if (isVisible) {
- selectedFiles.add(selectedFile);
- }
- }
- }
-
- if (projectList.size() > 0) {
- for (Object element : projectList) {
- IProject selectedProject = (IProject) element;
- try {
- getNestedFiles(selectedProject.members());
- } catch (CoreException e) {
- Activator.log.error(e);
- }
- }
- }
-
- if (folderList.size() > 0) {
- for (Object element : folderList) {
- IFolder selectedFolder = (IFolder) element;
- try {
- getNestedFiles(selectedFolder.members());
- } catch (CoreException e) {
- Activator.log.error(e);
- }
- }
- }
- }
-
- @Override
- public void dispose() {
- if (treeViewerListener != null) {
- treeViewer.removeSelectionChangedListener(treeViewerListener);
- }
- super.dispose();
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/TransformationConfigPage.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/TransformationConfigPage.java
deleted file mode 100644
index f57305731b2..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/TransformationConfigPage.java
+++ /dev/null
@@ -1,73 +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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.wizard.pages;
-
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.papyrus.migration.rsa.messages.Messages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- *
- * Page displaying the selected elements and the migration's configuration options
- *
- * @author Quentin Le Menez
- *
- */
-public class TransformationConfigPage extends WizardPage {
-
- protected DialogDataConfigComposite dialogDataConfigComposite;
-
- protected DialogData dialogData;
-
-
- /**
- *
- * Constructor.
- *
- * @param dialogData
- * The instance used to get the previously selected files from both the settings file and the previous page selection,
- * as well as the configuration used to display the transformation options
- */
- public TransformationConfigPage(DialogData dialogData) {
- super(Messages.TransformationConfigPage_Name);
- setTitle(Messages.TransformationConfigPage_Title);
- setDescription(Messages.TransformationConfigPage_Description);
- // String iconPath = "icons/import_wiz_75x66.png"; //$NON-NLS-1$
- // ImageDescriptor imgDescriptior = Activator.getDefault().getImageDescriptor(iconPath);
- // setImageDescriptor(imgDescriptior);
-
- this.dialogData = dialogData;
- }
-
- @Override
- public void createControl(Composite parent) {
- initializeDialogUnits(parent);
- Composite pageComposite = new Composite(parent, SWT.NONE);
- pageComposite.setLayout(new GridLayout());
-
- dialogDataConfigComposite = new DialogDataConfigComposite(pageComposite, SWT.NONE, dialogData);
-
- setControl(pageComposite);
- }
-
- /**
- *
- * Used to update the input of the nested composite's viewer
- *
- */
- public void resetViewerInput() {
- dialogDataConfigComposite.setViewerInput(dialogData.getAllSelectedFiles());
- }
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/TransformationSelectionPage.java b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/TransformationSelectionPage.java
deleted file mode 100644
index dcce3bc5c2e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/src/org/eclipse/papyrus/migration/rsa/wizard/pages/TransformationSelectionPage.java
+++ /dev/null
@@ -1,59 +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:
- * Quentin Le Menez (CEA LIST) quentin.lemenez@cea.fr - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.migration.rsa.wizard.pages;
-
-import org.eclipse.jface.wizard.WizardPage;
-import org.eclipse.papyrus.migration.rsa.messages.Messages;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- *
- * Page displaying the workspace and its elements
- *
- * @author Quentin Le Menez
- *
- */
-public class TransformationSelectionPage extends WizardPage {
-
- protected DialogData dialogData;
-
- /**
- *
- * Constructor.
- *
- * @param dialogData
- * The instance used to get the selection from the workspace and the filters
- */
- public TransformationSelectionPage(DialogData dialogData) {
- super(Messages.TransformationSelectionPage_Name);
- setTitle(Messages.TransformationSelectionPage_Title);
- setDescription(Messages.TransformationSelectionPage_Description);
- // String iconPath = "icons/import_wiz_75x66.png"; //$NON-NLS-1$
- // ImageDescriptor imgDescriptior = Activator.getDefault().getImageDescriptor(iconPath);
- // setImageDescriptor(imgDescriptior);
-
- this.dialogData = dialogData;
- }
-
- @Override
- public void createControl(Composite parent) {
- initializeDialogUnits(parent);
- Composite pageComposite = new Composite(parent, SWT.NONE);
- pageComposite.setLayout(new GridLayout());
-
- new DialogDataTreeComposite(pageComposite, SWT.NONE, dialogData);
-
- setControl(pageComposite);
- }
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAActivityDiagram.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAActivityDiagram.qvto
deleted file mode 100644
index e48c87fecf6..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAActivityDiagram.qvto
+++ /dev/null
@@ -1,781 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2016 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 465656
- *****************************************************************************/
-import RSAToPapyrus;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype sash "strict" uses 'http://www.eclipse.org/papyrus/0.7.0/sashdi';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-transformation RSAActivityDiagram(inout semantics : uml, inout graphics : notation, out di : sash, in params : config);
-
-main() {
- semantics.rootObjects()[uml::Element]->map toOwnedDiagrams();
-}
-
-query View::getDiagramType() : String{
- return 'PapyrusUMLActivityDiagram';
-}
-
-mapping notation::Diagram::generateDiagram() : notation::Diagram inherits Diagram::toPapyrusDiagram when {
- self.type = 'Activity'
-}{
- end {
- graphics.objectsOfType(Shape)->any(type = 'Activity_Shape').map fixFramePosition();
- graphics.objectsOfType(Shape)->any(type = 'Activity_Shape').map createHeaders();
-
- graphics.objectsOfType(Shape)->select(type='Comment_Shape').map addCommentDecoration();
- graphics.objectsOfType(Shape)->select(type = 'Constraint_Shape').map addConstraintDecoration();
-
- graphics.objectsOfType(Shape)->select(type = 'ActivityPartition_Shape').map fixPartitionsLayout();
-
- graphics.objectsOfType(Shape).map fixDefaultSize();
- }
-}
-
-/**
-* Fix the default size for Join, Fork, Merge and Decision nodes
-*/
-mapping inout Shape::fixDefaultSize() disjuncts Shape::fixJoinForkSize, Shape::fixMergeDecisionSize {
- //Disjuncts
-}
-
-mapping inout Shape::fixJoinForkSize() when {
- self.type = 'JoinNode_Shape' or self.type = 'ForkNode_Shape'
-} {
- var layout : Bounds := self.layoutConstraint.oclAsType(Bounds);
-
- if layout.width = -1 then layout.width := 101 endif;
- if layout.height = -1 then layout.height := 11 endif;
-}
-
-mapping inout Shape::fixMergeDecisionSize() when {
- self.type = 'MergeNode_Shape' or self.type = 'DecisionNode_Shape'
-} {
- var layout : Bounds := self.layoutConstraint.oclAsType(Bounds);
-
- if layout.width = -1 then layout.width := 50 endif;
- if layout.height = -1 then layout.height := 50 endif;
-}
-
-property partitionX : Integer = 20;
-
-mapping inout Node::fixPartitionsLayout() {
- var width: Integer := 200; //Approximation. In RSA, the layout can be computed automatically based on the Partition's Contents. In Papyrus, this must be specified explicitely
- var marginHeight := 10; //Note: Papyrus currently has an additional margin in the bottom of Activities, which is ~60px. As a result, marginHeight rather corresponds to "marginTop" (Bug 459888)
-
- var bounds : Bounds := self.layoutConstraint.oclAsType(Bounds);
-
- var parentCompartment : DecorationNode := self.oclAsType(EObject).eContainer().oclAsType(DecorationNode);
- var parent : Shape := parentCompartment.oclAsType(EObject).eContainer().oclAsType(Shape);
- var parentBounds := parent.layoutConstraint.oclAsType(Bounds);
- var parentHeight := parentBounds.height;
-
- var previousPosition : Integer := parentCompartment.children->select(type = 'ActivityPartition_Shape')->indexOf(self) - 1;
- var previousPartition : Node := parentCompartment.children->select(type = 'ActivityPartition_Shape')->at(previousPosition);
-
- if previousPartition.oclIsUndefined() then { /* First partition */
- bounds.x := partitionX;
- } else {
- previousPartition.map fixPartitionsLayout(); /* Ensure that partition n-1 is already fixed */
- var previousBounds := previousPartition.layoutConstraint.oclAsType(Bounds);
- bounds.x := previousBounds.x + previousBounds.width - 1; //-1 to force Partition border overlap
- } endif;
-
- bounds.width := width.max(bounds.width);
- bounds.y := marginHeight;
- bounds.height := (parentHeight - marginHeight * 2).max(bounds.height).max(400);
-}
-
-mapping inout Shape::addCommentDecoration() when {
- self.type = 'Comment_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Comment_BodyLabel';
- }
-
-}
-
-mapping inout Shape::addConstraintDecoration() when {
- self.type = 'Constraint_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Constraint_BodyLabel'; //Constraint specification
- }
-
-}
-
-
-/* Add a margin on the top and left */
-mapping inout Shape::fixFramePosition() {
- var bounds := self.layoutConstraint.oclAsType(Bounds);
- var margin := 10;
- if bounds.x < margin then bounds.x := margin endif;
- if bounds.y < margin then bounds.y := margin endif;
-}
-
-mapping inout Shape::createHeaders() : param: DecorationNode, pre: DecorationNode, post: DecorationNode {
- self.children += param;
- self.children += pre;
- self.children += post;
-
- param.type := 'Activity_ParameterCompartment';
- pre.type := 'Activity_PreconditionCompartment';
- post.type := 'Activity_PostconditionCompartment';
-}
-
-mapping Node::toNode() : Node disjuncts
- UMLShape::toPapyrusShape,
- UMLShapeCompartment::toStructureCompartment,
- BasicSemanticCompartment::toListCompartment,
- BasicDecorationNode::toConnectorLabel,
- BasicDecorationNode::toLabel
- //TODO: Disjunct nodes mapping
-;
-
-mapping Edge::toEdge() : Edge disjuncts
- UMLConnector::toCommentLink,
- UMLConnector::toConstraintLink,
- UMLConnector::toPapyrusConnector
- //TODO: Disjunct edges mapping
-;
-
-mapping UMLShapeCompartment::toStructureCompartment() : DecorationNode inherits UMLShapeCompartment::toAbstractStructureCompartment when {
- self.type = 'StructureCompartment' or self.type = 'PackageContents' or self.type = 'ActivityCompartment' or self.type='PartitionCompartment' or self.type='StructuredActivityNodeCompartment'
- and not self.getType().oclIsUndefined();
-}{
-
-}
-
-
-/***** Nodes **********/
-
-mapping UMLShape::toPapyrusShape() : Shape inherits Shape::toPapyrusShape when {
- self.type = 'Activity Frame' or self.type = 'Partition' or (
- self.type = '' and not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(FlowFinalNode)or
- self.element.oclIsTypeOf(ActivityPartition)or
- self.element.oclIsTypeOf(IntervalConstraint)or
- self.element.oclIsTypeOf(ActionInputPin)or
- self.element.oclIsTypeOf(BroadcastSignalAction)or
- self.element.oclIsTypeOf(ActionInputPin)or
- self.element.oclIsTypeOf(ValuePin)or
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(ValuePin)or
- self.element.oclIsTypeOf(SequenceNode)or
- self.element.oclIsTypeOf(ActionInputPin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(ReadSelfAction)or
- self.element.oclIsTypeOf(ActivityFinalNode)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(SendSignalAction)or
- self.element.oclIsTypeOf(InitialNode)or
- self.element.oclIsTypeOf(AddStructuralFeatureValueAction)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(DurationConstraint)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(LoopNode)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(ForkNode)or
- self.element.oclIsTypeOf(ExpansionNode)or
- self.element.oclIsTypeOf(ActionInputPin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(CallOperationAction)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(IntervalConstraint)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(AddVariableValueAction)or
- self.element.oclIsTypeOf(ExpansionNode)or
- self.element.oclIsTypeOf(ValuePin)or
- self.element.oclIsTypeOf(Parameter)or
- self.element.oclIsTypeOf(ReadVariableAction)or
- self.element.oclIsTypeOf(OpaqueAction)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(ValuePin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(InterruptibleActivityRegion)or
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(JoinNode)or
- self.element.oclIsTypeOf(StructuredActivityNode)or
- self.element.oclIsTypeOf(ConditionalNode)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(ActionInputPin)or
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(TimeConstraint)or
- self.element.oclIsTypeOf(DecisionNode)or
- self.element.oclIsTypeOf(ActivityParameterNode)or
- self.element.oclIsTypeOf(ActionInputPin)or
- self.element.oclIsTypeOf(ActionInputPin)or
- self.element.oclIsTypeOf(CentralBufferNode)or
- self.element.oclIsTypeOf(Comment)or
- self.element.oclIsTypeOf(DestroyObjectAction)or
- self.element.oclIsTypeOf(CreateObjectAction)or
- self.element.oclIsTypeOf(ValuePin)or
- self.element.oclIsTypeOf(ValuePin)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(DataStoreNode)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(ActionInputPin)or
- self.element.oclIsTypeOf(CallBehaviorAction)or
- self.element.oclIsTypeOf(ExpansionRegion)or
- self.element.oclIsTypeOf(SendObjectAction)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(TimeConstraint)or
- self.element.oclIsTypeOf(MergeNode)or
- self.element.oclIsTypeOf(DurationConstraint)or
- self.element.oclIsTypeOf(ValuePin)or
- self.element.oclIsTypeOf(ValueSpecificationAction)or
- self.element.oclIsTypeOf(AcceptEventAction)or
- self.element.oclIsTypeOf(Activity)or
- self.element.oclIsTypeOf(InputPin)or
- self.element.oclIsTypeOf(ReadStructuralFeatureAction)or
- self.element.oclIsTypeOf(OutputPin)or
- self.element.oclIsTypeOf(ValuePin)
- )
- )
-}{
-
-}
-
-
-/****** Connector Labels ******/
-
-mapping BasicDecorationNode::toConnectorLabel() : DecorationNode inherits Node::toPapyrusConnectorLabel when {
- not self.getType().oclIsUndefined() and (
- self.type = 'ToMultiplicityLabel' or
- self.type = 'ToRoleLabel' or
- self.type = 'FromMultiplicityLabel' or
- self.type = 'FromRoleLabel' or
- self.type = 'NameLabel' or
- self.type = 'KindLabel' or
- self.type = 'ObjectNodeNameLabel'
- )
-}{}
-
-
-/****** Compartments *******/
-
-mapping BasicDecorationNode::toLabel() : DecorationNode inherits Node::toPapyrusNode when {
- not self.getType().oclIsUndefined() and
- self.element.oclIsKindOf(uml::NamedElement) and
- (self.type = 'Name' or self.type = 'PartitionName' or self.type = 'ObjectNodeNameLabel')
-}{}
-
-mapping BasicSemanticCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- self.type.endsWith('Compartment') and not self.getType().oclIsUndefined()
-}{
- result.children := self.findElement().map toContents(self);
-}
-
-mapping Element::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Activity::toContents
-;
-
-mapping Activity::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Activity::toActivityFigureParameterCompartmentContents,
- Activity::toActivityFigurePreconditionCompartmentContents,
- Activity::toActivityFigurePostCondtionCompartmentContents
-;
-
-mapping Activity::toActivityFigureParameterCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'Compartment';
-}{
- init {
- result := (self.map fillParameter(node))
- }
-}
-
-mapping Activity::toActivityFigurePreconditionCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'Compartment';
-}{
- init {
- result := (self.map fillConstraint(node))
- }
-}
-
-mapping Activity::toActivityFigurePostCondtionCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'Compartment';
-}{
- init {
- result := (self.map fillConstraint(node))
- }
-}
-
-mapping uml::Activity::fillParameter(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='Compartment';
-}{
- init {
- result := self.ownedParameter->selectByKind(Parameter).map toParameterInActivity(node)->asSequence();
- }
-}
-
-mapping uml::Activity::fillConstraint(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='Compartment';
-}{
- init {
- result := self.precondition->selectByKind(Constraint).map toConstraintInActivity(node)->asSequence();
- }
-}
-
-mapping Parameter::toParameterInActivity(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Parameter_ParameterLabel';
-}
-
-mapping Constraint::toConstraintInActivity(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Constraint_PreconditionLabel';
-}
-
-
-
-/******* Edges ********/
-
-
-mapping UMLConnector::toPapyrusConnector() : Connector inherits Connector::toPapyrusConnector when {
- self.type = '' and
- not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(ObjectFlow)or
- self.element.oclIsTypeOf(ControlFlow)or
- self.element.oclIsTypeOf(ExceptionHandler)
- )
-}{
- result.styles := self.map toFontStyle();
-}
-
-mapping UMLConnector::toCommentLink() : Connector inherits Connector::toCommentLink when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Comment) or
- self.target.element.oclIsKindOf(Comment)
- )
-}{
- result.type :='Comment_AnnotatedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-mapping UMLConnector::toConstraintLink() : Connector inherits Connector::toPapyrusConnector when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Constraint) or
- self.target.element.oclIsKindOf(Constraint)
- )
-}{
- result.type :='Constraint_ConstrainedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-
-/****** Element Type queries ******/
-
-query View::getNodeType(element : Element) : String {
-
- var type : String := null;
- var parent := element.container();
-
- //Specific cases for Output pins
- if element.oclIsTypeOf(OutputPin) then {
-
- type := switch {
- case (parent.oclIsTypeOf(OpaqueAction)) 'OutputPin_OpaqueActionOutputShape';
- case (parent.oclIsTypeOf(CreateObjectAction)) 'OutputPin_CreateObjectActionResultShape';
- case (parent.oclIsTypeOf(ReadStructuralFeatureAction)) 'OutputPin_ReadStructuralFeatureActionResultShape';
- case (parent.oclIsTypeOf(AcceptEventAction)) 'OutputPin_AcceptEventActionResultShape';
- case (parent.oclIsTypeOf(ValueSpecificationAction)) 'OutputPin_ValueSpecificationActionResultShape';
- case (parent.oclIsTypeOf(AddStructuralFeatureValueAction)) 'OutputPin_AddStructuralFeatureValueActionResultShape';
- case (parent.oclIsTypeOf(CallOperationAction)) 'OutputPin_CallOperationActionResultShape';
- case (parent.oclIsTypeOf(CallBehaviorAction)) 'OutputPin_CallBehaviorActionResultShape';
- case (parent.oclIsTypeOf(ReadVariableAction)) 'OutputPin_ReadVariableActionResultShape';
- case (parent.oclIsTypeOf(ReadSelfAction)) 'OutputPin_ReadSelfActionResultShape';
-
- case (parent.oclIsTypeOf(LoopNode) and parent.oclAsType(LoopNode).bodyOutput->includes(element.oclAsType(OutputPin))) 'OutputPin_LoopNodeBodyOutputShape';
- case (parent.oclIsTypeOf(LoopNode) and parent.oclAsType(LoopNode)._result->includes(element.oclAsType(OutputPin))) 'OutputPin_LoopNodeResultShape';
- case (parent.oclIsTypeOf(LoopNode) and parent.oclAsType(LoopNode).loopVariable->includes(element.oclAsType(OutputPin))) 'OutputPin_LoopNodeVariableShape';
-
- else self.fail();
- };
- } endif;
-
- //Specific cases for Input pins
- if element.oclIsTypeOf(InputPin) then {
-
- type := switch {
- case (parent.oclIsTypeOf(LoopNode)) 'InputPin_LoopNodeVariableInputShape';
- case (parent.oclIsTypeOf(ReadStructuralFeatureAction)) 'InputPin_ReadStructuralFeatureActionObjectShape';
- case (parent.oclIsTypeOf(BroadcastSignalAction)) 'InputPin_BroadcastSignalActionArgumentShape';
- case (parent.oclIsTypeOf(DestroyObjectAction)) 'InputPin_DestroyObjectActionTargetShape';
- case (parent.oclIsTypeOf(CallBehaviorAction)) 'InputPin_CallBehaviorActionArgumentShape';
- case (parent.oclIsTypeOf(OpaqueAction)) 'InputPin_OpaqueActionInputShape';
-
- case (parent.oclIsTypeOf(SendSignalAction) and parent.oclAsType(SendSignalAction).target->includes(element.oclAsType(InputPin))) 'InputPin_SendSignalActionTargetShape';
- case (parent.oclIsTypeOf(SendSignalAction)) 'InputPin_SendSignalActionArgumentShape';
-
- case (parent.oclIsTypeOf(AddStructuralFeatureValueAction) and parent.oclAsType(AddStructuralFeatureValueAction).value->includes(element.oclAsType(InputPin))) 'InputPin_AddStructuralFeatureValueActionValueShape';
- case (parent.oclIsTypeOf(AddStructuralFeatureValueAction) and parent.oclAsType(AddStructuralFeatureValueAction)._object->includes(element.oclAsType(InputPin))) 'InputPin_AddStructuralFeatureValueActionObjectShape';
-
- case (parent.oclIsTypeOf(SendObjectAction) and parent.oclAsType(SendObjectAction).target->includes(element.oclAsType(InputPin))) 'InputPin_SendObjectActionTargetShape';
- case (parent.oclIsTypeOf(SendObjectAction) and parent.oclAsType(SendObjectAction).request->includes(element.oclAsType(InputPin))) 'InputPin_SendObjectActionRequestShape';
-
- case (parent.oclIsTypeOf(CallOperationAction) and parent.oclAsType(CallOperationAction).target->includes(element.oclAsType(InputPin))) 'InputPin_CallOperationActionTargetShape';
- case (parent.oclIsTypeOf(CallOperationAction)) 'InputPin_CallOperationActionArgumentShape';
-
- case (parent.oclIsTypeOf(AddVariableValueAction) and parent.oclAsType(AddVariableValueAction).insertAt->includes(element.oclAsType(InputPin))) 'InputPin_AddVariableValueActionInsertAtShape';
- case (parent.oclIsTypeOf(AddVariableValueAction) and parent.oclAsType(AddVariableValueAction).value->includes(element.oclAsType(InputPin))) 'InputPin_AddVariableValueActionValueShape';
-
- else self.fail();
- };
-
- } endif;
-
- //Specific cases for Action input pins
- if element.oclIsTypeOf(ActionInputPin) then {
- type := switch {
- case (parent.oclIsTypeOf(SendSignalAction) and parent.oclAsType(SendSignalAction).target->includes(element.oclAsType(InputPin))) 'ActionInputPin_SendSignalActionTargetShape';
- case (parent.oclIsTypeOf(SendSignalAction)) 'ActionInputPin_SendSignalActionArgumentShape';
-
- case (parent.oclIsTypeOf(SendObjectAction) and parent.oclAsType(SendObjectAction).target->includes(element.oclAsType(InputPin))) 'ActionInputPin_SendObjectActionTargetShape';
- case (parent.oclIsTypeOf(SendObjectAction) and parent.oclAsType(SendObjectAction).request->includes(element.oclAsType(InputPin))) 'ActionInputPin_SendObjectActionRequestShape';
-
- case (parent.oclIsTypeOf(CallOperationAction) and parent.oclAsType(CallOperationAction).target->includes(element.oclAsType(InputPin))) 'ActionInputPin_CallOperationActionTargetShape';
- case (parent.oclIsTypeOf(CallOperationAction)) 'ActionInputPin_CallOperationActionArgumentShape';
-
- case (parent.oclIsTypeOf(OpaqueAction)) 'ActionInputPin_OpaqueActionInputShape';
- case (parent.oclIsTypeOf(CallBehaviorAction)) 'ActionInputPin_CallBehaviorActionArgumentShape';
-
- else self.fail();
- };
-
- } endif;
-
- //Specific cases for Value pins
- if element.oclIsTypeOf(ValuePin) then {
- type := switch {
-
- case (parent.oclIsTypeOf(CallBehaviorAction)) 'ValuePin_CallBehaviorActionArgumentShape';
- case (parent.oclIsTypeOf(OpaqueAction)) 'ValuePin_OpaqueActionInputShape';
-
- case (parent.oclIsTypeOf(SendSignalAction) and parent.oclAsType(SendSignalAction).target->includes(element.oclAsType(InputPin))) 'ValuePin_SendSignalActionTargetShape';
- case (parent.oclIsTypeOf(SendSignalAction)) 'ValuePin_SendSignalActionArgumentShape';
-
- case (parent.oclIsTypeOf(CallOperationAction) and parent.oclAsType(CallOperationAction).target->includes(element.oclAsType(InputPin))) 'ValuePin_CallOperationActionTargetShape';
- case (parent.oclIsTypeOf(CallOperationAction)) 'ValuePin_CallOperationActionArgumentShape';
-
- case (parent.oclIsTypeOf(SendObjectAction) and parent.oclAsType(SendObjectAction).request->includes(element.oclAsType(InputPin))) 'ValuePin_SendObjectActionRequestShape';
- case (parent.oclIsTypeOf(SendObjectAction) and parent.oclAsType(SendObjectAction).target->includes(element.oclAsType(InputPin))) 'ValuePin_SendObjectActionTargetShape';
-
- else self.fail();
- };
- } endif;
-
- //TODO: specific cases for constraints (pre/post/...)
-
- if type <> null then
- return type
- endif;
-
- //Generated cases
- return
- if element.oclIsTypeOf(Constraint) then 'Constraint_Shape'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_PreconditionLabel'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_PostconditionLabel'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_LocalPreconditionShape'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_LocalPostconditionShape'
- elif element.oclIsTypeOf(IntervalConstraint) then 'IntervalConstraint_LocalPostconditionShape'
- elif element.oclIsTypeOf(IntervalConstraint) then 'IntervalConstraint_LocalPreconditionShape'
- elif element.oclIsTypeOf(DurationConstraint) then 'DurationConstraint_LocalPostconditionShape'
- elif element.oclIsTypeOf(TimeConstraint) then 'TimeConstraint_LocalPreconditionShape'
- elif element.oclIsTypeOf(TimeConstraint) then 'TimeConstraint_LocalPostconditionShape'
- elif element.oclIsTypeOf(DurationConstraint) then 'DurationConstraint_LocalPreconditionShape'
- elif element.oclIsTypeOf(FlowFinalNode) then 'FlowFinalNode_Shape'
- elif element.oclIsTypeOf(ActivityPartition) then 'ActivityPartition_Shape'
- elif element.oclIsTypeOf(BroadcastSignalAction) then 'BroadcastSignalAction_Shape'
- elif element.oclIsTypeOf(SequenceNode) then 'SequenceNode_Shape'
- elif element.oclIsTypeOf(ReadSelfAction) then 'ReadSelfAction_Shape'
- elif element.oclIsTypeOf(ActivityFinalNode) then 'ActivityFinalNode_Shape'
- elif element.oclIsTypeOf(SendSignalAction) then 'SendSignalAction_Shape'
- elif element.oclIsTypeOf(InitialNode) then 'InitialNode_Shape'
- elif element.oclIsTypeOf(AddStructuralFeatureValueAction) then 'AddStructuralFeatureValueAction_Shape'
- elif element.oclIsTypeOf(LoopNode) then 'LoopNode_Shape'
- elif element.oclIsTypeOf(ForkNode) then 'ForkNode_Shape'
- elif element.oclIsTypeOf(ExpansionNode) then 'ExpansionNode_InputShape'
- elif element.oclIsTypeOf(CallOperationAction) then 'CallOperationAction_Shape'
- elif element.oclIsTypeOf(AddVariableValueAction) then 'AddVariableValueAction_Shape'
- elif element.oclIsTypeOf(ExpansionNode) then 'ExpansionNode_OutputShape'
- elif element.oclIsTypeOf(Parameter) then 'Parameter_ParameterLabel'
- elif element.oclIsTypeOf(ReadVariableAction) then 'ReadVariableAction_Shape'
- elif element.oclIsTypeOf(OpaqueAction) then 'OpaqueAction_Shape'
- elif element.oclIsTypeOf(InterruptibleActivityRegion) then 'InterruptibleActivityRegion_Shape'
- elif element.oclIsTypeOf(JoinNode) then 'JoinNode_Shape'
- elif element.oclIsTypeOf(StructuredActivityNode) then 'StructuredActivityNode_Shape'
- elif element.oclIsTypeOf(ConditionalNode) then 'ConditionalNode_Shape'
- elif element.oclIsTypeOf(DecisionNode) then 'DecisionNode_Shape'
- elif element.oclIsTypeOf(ActivityParameterNode) then 'ActivityParameterNode_Shape'
- elif element.oclIsTypeOf(CentralBufferNode) then 'CentralBufferNode_Shape'
- elif element.oclIsTypeOf(Comment) then 'Comment_Shape'
- elif element.oclIsTypeOf(DestroyObjectAction) then 'DestroyObjectAction_Shape'
- elif element.oclIsTypeOf(CreateObjectAction) then 'CreateObjectAction_Shape'
- elif element.oclIsTypeOf(DataStoreNode) then 'DataStoreNode_Shape'
- elif element.oclIsTypeOf(CallBehaviorAction) then 'CallBehaviorAction_Shape'
- elif element.oclIsTypeOf(ExpansionRegion) then 'ExpansionRegion_Shape'
- elif element.oclIsTypeOf(SendObjectAction) then 'SendObjectAction_Shape'
- elif element.oclIsTypeOf(MergeNode) then 'MergeNode_Shape'
- elif element.oclIsTypeOf(ValueSpecificationAction) then 'ValueSpecificationAction_Shape'
- elif element.oclIsTypeOf(AcceptEventAction) then 'AcceptEventAction_Shape'
- elif element.oclIsTypeOf(Activity) then 'Activity_Shape'
- elif element.oclIsTypeOf(ReadStructuralFeatureAction) then 'ReadStructuralFeatureAction_Shape'
- else self.fail()
- endif;
-
-
-
-}
-
-
-query View::getDecorationType(element : Element) : String{
- var res := self.doGetDecorationType(element);
-
- /*
- log('Get papyrus ID for'+ self.element.eClass().name+', '+self.type);
-
- log(res);
-
- if self.container().oclIsKindOf(Node) then
- log('IsNode')
- else
- log('IsEdge')
- endif;
- */
-
- return res;
-
-}
-
-query View::doGetDecorationType(element : Element) : String{
- return if self.container().oclIsKindOf(Node) then {
- return if element.oclIsTypeOf(ActivityPartition) then
- return switch {
- case (self.type = 'PartitionName') 'ActivityPartition_NameLabel';
- case (self.type = 'PartitionCompartment') 'ActivityPartition_ActivityNodeCompartment';
- }
- elif element.oclIsTypeOf(Constraint) then
- return switch {
- case (self.type = 'Name') 'Constraint_NameLabel';
- }
- elif element.oclIsTypeOf(IntervalConstraint) then
- return switch {
- case (self.type = 'Name') 'IntervalConstraint_LocalPostconditionNameLabel';
-
- }
- elif element.oclIsTypeOf(BroadcastSignalAction) then
- return switch {
- case (self.type = 'Name') 'BroadcastSignalAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(SequenceNode) then
- return switch {
-
- case (self.type = 'StructureCompartment') 'SequenceNode_ActivityNodeCompartment';
- }
- elif element.oclIsTypeOf(ReadSelfAction) then
- return switch {
- case (self.type = 'Name') 'ReadSelfAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(SendSignalAction) then
- return switch {
- case (self.type = 'Name') 'SendSignalAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(AddStructuralFeatureValueAction) then
- return switch {
- case (self.type = 'Name') 'AddStructuralFeatureValueAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(DurationConstraint) then
- return switch {
- case (self.type = 'Name') 'DurationConstraint_LocalPostconditionNameLabel';
-
- }
- elif element.oclIsTypeOf(LoopNode) then
- return switch {
-
- case (self.type = 'StructureCompartment') 'LoopNode_ActivityNodeCompartment';
- }
- elif element.oclIsTypeOf(CallOperationAction) then
- return switch {
- case (self.type = 'Name') 'CallOperationAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(IntervalConstraint) then
- return switch {
- case (self.type = 'Name') 'IntervalConstraint_LocalPreconditionNameLabel';
-
- }
- elif element.oclIsTypeOf(Constraint) then
- return switch {
- case (self.type = 'Name') 'Constraint_LocalPreconditionNameLabel';
-
- }
- elif element.oclIsTypeOf(AddVariableValueAction) then
- return switch {
- case (self.type = 'Name') 'AddVariableValueAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(ReadVariableAction) then
- return switch {
- case (self.type = 'Name') 'ReadVariableAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(OpaqueAction) then
- return switch {
- case (self.type = 'Name') 'OpaqueAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(InterruptibleActivityRegion) then
- return switch {
-
- case (self.type = 'StructureCompartment') 'InterruptibleActivityRegion_ActivityNodeCompartment';
- }
- elif element.oclIsTypeOf(Constraint) then
- return switch {
- case (self.type = 'Name') 'Constraint_LocalPostconditionNameLabel';
-
- }
- elif element.oclIsTypeOf(StructuredActivityNode) then
- return switch {
- case (self.type = 'Name') 'StructuredActivityNode_KeywordLabel';
- case (self.type = 'StructuredActivityNodeCompartment') 'StructuredActivityNode_ActivityNodeCompartment';
- }
- elif element.oclIsTypeOf(ConditionalNode) then
- return switch {
-
- case (self.type = 'StructureCompartment') 'ConditionalNode_ActivityNodeCompartment';
- }
- elif element.oclIsTypeOf(TimeConstraint) then
- return switch {
- case (self.type = 'Name') 'TimeConstraint_LocalPreconditionNameLabel';
-
- }
- elif element.oclIsTypeOf(ActivityParameterNode) then
- return switch {
- case (self.type = 'ObjectNodeNameLabel') 'ActivityParameterNode_NameLabel';
-
- }
- elif element.oclIsTypeOf(DestroyObjectAction) then
- return switch {
- case (self.type = 'Name') 'DestroyObjectAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(CreateObjectAction) then
- return switch {
- case (self.type = 'Name') 'CreateObjectAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(CallBehaviorAction) then
- return switch {
- case (self.type = 'Name') 'CallBehaviorAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(ExpansionRegion) then
- return switch {
-
- case (self.type = 'StructureCompartment') 'ExpansionRegion_ActivityNodeCompartment';
- }
- elif element.oclIsTypeOf(SendObjectAction) then
- return switch {
- case (self.type = 'Name') 'SendObjectAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(TimeConstraint) then
- return switch {
- case (self.type = 'Name') 'TimeConstraint_LocalPostconditionNameLabel';
-
- }
- elif element.oclIsTypeOf(DurationConstraint) then
- return switch {
- case (self.type = 'Name') 'DurationConstraint_LocalPreconditionNameLabel';
-
- }
- elif element.oclIsTypeOf(ValueSpecificationAction) then
- return switch {
- case (self.type = 'Name') 'ValueSpecificationAction_NameLabel';
-
- }
- elif element.oclIsTypeOf(Activity) then
- return switch {
- case (self.type = 'Name') 'Activity_NameLabel';
- case (self.type = 'ActivityCompartment') 'Activity_ActivityNodeCompartment';
- }
- elif element.oclIsTypeOf(ReadStructuralFeatureAction) then
- return switch {
- case (self.type = 'Name') 'ReadStructuralFeatureAction_NameLabel';
- }
- elif element.oclIsTypeOf(AcceptEventAction) then
- return switch {
- case (self.type = 'Name') 'AcceptEventAction_NameLabel';
- }
- elif element.oclIsTypeOf(InputPin) then
- 'InputPin_OpaqueActionInputNameLabel'
- elif element.oclIsTypeOf(ValuePin) then
- 'ValuePin_OpaqueActionInputValueLabel'
- elif element.oclIsTypeOf(OutputPin) then
- 'OutputPin_OpaqueActionOutputNameLabel'
- elif element.oclIsTypeOf(ActionInputPin) then
- 'ActionInputPin_OpaqueActionInputNameLabel'
- endif
- } else {
- return if element.oclIsTypeOf(ObjectFlow) then
- return switch {
- case (self.type='Name') 'ObjectFlow_NameLabel';
- case (self.type = 'NameLabel') 'ObjectFlow_NameLabel';
- case (self.type = 'KindLabel') 'ObjectFlow_StereotypeLabel';
-
- }
- elif element.oclIsTypeOf(ControlFlow) then
- return switch {
- case (self.type='Name') 'ControlFlow_NameLabel';
- case (self.type = 'NameLabel') 'ControlFlow_NameLabel';
- case (self.type = 'KindLabel') 'ControlFlow_StereotypeLabel';
- }
- endif
- } endif;
-}
-
-
-query View::getEdgeType(element : Element) : String {
- return
- if self.type = 'Reference' then '' /* Constraint/Comment links handled separately */
- elif element.oclIsTypeOf(ObjectFlow) then 'ObjectFlow_Edge'
- elif element.oclIsTypeOf(ControlFlow) then 'ControlFlow_Edge'
- elif element.oclIsTypeOf(ExceptionHandler) then 'ExceptionHandler_Edge'
- else self.fail()
- endif;
-}
-
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAClassDiagram.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAClassDiagram.qvto
deleted file mode 100644
index 7754869bb1c..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAClassDiagram.qvto
+++ /dev/null
@@ -1,1287 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2016 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 465656
- *****************************************************************************/
-import RSAToPapyrus;
-import org.eclipse.papyrus.m2m.qvto.Properties;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype sash "strict" uses 'http://www.eclipse.org/papyrus/0.7.0/sashdi';
-modeltype vpconfig "strict" uses 'http://www.eclipse.org/papyrus/infra/viewpoints/configuration';
-modeltype vpstyle "strict" uses 'http://www.eclipse.org/papyrus/infra/viewpoints/policy/style';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-transformation RSAClassDiagram(inout semantics : uml, inout graphics : notation, out di : sash, in param : config);
-
-main() {
- semantics.rootObjects()[uml::Element]->map toOwnedDiagrams();
-}
-
-query View::getDiagramType() : String{
- return 'PapyrusUMLClassDiagram';
-}
-
-
-
-mapping notation::Diagram::generateDiagram() : notation::Diagram inherits Diagram::toPapyrusDiagram when {
- (self.type = 'Class' or self.type='Object') and not self.findElement().oclIsTypeOf(Profile)
-}{
-
- end {
-
- /* Post action: Move AssociationClasses to the right parent (Dashed Edge + Node) */
- /* Easier to do in post-treatment than during the transformation (The transformation can remain generic) */
- result.map handleAssociationClasses();
- graphics.objectsOfType(Shape)->select(type = 'Comment_Shape').map addCommentDecoration();
- graphics.objectsOfType(Shape)->select(type = 'Constraint_PackagedElementShape').map addConstraintDecoration();
- if not result.element.oclIsKindOf(Package) then
- result.map toInnerClassDiagram()
- endif;
- }
-}
-
-mapping inout Diagram::toInnerClassDiagram() : PapyrusViewStyle{
- result.owner := self.element;
- result._configuration := getInnerClassDiagramView();
-
- self.styles += result;
-}
-
-query getInnerClassDiagramView() : PapyrusDiagram {
- return getEObjectProperty('InnerClassDiagramView').oclAsType(PapyrusDiagram);
-}
-
-mapping inout Shape::addCommentDecoration() when {
- self.type = 'Comment_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Comment_BodyLabel'; //Comment body
- }
-
-}
-
-mapping inout Shape::addConstraintDecoration() when {
- self.type = 'Constraint_PackagedElementShape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Constraint_BodyLabel'; //Constraint specification
- }
-
-}
-
-mapping inout Diagram::handleAssociationClasses() {
- graphics.objectsOfType(Shape)->select(type = 'AssociationClass_Shape').map updateLocation();
-
- self.children := self.children->union(graphics.objectsOfKind(Node)->select(diagram = self and type = 'AssociationClass_Shape'));
-}
-
-mapping inout Shape::updateLocation() {
- var dashedEdge := graphics.objectsOfType(Connector)->select(type = 'AssociationClass_TetherEdge' and source = self or target = self)->any(true);
-
- var association := dashedEdge.findConnector();
-
- var source := association.source.oclAsType(Shape);
- var target := association.target.oclAsType(Shape);
-
- var sourcePosition := source.getBounds();
- var targetPosition := target.getBounds();
-
- var bounds := self.getBounds();
-
- bounds.x := (((sourcePosition.x + targetPosition.x)/2) + bounds.x).round();
- bounds.y := (((sourcePosition.y + targetPosition.y)/2) + bounds.y).round();
-}
-
-/**
-* From the Dashed edge of an Association Class, returns the actual Association connector
-*/
-query Connector::findConnector() : Connector {
- var view := if self.source.oclIsKindOf(Connector) then self.source else self.target endif;
- return view.oclAsType(Connector);
-}
-
-query Shape::getBounds() : Bounds {
- return self.oclAsType(Shape).layoutConstraint.oclAsType(Bounds);
-}
-
-/**
-* In Papyrus, an AssociationClass is composed of two edges and a Node (Full edge for association, dashed edge for Association class, Node for the class)
-* In RSA, an AssociationClass is a single Edge with compartments
-*/
-mapping UMLConnector::toAssociationClass() : Connector inherits Connector::toPapyrusConnector when {
- self.element.oclIsTypeOf(AssociationClass)
-}{
- result.styles := self.map toFontStyle();
- var dashedEdge := object Connector {
- type := 'AssociationClass_TetherEdge';
- target := self.children->selectByKind(UMLShape)->any(true).map toPapyrusShape();
- source := result;
- styles := object FontStyle{};
- bendpoints := object RelativeBendpoints{};
- sourceAnchor := object IdentityAnchor{};
- targetAnchor := object IdentityAnchor{};
- };
-
- var targetDiagram := self.diagram.map generateDiagram();
- targetDiagram.edges += dashedEdge;
-}
-
-
-mapping Node::toNode() : Node disjuncts
- UMLShape::toPapyrusShape,
- UMLShapeCompartment::toStructureCompartment,
- BasicSemanticCompartment::toListCompartment,
- ListCompartment::toListCompartment,
- BasicDecorationNode::toConnectorLabel,
- BasicDecorationNode::toLabel
- //TODO: Disjunct nodes mapping
-;
-
-mapping Edge::toEdge() : Edge disjuncts
- UMLConnector::toCommentLink,
- UMLConnector::toConstraintLink,
- /*UMLConnector::toContextLink,*/
- UMLConnector::toPapyrusConnector,
- UMLConnector::toGeneralizationConnector,
- UMLConnector::toAssociationClass
-;
-
-mapping UMLShapeCompartment::toStructureCompartment() : DecorationNode inherits UMLShapeCompartment::toAbstractStructureCompartment when {
- self.type = 'StructureCompartment' or self.type = 'PackageContents' and not self.getType().oclIsUndefined();
-}{
-
-}
-
-
-/***** Nodes **********/
-
-mapping UMLShape::toPapyrusShape() : Shape inherits Shape::toPapyrusShape when {
- self.type = '' and (
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(AssociationClass)or
- self.element.oclIsTypeOf(Association)or
- self.element.oclIsTypeOf(InstanceSpecification)or
- self.element.oclIsTypeOf(Component)or
- self.element.oclIsTypeOf(Signal)or
- self.element.oclIsTypeOf(Interface)or
- self.element.oclIsTypeOf(Model)or
- self.element.oclIsTypeOf(Enumeration)or
- self.element.oclIsTypeOf(Package)or
- self.element.oclIsTypeOf(InformationItem)or
- self.element.oclIsTypeOf(Class)or
- self.element.oclIsTypeOf(PrimitiveType)or
- self.element.oclIsTypeOf(DataType)or
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(Comment)or
- self.element.oclIsTypeOf(Diagram)or
- self.element.oclIsTypeOf(DurationObservation)or
- self.element.oclIsTypeOf(TimeObservation)or
- self.element.oclIsKindOf(NamedElement)
- )
-}{
-
-}
-
-
-/****** Connector Labels ******/
-
-mapping BasicDecorationNode::toConnectorLabel() : DecorationNode inherits Node::toPapyrusConnectorLabel when {
- not self.getType().oclIsUndefined() and (
- self.type = 'ToMultiplicityLabel' or
- self.type = 'ToRoleLabel' or
- self.type = 'FromMultiplicityLabel' or
- self.type = 'FromRoleLabel' or
- self.type = 'NameLabel' or
- self.type = 'KindLabel'
- )
-}{
-
-}
-
-/****** Compartments *******/
-
-mapping BasicDecorationNode::toLabel() : DecorationNode inherits Node::toPapyrusNode when {
- self.element.oclIsKindOf(uml::NamedElement) and
- self.type = 'Name'
-}{
-
-}
-
-//Synchronized Compartments
-mapping BasicSemanticCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- //TODO: EndsWith('Compartment')
- self.type = 'OperationCompartment' or
- self.type = 'SignalCompartment' or
- self.type = 'AttributeCompartment' or
- self.type.endsWith('Compartment')
-}{
- result.children += self.findElement().map toContents(self);
-}
-
-//Standard Compartments (e.g. slots)
-mapping ListCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- self.type.endsWith('Compartment')
-} {
- //Super class implementation is sufficient. It will already transform the children and set the compartment ID
- result.children += self.findElement().map toContents(self);
-}
-
-mapping Element::toContents(node : ListCompartment) : Sequence(Node) disjuncts
- InstanceSpecification::toContents
-;
-
-mapping Element::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- AssociationClass::toContents,
- Component::toContents,
- Signal::toContents,
- Interface::toContents,
- Enumeration::toContents,
- Class::toContents,
- PrimitiveType::toContents,
- DataType::toContents
-;
-
-mapping AssociationClass::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- AssociationClass::toAttributeCompartmentContents,
- AssociationClass::toOperationCompartmentContents,
- AssociationClass::toNestedClassifierCompartmentContents
-;
-
-mapping InstanceSpecification::toContents(node : ListCompartment) : Sequence(Node) disjuncts
- InstanceSpecification::toSlotCompartmentContents
-;
-
-mapping Component::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Component::toAttributeCompartmentContents,
- Component::toOperationCompartmentContents,
- Component::toNestedClassifierCompartmentContents
-;
-
-mapping Signal::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Signal::toAttributeCompartmentContents
-;
-
-mapping Interface::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Interface::toAttributeCompartmentContents,
- Interface::toOperationCompartmentContents,
- Interface::toNestedClassifierCompartmentContents
-;
-
-mapping Enumeration::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Enumeration::toEnumerationLiteralCompartmentContents
-;
-
-mapping Class::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Class::toAttributeCompartmentContents,
- Class::toOperationCompartmentContents,
- Class::toNestedClassifierCompartmentContents
-;
-
-mapping PrimitiveType::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- PrimitiveType::toAttributeCompartmentContents,
- PrimitiveType::toOperationCompartmentContents
-;
-
-mapping DataType::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- DataType::toAttributeCompartmentContents,
- DataType::toOperationCompartmentContents
-;
-
-mapping AssociationClass::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping AssociationClass::toOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'OperationCompartment';
-}{
- init {
- result := (self.map fillOperation(node))
- }
-}
-
-mapping AssociationClass::toNestedClassifierCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'SignalCompartment';
-}{
- init {
- result := (self.map fillClass(node))
- }
-}
-
-mapping InstanceSpecification::toSlotCompartmentContents(node : ListCompartment) : Sequence(Node) when {
- node.type = 'SlotCompartment';
-}{
- init {
- result := (self.map fillSlot(node))
- }
-}
-
-mapping Component::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping Component::toOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'OperationCompartment';
-}{
- init {
- result := (self.map fillOperation(node))
- ->union(self.map fillReception(node))
- }
-}
-
-mapping Component::toNestedClassifierCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'SignalCompartment';
-}{
- init {
- result := (self.map fillClass(node))
- ->union(self.map fillInterface(node))
- ->union(self.map fillEnumeration(node))
- ->union(self.map fillPrimitiveType(node))
- ->union(self.map fillDataType(node))
- ->union(self.map fillSignal(node))
- }
-}
-
-mapping Signal::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping Interface::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping Interface::toOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'OperationCompartment';
-}{
- init {
- result := (self.map fillOperation(node))
- ->union(self.map fillReception(node))
- }
-}
-
-mapping Interface::toNestedClassifierCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'SignalCompartment';
-}{
- init {
- result := (self.map fillClass(node))
- ->union(self.map fillInterface(node))
- ->union(self.map fillEnumeration(node))
- ->union(self.map fillPrimitiveType(node))
- ->union(self.map fillDataType(node))
- ->union(self.map fillSignal(node))
- }
-}
-
-mapping Enumeration::toEnumerationLiteralCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'EnumerationCompartment';
-}{
- init {
- result := (self.map fillEnumerationLiteral(node))
- }
-}
-
-mapping Class::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping Class::toOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'OperationCompartment';
-}{
- init {
- result := (self.map fillReception(node))
- ->union(self.map fillOperation(node))
- }
-}
-
-mapping Class::toNestedClassifierCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'SignalCompartment';
-}{
- init {
- result := (self.map fillClass(node))
- ->union(self.map fillInterface(node))
- ->union(self.map fillEnumeration(node))
- ->union(self.map fillPrimitiveType(node))
- ->union(self.map fillDataType(node))
- ->union(self.map fillSignal(node))
- }
-}
-
-mapping PrimitiveType::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping PrimitiveType::toOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'OperationCompartment';
-}{
- init {
- result := (self.map fillOperation(node))
- }
-}
-
-mapping DataType::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping DataType::toOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'OperationCompartment';
-}{
- init {
- result := (self.map fillOperation(node))
- }
-}
-
-mapping uml::Class::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property)->select(association.oclIsUndefined()).map toPropertyInClass(node)->asSequence();
- }
-}
-
-mapping uml::Component::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property)->select(association.oclIsUndefined()).map toPropertyInComponent(node)->asSequence();
- }
-}
-
-mapping uml::Signal::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property)->select(association.oclIsUndefined()).map toPropertyInSignal(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property)->select(association.oclIsUndefined()).map toPropertyInInterface(node)->asSequence();
- }
-}
-
-mapping uml::PrimitiveType::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property)->select(association.oclIsUndefined()).map toPropertyInPrimitiveType(node)->asSequence();
- }
-}
-
-mapping uml::DataType::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property)->select(association.oclIsUndefined()).map toPropertyInDataType(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillClass(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Class).map toClassInClass(node)->asSequence();
- }
-}
-
-mapping uml::Component::fillClass(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Class).map toClassInComponent(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillClass(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Class).map toClassInInterface(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment';
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInClass(node)->asSequence();
- }
-}
-
-mapping uml::Component::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment';
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInComponent(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment';
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInInterface(node)->asSequence();
- }
-}
-
-mapping uml::PrimitiveType::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment';
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInPrimitiveType(node)->asSequence();
- }
-}
-
-mapping uml::DataType::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment';
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInDataType(node)->asSequence();
- }
-}
-
-mapping uml::RedefinableTemplateSignature::fillConnectableElementTemplateParameter(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='TemplateParameterCompartment';
-}{
- init {
- result := self.parameter->selectByKind(ConnectableElementTemplateParameter).map toConnectableElementTemplateParameterInRedefinableTemplateSignature(node)->asSequence();
- }
-}
-
-mapping uml::TemplateSignature::fillOperationTemplateParameter(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='TemplateParameterCompartment';
-}{
- init {
- result := self.parameter->selectByKind(OperationTemplateParameter).map toOperationTemplateParameterInTemplateSignature(node)->asSequence();
- }
-}
-
-mapping uml::RedefinableTemplateSignature::fillClassifierTemplateParameter(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='TemplateParameterCompartment';
-}{
- init {
- result := self.parameter->selectByKind(ClassifierTemplateParameter).map toClassifierTemplateParameterInRedefinableTemplateSignature(node)->asSequence();
- }
-}
-
-mapping uml::RedefinableTemplateSignature::fillTemplateParameter(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='TemplateParameterCompartment';
-}{
- init {
- result := self.parameter->selectByKind(TemplateParameter).map toTemplateParameterInRedefinableTemplateSignature(node)->asSequence();
- }
-}
-
-mapping uml::Enumeration::fillEnumerationLiteral(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='EnumerationCompartment';
-}{
- init {
- result := self.ownedLiteral->selectByKind(EnumerationLiteral).map toEnumerationLiteralInEnumeration(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillReception(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment';
-}{
- init {
- result := self.ownedReception->selectByKind(Reception).map toReceptionInClass(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillReception(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment';
-}{
- init {
- result := self.ownedReception->selectByKind(Reception).map toReceptionInInterface(node)->asSequence();
- }
-}
-
-mapping uml::InstanceSpecification::fillSlot(node : ListCompartment) : Sequence(Node) when {
- node.type='SlotCompartment';
-}{
- init {
- result := self.slot->selectByKind(Slot).map toSlotInInstanceSpecification(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillInterface(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Interface).map toInterfaceInClass(node)->asSequence();
- }
-}
-
-mapping uml::Component::fillInterface(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Interface).map toInterfaceInComponent(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillInterface(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Interface).map toInterfaceInInterface(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillEnumeration(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Enumeration).map toEnumerationInClass(node)->asSequence();
- }
-}
-
-mapping uml::Component::fillEnumeration(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Enumeration).map toEnumerationInComponent(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillEnumeration(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Enumeration).map toEnumerationInInterface(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillPrimitiveType(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(PrimitiveType).map toPrimitiveTypeInClass(node)->asSequence();
- }
-}
-
-mapping uml::Component::fillPrimitiveType(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(PrimitiveType).map toPrimitiveTypeInComponent(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillPrimitiveType(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(PrimitiveType).map toPrimitiveTypeInInterface(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillDataType(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(DataType).map toDataTypeInClass(node)->asSequence();
- }
-}
-
-mapping uml::Component::fillDataType(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(DataType).map toDataTypeInComponent(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillDataType(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(DataType).map toDataTypeInInterface(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillSignal(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Signal).map toSignalInClass(node)->asSequence();
- }
-}
-
-mapping uml::Component::fillSignal(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Signal).map toSignalInComponent(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillSignal(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='SignalCompartment';
-}{
- init {
- result := self.nestedClassifier->selectByKind(Signal).map toSignalInInterface(node)->asSequence();
- }
-}
-
-mapping Property::toPropertyInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Property_ClassAttributeLabel';
-}
-
-mapping Property::toPropertyInComponent(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Property_ComponentAttributeLabel';
-}
-
-mapping Property::toPropertyInSignal(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Property_SignalAttributeLabel';
-}
-
-mapping Property::toPropertyInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Property_InterfaceAttributeLabel';
-}
-
-mapping Property::toPropertyInPrimitiveType(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Property_PrimitiveTypeAttributeLabel';
-}
-
-mapping Property::toPropertyInDataType(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Property_DataTypeAttributeLabel';
-}
-
-mapping Class::toClassInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Class_ClassNestedClassifierLabel';
-}
-
-mapping Class::toClassInComponent(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Class_ComponentNestedClassifierLabel';
-}
-
-mapping Class::toClassInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Class_InterfaceNestedClassifierLabel';
-}
-
-mapping Operation::toOperationInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_ClassOperationLabel';
-}
-
-mapping Operation::toOperationInComponent(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_ComponentOperationLabel';
-}
-
-mapping Operation::toOperationInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_InterfaceOperationLabel';
-}
-
-mapping Operation::toOperationInPrimitiveType(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_PrimitiveTypeOperationLabel';
-}
-
-mapping Operation::toOperationInDataType(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_DataTypeOperationLabel';
-}
-
-mapping ConnectableElementTemplateParameter::toConnectableElementTemplateParameterInRedefinableTemplateSignature(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'ConnectableElementTemplateParameter_TemplateParameterLabel';
-}
-
-mapping OperationTemplateParameter::toOperationTemplateParameterInTemplateSignature(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'OperationTemplateParameter_TemplateParameterLabel';
-}
-
-mapping ClassifierTemplateParameter::toClassifierTemplateParameterInRedefinableTemplateSignature(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'ClassifierTemplateParameter_TemplateParameterLabel';
-}
-
-mapping TemplateParameter::toTemplateParameterInRedefinableTemplateSignature(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'TemplateParameter_TemplateParameterLabel';
-}
-
-mapping EnumerationLiteral::toEnumerationLiteralInEnumeration(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'EnumerationLiteral_LiteralLabel';
-}
-
-mapping Reception::toReceptionInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Reception_ReceptionLabel';
-}
-
-mapping Reception::toReceptionInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Reception_InterfaceReceptionLabel';
-}
-
-mapping Slot::toSlotInInstanceSpecification(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Slot_SlotLabel';
-}
-
-mapping Interface::toInterfaceInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Interface_ClassNestedClassifierLabel';
-}
-
-mapping Interface::toInterfaceInComponent(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Interface_ComponentNestedClassifierLabel';
-}
-
-mapping Interface::toInterfaceInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Interface_InterfaceNestedClassifierLabel';
-}
-
-mapping Enumeration::toEnumerationInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Enumeration_ClassNestedClassifierLabel';
-}
-
-mapping Enumeration::toEnumerationInComponent(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Enumeration_ComponentNestedClassifierLabel';
-}
-
-mapping Enumeration::toEnumerationInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Enumeration_InterfaceNestedClassifierLabel';
-}
-
-mapping PrimitiveType::toPrimitiveTypeInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'PrimitiveType_ClassNestedClassifierLabel';
-}
-
-mapping PrimitiveType::toPrimitiveTypeInComponent(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'PrimitiveType_ComponentNestedClassifierLabel';
-}
-
-mapping PrimitiveType::toPrimitiveTypeInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'PrimitiveType_InterfaceNestedClassifierLabel';
-}
-
-mapping DataType::toDataTypeInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'DataType_ClassNestedClassifierLabel';
-}
-
-mapping DataType::toDataTypeInComponent(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'DataType_ComponentNestedClassifierLabel';
-}
-
-mapping DataType::toDataTypeInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'DataType_InterfaceNestedClassifierLabel';
-}
-
-mapping Signal::toSignalInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Signal_ClassNestedClassifierLabel';
-}
-
-mapping Signal::toSignalInComponent(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Signal_ComponentNestedClassifierLabel';
-}
-
-mapping Signal::toSignalInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Signal_InterfaceNestedClassifierLabel';
-}
-
-
-
-/******* Edges ********/
-
-
-mapping UMLConnector::toPapyrusConnector() : Connector inherits Connector::toPapyrusConnector when {
- self.type = '' and (
- /*self.element.oclIsTypeOf(AssociationClass)or*/
- self.element.oclIsTypeOf(Association)or
- self.element.oclIsTypeOf(Association)or
- self.element.oclIsTypeOf(InterfaceRealization)or
- self.element.oclIsTypeOf(Substitution)or
- self.element.oclIsTypeOf(Realization)or
- self.element.oclIsTypeOf(Abstraction)or
- self.element.oclIsTypeOf(Usage)or
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(ElementImport)or
- self.element.oclIsTypeOf(PackageImport)or
- self.element.oclIsTypeOf(PackageMerge)or
- self.element.oclIsTypeOf(ProfileApplication)or
- self.element.oclIsTypeOf(TemplateBinding)or
- self.element.oclIsTypeOf(GeneralizationSet)or
- self.element.oclIsTypeOf(InstanceSpecification)or
- self.element.oclIsTypeOf(InformationFlow)
-
- )
-}{
- result.styles := self.map toFontStyle();
-}
-
-mapping UMLConnector::toGeneralizationConnector() : Connector inherits Connector::toPapyrusConnector when {
- self.type='' and self.element.oclIsTypeOf(Generalization)
-}{
- result.children->forEach(element){
- element.type:='Generalization_StereotypeLabel'
- };
- result.styles := self.map toFontStyle();
- result.sourceAnchor := object IdentityAnchor{};
- result.targetAnchor := object IdentityAnchor{};
-
-}
-
-mapping UMLConnector::toCommentLink() : Connector inherits Connector::toCommentLink when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Comment) or
- self.target.element.oclIsKindOf(Comment)
- )
-}{
- result.type :='Comment_AnnotatedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-mapping UMLConnector::toConstraintLink() : Connector inherits Connector::toPapyrusConnector when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Constraint) or
- self.target.element.oclIsKindOf(Constraint)
- )
-}{
- result.type :='Constraint_ConstrainedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-
-/* Context Links are not supported in RSA Class Diagrams */
-/*
-mapping UMLConnector::toContextLink() : Connector inherits Connector::toPapyrusConnector when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Constraint) or
- self.target.element.oclIsKindOf(Constraint)
- )
-}{
- result.type :='Constraint_ContextEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
- result.children += object DecorationNode {
- type := 'Constraint_KeywordLabel';
- layoutConstraint := object Location {
- y := 15;
- }
- }
-}
-*/
-
-/****** Element Type queries ******/
-
-query View::getNodeType(element : Element) : String {
- return
- if element.oclIsTypeOf(Dependency) then 'Dependency_Shape'
- elif element.oclIsTypeOf(AssociationClass) then 'AssociationClass_Shape'
- elif element.oclIsTypeOf(Association) then 'Association_Shape'
- elif element.oclIsTypeOf(InstanceSpecification) then 'InstanceSpecification_Shape'
- elif element.oclIsTypeOf(Component) then 'Component_Shape'
- elif element.oclIsTypeOf(Signal) then 'Signal_Shape'
- elif element.oclIsTypeOf(Interface) then 'Interface_Shape'
- elif element.oclIsTypeOf(Model) then 'Model_Shape'
- elif element.oclIsTypeOf(Enumeration) then 'Enumeration_Shape'
- elif element.oclIsTypeOf(Package) then 'Package_Shape'
- elif element.oclIsTypeOf(InformationItem) then 'InformationItem_Shape'
- elif element.oclIsTypeOf(Class) then 'Class_Shape'
- elif element.oclIsTypeOf(PrimitiveType) then 'PrimitiveType_Shape'
- elif element.oclIsTypeOf(DataType) then 'DataType_Shape'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_PackagedElementShape'
- elif element.oclIsTypeOf(Comment) then 'Comment_Shape'
- elif element.oclIsTypeOf(Diagram) then 'Diagram_ShortcutShape'
- elif element.oclIsTypeOf(DurationObservation) then 'DurationObservation_Shape'
- elif element.oclIsTypeOf(TimeObservation) then 'TimeObservation_Shape'
- elif element.oclIsKindOf(NamedElement) then 'NamedElement_DefaultShape'
- else self.fail()
- endif;
-}
-
-
-query View::getDecorationType(element : Element) : String{
- var res := self.doGetDecorationType(element);
-
- /*log('Get papyrus ID for'+ element.oclAsType(EObject).eClass().name+', '+self.type);
-
- log(res);
-
- if self.container().oclIsKindOf(Node) then
- log('IsNode')
- else
- log('IsEdge')
- endif;*/
-
- return res;
-}
-
-query View::doGetDecorationType(element : Element) : String{
-
- return if self.container().oclIsKindOf(Node) then {
- return if element.oclIsKindOf(AssociationClass) then
- return switch {
- case (self.type = 'Name') 'AssociationClass_NameLabel';
- case (self.type = 'AttributeCompartment') 'AssociationClass_AttributeCompartment';
- case (self.type = 'OperationCompartment') 'AssociationClass_OperationCompartment';
- case (self.type = 'SignalCompartment') 'AssociationClass_NestedClassifierCompartment';
- }
- elif element.oclIsKindOf(InstanceSpecification) then
- return switch {
- case (self.type = 'Name') 'InstanceSpecification_NameLabel';
- case (self.type = 'SlotCompartment') 'InstanceSpecification_SlotCompartment';
- }
- elif element.oclIsKindOf(Component) then
- return switch {
- case (self.type = 'Name') 'Component_NameLabel';
- case (self.type = 'AttributeCompartment') 'Component_AttributeCompartment';
- case (self.type = 'OperationCompartment') 'Component_OperationCompartment';
- case (self.type = 'SignalCompartment') 'Component_NestedClassifierCompartment';
- }
- elif element.oclIsKindOf(Signal) then
- return switch {
- case (self.type = 'Name') 'Signal_NameLabel';
- case (self.type = 'AttributeCompartment') 'Signal_AttributeCompartment';
- }
- elif element.oclIsKindOf(Interface) then
- return switch {
- case (self.type = 'Name') 'Interface_NameLabel';
- case (self.type = 'AttributeCompartment') 'Interface_AttributeCompartment';
- case (self.type = 'OperationCompartment') 'Interface_OperationCompartment';
- case (self.type = 'SignalCompartment') 'Interface_NestedClassifierCompartment';
- }
- elif element.oclIsKindOf(Model) then
- return switch {
- case (self.type = 'Name') 'Model_NameLabel';
- case (self.type = 'PackageContents') 'Model_PackagedElementCompartment';
- }
- elif element.oclIsKindOf(Enumeration) then
- return switch {
- case (self.type = 'Name') 'Enumeration_NameLabel';
- case (self.type = 'EnumerationCompartment') 'Enumeration_LiteralCompartment';
- }
- elif element.oclIsKindOf(Package) then
- return switch {
- case (self.type = 'Name') 'Package_NameLabel';
- case (self.type = 'PackageContents') 'Package_PackagedElementCompartment';
- }
- elif element.oclIsKindOf(InformationItem) then
- return switch {
- case (self.type = 'Name') 'InformationItem_NameLabel';
-
- }
- elif element.oclIsKindOf(Class) then
- return switch {
- case (self.type = 'Name') 'Class_NameLabel';
- case (self.type = 'AttributeCompartment') 'Class_AttributeCompartment';
- case (self.type = 'OperationCompartment') 'Class_OperationCompartment';
- case (self.type = 'SignalCompartment') 'Class_NestedClassifierCompartment';
- }
- elif element.oclIsKindOf(PrimitiveType) then
- return switch {
- case (self.type = 'Name') 'PrimitiveType_NameLabel';
- case (self.type = 'AttributeCompartment') 'PrimitiveType_AttributeCompartment';
- case (self.type = 'OperationCompartment') 'PrimitiveType_OperationCompartment';
- }
- elif element.oclIsKindOf(DataType) then
- return switch {
- case (self.type = 'Name') 'DataType_NameLabel';
- case (self.type = 'AttributeCompartment') 'DataType_AttributeCompartment';
- case (self.type = 'OperationCompartment') 'DataType_OperationCompartment';
- }
- elif element.oclIsKindOf(Constraint) then
- return switch {
- case (self.type = 'Name') 'Constraint_NameLabel';
-
- }
- elif element.oclIsKindOf(Diagram) then
- return switch {
- case (self.type = 'Name') 'Diagram_NameLabel';
-
- }
- elif element.oclIsKindOf(DurationObservation) then
- return switch {
- case (self.type = 'Name') 'DurationObservation_FloatingNameLabel';
-
- }
- elif element.oclIsKindOf(TimeObservation) then
- return switch {
- case (self.type = 'Name') 'TimeObservation_FloatingNameLabel';
-
- }
- elif element.oclIsKindOf(NamedElement) then
- return switch {
- case (self.type = 'Name') 'NamedElement_NameLabel';
- }
- endif
- } else {
- return if element.oclIsKindOf(Association) then
- return switch {
- case (self.type='Name') 'Association_NameLabel';
- case (self.type = 'KindLabel') 'Association_StereotypeLabel';
- case (self.type = 'NameLabel') 'Association_NameLabel';
- }
- elif element.oclIsKindOf(Property) then
- return if element.oclAsType(Property).association.oclIsTypeOf(Association) then
- return switch {
- case (self.type = 'ToRoleLabel') 'Association_TargetRoleLabel';
-
- case (self.type = 'FromRoleLabel') 'Association_SourceRoleLabel';
-
- case (self.type = 'FromMultiplicityLabel') 'Association_SourceMultiplicityLabel';
-
- case (self.type = 'ToMultiplicityLabel') 'Association_TargetMultiplicityLabel';
- }
- elif element.oclAsType(Property).association.oclIsTypeOf(AssociationClass) then
- return switch {
- case (self.type = 'ToRoleLabel') 'AssociationClass_TargetRoleLabel';
- case (self.type = 'FromRoleLabel') 'AssociationClass_SourceRoleLabel';
- }
- endif
- elif element.oclIsKindOf(Generalization) then
- return switch {
-
- case (self.type = 'KindLabel') 'Generalization_StereotypeLabel';
- }
-
- elif element.oclIsKindOf(InterfaceRealization) then
- return switch {
- case (self.type='Name') 'InterfaceRealization_NameLabel';
- case (self.type = 'KindLabel') 'InterfaceRealization_StereotypeLabel';
- case (self.type = 'NameLabel') 'InterfaceRealization_NameLabel';
- }
-
- elif element.oclIsKindOf(Substitution) then
- return switch {
- case (self.type='Name') 'Substitution_NameLabel';
- case (self.type = 'KindLabel') 'Substitution_StereotypeLabel';
- case (self.type = 'NameLabel') 'Substitution_NameLabel';
- }
-
- elif element.oclIsKindOf(Realization) then
- return switch {
- case (self.type='Name') 'Realization_NameLabel';
- case (self.type = 'KindLabel') 'Realization_StereotypeLabel';
- case (self.type = 'NameLabel') 'Realization_NameLabel';
- }
-
- elif element.oclIsKindOf(Abstraction) then
- return switch {
- case (self.type='Name') 'Abstraction_NameLabel';
- case (self.type = 'NameLabel') 'Abstraction_NameLabel';
- case (self.type = 'KindLabel') 'Abstraction_StereotypeLabel';
- }
-
- elif element.oclIsKindOf(Usage) then
- return switch {
- case (self.type='Name') 'Usage_NameLabel';
- case (self.type = 'NameLabel') 'Usage_NameLabel';
- case (self.type = 'KindLabel') 'Usage_StereotypeLabel';
- }
-
- elif element.oclIsKindOf(Dependency) then
- return switch {
- case (self.type='Name') 'Dependency_NameLabel';
- case (self.type = 'NameLabel') 'Dependency_NameLabel';
- case (self.type = 'KindLabel') 'Dependency_StereotypeLabel';
- }
-
- elif element.oclIsKindOf(ElementImport) then
- return switch {
-
-
- case (self.type = 'KindLabel') 'ElementImport_StereotypeLabel';
- }
-
- elif element.oclIsKindOf(PackageImport) then
- return switch {
-
- case (self.type = 'KindLabel') 'PackageImport_StereotypeLabel';
- }
-
- elif element.oclIsKindOf(PackageMerge) then
- return switch {
-
- case (self.type = 'KindLabel') 'PackageMerge_StereotypeLabel';
- }
-
- elif element.oclIsKindOf(TemplateBinding) then
- return switch {
-
-
- case (self.type = 'KindLabel') 'TemplateBinding_StereotypeLabel';
- }
-
- elif element.oclIsKindOf(GeneralizationSet) then
- return switch {
-
-
- case (self.type = 'KindLabel') 'GeneralizationSet_StereotypeLabel';
- }
-
- elif element.oclIsKindOf(InformationFlow) then
- return switch {
-
-
- case (self.type = 'KindLabel') 'InformationFlow_StereotypeLabel';
- }
- endif;
- } endif;
-}
-
-
-query View::getEdgeType(element : Element) : String {
- return if self.type = 'Reference' then '' /* Context and Constraint Links handled separately */
- elif element.oclIsTypeOf(AssociationClass) then 'AssociationClass_Edge'
- elif element.oclIsTypeOf(Association) then 'Association_Edge'
- elif element.oclIsTypeOf(Association) then 'Association_BranchEdge'
- elif element.oclIsTypeOf(Generalization) then 'Generalization_Edge'
- elif element.oclIsTypeOf(InterfaceRealization) then 'InterfaceRealization_Edge'
- elif element.oclIsTypeOf(Substitution) then 'Substitution_Edge'
- elif element.oclIsTypeOf(Realization) then 'Realization_Edge'
- elif element.oclIsTypeOf(Abstraction) then 'Abstraction_Edge'
- elif element.oclIsTypeOf(Usage) then 'Usage_Edge'
- elif element.oclIsTypeOf(Dependency) then 'Dependency_Edge'
- elif element.oclIsTypeOf(Dependency) then 'Dependency_BranchEdge'
- elif element.oclIsTypeOf(ElementImport) then 'ElementImport_Edge'
- elif element.oclIsTypeOf(PackageImport) then 'PackageImport_Edge'
- elif element.oclIsTypeOf(PackageMerge) then 'PackageMerge_Edge'
- elif element.oclIsTypeOf(ProfileApplication) then 'ProfileApplication_Edge'
- elif element.oclIsTypeOf(Comment) then'Comment_AnnotatedElementEdge'
- elif element.oclIsTypeOf(TemplateBinding) then 'TemplateBinding_Edge'
- elif element.oclIsTypeOf(GeneralizationSet) then 'GeneralizationSet_Edge'
- elif element.oclIsTypeOf(InstanceSpecification) then 'InstanceSpecification_Edge'
- elif element.oclIsTypeOf(InformationFlow) then 'InformationFlow_Edge'
- else self.fail()
- endif;
-}
-
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAComponentDiagram.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAComponentDiagram.qvto
deleted file mode 100644
index a05d1ac64dc..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAComponentDiagram.qvto
+++ /dev/null
@@ -1,307 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2016 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 465656
- *****************************************************************************/
-import RSAToPapyrus;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-transformation RSAComponentDiagram(inout semantics : uml, out graphics : notation, in param : config) extends RSAToPapyrus;
-
-query View::getDiagramType() : String{
- return 'PapyrusUMLComponentDiagram';
-}
-
-mapping notation::Diagram::toPapyrusComponentDiagram() : notation::Diagram inherits Diagram::toPapyrusDiagram when {
- self.type = 'Component'
-}{
-
-}
-
-mapping Node::toNode() : Node disjuncts
- UMLShape::toPapyrusShape,
- UMLShapeCompartment::toStructureCompartment,
- BasicSemanticCompartment::toListCompartment,
- BasicDecorationNode::toConnectorLabel,
- BasicDecorationNode::toLabel
- //TODO: Disjunct nodes mapping
-;
-
-mapping Edge::toEdge() : Edge disjuncts
- UMLConnector::toPapyrusConnector
- //TODO: Disjunct edges mapping
-;
-
-mapping UMLShapeCompartment::toStructureCompartment() : DecorationNode inherits UMLShapeCompartment::toAbstractStructureCompartment when {
- self.type = 'StructureCompartment' or self.type = 'PackageContents' and not self.getType().oclIsUndefined();
-}{
-
-}
-
-
-/***** Nodes **********/
-
-mapping UMLShape::toPapyrusShape() : Shape inherits Shape::toPapyrusShape when {
- self.type = '' and not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(Component)or
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(Package)or
- self.element.oclIsTypeOf(Port)or
- self.element.oclIsTypeOf(Comment)or
- self.element.oclIsTypeOf(Interface)or
- self.element.oclIsTypeOf(Model)or
- self.element.oclIsTypeOf(Property)or
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(Operation)or
- self.element.oclIsTypeOf(Reception)
- )
-}{
-
-}
-
-
-/****** Connector Labels ******/
-
-mapping BasicDecorationNode::toConnectorLabel() : DecorationNode inherits Node::toPapyrusConnectorLabel when {
- not self.getType().oclIsUndefined() and (
- self.type = 'ToMultiplicityLabel' or
- self.type = 'ToRoleLabel' or
- self.type = 'FromMultiplicityLabel' or
- self.type = 'FromRoleLabel' or
- self.type = 'NameLabel' or
- self.type = 'KindLabel'
- )
-}{}
-
-/****** Compartments *******/
-
-mapping BasicDecorationNode::toLabel() : DecorationNode inherits Node::toPapyrusNode when {
- not self.getType().oclIsUndefined() and
- self.element.oclIsKindOf(uml::NamedElement) and
- self.type = 'Name'
-}{}
-
-mapping BasicSemanticCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- self.type.endsWith('Compartment') and not self.getType().oclIsUndefined()
-}{
- result.children := self.findElement().map toContents(self);
-}
-
-mapping Element::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Interface::toContents
-;
-
-mapping Interface::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Interface::toAttributeCompartmentContents,
- Interface::toOperationCompartmentContents
-;
-
-mapping Interface::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping Interface::toOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'ReceptionCompartment';
-}{
- init {
- result := (self.map fillOperation(node))
- ->union(self.map fillReception(node))
- }
-}
-
-mapping uml::Interface::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property).map toPropertyInInterface(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='ReceptionCompartment';
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInInterface(node)->asSequence();
- }
-}
-
-mapping uml::Interface::fillReception(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='ReceptionCompartment';
-}{
- init {
- result := self.ownedReception->selectByKind(Reception).map toReceptionInInterface(node)->asSequence();
- }
-}
-
-mapping Property::toPropertyInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Property_InterfaceAttributeLabel';
-}
-
-mapping Operation::toOperationInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_InterfaceOperationLabel';
-}
-
-mapping Reception::toReceptionInInterface(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Reception_InterfaceReceptionLabel';
-}
-
-
-
-/******* Edges ********/
-
-
-mapping UMLConnector::toPapyrusConnector() : Connector inherits Connector::toPapyrusConnector when {
- self.type = '' and
- not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(Usage)or
- self.element.oclIsTypeOf(InterfaceRealization)or
- self.element.oclIsTypeOf(Generalization)or
- self.element.oclIsTypeOf(Substitution)or
- self.element.oclIsTypeOf(Manifestation)or
- self.element.oclIsTypeOf(ComponentRealization)or
- self.element.oclIsTypeOf(Abstraction)or
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(Dependency)
- )
-}{
- result.styles := self.map toFontStyle();
-}
-
-/****** Element Type queries ******/
-
-query View::getNodeType(element : Element) : String {
- return
- if element.oclIsTypeOf(Component) then 'Component_PackagedElementShape'
- elif element.oclIsTypeOf(Dependency) then 'Dependency_Shape'
- elif element.oclIsTypeOf(Package) then 'Package_Shape'
- elif element.oclIsTypeOf(Port) then 'Port_Shape'
- elif element.oclIsTypeOf(Comment) then 'Comment_Shape'
- elif element.oclIsTypeOf(Interface) then 'Interface_ClassifierShape'
- elif element.oclIsTypeOf(Model) then 'Model_Shape'
- elif element.oclIsTypeOf(Property) then 'Property_InterfaceAttributeLabel'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_Shape'
- elif element.oclIsTypeOf(Operation) then 'Operation_InterfaceOperationLabel'
- elif element.oclIsTypeOf(Reception) then 'Reception_InterfaceReceptionLabel'
- else self.fail()
- endif;
-}
-
-
-query View::getDecorationType(element : Element) : String{
- return self.doGetDecorationType(element);
-
-}
-
-query View::doGetDecorationType(element : Element) : String{
- return if self.container().oclIsKindOf(Node) then {
- return if element.oclIsTypeOf(Component) then
- return switch {
- case (self.type = 'Name') 'Component_NameLabel';
- case (self.type = 'StructureCompartment') 'Component_StructureCompartment';
- }
- elif element.oclIsTypeOf(Package) then
- return switch {
- case (self.type = 'Name') 'Package_NameLabel';
- case (self.type = 'PackageContents') 'Package_PackagedElementCompartment';
- }
- elif element.oclIsTypeOf(Port) then
- return switch {
- case (self.type = 'Name') 'Port_NameLabel';
-
- }
- elif element.oclIsTypeOf(Interface) then
- return switch {
- case (self.type = 'Name') 'Interface_ClassifierNameLabel';
- case (self.type = 'AttributeCompartment') 'Interface_AttributeCompartment';
- case (self.type = 'ReceptionCompartment') 'Interface_OperationCompartment';
- }
- elif element.oclIsTypeOf(Model) then
- return switch {
- case (self.type = 'Name') 'Model_NameLabel';
- case (self.type = 'StructureCompartment') 'Model_PackagedElementCompartment';
- }
- elif element.oclIsTypeOf(Constraint) then
- return switch {
- case (self.type = 'Name') 'Constraint_NameLabel';
-
- }
-
- endif
- } else {
- return if element.oclIsTypeOf(Generalization) then
- return switch {
-
- case (self.type = 'KindLabel') 'Generalization_StereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Substitution) then
- return switch {
- case (self.type='Name') 'Substitution_NameLabel';
- case (self.type = 'NameLabel') 'Substitution_NameLabel';
- case (self.type = 'KindLabel') 'Substitution_StereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Manifestation) then
- return switch {
- case (self.type='Name') 'Manifestation_NameLabel';
- case (self.type = 'NameLabel') 'Manifestation_NameLabel';
- case (self.type = 'KindLabel') 'Manifestation_StereotypeLabel';
- }
-
- elif element.oclIsTypeOf(ComponentRealization) then
- return switch {
- case (self.type='Name') 'ComponentRealization_NameLabel';
- case (self.type = 'NameLabel') 'ComponentRealization_NameLabel';
- case (self.type = 'KindLabel') 'ComponentRealization_StereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Abstraction) then
- return switch {
- case (self.type='Name') 'Abstraction_NameLabel';
- case (self.type = 'NameLabel') 'Abstraction_NameLabel';
- case (self.type = 'KindLabel') 'Abstraction_StereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Dependency) then
- return switch {
- case (self.type='Name') 'Dependency_NameLabel';
- case (self.type = 'NameLabel') 'Dependency_NameLabel';
- case (self.type = 'KindLabel') 'Dependency_StereotypeLabel';
- }
-
- endif
- } endif;
-}
-
-
-query View::getEdgeType(element : Element) : String {
- return
- if element.oclIsTypeOf(Usage) then 'Usage_Edge'
- elif element.oclIsTypeOf(InterfaceRealization) then 'InterfaceRealization_Edge'
- elif element.oclIsTypeOf(Generalization) then 'Generalization_Edge'
- elif element.oclIsTypeOf(Substitution) then 'Substitution_Edge'
- elif element.oclIsTypeOf(Manifestation) then 'Manifestation_Edge'
- elif element.oclIsTypeOf(ComponentRealization) then 'ComponentRealization_Edge'
- elif element.oclIsTypeOf(Abstraction) then 'Abstraction_Edge'
- elif element.oclIsTypeOf(Dependency) then 'Dependency_Edge'
- elif element.oclIsTypeOf(Dependency) then 'Dependency_BranchEdge'
- else self.fail()
- endif;
-}
-
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAModelToPapyrus.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAModelToPapyrus.qvto
deleted file mode 100644
index cb87ed4a649..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAModelToPapyrus.qvto
+++ /dev/null
@@ -1,129 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2016 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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
- *****************************************************************************/
-import org.eclipse.papyrus.m2m.qvto.UI;
-import org.eclipse.papyrus.m2m.qvto.NotationTypes;
-import libraries.EclipseUI;
-import org.eclipse.papyrus.migration.rsa.RTMappings;
-import org.eclipse.papyrus.m2m.qvto.EMFResource;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype sash "strict" uses 'http://www.eclipse.org/papyrus/0.7.0/sashdi';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-/**
-* Transformation rules for importing an RSA Semantic model into Papyrus (SashModel + cleanup semantics)
-*/
-transformation RSAModelToPapyrus(inout semantics : uml, inout graphics : notation, out di : sash, in param : config);
-
-
-main() {
- assert fatal (not semantics.rootObjects()[uml::Element]->isEmpty()) with log('Cannot find root uml::Element');
-
- //semantics.objectsOfType(Element).map deleteSourceDiagrams(); //TODO programatically to clean up everything (Avoid memory leaks)
-
- if param.rootObjects()[Config]->any(true).convertOpaqueExpressionToLiteralString then
- semantics.objectsOfType(OpaqueExpression).map convertToLiteralString()
- endif;
-
- semantics.objectsOfType(OpaqueExpression).map fixLanguage();
- semantics.objectsOfType(Stereotype).map fixBaseProperties(); //Bug 492872: Multiplicity change between UML 2.3 (RSA) and 2.4+ (Papyrus)
-}
-
-//If the OpaqueExpression doesn't have a language, and a single body, replace it with a LiteralString
-mapping inout OpaqueExpression::convertToLiteralString() : LiteralString when {
- (self.language->size() = 0 and self.body->size() <= 1) or
- (self.language->size() = 1 and self.body->size() <= 1 and
- self.language->at(1).isEmpty()
- )
-} {
- init {
- result := self.map toLiteralString() //Blackbox cast: Transform OpaqueExpression to LiteralString (Preserve incoming references and compatible features)
- }
-
- result.value := if self.body->size() = 0 then null else self.body->at(1) endif;
-
- self.oclAsType(EObject).forceDelete(true); //Destroy the source OpaqueExpression
- worked(1);
-}
-
-intermediate class Opaque {
- language: String;
- body: String;
-}
-
-mapping inout OpaqueExpression::fixLanguage() when {
- (self.language->size() > 1 or self.body->size() > 1) and
- (self.language->exists(isEmpty()) or self.language.size() <> self.body.size())
-} {
- //Replace empty languages by "Undefined" (In Papyrus, "Empty" is interpreted as "OCL", which is the default. This is not the case in RSA, where "Empty" means "Undefined")
-
- var maxSize : Integer := self.language->size().max(self.body->size());
-
- var newLanguages : OrderedSet(Opaque) := OrderedSet{};
- var i : Integer = 1;
-
- while(i <= maxSize) {
- var lang : String := self.language->at(i);
- var body : String := self.body->at(i);
-
- var newLanguage := object Opaque{};
- newLanguage.language := if lang.oclIsInvalid() or lang.isEmpty() then 'Undefined' else lang endif;
- newLanguage.body := if body.oclIsInvalid() or body.isEmpty() then '' else body endif;
-
- newLanguages += newLanguage;
-
- i := i+1;
- };
-
- self.language := newLanguages.language;
- self.body := newLanguages.body;
-}
-
-
-//Bug 492872: Multiplicity change between UML 2.3 (RSA) and 2.4+ (Papyrus)
-mapping inout Stereotype::fixBaseProperties() when {
- self.baseProperties()->size() > 1
-}{
- self.baseProperties().map fixMultiplicity();
-}
-
-mapping inout Property::fixMultiplicity() {
- if (not self.lowerValue.oclIsUndefined()) and self.lowerValue.oclIsKindOf(LiteralInteger) then
- self.lowerValue.oclAsType(LiteralInteger).value := 0
- else
- self.lowerValue := object LiteralInteger {
- value := 0;
- }
- endif;
-
- if (not self.upperValue.oclIsUndefined()) and self.upperValue.oclIsKindOf(LiteralUnlimitedNatural) then
- self.upperValue.oclAsType(LiteralUnlimitedNatural).value := 1
- elif (not self.upperValue.oclIsUndefined()) and self.upperValue.oclIsKindOf(LiteralInteger) then
- self.upperValue.oclAsType(LiteralInteger).value := 1
- else
- self.upperValue := object LiteralUnlimitedNatural {
- value := 1;
- }
- endif;
-}
-
-query String::isEmpty() : Boolean {
- return self.oclIsUndefined() or self = '';
-}
-
-query Stereotype::baseProperties() : Set(Property){
- return self.ownedAttribute->select(p | p.name.startsWith("base_") and p.type.oclIsTypeOf(Class)) //Typed with a UML Metaclass
-}
-
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAProfileDiagram.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAProfileDiagram.qvto
deleted file mode 100644
index 2b96a246166..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAProfileDiagram.qvto
+++ /dev/null
@@ -1,504 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2016 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 465656
- *****************************************************************************/
-import RSAToPapyrus;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype sash "strict" uses 'http://www.eclipse.org/papyrus/0.7.0/sashdi';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-transformation RSAProfileDiagram(inout semantics : uml, inout graphics : notation, out di : sash, in param : config);
-
-main() {
- //RSA uses Classes, whereas Papyrus uses DataTypes. The Semantics is the same
- //semantics.objectsOfType(Class)->map toDatatype(); //Disabled 2014/04/28. Papyrus now properly supports Classes in Profile Diagrams
- //we generate our diagrams
- semantics.rootObjects()[uml::Profile]
- ->selectByType(uml::Profile) /* Workaround for Bug 445083/445198 */
- ->map toOwnedDiagrams();
-}
-
-mapping notation::Diagram::generateDiagram() : notation::Diagram inherits Diagram::toPapyrusDiagram when {
- self.findElement().oclIsTypeOf(Profile)
-}{
- end {
- //POST ACTION UPDATE meta class to import element
- semantics.objectsOfType(UMLConnector)->map toContextLink();
- graphics.objectsOfType(Shape)->select(type = 'Comment_Shape').map addCommentDecoration();
- graphics.objectsOfType(Shape)->select(type = 'Constraint_PackagedElementShape').map addConstraintDecoration();
- }
-}
-
-mapping inout Shape::addCommentDecoration() when {
- self.type = 'Comment_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Comment_BodyLabel'; //Comment body
- }
-
-}
-
-mapping inout Shape::addConstraintDecoration() when {
- self.type = 'Constraint_PackagedElementShape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Constraint_BodyLabel'; //Constraint specification
- }
-
-}
-
-query View::getDiagramType() : String{
- return 'PapyrusUMLProfileDiagram';
-}
-
-mapping UMLConnector::toContextLink() : notation::Connector inherits Connector::toPapyrusConnector when {
- self.type = 'Reference' and self.source.element.oclIsKindOf(Constraint) and self.target.element.oclIsKindOf(Namespace)
-}{
- result.type := 'Constraint_ContextEdge';
- self.diagram.map generateDiagram().edges += result;
-}
-
-mapping notation::Diagram::toPapyrusProfileDiagram() : notation::Diagram inherits Diagram::toPapyrusDiagram when {
- self.type = 'Profile'
-}{
-
-}
-
-mapping Node::toNode() : Node disjuncts
- UMLShape::toPapyrusShape,
- UMLShapeCompartment::toStructureCompartment,
- BasicSemanticCompartment::toListCompartment,
- BasicDecorationNode::toConnectorLabel,
- BasicDecorationNode::toLabel
- //TODO: Disjunct nodes mapping
-;
-
-mapping Edge::toEdge() : Edge disjuncts
- UMLConnector::toPapyrusConnector
- //TODO: Disjunct edges mapping
-;
-
-mapping UMLShapeCompartment::toStructureCompartment() : DecorationNode inherits UMLShapeCompartment::toAbstractStructureCompartment when {
- self.type = 'StructureCompartment' or self.type = 'PackageContents' and not self.getType().oclIsUndefined();
-}{
-
-}
-
-
-/***** Nodes **********/
-
-mapping UMLShape::toPapyrusShape() : Shape inherits Shape::toPapyrusShape when {
- self.type = '' and not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(Association)or
- self.element.oclIsTypeOf(Stereotype)or
- self.element.oclIsTypeOf(Class)or
- self.element.oclIsTypeOf(Class)or
- self.element.oclIsTypeOf(Comment)or
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(Model)or
- self.element.oclIsTypeOf(Profile)or
- self.element.oclIsTypeOf(Package)or
- self.element.oclIsTypeOf(Enumeration)or
- self.element.oclIsTypeOf(PrimitiveType)or
- self.element.oclIsTypeOf(DataType)or
- self.element.oclIsTypeOf(Diagram)
- )
-}{
-
-}
-
-
-/****** Connector Labels ******/
-
-mapping BasicDecorationNode::toConnectorLabel() : DecorationNode inherits Node::toPapyrusConnectorLabel when {
- not self.getType().oclIsUndefined() and (
- self.type = 'ToMultiplicityLabel' or
- self.type = 'ToRoleLabel' or
- self.type = 'FromMultiplicityLabel' or
- self.type = 'FromRoleLabel' or
- self.type = 'NameLabel' or
- self.type = 'KindLabel'
- )
-};
-
-/****** Compartments *******/
-
-mapping BasicDecorationNode::toLabel() : DecorationNode inherits Node::toPapyrusNode when {
- not self.getType().oclIsUndefined() and
- self.element.oclIsKindOf(uml::NamedElement) and
- self.type = 'Name'
-};
-
-mapping BasicSemanticCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- self.type.endsWith('Compartment') and not self.getType().oclIsUndefined()
-}{
- result.children := self.findElement().map toContents(self);
-}
-
-mapping Element::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Stereotype::toContents,
- Class::toContents,
- Enumeration::toContents,
- DataType::toContents
-;
-
-mapping Stereotype::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Stereotype::toAttributeCompartmentContents,
- Stereotype::toOperationCompartmentContents
-;
-
-mapping Class::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Class::toOperationCompartmentContents,
- Class::toAttributeCompartmentContents
-;
-
-mapping Enumeration::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Enumeration::toEnumerationEnumerationLiteralContents
-;
-
-mapping DataType::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- DataType::toDataTypeAttributeCompartmentContents,
- DataType::toDataTypeOperationCompartmentContents
-;
-
-mapping Stereotype::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping Stereotype::toOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'OperationCompartment';
-}{
- init {
- result := (self.map fillOperation(node))
- }
-}
-
-mapping Class::toOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'OperationCompartment'
- and not self.isMetaclass();
-}{
- init {
- result := (self.map fillOperation(node))
- }
-}
-
-mapping Class::toAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment'
- and not self.isMetaclass();
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping Enumeration::toEnumerationEnumerationLiteralContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'EnumerationCompartment';
-}{
- init {
- result := (self.map fillEnumerationLiteral(node))
- }
-}
-
-mapping DataType::toDataTypeAttributeCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'AttributeCompartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping DataType::toDataTypeOperationCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'OperationCompartment';
-}{
- init {
- result := (self.map fillOperation(node))
- }
-}
-
-mapping uml::DataType::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment';
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInDataType(node)->asSequence();
- }
-}
-
-mapping uml::Enumeration::fillEnumerationLiteral(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='EnumerationCompartment';
-}{
- init {
- result := self.ownedLiteral->selectByKind(EnumerationLiteral).map toEnumerationLiteralInEnumeration(node)->asSequence();
- }
-}
-
-mapping uml::DataType::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property).map toPropertyInDataType(node)->asSequence();
- }
-}
-
-mapping uml::Stereotype::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property).map toPropertyInStereotype(node)->asSequence();
- }
-}
-
-mapping uml::Stereotype::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment';
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInStereotype(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='AttributeCompartment'
- and not self.isMetaclass();
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property).map toPropertyInClass(node)->asSequence();
- }
-}
-
-mapping uml::Class::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='OperationCompartment'
- and not self.isMetaclass();
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInClass(node)->asSequence();
- }
-}
-
-mapping Operation::toOperationInDataType(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_DataTypeOperationLabel';
-}
-
-mapping EnumerationLiteral::toEnumerationLiteralInEnumeration(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'EnumerationLiteral_LiteralLabel';
-}
-
-mapping Property::toPropertyInDataType(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Property_DataTypeAttributeLabel';
-}
-
-mapping Property::toPropertyInStereotype(node : Node) : Shape inherits Element::toCompartmentEntry when{
- not self.name.startsWith('base_')
-}{
- result.type := 'Property_ClassAttributeLabel';
-}
-
-mapping Operation::toOperationInStereotype(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_ClassOperationLabel';
-}
-
-mapping Property::toPropertyInClass(node : Node) : Shape inherits Element::toCompartmentEntry when{
- not self.name.startsWith('base_')
-}{
- result.type := 'Property_ClassAttributeLabel';
-}
-
-mapping Operation::toOperationInClass(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_ClassOperationLabel';
-}
-
-
-
-/******* Edges ********/
-
-
-mapping UMLConnector::toPapyrusConnector() : Connector inherits Connector::toPapyrusConnector when {
- self.type = '' and
- not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(Extension)or
- self.element.oclIsTypeOf(Association)or
- self.element.oclIsTypeOf(ProfileApplication)or
- self.element.oclIsTypeOf(Association)or
- self.element.oclIsTypeOf(Generalization)or
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(ElementImport)or
- self.element.oclIsTypeOf(PackageImport)
- )
-}{
- result.styles := self.map toFontStyle();
-}
-
-/****** Element Type queries ******/
-
-query View::getNodeType(element : Element) : String {
- return
- if element.oclIsTypeOf(Dependency) then 'Dependency_Shape'
- elif element.oclIsTypeOf(Association) then 'Association_Shape'
- elif element.oclIsTypeOf(Stereotype) then 'Stereotype_Shape'
- elif element.oclIsTypeOf(Class) and not element.oclAsType(Class).isMetaclass() then 'Class_Shape' //Class
- elif element.oclIsTypeOf(Class) and element.oclAsType(Class).isMetaclass() then 'Class_MetaclassShape' //Metaclass
- elif element.oclIsTypeOf(Comment) then 'Comment_Shape'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_PackagedElementShape'
- elif element.oclIsTypeOf(Model) then 'Model_Shape'
- elif element.oclIsTypeOf(Profile) then 'Profile_Shape'
- elif element.oclIsTypeOf(Package) then 'Package_Shape'
- elif element.oclIsTypeOf(Enumeration) then 'Enumeration_Shape'
- elif element.oclIsTypeOf(PrimitiveType) then 'PrimitiveType_Shape'
- elif element.oclIsTypeOf(DataType) then 'DataType_Shape'
- elif element.oclIsTypeOf(Diagram) then 'Diagram_ShortcutShape'
- else self.fail()
- endif;
-}
-
-
-query View::getDecorationType(element : Element) : String{
- var res := self.doGetDecorationType(element);
-
- /*
- log('Get papyrus ID for'+ self.element.eClass().name+', '+self.type);
-
- log(res);
-
- if self.container().oclIsKindOf(Node) then
- log('IsNode')
- else
- log('IsEdge')
- endif;
- */
-
- return res;
-}
-
-query View::doGetDecorationType(element : Element) : String{
- return if self.container().oclIsKindOf(Node) then {
- return if element.oclIsTypeOf(Stereotype) then
- return switch {
- case (self.type = 'Name') 'Stereotype_NameLabel';
- case (self.type = 'AttributeCompartment') 'Stereotype_AttributeCompartment';
- case (self.type = 'OperationCompartment') 'Stereotype_OperationCompartment';
- }
- elif element.oclIsTypeOf(Class) and not element.oclAsType(Class).isMetaclass() then //Class
- return switch {
- case (self.type = 'Name') 'Class_NameLabel';
- case (self.type = 'OperationCompartment') 'Class_OperationCompartment';
- case (self.type = 'AttributeCompartment') 'Class_AttributeCompartment';
- }
- elif element.oclIsTypeOf(Class) and element.oclAsType(Class).isMetaclass() then //Metaclass
- return switch {
- case (self.type = 'Name') 'Class_MetaclassNameLabel';
-
- }
- elif element.oclIsTypeOf(Constraint) then
- return switch {
- case (self.type = 'Name') 'Constraint_NameLabel';
-
- }
- elif element.oclIsTypeOf(Model) then
- return switch {
- case (self.type = 'Name') 'Model_NameLabel';
- case (self.type = 'StructureCompartment') 'Model_PackagedElementCompartment';
- }
- elif element.oclIsTypeOf(Profile) then
- return switch {
-
- case (self.type = 'StructureCompartment') 'Profile_PackagedElementCompartment';
- }
- elif element.oclIsTypeOf(Package) then
- return switch {
- case (self.type = 'Name') 'Package_NameLabel';
- case (self.type = 'PackageContents') 'Package_PackagedElementCompartment';
- }
- elif element.oclIsTypeOf(Enumeration) then
- return switch {
- case (self.type = 'Name') 'Enumeration_NameLabel';
- case (self.type = 'EnumerationCompartment') 'Enumeration_LiteralCompartment';
- }
- elif element.oclIsTypeOf(PrimitiveType) then
- return switch {
- case (self.type = 'Name') 'PrimitiveType_NameLabel';
-
- }
- elif element.oclIsTypeOf(DataType) then
- return switch {
- case (self.type = 'Name') 'DataType_NameLabel';
- case (self.type = 'AttributeCompartment') 'DataType_AttributeCompartment';
- case (self.type = 'OperationCompartment') 'DataType_OperationCompartment'; //TODO: Disable?
- }
- elif element.oclIsTypeOf(Diagram) then
- return switch {
- case (self.type = 'Name') 'Diagram_NameLabel';
-
- }
- endif
- } else {
- return if element.oclIsTypeOf(Association) then
- return switch {
- case (self.type='Name') 'Association_NameLabel';
- case (self.type = 'KindLabel') 'Association_StereotypeLabel';
- case (self.type = 'NameLabel') 'Association_NameLabel';
-
-
- case (self.type = 'FromMultiplicityLabel') 'Association_SourceMultiplicityLabel';
- case (self.type = 'ToMultiplicityLabel') 'Association_TargetMultiplicityLabel';
- }
- elif element.oclIsTypeOf(Generalization) then
- return switch {
-
- case (self.type = 'KindLabel') 'Generalization_StereotypeLabel';
- }
- elif element.oclIsTypeOf(Dependency) then
- return switch {
- case (self.type='Name') 'Dependency_NameLabel';
- case (self.type = 'NameLabel') 'Dependency_NameLabel';
- case (self.type = 'KindLabel') 'Dependency_StereotypeLabel';
- }
- elif element.oclIsTypeOf(ElementImport) then
- return switch {
-
-
- case (self.type = 'KindLabel') 'ElementImport_StereotypeLabel';
- }
- elif element.oclIsTypeOf(PackageImport) then
- return switch {
-
- case (self.type = 'KindLabel') 'PackageImport_StereotypeLabel';
- }
- endif
- } endif;
-}
-
-
-query View::getEdgeType(element : Element) : String {
- return
- if self.type = 'Reference' then '' /* Context Links handled separately */
- elif element.oclIsTypeOf(Extension) then 'Extension_Edge'
- elif element.oclIsTypeOf(Association) then 'Association_Edge'
- elif element.oclIsTypeOf(ProfileApplication) then 'ProfileApplication_Edge'
- elif element.oclIsTypeOf(Association) then 'Association_BranchEdge'
- elif element.oclIsTypeOf(Generalization) then 'Generalization_Edge'
- elif element.oclIsTypeOf(Dependency) then 'Dependency_Edge'
- elif element.oclIsTypeOf(Dependency) then 'Dependency_BranchEdge'
- elif element.oclIsTypeOf(ElementImport) then 'ElementImport_Edge'
- elif element.oclIsTypeOf(PackageImport) then 'PackageImport_Edge'
- else self.fail()
- endif;
-}
-
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAProfilesToPapyrus.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAProfilesToPapyrus.qvto
deleted file mode 100644
index b54e1c38b35..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAProfilesToPapyrus.qvto
+++ /dev/null
@@ -1,188 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms 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
- *****************************************************************************/
-import org.eclipse.papyrus.m2m.qvto.UI;
-import org.eclipse.papyrus.migration.rsa.ProfileBaseHelper;
-import org.eclipse.papyrus.m2m.qvto.EMFResource;
-import libraries.EclipseUI;
-
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype defaultProfile "strict" uses 'http://www.eclipse.org/papyrus/profile/default';
-modeltype documentation "strict" uses 'http://www.eclipse.org/papyrus/documentation';
-modeltype validation "strict" uses 'http://www.eclipse.org/papyrus/dsmlvalidation';
-modeltype profileBase "strict" uses 'http://www.eclipse.org/papyrus/profile/profilebase';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-transformation RSAProfilesToPapyrus(inout semantics : uml, inout notationModel : notation, in papyrusProfiles : /* Profiles + EObjects (Stereotype applications) */ uml, in profileDefinitions : /* EPackage */ ecore, in param : config);
-
-property validationURI : String = 'http://www.eclipse.org/papyrus/dsmlvalidation';
-
-property documentationURI : String = 'http://www.eclipse.org/papyrus/documentation';
-
-property profileBaseURI : String = 'pathmap://UML2_MSL_PROFILES/ProfileBase.epx';
-
-property defaultProfileURI : String = 'pathmap://UML2_MSL_PROFILES/Default.epx';
-
-main() {
- semantics.objectsOfType(defaultProfile::URL).map toHyperlink();
-
- semantics.objectsOfType(ProfileApplication).map toPapyrusValidationProfile();
- semantics.objectsOfType(profileBase::ProfileConstraint).map toValidationRule();
-
- semantics.objectsOfType(ProfileApplication).map toPapyrusDocumentationProfile();
- semantics.objectsOfType(defaultProfile::Documentation).map toDocumentation();
-
- if param.rootObjects()[Config]->any(true).removeUnmappedProfilesAndStereotypes then {
-
- //unapply deployment profile
-
- semantics.objectsOfType(ProfileApplication).map removeDeploymentProfile();
-
- //remove DefaultLanguage stereotype
-
- semantics.rootObjects()[DefaultLanguage].map delete();
-
- } endif;
-}
-
-mapping ProfileApplication::removeDeploymentProfile() when {
- self.appliedProfile.oclAsType(EObject).getURI().startsWith('pathmap://UML2_MSL_PROFILES/Deployment.epx');
-}{
- self.oclAsType(EObject).forceDelete(false);
-}
-
-mapping DefaultLanguage::delete() {
- //semantics.removeElement(self);
-}
-
-query ProfileApplication::getDefinitionAnnotation() : EAnnotation {
- return self.getEAnnotation('http://www.eclipse.org/uml2/2.0.0/UML');
-}
-
-query ProfileApplication::getDefinition() : EPackage {
- return self.getDefinitionAnnotation()._references->any(oclIsKindOf(EPackage)).oclAsType(EPackage);
-}
-
-/** Profile Base -> Validation **/
-
-mapping inout ProfileApplication::toPapyrusValidationProfile() when {
- self.getDefinition().oclAsType(EObject).getURI().startsWith(profileBaseURI);
-}{
- self.appliedProfile := getValidationProfile();
- self.getDefinitionAnnotation()._references := profileDefinitions.rootObjects()[EPackage]->any(nsURI = validationURI).oclAsType(EObject);
-
- self.eAnnotations := self.getDefinitionAnnotation(); //Remove all other annotations
-}
-
-mapping ProfileConstraint::toValidationRule() : ValidationRule {
- result.severity := self.severity.toSeverityCode();
- result.mode := self.evaluationMode.toEvaluationMode();
- result.isEnabledByDefault := true;
- result.base_Constraint := self.base_Constraint;
- result.statusCode := self.severity.toStatusCode();
- result.message := self.getConstraintMessage();
- //result.description := null;
- //result.target := null;
- //result._class := null;
- //result.id := null;
-
- //semantics.removeElement(self); //To be deleted programatically
-}
-
-query defaultProfile::Severity::toSeverityCode() : validation::Severity{
- return switch {
- case (self = defaultProfile::Severity::error) validation::Severity::ERROR;
- case (self = defaultProfile::Severity::warning) validation::Severity::WARNING;
- case (self = defaultProfile::Severity::info) validation::Severity::INFO;
- };
-
-}
-
-query defaultProfile::Mode::toEvaluationMode() : validation::Mode {
- return if self = defaultProfile::Mode::batch then validation::Mode::Batch else validation::Mode::Live endif;
-}
-
-query defaultProfile::Severity::toStatusCode() : Integer {
- return switch {
- case (self = defaultProfile::Severity::error) 3;
- case (self = defaultProfile::Severity::warning) 2;
- case (self = defaultProfile::Severity::info) 1;
- };
-}
-
-query getValidationProfile() : Profile {
- return papyrusProfiles.rootObjects()[Profile]->any(URI = validationURI);
-}
-
-/** Default Profile -> Documentation **/
-
-mapping inout ProfileApplication::toPapyrusDocumentationProfile() when {
- self.getDefinition().oclAsType(EObject).getURI().startsWith(defaultProfileURI);
-}{
- self.appliedProfile := getDocumentationProfile();
- self.getDefinitionAnnotation()._references := profileDefinitions.rootObjects()[EPackage]->any(nsURI = documentationURI).oclAsType(EObject);
-
- self.eAnnotations := self.getDefinitionAnnotation(); //Remove all other annotations
-}
-
-mapping defaultProfile::Documentation::toDocumentation() : documentation::Documentation {
- result.base_Comment := self.base_Comment;
-
- //semantics.removeElement(self);
-}
-
-query getDocumentationProfile() : Profile {
- return papyrusProfiles.objectsOfType(Profile)->any(URI = documentationURI); //DocumentationProfile is not a root profile
-}
-
-/** Default Profile : Link/URL -> Hyperlink **/
-
-mapping inout URL::toHyperlink() {
- var comment := self.base_Comment;
-
- var commentDisplays := notationModel.objectsOfType(Shape)->select(element = comment.oclAsType(EObject)); //All views representing the comment
-
- var label := self.displayName;
- var url := comment.body;
-
- /** In RSA, the body holds the URL, and the Stereotype holds the label */
- /** In Papyrus, the body holds the label, and the EAnnotation holds the URL */
-
- comment.body := label;
-
- commentDisplays.map createHyperlinkAnnotation(url);
-
- end {
- //semantics.removeElement(self);
- }
-}
-
-mapping Shape::createHyperlinkAnnotation(url : String) : EAnnotation {
- result.eModelElement := self;
- result.source := 'PapyrusHyperLink__web';
-
- result.details += object EStringToStringMapEntry {
- key := "tooltip_text";
- value := url;
- };
-
- result.details += object EStringToStringMapEntry {
- key := "link";
- value := url;
- };
-
- result.details += object EStringToStringMapEntry {
- key := "is_default_navigation";
- value := "true";
- };
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSASequenceDiagram.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSASequenceDiagram.qvto
deleted file mode 100644
index 1f5f112b47b..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSASequenceDiagram.qvto
+++ /dev/null
@@ -1,381 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2016 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 465656
- *****************************************************************************/
-import RSAToPapyrus;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype sash "strict" uses 'http://www.eclipse.org/papyrus/0.7.0/sashdi';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-transformation RSASequenceDiagram(inout semantics : uml, inout graphics : notation, out di : sash, in param : config);
-
-main() {
- semantics.rootObjects()[uml::Element]->map toOwnedDiagrams();
-}
-
-query View::getDiagramType() : String{
- return 'PapyrusUMLSequenceDiagram';
-}
-
-mapping notation::Diagram::generateDiagram() : notation::Diagram inherits Diagram::toPapyrusDiagram when {
- self.type = 'Sequence'
-}{
- end {
- graphics.objectsOfType(Shape)->select(type = 'BehaviorExecutionSpecification_Shape').map fixExecutionSpecification();
- graphics.objectsOfType(Shape)->select(type = 'Lifeline_Shape').map fixLifelineHeight();
- graphics.objectsOfType(Shape)->select(type = 'StateInvariant_Shape').map fixStateInvariant();
-
- graphics.objectsOfType(Shape)->select(type = 'Comment_Shape').map addCommentDecoration();
- graphics.objectsOfType(Shape)->select(type = 'Constraint_Shape').map addConstraintDecoration();
- }
-}
-
-mapping inout Shape::addCommentDecoration() when {
- self.type = 'Comment_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Comment_BodyLabel'; //Comment body
- }
-
-}
-
-mapping inout Shape::addConstraintDecoration() when {
- self.type = 'Constraint_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Constraint_BodyLabel'; //Constraint specification
- }
-
-}
-
-mapping inout Shape::fixLifelineHeight() {
- self.layoutConstraint.oclAsType(Location).y := 10;
-}
-
-mapping inout Shape::fixExecutionSpecification() {
- self.children := self.children->including(object DecorationNode {
- type := 'BehaviorExecutionSpecification_Behavior';
- layoutConstraint := object Location {
- x := 18;
- y := 18;
- }
- });
-
- var lifeline := semantics.objectsOfType(Lifeline)->any(ll | ll.coveredBy->includes(self.element.oclAsType(InteractionFragment)));
- var lifelineShape := graphics.objectsOfType(Shape)->any(element = lifeline.oclAsType(EObject));
- lifelineShape.children := lifelineShape.children->including(self);
- var lifelineWidth := lifelineShape.layoutConstraint.oclAsType(Bounds).width;
-
- var speficationBounds := self.layoutConstraint.oclAsType(Bounds);
- speficationBounds.x := ((lifelineWidth - 15)/2).round();
-
- /* Cannot be selected in Papyrus when it is too small */
- var minHeight := 50;
- if speficationBounds.height < minHeight then
- speficationBounds.height := minHeight
- endif;
-}
-
-mapping inout Shape::fixStateInvariant() {
-
- var lifeline := semantics.objectsOfType(Lifeline)->any(ll | ll.coveredBy->includes(self.element.oclAsType(StateInvariant)));
- var lifelineShape := graphics.objectsOfType(Shape)->any(element = lifeline.oclAsType(EObject));
-
- lifelineShape.children := lifelineShape.children->including(self);
-}
-
-mapping Node::toNode() : Node disjuncts
- UMLShape::toPapyrusShape,
- UMLShapeCompartment::toStructureCompartment,
- BasicSemanticCompartment::toListCompartment,
- BasicDecorationNode::toConnectorLabel,
- BasicDecorationNode::toLabel
- //TODO: Disjunct nodes mapping
-;
-
-mapping Edge::toEdge() : Edge disjuncts
- UMLConnector::toPapyrusConnector
- //TODO: Disjunct edges mapping
-;
-
-mapping UMLShapeCompartment::toStructureCompartment() : DecorationNode inherits UMLShapeCompartment::toAbstractStructureCompartment when {
- (self.type = 'StructureCompartment' or
- self.type = 'PackageContents' or
- self.type = 'interaction_compartment' or
- self.type.oclIsUndefined() or self.type = '')
- and not self.getType().oclIsUndefined();
-}{
-
-}
-
-
-/***** Nodes **********/
-
-mapping UMLShape::toPapyrusShape() : Shape inherits Shape::toPapyrusShape when {
- self.type = '' and not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(ActionExecutionSpecification)or
- self.element.oclIsTypeOf(BehaviorExecutionSpecification)or
- self.element.oclIsTypeOf(TimeObservation)or
- self.element.oclIsTypeOf(InteractionUse)or
- self.element.oclIsTypeOf(CombinedFragment)or
- self.element.oclIsTypeOf(Comment)or
- self.element.oclIsTypeOf(Lifeline)or
- self.element.oclIsTypeOf(InteractionOperand)or
- self.element.oclIsTypeOf(TimeConstraint)or
- self.element.oclIsTypeOf(StateInvariant)or
- self.element.oclIsTypeOf(CombinedFragment)or
- self.element.oclIsTypeOf(Continuation)or
- self.element.oclIsTypeOf(Interaction)or
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(DurationConstraint)or
- self.element.oclIsTypeOf(DurationObservation)or
- self.element.oclIsTypeOf(ConsiderIgnoreFragment)or
- self.element.oclIsTypeOf(DurationConstraint)or
- self.element.oclIsTypeOf(DestructionOccurrenceSpecification)
-
- )
-}{}
-
-
-/****** Connector Labels ******/
-
-mapping BasicDecorationNode::toConnectorLabel() : DecorationNode inherits Node::toPapyrusConnectorLabel when {
- not self.getType().oclIsUndefined() and (
- self.type = 'ToMultiplicityLabel' or
- self.type = 'ToRoleLabel' or
- self.type = 'FromMultiplicityLabel' or
- self.type = 'FromRoleLabel' or
- self.type = 'NameLabel' or
- self.type = 'KindLabel'
- )
-}{
-
-}
-
-/****** Compartments *******/
-
-mapping BasicDecorationNode::toLabel() : DecorationNode inherits Node::toPapyrusNode when {
- not self.getType().oclIsUndefined() and
- self.element.oclIsKindOf(uml::NamedElement) and
- self.type = 'Name'
-}{
-
-}
-
-mapping BasicSemanticCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- self.type.endsWith('Compartment') and not self.getType().oclIsUndefined()
-}{
- result.children := self.findElement().map toContents(self);
-}
-
-mapping Element::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- CombinedFragment::toContents
-;
-
-mapping CombinedFragment::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- CombinedFragment::toCombinedFragmentCompartmentContents
-;
-
-mapping CombinedFragment::toCombinedFragmentCompartmentContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'Compartment';
-}{
-
-}
-
-
-
-
-
-
-
-/******* Edges ********/
-
-
-mapping UMLConnector::toPapyrusConnector() : Connector inherits Connector::toPapyrusConnector when {
- self.type = '' and
- not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(Message)or
- self.element.oclIsTypeOf(Message)or
- self.element.oclIsTypeOf(Message)or
- self.element.oclIsTypeOf(Message)or
- self.element.oclIsTypeOf(Message)or
- self.element.oclIsTypeOf(Message)or
- self.element.oclIsTypeOf(Message)or
- self.element.oclIsTypeOf(GeneralOrdering)
- )
-}{
- result.styles := self.map toFontStyle();
-}
-
-/****** Element Type queries ******/
-
-query View::getNodeType(element : Element) : String {
- return
- if element.oclIsTypeOf(TimeObservation) then 'TimeObservation_Shape'
- elif element.oclIsTypeOf(InteractionUse) then 'InteractionUse_Shape'
- elif element.oclIsTypeOf(CombinedFragment) then 'CombinedFragment_Shape'
- elif element.oclIsTypeOf(CombinedFragment) then 'CombinedFragment_CoRegionShape'
- elif element.oclIsTypeOf(Comment) then 'Comment_Shape'
- elif element.oclIsTypeOf(Lifeline) then 'Lifeline_Shape'
- elif element.oclIsTypeOf(InteractionOperand) then 'InteractionOperand_Shape'
- elif element.oclIsTypeOf(TimeConstraint) then 'TimeConstraint_Shape'
- elif element.oclIsTypeOf(StateInvariant) then 'StateInvariant_Shape'
- elif element.oclIsTypeOf(Continuation) then 'Continuation_Shape'
- elif element.oclIsTypeOf(Interaction) then 'Interaction_Shape'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_Shape'
- elif element.oclIsTypeOf(DurationConstraint) then 'DurationConstraint_Shape'
- elif element.oclIsTypeOf(DurationObservation) then 'DurationObservation_Shape'
- elif element.oclIsTypeOf(ConsiderIgnoreFragment) then 'ConsiderIgnoreFragment_Shape'
- elif element.oclIsTypeOf(ActionExecutionSpecification) then 'ActionExecutionSpecification_Shape'
- elif element.oclIsTypeOf(DurationConstraint) then 'DurationConstraint_Shape_CN'
- elif element.oclIsTypeOf(DestructionOccurrenceSpecification) then 'DestructionOccurrenceSpecification_Shape'
- elif element.oclIsTypeOf(BehaviorExecutionSpecification) then 'BehaviorExecutionSpecification_Shape'
- else self.fail()
- endif;
-}
-
-
-query View::getDecorationType(element : Element) : String{
- var res := self.doGetDecorationType(element);
-
- /*log('Get papyrus ID for'+ self.element.eClass().name+', '+self.type);
-
- log(res);
-
- if self.container().oclIsKindOf(Node) then
- log('IsNode')
- else
- log('IsEdge')
- endif;*/
-
- return res;
-
-}
-
-query View::doGetDecorationType(element : Element) : String{
- return if self.container().oclIsKindOf(Node) then {
- return if element.oclIsTypeOf(InteractionUse) then
- return switch {
- case (self.type = 'Name') 'InteractionUse_NameLabel';
-
- }
- elif element.oclIsTypeOf(Lifeline) then
- return switch {
- case (self.type = 'Name') 'Lifeline_NameLabel';
-
- }
- elif element.oclIsTypeOf(StateInvariant) then
- return switch {
- case (self.type = 'Name') 'StateInvariant_NameLabel';
-
- }
- elif element.oclIsTypeOf(InteractionOperand) then
- return switch {
-
- case (self.type.oclIsUndefined() or self.type = '') 'CombinedFragment_SubfragmentCompartment';
- }
- elif element.oclIsTypeOf(Continuation) then
- return switch {
- case (self.type = 'Name') 'Continuation_NameLabel';
-
- }
- elif element.oclIsTypeOf(Interaction) then
- return switch {
- case (self.type = 'Name') 'Interaction_NameLabel';
- case (self.type = 'interaction_compartment') 'Interaction_SubfragmentCompartment';
- }
- elif element.oclIsTypeOf(Constraint) then
- return switch {
- case (self.type = 'Name') 'Constraint_NameLabel';
-
- }
- endif
- } else {
- return if element.oclIsTypeOf(Message) and (element.oclIsKindOf(uml::InteractionFragment)) and (element.oclIsKindOf(uml::InteractionFragment) or element.oclIsKindOf(uml::Lifeline)) then
- return switch {
- case (self.type='Name') 'Message_SynchNameLabel';
- case (self.type = 'NameLabel') 'Message_SynchNameLabel';
- case (self.type = 'KindLabel') 'Message_SynchStereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Message) and ((element.oclIsKindOf(uml::Lifeline) or element.oclIsKindOf(uml::InteractionFragment) or element.oclIsKindOf(uml::Gate))) and true then
- return switch {
-
- case (self.type = 'NameLabel') 'Message_AsynchNameLabel';
- case (self.type = 'KindLabel') 'Message_AsynchStereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Message) and (element.oclIsKindOf(uml::InteractionFragment)) and ((element.oclIsKindOf(uml::Lifeline) or element.oclIsKindOf(uml::InteractionFragment) or element.oclIsKindOf(uml::Gate))) then
- return switch {
-
- case (self.type = 'NameLabel') 'Message_ReplyNameLabel';
- case (self.type = 'KindLabel') 'Message_ReplyStereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Message) and (element.oclIsKindOf(uml::InteractionFragment) or element.oclIsKindOf(uml::Lifeline)) and (element.oclIsKindOf(uml::Lifeline)) then
- return switch {
-
- case (self.type = 'NameLabel') 'Message_CreateNameLabel';
- case (self.type = 'KindLabel') 'Message_CreateStereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Message) and (element.oclIsKindOf(uml::InteractionFragment) or element.oclIsKindOf(uml::Lifeline)) and (element.oclIsKindOf(uml::DestructionOccurrenceSpecification) or element.oclIsKindOf(uml::Lifeline)) then
- return switch {
-
- case (self.type = 'NameLabel') 'Message_DeleteNameLabel';
- case (self.type = 'KindLabel') 'Message_DeleteStereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Message) and ((element.oclIsKindOf(uml::Lifeline) or element.oclIsKindOf(uml::InteractionFragment) or element.oclIsKindOf(uml::Gate))) and (element.oclIsKindOf(uml::Interaction)) then
- return switch {
-
- case (self.type = 'NameLabel') 'Message_LostNameLabel';
- case (self.type = 'KindLabel') 'Message_LostStereotypeLabel';
- }
-
- elif element.oclIsTypeOf(Message) and (element.oclIsKindOf(uml::Interaction)) and ((element.oclIsKindOf(uml::Lifeline) or element.oclIsKindOf(uml::InteractionFragment) or element.oclIsKindOf(uml::Gate))) then
- return switch {
-
- case (self.type = 'NameLabel') 'Message_FoundNameLabel';
- case (self.type = 'KindLabel') 'Message_FoundStereotypeLabel';
- }
-
- elif element.oclIsTypeOf(GeneralOrdering) then
- return switch {
-
- case (self.type = 'KindLabel') 'GeneralOrdering_StereotypeLabel';
- }
-
- endif
- } endif;
-}
-
-
-query View::getEdgeType(element : Element) : String {
- return
- if element.oclIsTypeOf(Message) then 'Message_SynchEdge'
- elif element.oclIsTypeOf(Message) then 'Message_AsynchEdge'
- elif element.oclIsTypeOf(Message) then 'Message_ReplyEdge'
- elif element.oclIsTypeOf(Message) then 'Message_CreateEdge'
- elif element.oclIsTypeOf(Message) then 'Message_DeleteEdge'
- elif element.oclIsTypeOf(Message) then 'Message_LostEdge'
- elif element.oclIsTypeOf(Message) then 'Message_FoundEdge'
- elif element.oclIsTypeOf(GeneralOrdering) then 'GeneralOrdering_Edge'
- else self.fail()
- endif;
-}
-
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAStateMachineDiagram.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAStateMachineDiagram.qvto
deleted file mode 100644
index 17ffb854d44..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAStateMachineDiagram.qvto
+++ /dev/null
@@ -1,394 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2016 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 465656
- *****************************************************************************/
-import RSAToPapyrus;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype sash "strict" uses 'http://www.eclipse.org/papyrus/0.7.0/sashdi';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-transformation RSAStateMachineDiagram(inout semantics : uml, inout graphics : notation, out di : sash, in param : config);
-
-main() {
- semantics.rootObjects()[uml::Element]->map toOwnedDiagrams();
-}
-
-query View::getDiagramType() : String{
- return 'PapyrusUMLStateMachineDiagram';
-}
-
-mapping notation::Diagram::generateDiagram() : notation::Diagram inherits Diagram::toPapyrusDiagram when {
- self.type = 'Statechart'
-}{
- end {
- graphics.objectsOfType(DecorationNode)->select(type = 'Region_SubvertexCompartment').map addInRegion();
- graphics.objectsOfType(Shape)->select(type = 'StateMachine_Shape').map createIntermediateCompartment();
- graphics.objectsOfType(Shape)->select(type = 'State_Shape').map createStructureCompartment();
- graphics.objectsOfType(DecorationNode)->select(type = 'StateMachine_NameLabel').map addLayout();
- graphics.objectsOfType(DecorationNode)->select(type = 'State_NameLabel').map fixLayout();
-
- graphics.objectsOfType(Shape)->select(type='Comment_Shape').map addCommentDecoration();
- graphics.objectsOfType(Shape)->select(type = 'Constraint_Shape').map addConstraintDecoration();
- }
-}
-
-mapping inout Shape::createIntermediateCompartment() {
- var compartment := object DecorationNode {
- type := 'StateMachine_RegionCompartment';
- layoutConstraint := object Bounds{}
- };
-
- compartment.children := self.children->select(type = 'Region_Shape');
-
- children := children->insertAt(2, compartment); /* Required for layout: the Structure Compartment of the Region must be in 2nd position */
-}
-
-mapping inout DecorationNode::addInRegion() {
- var currentParent := self.oclAsType(EObject).eContainer();
- var currentBounds := self.layoutConstraint.oclAsType(Bounds);
-
- var region := object Shape {
- type := 'Region_Shape';
- layoutConstraint := object Bounds{
- x := currentBounds.x;
- y := currentBounds.y;
- };
- element := self.element;
- children := self;
- eAnnotations := object EAnnotation {
- source := "RegionAnnotationKey";
- details := object EStringToStringMapEntry{
- key := "RegionZoneKey";
- value := 'B';
- }
- }
- };
-
- if self.layoutConstraint.oclIsUndefined() then self.layoutConstraint := object Bounds{} endif;
- self.styles := self.styles->reject(oclIsTypeOf(TitleStyle));
-
- currentParent.oclAsType(View).children += region;
-}
-
-mapping inout Shape::createStructureCompartment() when {
- not self.children->exists(type = 'State_RegionCompartment')
-}{
- var compartment := object DecorationNode {
- type := 'State_RegionCompartment';
- visible := self.children->exists(type='Region_Shape');
- layoutConstraint := object Bounds{};
- };
-
- compartment.children += children->select(type = 'Region_Shape');
- children := children->insertAt(2, compartment);
-}
-
-mapping inout DecorationNode::addLayout() {
- if self.layoutConstraint.oclIsUndefined() then self.layoutConstraint := object Bounds{} endif;
-}
-
-mapping inout DecorationNode::fixLayout(){
- var bounds := if self.layoutConstraint.oclIsUndefined() then object Bounds{} else self.layoutConstraint.oclAsType(Bounds) endif;
- self.layoutConstraint := bounds;
-
- if bounds.height < 20 then bounds.height := 20 endif;
-}
-
-mapping Node::toNode() : Node disjuncts
- UMLShape::toPapyrusShape,
- UMLShapeCompartment::toStructureCompartment,
- BasicSemanticCompartment::toListCompartment,
- BasicDecorationNode::toConnectorLabel,
- BasicDecorationNode::toLabel
- //TODO: Disjunct nodes mapping
-;
-
-mapping Edge::toEdge() : Edge disjuncts
- UMLConnector::toCommentLink,
- UMLConnector::toConstraintLink,
- UMLConnector::toPapyrusConnector
- //TODO: Disjunct edges mapping
-;
-
-mapping UMLShapeCompartment::toStructureCompartment() : DecorationNode inherits UMLShapeCompartment::toAbstractStructureCompartment when {
- not self.getType().oclIsUndefined();
-}{
-
-}
-
-mapping inout Shape::addCommentDecoration() when {
- self.type = 'Comment_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Comment_BodyLabel';
- }
-
-}
-
-mapping inout Shape::addConstraintDecoration() when {
- self.type = 'Constraint_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Constraint_BodyLabel'; //Constraint specification
- }
-
-}
-
-/***** Nodes **********/
-
-mapping UMLShape::toPapyrusShape() : Shape inherits Shape::toPapyrusShape when {
- not self.getType().oclIsUndefined()
-}{
-
-}
-
-
-/****** Connector Labels ******/
-
-mapping BasicDecorationNode::toConnectorLabel() : DecorationNode inherits Node::toPapyrusConnectorLabel when {
- not self.getType().oclIsUndefined() and (
- self.type = 'ToMultiplicityLabel' or
- self.type = 'ToRoleLabel' or
- self.type = 'FromMultiplicityLabel' or
- self.type = 'FromRoleLabel' or
- self.type = 'NameLabel' or
- self.type = 'KindLabel'
- )
-}{
-
-}
-
-/****** Compartments *******/
-
-mapping BasicDecorationNode::toLabel() : DecorationNode inherits Node::toPapyrusNode when {
- not self.getType().oclIsUndefined() and
- self.element.oclIsKindOf(uml::NamedElement) and
- self.type = 'Name'
-}{
-
-}
-
-mapping BasicSemanticCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- self.type.endsWith('Compartment') and not self.getType().oclIsUndefined()
-}{
-
-}
-
-
-mapping uml::State::fillTransition(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='';
-}{
- init {
- result := self.incoming->selectByKind(Transition).map toTransitionIn(node)->asSequence();
- }
-}
-
-mapping uml::State::fillBehavior(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='';
-}{
- init {
- result := self.entry->selectByKind(Behavior).map toBehaviorIn(node)->asSequence();
- }
-}
-
-mapping Transition::toTransitionIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Transition_InternalTransitionLabel';
-}
-
-mapping Behavior::toBehaviorIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Behavior_EntryBehaviorLabel';
-}
-
-
-
-/******* Edges ********/
-
-
-mapping UMLConnector::toPapyrusConnector() : Connector inherits Connector::toPapyrusConnector when {
- self.type = '' and
- not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(Transition)or
- self.element.oclIsTypeOf(Generalization)
- )
-}{
- result.styles := self.map toFontStyle();
-}
-
-
-mapping UMLConnector::toCommentLink() : Connector inherits Connector::toCommentLink when{
- self.type='Reference'
-}{
- result.type :='Comment_AnnotatedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-mapping UMLConnector::toConstraintLink() : Connector inherits Connector::toPapyrusConnector when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Constraint) or
- self.target.element.oclIsKindOf(Constraint)
- )
-}{
- result.type :='Constraint_ConstrainedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-
-/****** Element Type queries ******/
-
-query View::getNodeType(element : Element) : String {
- return
- if element.oclIsTypeOf(Comment) then 'Comment_Shape'
- elif element.oclIsTypeOf(FinalState) then 'FinalState_Shape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::join then 'Pseudostate_JoinShape'
- elif element.oclIsTypeOf(State) then 'State_Shape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::shallowHistory then 'Pseudostate_ShallowHistoryShape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::terminate then 'Pseudostate_TerminateShape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::choice then 'Pseudostate_ChoiceShape'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_Shape'
- elif element.oclIsTypeOf(StateMachine) then 'StateMachine_Shape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::fork then 'Pseudostate_ForkShape'
- elif element.oclIsTypeOf(Region) then 'Region_Shape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::junction then 'Pseudostate_JunctionShape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::deepHistory then 'Pseudostate_DeepHistoryShape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::initial then 'Pseudostate_InitialShape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::entryPoint then 'Pseudostate_EntryPointShape'
- elif element.oclIsTypeOf(Pseudostate) and element.oclAsType(Pseudostate).kind = PseudostateKind::exitPoint then 'Pseudostate_ExitPointShape'
- elif element.oclIsTypeOf(ConnectionPointReference) then 'ConnectionPointReference_Shape'
- else self.fail()
- endif;
-}
-
-
-query View::getDecorationType(element : Element) : String{
- var res := self.doGetDecorationType(element);
-
-
- /*log('Get papyrus ID for'+ self.element.eClass().name+', '+self.type);
-
- log(res);
-
- if self.container().oclIsKindOf(Node) then
- log('IsNode')
- else
- log('IsEdge')
- endif;*/
-
-
- return res;
-}
-
-query View::doGetDecorationType(element : Element) : String{
- return if self.container().oclIsKindOf(Node) then {
- return if element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_ChoiceFloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_ExitPointFloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_ShallowHistoryFloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_JoinFloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_InitialFloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(Region) then
- return switch {
-
- case (self.type = 'Region' or self.type = '') 'Region_SubvertexCompartment';
- }
- elif element.oclIsTypeOf(ConnectionPointReference) then
- return switch {
- case (self.type = 'Name') 'ConnectionPointReference_NameLabel';
-
- }
- elif element.oclIsTypeOf(State) then
- return switch {
- case (self.type = 'Name') 'State_NameLabel';
- }
- elif element.oclIsTypeOf(FinalState) then
- return switch {
- case (self.type = 'Name') 'FinalState_FloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_DeepHistoryFloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_TerminateFloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_ForkFloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_EntryPointFloatingNameLabel';
-
- }
- elif element.oclIsTypeOf(StateMachine) then
- return switch {
- case (self.type = 'Name') 'StateMachine_NameLabel';
- case (self.type = 'StructureCompartment') 'StateMachine_RegionCompartment';
- }
- elif element.oclIsTypeOf(Pseudostate) then
- return switch {
- case (self.type = 'Name') 'Pseudostate_JunctionFloatingNameLabel';
-
- }
- endif
- } else {
- return if element.oclIsTypeOf(Transition) then
- return switch {
- case (self.type='Name') 'Transition_NameLabel';
- case (self.type = 'NameLabel') 'Transition_NameLabel';
-
-
- }
- endif
- } endif;
-}
-
-
-query View::getEdgeType(element : Element) : String {
- return
- if self.type = 'Reference' then '' /* Constraint/Comment links handled separately */
- elif element.oclIsTypeOf(Transition) then 'Transition_Edge'
- elif element.oclIsTypeOf(Generalization) then 'Generalization_Edge'
- else self.fail()
- endif;
-}
-
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAStructureDiagram.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAStructureDiagram.qvto
deleted file mode 100644
index 262f3eee21e..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAStructureDiagram.qvto
+++ /dev/null
@@ -1,890 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2016 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bugs 461980, 497841, 498282, 465656
- * Asma Smaoui - bug 507860
- *****************************************************************************/
-import RSAToPapyrus;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype sash "strict" uses 'http://www.eclipse.org/papyrus/0.7.0/sashdi';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-transformation RSAStructureDiagram(inout semantics : uml, inout graphics : notation, out di : sash, in param : config);
-
-main() {
- semantics.rootObjects()[uml::Element]->map toOwnedDiagrams();
-}
-
-query View::getDiagramType() : String{
- return 'CompositeStructure';
-}
-
-mapping notation::Diagram::generateDiagram() : notation::Diagram inherits Diagram::toPapyrusDiagram when {
- self.type = 'Structure'
-}{
- init {
-
- }
- end {
- graphics.objectsOfType(Shape)->select(type = 'Comment_Shape').map addCommentDecoration();
- graphics.objectsOfType(Shape)->select(type = 'Constraint_Shape').map addConstraintDecoration();
- }
-}
-
-
-mapping inout Shape::addCommentDecoration() when {
- self.type = 'Comment_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Comment_BodyLabel'; //Comment body
- }
-
-}
-
-mapping inout Shape::addConstraintDecoration() when {
- self.type = 'Constraint_Shape' and self.diagram.type = self.getDiagramType()
-} {
-
- self.children += object DecorationNode{
- type := 'Constraint_BodyLabel'; //Constraint specification
- }
-}
-
-
-mapping Node::toNode() : Node disjuncts
- UMLShape::toPapyrusShape,
- UMLShapeCompartment::toStructureCompartment,
- BasicSemanticCompartment::toListCompartment,
- BasicDecorationNode::toConnectorLabel,
- BasicDecorationNode::toLabel
- //TODO: Disjunct nodes mapping
-;
-
-mapping Edge::toEdge() : Edge disjuncts
- UMLConnector::toCommentLink,
- UMLConnector::toConstraintLink,
- UMLConnector::toPapyrusConnector
- //TODO: Disjunct edges mapping
-;
-
-mapping UMLShapeCompartment::toStructureCompartment() : DecorationNode inherits UMLShapeCompartment::toAbstractStructureCompartment when {
- self.type = 'StructureCompartment' or self.type = 'PackageContents' and not self.getType().oclIsUndefined();
-}{
-
-}
-
-query Diagram::getDiagramFrame() : Node {
- // Class_Shape denotes the structure frame in this diagram
- return self.children->any(type = 'Class_Shape').oclAsType(notation::Node);
-}
-
-mapping inout Node::defaultFrameSize() {
- var size : Size = self.layoutConstraint.oclAsType(notation::Size);
- if (size.width = -1) then {
- size.width := 600;
- } endif;
- if (size.height = -1) then {
- size.height := 400;
- } endif;
-}
-
-mapping inout Node::defaultSize(dWidth : Integer, dHeight : Integer) when {
- self.layoutConstraint.oclIsKindOf(notation::Size) and
- let size = self.layoutConstraint.oclAsType(notation::Size) in
- size.width = -1 or size.height = -1
-} {
- var size : Size = self.layoutConstraint.oclAsType(notation::Size);
- if (size.width = -1) then {
- size.width := dWidth;
- } endif;
- if (size.height = -1) then {
- size.height := dHeight;
- } endif;
-}
-
-/***** Nodes **********/
-
-mapping UMLShape::toPapyrusShape() : Shape inherits Shape::toPapyrusShape when {
- not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(DurationInterval)or
- self.element.oclIsTypeOf(UseCase)or
- (self.element.oclIsTypeOf(Port) and not(self.isSemiAutomatic()))or
- self.element.oclIsTypeOf(LiteralInteger)or
- self.element.oclIsTypeOf(Node)or
- self.element.oclIsTypeOf(Class)or
- self.element.oclIsTypeOf(Expression)or
- self.element.oclIsTypeOf(IntervalConstraint)or
- self.element.oclIsTypeOf(InteractionConstraint)or
- self.element.oclIsTypeOf(TimeConstraint)or
- self.element.oclIsTypeOf(OpaqueBehavior)or
- self.element.oclIsTypeOf(Duration)or
- self.element.oclIsTypeOf(Actor)or
- self.element.oclIsTypeOf(TimeEvent)or
- self.element.oclIsTypeOf(DurationConstraint)or
- //self.element.oclIsTypeOf(Interface)or
- self.element.oclIsTypeOf(SignalEvent)or
- self.element.oclIsTypeOf(TimeExpression)or
- self.element.oclIsTypeOf(Enumeration)or
- self.element.oclIsTypeOf(OpaqueExpression)or
- self.element.oclIsTypeOf(LiteralBoolean)or
- self.element.oclIsTypeOf(AnyReceiveEvent)or
- self.element.oclIsTypeOf(FunctionBehavior)or
- self.element.oclIsTypeOf(LiteralUnlimitedNatural)or
- self.element.oclIsTypeOf(Activity)or
- self.element.oclIsTypeOf(Signal)or
- self.element.oclIsTypeOf(Parameter)or
- self.element.oclIsTypeOf(StringExpression)or
- self.element.oclIsTypeOf(Interval)or
- self.element.oclIsTypeOf(PrimitiveType)or
- self.element.oclIsTypeOf(CollaborationUse)or
- self.element.oclIsTypeOf(TimeObservation)or
- self.element.oclIsTypeOf(DeploymentSpecification)or
- self.element.oclIsTypeOf(StateMachine)or
- self.element.oclIsTypeOf(Device)or
- self.element.oclIsTypeOf(Comment)or
- self.element.oclIsTypeOf(InformationItem)or
- self.element.oclIsTypeOf(Artifact)or
- self.element.oclIsTypeOf(Collaboration)or
- self.element.oclIsTypeOf(ProtocolStateMachine)or
- self.element.oclIsTypeOf(TimeInterval)or
- self.element.oclIsTypeOf(CallEvent)or
- self.element.oclIsTypeOf(InstanceValue)or
- self.element.oclIsTypeOf(DurationObservation)or
- self.element.oclIsTypeOf(Property)or
- self.element.oclIsTypeOf(Constraint)or
- self.element.oclIsTypeOf(ExecutionEnvironment)or
- self.element.oclIsTypeOf(LiteralString)or
- self.element.oclIsTypeOf(DataType)or
- self.element.oclIsTypeOf(ChangeEvent)or
- self.element.oclIsTypeOf(Component)or
- self.element.oclIsTypeOf(LiteralNull)or
- self.element.oclIsTypeOf(Interaction)
- )
-}{
-
- if (result.type = 'Property_Shape') {
- // Handle default size of part shape
- result.map defaultSize(160, 40);
- }
-}
-
-/****** Adjustments to newly attached output views ******/
-
-mapping inout Node::adjustNode() disjuncts
- Node::adjustStructureCompartment,
- Node::adjustPort
-;
-
-mapping inout Node::adjustStructureCompartment() when {
- self.type = 'Class_StructureCompartment'
-} {
- // All ports, even internal ports, are children of the frame
- self.children->select(type = 'Port_Shape').map hoistPortNode();
-}
-
-mapping inout Node::adjustPort() when {
- self.type = 'Port_Shape'
- and self.element.oclIsKindOf(Port)
- and self.element.oclAsType(Port).isConjugated
-} {
- // If the port is conjugated, we need to enable the default visualization,
- // not the colour (if any) imported from RSA
- self.unset('fillColor');
-}
-
-mapping inout Node::hoistPortNode() {
- self.parentNode().parentNode().children += self;
-
- // Add the height of the name label to account for the placement in the frame
- // instead of the structure compartment
- var loc = self.layoutConstraint.oclAsType(Location);
- loc.y := loc.y + 20;
-}
-
-/****** Connector Labels ******/
-
-mapping BasicDecorationNode::toConnectorLabel() : DecorationNode inherits Node::toPapyrusConnectorLabel when {
- not self.getType().oclIsUndefined() and (
- self.type = 'ToMultiplicityLabel' or
- self.type = 'ToRoleLabel' or
- self.type = 'FromMultiplicityLabel' or
- self.type = 'FromRoleLabel' or
- self.type = 'NameLabel' or
- self.type = 'KindLabel' or
- self.type = 'PartTextCompartment' or
- self.type = 'CommentBody'
- )
-}{
-
-}
-
-/****** Compartments *******/
-
-mapping BasicDecorationNode::toLabel() : DecorationNode inherits Node::toPapyrusNodeLabel when {
- not self.getType().oclIsUndefined() and
- self.element.oclIsKindOf(uml::NamedElement) and
- self.type = 'Name' or self.type = 'PartName' or self.type = 'PortName'
-}{
-// add the layoutconstraint fot the PortNamelabel
- if (self.type = 'PortName'){
- var thislayoutConstraint := result.layoutConstraint.oclAsType(Location);
- thislayoutConstraint.x:=thislayoutConstraint.x -10; // to fit better RSA layout
- thislayoutConstraint.y:=thislayoutConstraint.y -10; // to fit better RSA layout
- result.layoutConstraint := thislayoutConstraint;
- }
-}
-
-mapping BasicSemanticCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- self.type.endsWith('Compartment') and not self.getType().oclIsUndefined()
-}{
- result.children := self.findElement().map toContents(self);
-}
-
-mapping Element::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Enumeration::toContents,
- DataType::toContents
-;
-
-mapping Enumeration::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- Enumeration::toliteralsContents
-;
-
-mapping DataType::toContents(node : BasicSemanticCompartment) : Sequence(Node) disjuncts
- DataType::topropertiesContents,
- DataType::tooperationsContents
-;
-
-mapping Enumeration::toliteralsContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'EnumerationLiteralCompartment';
-}{
- init {
- result := (self.map fillEnumerationLiteral(node))
- }
-}
-
-mapping DataType::topropertiesContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'Compartment';
-}{
- init {
- result := (self.map fillProperty(node))
- }
-}
-
-mapping DataType::tooperationsContents(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type = 'Compartment';
-}{
- init {
- result := (self.map fillOperation(node))
- }
-}
-
-mapping uml::DataType::fillProperty(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='Compartment';
-}{
- init {
- result := self.ownedAttribute->selectByKind(Property).map toPropertyInDataType(node)->asSequence();
- }
-}
-
-mapping uml::DataType::fillOperation(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='Compartment';
-}{
- init {
- result := self.ownedOperation->selectByKind(Operation).map toOperationInDataType(node)->asSequence();
- }
-}
-
-
-
-mapping uml::Enumeration::fillEnumerationLiteral(node : BasicSemanticCompartment) : Sequence(Node) when {
- node.type='EnumerationLiteralCompartment';
-}{
- init {
- result := self.ownedLiteral->selectByKind(EnumerationLiteral).map toEnumerationLiteralInEnumeration(node)->asSequence();
- }
-}
-
-mapping UMLConnector::toCommentLink() : Connector inherits Connector::toCommentLink when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Comment) or
- self.target.element.oclIsKindOf(Comment)
- )
-}{
- result.type :='Comment_AnnotatedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-mapping UMLConnector::toConstraintLink() : Connector inherits Connector::toPapyrusConnector when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Constraint) or
- self.target.element.oclIsKindOf(Constraint)
- )
-}{
- result.type :='Constraint_ConstrainedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-mapping Property::toPropertyInDataType(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Property_AttributeLabel';
-}
-
-mapping Operation::toOperationInDataType(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'Operation_OperationLabel';
-}
-
-mapping Reception::toReceptionIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3100';
-}
-
-mapping EnumerationLiteral::toEnumerationLiteralInEnumeration(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'EnumerationLiteral_LiteralLabel';
-}
-
-mapping Activity::toActivityIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3103';
-}
-
-mapping Interaction::toInteractionIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3104';
-}
-
-mapping ProtocolStateMachine::toProtocolStateMachineIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3105';
-}
-
-mapping StateMachine::toStateMachineIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3106';
-}
-
-mapping FunctionBehavior::toFunctionBehaviorIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3107';
-}
-
-mapping OpaqueBehavior::toOpaqueBehaviorIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3108';
-}
-
-mapping Collaboration::toCollaborationIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3109';
-}
-
-mapping Interface::toInterfaceIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3110';
-}
-
-mapping Enumeration::toEnumerationIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3111';
-}
-
-mapping PrimitiveType::toPrimitiveTypeIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3112';
-}
-
-mapping DataType::toDataTypeIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3113';
-}
-
-mapping Class::toClassIn(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := '3114';
-}
-
-
-
-/******* Edges ********/
-
-
-mapping UMLConnector::toPapyrusConnector() : notation::Connector inherits Connector::toPapyrusConnector when {
- not self.getType().oclIsUndefined() and (
- self.element.oclIsTypeOf(ComponentRealization)or
- self.element.oclIsTypeOf(InterfaceRealization)or
- self.element.oclIsTypeOf(Substitution)or
- self.element.oclIsTypeOf(Realization)or
- self.element.oclIsTypeOf(Manifestation)or
- self.element.oclIsTypeOf(Abstraction)or
- self.element.oclIsTypeOf(Usage)or
- self.element.oclIsTypeOf(Deployment)or
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(Dependency)or
- self.element.oclIsTypeOf(uml::Connector)or
- self.element.oclIsTypeOf(Generalization)or
- self.element.oclIsTypeOf(InformationFlow)
- )
-}{
- result.styles := self.map toFontStyle();
-}
-
-/****** Element Type queries ******/
-
-query View::getNodeType(element : Element) : String {
- return
- if element.oclIsTypeOf(DurationInterval) then 'DurationInterval_Shape'
- elif element.oclIsTypeOf(UseCase) then 'UseCase_Shape'
- elif element.oclIsTypeOf(Port) then 'Port_Shape'
- elif element.oclIsTypeOf(LiteralInteger) then 'LiteralInteger_Shape'
- elif element.oclIsTypeOf(Node) then 'Node_Shape'
- elif element.oclIsTypeOf(Class) then 'Class_Shape'
- elif element.oclIsTypeOf(Expression) then 'Expression_Shape'
- elif element.oclIsTypeOf(IntervalConstraint) then 'IntervalConstraint_Shape'
- elif element.oclIsTypeOf(InteractionConstraint) then 'InteractionConstraint_Shape'
- elif element.oclIsTypeOf(TimeConstraint) then 'TimeConstraint_Shape'
- elif element.oclIsTypeOf(OpaqueBehavior) then 'OpaqueBehavior_Shape'
- elif element.oclIsTypeOf(Duration) then 'Duration_Shape'
- elif element.oclIsTypeOf(Actor) then 'Actor_Shape'
- elif element.oclIsTypeOf(TimeEvent) then 'TimeEvent_Shape'
- elif element.oclIsTypeOf(DurationConstraint) then 'DurationConstraint_Shape'
- //elif element.oclIsTypeOf(Interface) then 'Interface_Shape'
- elif element.oclIsTypeOf(SignalEvent) then 'SignalEvent_Shape'
- elif element.oclIsTypeOf(TimeExpression) then 'TimeExpression_Shape'
- elif element.oclIsTypeOf(Enumeration) then 'Enumeration_Shape'
- elif element.oclIsTypeOf(OpaqueExpression) then 'OpaqueExpression_Shape'
- elif element.oclIsTypeOf(LiteralBoolean) then 'LiteralBoolean_Shape'
- elif element.oclIsTypeOf(AnyReceiveEvent) then 'AnyReceiveEvent_Shape'
- elif element.oclIsTypeOf(FunctionBehavior) then 'FunctionBehavior_Shape'
- elif element.oclIsTypeOf(LiteralUnlimitedNatural) then 'LiteralUnlimitedNatural_Shape'
- elif element.oclIsTypeOf(Activity) then 'Activity_Shape'
- elif element.oclIsTypeOf(Signal) then 'Signal_Shape'
- elif element.oclIsTypeOf(Parameter) then 'Parameter_Shape'
- elif element.oclIsTypeOf(StringExpression) then 'StringExpression_PackagedElementShape'
- elif element.oclIsTypeOf(Interval) then 'Interval_Shape'
- elif element.oclIsTypeOf(PrimitiveType) then 'PrimitiveType_Shape'
- elif element.oclIsTypeOf(CollaborationUse) then 'CollaborationUse_Shape'
- elif element.oclIsTypeOf(TimeObservation) then 'TimeObservation_Shape'
- elif element.oclIsTypeOf(DeploymentSpecification) then 'DeploymentSpecification_Shape'
- elif element.oclIsTypeOf(StateMachine) then 'StateMachine_Shape'
- elif element.oclIsTypeOf(Device) then 'Device_Shape'
- elif element.oclIsTypeOf(Comment) then 'Comment_Shape'
- elif element.oclIsTypeOf(InformationItem) then 'InformationItem_Shape'
- elif element.oclIsTypeOf(Artifact) then 'Artifact_Shape'
- elif element.oclIsTypeOf(Collaboration) then 'Collaboration_Shape'
- elif element.oclIsTypeOf(ProtocolStateMachine) then 'ProtocolStateMachine_Shape'
- elif element.oclIsTypeOf(TimeInterval) then 'TimeInterval_Shape'
- elif element.oclIsTypeOf(CallEvent) then 'CallEvent_Shape'
- elif element.oclIsTypeOf(InstanceValue) then 'InstanceValue_Shape'
- elif element.oclIsTypeOf(DurationObservation) then 'DurationObservation_Shape'
- elif element.oclIsTypeOf(Property) then 'Property_Shape'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_Shape'
- elif element.oclIsTypeOf(ExecutionEnvironment) then 'ExecutionEnvironment_Shape'
- elif element.oclIsTypeOf(LiteralString) then 'LiteralString_Shape'
- elif element.oclIsTypeOf(DataType) then 'DataType_Shape'
- elif element.oclIsTypeOf(ChangeEvent) then 'ChangeEvent_Shape'
- elif element.oclIsTypeOf(Component) then 'Component_Shape'
- elif element.oclIsTypeOf(LiteralNull) then 'LiteralNull_Shape'
- elif element.oclIsTypeOf(Interaction) then 'Interaction_Shape'
- else self.fail()
- endif;
-}
-
-
-query View::getDecorationType(element : Element) : String{
- var res := self.doGetDecorationType(element);
-
-
- /*log('Get papyrus ID for'+ self.element.eClass().name+', '+self.type);
-
- log(res);
-
- if self.container().oclIsKindOf(Node) then
- log('IsNode')
- else
- log('IsEdge')
- endif;*/
-
-
- return res;
-}
-
-query View::doGetDecorationType(element : Element) : String{
- return if self.container().oclIsKindOf(Node) then {
- return if element.oclIsTypeOf(DurationInterval) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'DurationInterval_NameLabel';
-
- }
- elif element.oclIsTypeOf(UseCase) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'UseCase_NameLabel';
-
- }
- elif element.oclIsTypeOf(Port) then
- return switch {
- case (self.type = 'PortName') 'Port_NameLabel';
-
- }
- elif element.oclIsTypeOf(LiteralInteger) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'LiteralInteger_NameLabel';
-
- }
- elif element.oclIsTypeOf(Node) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Node_NameLabel';
- case (self.type = 'StructureCompartment') 'Node_StructureCompartment';
- }
- elif element.oclIsTypeOf(Class) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Class_NameLabel';
- case (self.type = 'StructureCompartment') 'Class_StructureCompartment';
- }
- elif element.oclIsTypeOf(Expression) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Expression_NameLabel';
-
- }
- elif element.oclIsTypeOf(IntervalConstraint) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'IntervalConstraint_NameLabel';
-
- }
- elif element.oclIsTypeOf(InteractionConstraint) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'InteractionConstraint_NameLabel';
-
- }
- elif element.oclIsTypeOf(TimeConstraint) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'TimeConstraint_NameLabel';
-
- }
- elif element.oclIsTypeOf(OpaqueBehavior) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'OpaqueBehavior_NameLabel';
- case (self.type = 'StructureCompartment') 'OpaqueBehavior_StructureCompartment';
- }
- elif element.oclIsTypeOf(Duration) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Duration_NameLabel';
-
- }
- elif element.oclIsTypeOf(Actor) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Actor_NameLabel';
-
- }
- elif element.oclIsTypeOf(TimeEvent) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'TimeEvent_NameLabel';
-
- }
- elif element.oclIsTypeOf(DurationConstraint) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'DurationConstraint_NameLabel';
-
- }
- elif element.oclIsTypeOf(Interface) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Interface_NameLabel';
-
- }
- elif element.oclIsTypeOf(SignalEvent) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'SignalEvent_NameLabel';
-
- }
- elif element.oclIsTypeOf(TimeExpression) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'TimeExpression_NameLabel';
-
- }
- elif element.oclIsTypeOf(Enumeration) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Enumeration_NameLabel';
- case (self.type = 'EnumerationLiteralCompartment') 'Enumeration_LiteralCompartment';
- }
- elif element.oclIsTypeOf(OpaqueExpression) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'OpaqueExpression_NameLabel';
-
- }
- elif element.oclIsTypeOf(LiteralBoolean) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'LiteralBoolean_NameLabel';
-
- }
- elif element.oclIsTypeOf(AnyReceiveEvent) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'AnyReceiveEvent_NameLabel';
-
- }
- elif element.oclIsTypeOf(FunctionBehavior) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'FunctionBehavior_NameLabel';
- case (self.type = 'StructureCompartment') 'FunctionBehavior_StructureCompartment';
- }
- elif element.oclIsTypeOf(LiteralUnlimitedNatural) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'LiteralUnlimitedNatural_NameLabel';
-
- }
- elif element.oclIsTypeOf(Activity) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Activity_NameLabel';
- case (self.type = 'StructureCompartment') 'Activity_StructureCompartment';
- }
- elif element.oclIsTypeOf(Signal) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Signal_NameLabel';
-
- }
- elif element.oclIsTypeOf(Parameter) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Parameter_NameLabel';
-
- }
- elif element.oclIsTypeOf(StringExpression) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'StringExpression_NameLabel';
-
- }
- elif element.oclIsTypeOf(Interval) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Interval_NameLabel';
-
- }
- elif element.oclIsTypeOf(PrimitiveType) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'PrimitiveType_NameLabel';
-
- }
- elif element.oclIsTypeOf(CollaborationUse) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'CollaborationUse_NameLabel';
-
- }
- elif element.oclIsTypeOf(TimeObservation) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'TimeObservation_NameLabel';
-
- }
- elif element.oclIsTypeOf(DeploymentSpecification) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'DeploymentSpecification_NameLabel';
-
- }
- elif element.oclIsTypeOf(StateMachine) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'StateMachine_NameLabel';
- case (self.type = 'StructureCompartment') 'StateMachine_StructureCompartment';
- }
- elif element.oclIsTypeOf(Device) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Device_NameLabel';
- case (self.type = 'StructureCompartment') 'Device_StructureCompartment';
- }
- elif element.oclIsTypeOf(InformationItem) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'InformationItem_NameLabel';
-
- }
- elif element.oclIsTypeOf(Artifact) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Artifact_NameLabel';
-
- }
- elif element.oclIsTypeOf(Collaboration) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Collaboration_NameLabel';
- case (self.type = 'StructureCompartment') 'Collaboration_StructureCompartment';
- }
- elif element.oclIsTypeOf(ProtocolStateMachine) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'ProtocolStateMachine_NameLabel';
- case (self.type = 'StructureCompartment') 'ProtocolStateMachine_StructureCompartment';
- }
- elif element.oclIsTypeOf(TimeInterval) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'TimeInterval_NameLabel';
-
- }
- elif element.oclIsTypeOf(CallEvent) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'CallEvent_NameLabel';
-
- }
- elif element.oclIsTypeOf(InstanceValue) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'InstanceValue_NameLabel';
-
- }
- elif element.oclIsTypeOf(DurationObservation) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'DurationObservation_NameLabel';
-
- }
- elif element.oclIsTypeOf(Property) then
- return switch {
- case (self.type = 'PartName' or self.type='PartTextCompartment') 'Property_NameLabel';
- case (self.type = 'StructureCompartment') 'Property_StructureCompartment';
- }
- elif element.oclIsTypeOf(Constraint) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Constraint_NameLabel';
-
- }
- elif element.oclIsTypeOf(ExecutionEnvironment) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'ExecutionEnvironment_NameLabel';
- case (self.type = 'StructureCompartment') 'ExecutionEnvironment_StructureCompartment';
- }
- elif element.oclIsTypeOf(LiteralString) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'LiteralString_NameLabel';
-
- }
- elif element.oclIsTypeOf(DataType) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'DataType_NameLabel';
- case (self.type = 'Compartment') 'DataType_AttributeCompartment';
- case (self.type = 'Compartment') 'DataType_OperationCompartment';
- }
- elif element.oclIsTypeOf(ChangeEvent) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'ChangeEvent_NameLabel';
-
- }
- elif element.oclIsTypeOf(Component) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Component_NameLabel';
- case (self.type = 'StructureCompartment') 'Component_StructureCompartment';
- }
- elif element.oclIsTypeOf(LiteralNull) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'LiteralNull_NameLabel';
-
- }
- elif element.oclIsTypeOf(Interaction) then
- return switch {
- case (self.type = 'Name' or self.type = 'PartName') 'Interaction_NameLabel';
- case (self.type = 'StructureCompartment') 'Interaction_StructureCompartment';
- }
- elif element.oclIsTypeOf(Comment) then
- return switch {
- case (self.type = 'CommentBody') 'Comment_BodyLabel';
- }
- endif
- } else {
- return if element.oclIsTypeOf(ComponentRealization) then
- return switch {
- case (self.type='Name') 'ComponentRealization_NameLabel';
- case (self.type = 'NameLabel') 'ComponentRealization_NameLabel';
- case (self.type = 'KindLabel') 'ComponentRealization_StereotypeLabel';
- }
- elif element.oclIsTypeOf(InterfaceRealization) then
- return switch {
- case (self.type='Name') 'InterfaceRealization_NameLabel';
- case (self.type = 'NameLabel') 'InterfaceRealization_NameLabel';
- case (self.type = 'KindLabel') 'InterfaceRealization_StereotypeLabel';
- }
- elif element.oclIsTypeOf(Substitution) then
- return switch {
- case (self.type='Name') 'Substitution_NameLabel';
- case (self.type = 'NameLabel') 'Substitution_NameLabel';
- case (self.type = 'KindLabel') 'Substitution_StereotypeLabel';
- }
- elif element.oclIsTypeOf(Realization) then
- return switch {
- case (self.type='Name') 'Realization_NameLabel';
- case (self.type = 'NameLabel') 'Realization_NameLabel';
- case (self.type = 'KindLabel') 'Realization_StereotypeLabel';
- }
- elif element.oclIsTypeOf(Manifestation) then
- return switch {
- case (self.type='Name') 'Manifestation_NameLabel';
- case (self.type = 'NameLabel') 'Manifestation_NameLabel';
- case (self.type = 'KindLabel') 'Manifestation_StereotypeLabel';
- }
- elif element.oclIsTypeOf(Abstraction) then
- return switch {
- case (self.type='Name') 'Abstraction_NameLabel';
- case (self.type = 'NameLabel') 'Abstraction_NameLabel';
- case (self.type = 'KindLabel') 'Abstraction_StereotypeLabel';
- }
- elif element.oclIsTypeOf(Usage) then
- return switch {
- case (self.type='Name') 'Usage_NameLabel';
- case (self.type = 'NameLabel') 'Usage_NameLabel';
- case (self.type = 'KindLabel') 'Usage_StereotypeLabel';
- }
- elif element.oclIsTypeOf(Deployment) then
- return switch {
- case (self.type='Name') 'Deployment_NameLabel';
- case (self.type = 'NameLabel') 'Deployment_NameLabel';
- case (self.type = 'KindLabel') 'Deployment_StereotypeLabel';
- }
- elif element.oclIsTypeOf(Dependency) then
- return switch {
- case (self.type='Name') 'Dependency_RoleBindingNameLabel';
- case (self.type = 'NameLabel') 'Dependency_RoleBindingNameLabel';
- case (self.type = 'KindLabel') 'Dependency_RoleBindingStereotypeLabel';
- }
- elif element.oclIsTypeOf(Dependency) then
- return switch {
- case (self.type='Name') 'Dependency_NameLabel';
- case (self.type = 'NameLabel') 'Dependency_NameLabel';
- case (self.type = 'KindLabel') 'Dependency_StereotypeLabel';
- }
- elif element.oclIsTypeOf(uml::Connector) then
- return switch {
- case (self.type='Name') 'Connector_NameLabel';
- case (self.type = 'KindLabel') 'Connector_StereotypeLabel';
- case (self.type = 'NameLabel') 'Connector_NameLabel';
- case (self.type = 'FromMultiplicityLabel') 'Connector_SourceMultiplicityLabel';
- case (self.type = 'ToMultiplicityLabel') 'Connector_TargetMultiplicityLabel';
- }
- elif element.oclIsTypeOf(Generalization) then
- return switch {
-
- case (self.type = 'KindLabel') 'Generalization_StereotypeLabel';
- }
- elif element.oclIsTypeOf(InformationFlow) then
- return switch {
-
-
- case (self.type = 'KindLabel') 'InformationFlow_StereotypeLabel';
- }
- endif
- } endif;
-}
-
-
-query View::getEdgeType(element : Element) : String {
- return
- if self.type = 'Reference' then '' /* Comment/Constraint Links handled separately */
- elif element.oclIsTypeOf(ComponentRealization) then 'ComponentRealization_Edge'
- elif element.oclIsTypeOf(InterfaceRealization) then 'InterfaceRealization_Edge'
- elif element.oclIsTypeOf(Substitution) then 'Substitution_Edge'
- elif element.oclIsTypeOf(Realization) then 'Realization_Edge'
- elif element.oclIsTypeOf(Manifestation) then 'Manifestation_Edge'
- elif element.oclIsTypeOf(Abstraction) then 'Abstraction_Edge'
- elif element.oclIsTypeOf(Usage) then 'Usage_Edge'
- elif element.oclIsTypeOf(Deployment) then 'Deployment_Edge'
- elif element.oclIsTypeOf(Dependency) then 'Dependency_RoleBindingEdge'
- elif element.oclIsTypeOf(Dependency) then 'Dependency_Edge'
- elif element.oclIsTypeOf(uml::Connector) then 'Connector_Edge'
- elif element.oclIsTypeOf(Generalization) then 'Generalization_Edge'
- elif element.oclIsTypeOf(InformationFlow) then 'InformationFlow_Edge'
- else self.fail()
- endif;
-}
-
-// see Bug 508438: a semiautomatic port layout is the persistence of a port shape layout (with no specific x and y) in the notation model
-// this layout constraint is added whenever the parent shape got refreshed (when for example we move another port)
-// we did not tranform this type of port shape to not force the location of the port at the top left corner (with explicitly x=y=0)
-query UMLShape::isSemiAutomatic() : Boolean {
- var layoutlocation = self.layoutConstraint.oclAsType(Location);
- return layoutlocation.x=0 and layoutlocation.y=0;
-
-}
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAToPapyrus.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAToPapyrus.qvto
deleted file mode 100644
index 330baf01adf..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAToPapyrus.qvto
+++ /dev/null
@@ -1,464 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013, 2016 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bugs 461980, 496653, 497841, 498282
- *****************************************************************************/
-import org.eclipse.papyrus.m2m.qvto.UI;
-import org.eclipse.papyrus.m2m.qvto.NotationTypes;
-import libraries.EclipseUI;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-modeltype holder "strict" uses 'http://www.eclipse.org/papyrus/migration/diagramholder';
-
-/**
-* Abstract transformation rules for importing notation diagrams into Papyrus
-*/
-transformation RSAToPapyrus(inout semantics : uml, out graphics : notation, in param : config);
-
-
-main() {
- semantics.rootObjects()[uml::Element]->map toOwnedDiagrams();
-}
-
-mapping inout Element::toOwnedDiagrams(){
- self.ownedElement.map toOwnedDiagrams();
-
- self.eAnnotations->select (source = 'uml2.diagrams' or source = 'uml2.profile.diagrams').map toOwnedDiagrams();
- //self.eAnnotations := self.eAnnotations->reject(source = 'uml2.diagrams' or source = 'uml2.profile.diagrams'); /* Delete diagrams from resulting UML Model */
-}
-
-mapping EAnnotation::toOwnedDiagrams()
- when { self.source = 'uml2.diagrams' or self.source = 'uml2.profile.diagrams'}{
-
- self.contents->selectByKind(notation::Diagram).map generateDiagram();
-}
-
-mapping DiagramHolder::toOwnedDiagrams() {
- self.ownedDiagrams.map generateDiagram();
-}
-
-/** Abstract mappings. Never called directly, inherited only */
-
-
-abstract mapping notation::View::toPapyrusView() : notation::View {
- result.element := self.element; /* UML Model is in-out. No mapping required. */
- result.visible := self.visible;
-
- // Bug 496653: Name labels need to be first for proper rendering in Papyrus
- var sortedChildren := self.children->sortedBy(if isNameLabel() then -1 else 0 endif);
- result.children := sortedChildren.map toNode();
- result.type := self.getType();
-
- // Adjust containment or other characteristics, as necessary, after attachment
- result.children.map adjustNode();
-}
-
-/** Overridden/extended in specialized mappings to adjust newly attached nodes. */
-abstract mapping inout notation::Node::adjustNode() {
- // Pass
-}
-
-/** A name label is a BasicDecorationNode of type 'Name' in RSA diagrams. */
-query Node::isNameLabel() : Boolean {
- return self.oclIsKindOf(BasicDecorationNode) and self.type = 'Name'
-}
-
-abstract mapping Edge::toPapyrusEdge() : Edge inherits View::toPapyrusView {
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := self.sourceAnchor.map toAnchor();
- result.targetAnchor := self.targetAnchor.map toAnchor();
-
- result.source := self.source.map toView();
- result.target := self.target.map toView();
-}
-
-abstract mapping Connector::toPapyrusConnector() : Connector inherits Edge::toPapyrusEdge, RoutingStyle::toRoutingstyle, LineStyle::toLineStyle {};
-
-abstract mapping Connector::toCommentLink() : Connector inherits Connector::toPapyrusConnector{};
-
-abstract mapping Node::toPapyrusNode() : Node inherits View::toPapyrusView{};
-
-abstract mapping inout Shape::addCommentDecoration(){};
-
-abstract mapping Node::toPapyrusConnectorLabel() : Node {
- result.visible := self.visible;
- result.type := self.getType();
-
- var initX := self.layoutConstraint.oclAsType(Location).x;
- var initY := self.layoutConstraint.oclAsType(Location).y;
-
- if self.diagram.isHimetric() then {
- initX := self.toPixels(initX);
- initY := self.toPixels(initY);
- } endif;
-
- result.layoutConstraint := object Location {
- x := initX;
- y := initY;
- };
-
- //Do not set element
- //Do not set children
-}
-
-abstract mapping Node::toPapyrusNodeLabel() : Node {
-
- result.visible := self.visible;
-
- result.type := self.getType();
-
- result.layoutConstraint := (self.layoutConstraint.map toLayout(self.diagram)).oclAsType(Location);
-
- //Do not set element
- //Do not set children
-}
-
-abstract mapping Shape::toPapyrusShape() : Shape inherits Node::toPapyrusNode, FillStyle::toFillStyle, FontStyle::toFontStyle, LineStyle::toLineStyle{
- result.layoutConstraint := self.layoutConstraint.map toLayout(self.diagram);
-
- if self.oclIsKindOf(UMLView) then {
- result.map handleStereotypeDisplay(self.oclAsType(UMLView));
- } endif;
-}
-
-mapping inout View::handleStereotypeDisplay(sourceView : UMLView) : StringValueStyle when {
- not sourceView.showStereotype.oclIsUndefined()
-}{
- //We need to know all stereotypes to properly translate this in Papyrus, but they might be broken at this stage
- //Additionally, we will lose track of the source View when stereotypes are fixed.
- //Let's serialize this information temporarily, then rely on it to properly initialize Papyrus DecorationNodes later
- result.name := "stereotypeDisplayBackup";
- result.stringValue := sourceView.showStereotype;
- self.styles += result;
-}
-
-abstract mapping DrawerStyle::toDrawerStyle() : DrawerStyle {
- result.collapsed := self.collapsed;
-}
-
-abstract mapping BasicSemanticCompartment::toBasicCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle {
- result.styles := object TitleStyle{
- showTitle := self.styles->selectByKind(TitleStyle)->any(true).showTitle;
- };
-}
-
-abstract mapping UMLShapeCompartment::toAbstractStructureCompartment() : DecorationNode inherits Node::toPapyrusNode {
- result.styles := object TitleStyle{
- showTitle := self.showTitle;
- };
-}
-
-abstract mapping Diagram::toPapyrusDiagram() : notation::Diagram inherits notation::View::toPapyrusView {
-
- population {
- result.name := self.getName();
-
- /* Papyrus uses Pixel, whereas RSA uses Himetric. Forcing the conversion to Pixel is a bad idea */
- result.measurementUnit := MeasurementUnit::Pixel;
- result.styles := createDiagramStyle();
-
- result.element := self.findElement().oclAsType(EObject);
- // log(result.element.eClass().name);
- // log(result.element.toString());
- var targetEdges := self.edges.map toEdge();
- result.edges += targetEdges;
-
- // And tweak some details
- if (result.hasDiagramFrame()) then {
- result.getDiagramFrame().map defaultFrameSize();
- } endif;
- }
-
- end {
- worked(1);
- }
-}
-
-query Diagram::getName() : String{
- return if self.name.oclIsUndefined() or self.name = '' then {
- var element := self.findElement();
- return if element.oclIsKindOf(NamedElement) then
- element.oclAsType(NamedElement).getDiagramName()
- else
- ''
- endif;
- } else
- self.name
- endif;
-}
-
-query NamedElement::getDiagramName() : String {
- return if self.oclIsKindOf(Behavior) then
- self.owner.oclAsType(NamedElement).getDiagramName()
- else
- self.name
- endif;
-}
-
-query Diagram::findElement() : Element {
- var owningEAnnotation := self.container(); //Simple diagram, stored in its context element
-
- if owningEAnnotation.oclIsUndefined() or not owningEAnnotation.oclIsKindOf(EAnnotation) then
- //Maybe the diagram is stored in a fragment. Find its DiagramHolder
- owningEAnnotation := semantics.objectsOfType(DiagramHolder)![ownedDiagrams->includes(self)]
- endif;
-
- return if owningEAnnotation.oclIsUndefined() then
- //We didn't find the EAnnotation containing the Diagram. Use any root element of the model (Usually there is only one)
- semantics.rootObjects()[Element]->any(true)
- else
- owningEAnnotation.oclAsType(EAnnotation).eModelElement.oclAsType(Element)
- endif;
-}
-
-abstract mapping Element::toCompartmentEntry(node : Node) : Shape {
- result.element := self.oclAsType(EObject);
- //result.type := self.findType(node);
-}
-
-helper createDiagramStyle() : DiagramStyle {
- return object DiagramStyle {
-
- };
-}
-
-
-/** Common mappings: Copy (Call or Inherit) */
-
-mapping FontStyle::toFontStyle() : FontStyle {
- result.fontColor := self.fontColor;
- result.fontName := self.fontName;
- result.fontHeight := self.fontHeight;
- result.bold := self.bold;
- result.italic := self.italic;
- result.underline := self.underline;
- result.strikeThrough := self.strikeThrough;
-}
-
-mapping FillStyle::toFillStyle() : FillStyle {
- result.fillColor := self.fillColor;
-
- /* Workaround for Bug 456933: use default transparency so that CSS can override the value if necessary */
- result.transparency := if self.transparency = 0 then -1 else self.transparency endif;
-
- //TODO: Gradient
-}
-
-mapping LineStyle::toLineStyle() : LineStyle {
- result.lineColor := self.lineColor;
- result.lineWidth := self.lineWidth;
-}
-
-mapping RoutingStyle::toRoutingstyle() : RoutingStyle {
- result.roundedBendpointsRadius := 0; // see Bug 506718 : do not transform roundedBendpoint :cause corrupted connection in Papyrus
- result.routing := self.routing;
- result.smoothness := self.smoothness;
- result.avoidObstructions := self.avoidObstructions;
- result.closestDistance := self.closestDistance;
- result.jumpLinkStatus := self.jumpLinkStatus;
- result.jumpLinkType := self.jumpLinkType;
- result.jumpLinksReverse := self.jumpLinksReverse;
-}
-
-abstract mapping Bendpoints::toBendpoint(diagram: Diagram) : Bendpoints disjuncts
- RelativeBendpoints::toBendpoint
-;
-
-mapping RelativeBendpoints::toBendpoint(diagram: Diagram) : Bendpoints {
- init {
- result := object RelativeBendpoints {}
- }
-
- var convertToPixels := diagram.isHimetric();
- self.copyBendpoints(result.oclAsType(RelativeBendpoints), convertToPixels);
-}
-
-mapping LayoutConstraint::toLayout(diagram : Diagram) : LayoutConstraint disjuncts
- Bounds::toLayout{
-}
-
-mapping Bounds::toLayout(diagram : Diagram) : LayoutConstraint {
- init {
- result := object Bounds{}
- }
-
- var bounds : Bounds := result.oclAsType(Bounds);
-
- if diagram.isHimetric() then {
- bounds.x := self.toPixels(self.x);
- bounds.y := self.toPixels(self.y);
- if self.width > 0 then bounds.width := self.toPixels(self.width) endif;
- if self.height > 0 then bounds.height := self.toPixels(self.height) endif;
- } else{
- bounds.x := self.x;
- bounds.y := self.y;
- if self.width > 0 then bounds.width := self.width endif;
- if self.height > 0 then bounds.height := self.height endif;
- } endif;
-}
-
-query View::isHimetric() : Boolean {
- return self.diagram.measurementUnit = MeasurementUnit::Himetric
-}
-
-mapping Anchor::toAnchor() : Anchor disjuncts
- IdentityAnchor::toAnchor{
-
-}
-
-mapping IdentityAnchor::toAnchor() : Anchor {
- init {
- result := object IdentityAnchor {
- }
- }
-
- var id := if self.oclAsType(EObject).isHimetric() then {
- var id := self.id;
- var part1 := id.substringBefore(':').asInteger();
- var part2 := id.substringAfter(':').asInteger();
- var newId := if part1.oclIsInvalid() or part2.oclIsInvalid() then
- self.id
- else
- (self.toPixels(part1).toString())+':'+(self.toPixels(part2).toString())
- endif;
- newId;
- } else {
- self.id;
- } endif;
-
- result.oclAsType(IdentityAnchor).id := id;
-}
-
-query EObject::isHimetric() : Boolean {
- return if self.oclIsKindOf(Diagram) then
- self.oclAsType(Diagram).isHimetric()
- else
- self.eContainer().isHimetric()
- endif;
-}
-
-helper View::fail() : String {
- var type := self.type;
- var isProxy := self.element != null and self.element.oclIsUndefined();
- var semanticEClassName := if isProxy then 'Unresolved (proxy) reference' elif self.element = null then 'No semantic element' else self.element.eClass().name endif;
- warning('Unknown or unsupported element type. Graphical Type = "'+self.type+'", Semantic Type = "'+semanticEClassName+'". Diagram Type: "'+self.diagram.type+'". The element will be ignored.');
- return '';
-}
-
-/**
- * Unset the named feature of an object.
- */
-helper OclAny::unset(feature : String) {
- var eObject : EObject := self.oclAsType(EObject);
- eObject.eUnset(eObject.eClass().getEStructuralFeature(feature));
-}
-
-
-/** Generic mapping logic */
-
-query View::getType(): String{
- var element : Element := self.findElement();
-
- return
-
- if self.oclIsKindOf(Diagram) then
- self.getDiagramType()
- elif self.oclIsKindOf(Edge) then
- self.getEdgeType(element)
- elif self.oclIsKindOf(BasicDecorationNode) then
- self.getDecorationType(element)
- elif self.oclIsKindOf(Node) then
- self.getNodeType(element)
- else self.fail()
-
- endif;
-}
-
-query View::parent() : View {
- return self.oclAsType(EObject).eContainer().oclAsType(View);
-}
-
-query Node::parentNode() : Node {
- return self.oclAsType(EObject).eContainer().oclAsType(Node);
-}
-
-query View::findElement() : Element {
- return self.findAssociatedElement().oclAsType(Element);
-}
-
-query View::findAssociatedElement() : EObject {
- return if self.element.oclIsUndefined() then
- self.container().oclAsType(View).findAssociatedElement()
- else
- self.element
- endif;
-}
-
-query Sequence(Node)::safeUnion(unionWith: Sequence(Node)) : Sequence(Node) {
- var res := if self->oclIsUndefined() and unionWith->oclIsUndefined() then
- object Sequence(Object){}
- elif self->oclIsUndefined() then
- unionWith
- elif unionWith->oclIsUndefined() then
- self
- else
- self->union(unionWith)
- endif;
-
- return res;
-}
-
-mapping View::toView() : View disjuncts Node::toNode, Edge::toEdge;
-
-
-/** Diagram-specific transformations (Implement only) */
-
-abstract mapping Node::toNode() : Node;
-
-abstract mapping Edge::toEdge() : Edge;
-
-abstract query View::getDiagramType() : String;
-
-//Distinction between TopNode and ChildNode is not important in the Notation model.
-//Simply use the TopNode Type.
-abstract query View::getNodeType(element : Element) : String;
-
-abstract query View::getEdgeType(element : Element) : String;
-
-abstract query View::getDecorationType(element : Element) : String;
-
-/** Queries whether the imported diagram has a frame (as in behaviour or structure diagrams). */
-query Diagram::hasDiagramFrame() : Boolean {
- return not self.getDiagramFrame().oclIsUndefined();
-}
-
-/** Overridden by specializing transformations to get the diagram frame, if any. */
-query Diagram::getDiagramFrame() : Node {
- return null;
-}
-
-/** Tweaks for specific diagrams */
-
-/** Overridden by specializing transformations to set the default dimensions of the diagram frame. */
-mapping inout Node::defaultFrameSize()
- when { self.layoutConstraint.oclIsKindOf(notation::Size) and let size = self.layoutConstraint.oclAsType(notation::Size) in
- size.width = -1 or size.height = -1 }
-{
- // Pass
-}
-
-/** Main diagram mapping */
-abstract mapping notation::Diagram::generateDiagram() : notation::Diagram;
-
-
diff --git a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAUsecaseDiagram.qvto b/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAUsecaseDiagram.qvto
deleted file mode 100644
index 1d2e3f930e3..00000000000
--- a/extraplugins/migration/org.eclipse.papyrus.migration.rsa/transform/RSAUsecaseDiagram.qvto
+++ /dev/null
@@ -1,397 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2015, 2016 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:
- * Camille Letavernier (CEA LIST) camille.letavernier@cea.fr - Initial API and implementation
- * Christian W. Damus - bug 465656
- *****************************************************************************/
-import RSAToPapyrus;
-import org.eclipse.papyrus.m2m.qvto.Properties;
-
-modeltype notation "strict" uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';
-modeltype umlNotation "strict" uses 'http://www.eclipse.org/papyrus/umlnotation';
-modeltype uml "strict" uses 'http://www.eclipse.org/uml2/5.0.0/UML';
-modeltype ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
-modeltype sash "strict" uses 'http://www.eclipse.org/papyrus/0.7.0/sashdi';
-modeltype vpconfig "strict" uses 'http://www.eclipse.org/papyrus/infra/viewpoints/configuration';
-modeltype vpstyle "strict" uses 'http://www.eclipse.org/papyrus/infra/viewpoints/policy/style';
-modeltype config "strict" uses 'http:///RSAToPapyrusParameters.ecore';
-
-transformation RSAUsecaseDiagram(inout semantics : uml, inout graphics : notation, out di : sash, in param : config);
-
-main() {
- semantics.rootObjects()[uml::Element]->map toOwnedDiagrams();
-}
-
-query View::getDiagramType() : String{
- return 'UseCase';
-}
-
-mapping notation::Diagram::generateDiagram() : notation::Diagram inherits Diagram::toPapyrusDiagram when {
- self.type = 'Usecase'
-}{
- end {
- //Remove Generalization#name since it is not supported in Papyrus
- result.edges->select(e | e.type = 'Generalization_Edge').children->selectByType(DecorationNode)->select(type.oclIsUndefined()).map delete();
-
- //Change the position of the Actor#name Label, since it is fixed in RSA and Floating in Papyrus
- graphics.objectsOfType(DecorationNode)->select(type = 'Actor_NameLabel').map fixActorLabelPosition();
- }
-}
-
-mapping inout notation::DecorationNode::fixActorLabelPosition() when {
- self.type = 'Actor_NameLabel'
-} {
- self.layoutConstraint := object Location {
- x := 20;
- y := 60;
- }
-}
-
-mapping inout notation::DecorationNode::delete(){
- graphics.removeElement(self)
-}
-
-mapping Node::toNode() : Node disjuncts
- UMLShape::toPapyrusShape,
- UMLShapeCompartment::toStructureCompartment,
- BasicDecorationNode::toConnectorLabel,
- BasicDecorationNode::toLabel,
- //BasicSemanticCompartment::toListCompartment,
- ListCompartment::toListCompartment
- //TODO: Disjunct nodes mapping
-;
-/***** Nodes **********/
-
-mapping UMLShape::toPapyrusShape() : Shape inherits Shape::toPapyrusShape when {
- self.type = '' and (
-self.element.oclIsTypeOf(Actor) or
-self.element.oclIsTypeOf(UseCase) or
-self.element.oclIsTypeOf(Package) or
-self.element.oclIsTypeOf(Constraint) or
-self.element.oclIsTypeOf(Comment) or
-self.element.oclIsKindOf(Classifier) or
-self.element.oclIsKindOf(NamedElement) or
-self.element.oclIsTypeOf(Diagram)
- )
-}{
-
-}
-mapping BasicDecorationNode::toLabel() : DecorationNode inherits Node::toPapyrusNode when {
- self.element.oclIsKindOf(uml::NamedElement) and
- self.type = 'Name' or
- self.type = 'ValueSpecification' or //Constraint body
- self.type = 'CommentBody' //Comment body
-}{
-
-}
-mapping Edge::toEdge() : Edge disjuncts
- UMLConnector::toCommentLink,
- UMLConnector::toConstraintLink,
- UMLConnector::toPapyrusConnector
-;
-
-/******* Edges ********/
-
-
-mapping UMLConnector::toPapyrusConnector() : Connector inherits Connector::toPapyrusConnector when {
- self.type = '' and (
-self.element.oclIsTypeOf(Include) or
-self.element.oclIsTypeOf(Extend) or
-self.element.oclIsTypeOf(Generalization) or
-self.element.oclIsTypeOf(Association) or
-self.element.oclIsTypeOf(Dependency) or
-self.element.oclIsTypeOf(Abstraction) or
-self.element.oclIsTypeOf(Usage) or
-self.element.oclIsTypeOf(Realization) or
-self.element.oclIsTypeOf(PackageMerge) or
-self.element.oclIsTypeOf(PackageImport)
- )
-}{
- result.styles := self.map toFontStyle();
-}
-
-mapping UMLConnector::toCommentLink() : Connector inherits Connector::toCommentLink when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Comment) or
- self.target.element.oclIsKindOf(Comment)
- )
-}{
- result.type :='Comment_AnnotatedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-mapping UMLConnector::toConstraintLink() : Connector inherits Connector::toPapyrusConnector when{
- self.type='Reference' and (
- self.source.element.oclIsTypeOf(Constraint) or
- self.target.element.oclIsKindOf(Constraint)
- )
-}{
- result.type :='Constraint_ConstrainedElementEdge';
- result.bendpoints := self.bendpoints.map toBendpoint(self.diagram);
- result.sourceAnchor := object IdentityAnchor{};
-}
-
-/****** Connector Labels ******/
-
-mapping BasicDecorationNode::toConnectorLabel() : DecorationNode inherits Node::toPapyrusConnectorLabel when {
- self.type = 'ToMultiplicityLabel' or
- self.type = 'ToRoleLabel' or
- self.type = 'FromMultiplicityLabel' or
- self.type = 'FromRoleLabel' or
- self.type = 'NameLabel' or
- self.type = 'KindLabel'
-}{
-
-}
-/****** Compartments *******/
-
-mapping UMLShapeCompartment::toStructureCompartment() : DecorationNode inherits UMLShapeCompartment::toAbstractStructureCompartment when {
- self.type = 'StructureCompartment' or
- self.type = 'PackageContents' or
- self.type = 'UseCaseShapeCompartment'
- and not self.getType().oclIsUndefined();
-}{
-
-}
-
-
-
-//0. Top-level mapping operation
-//Standard Compartments (e.g. slots)
-mapping ListCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- self.type.endsWith('Compartment') or self.type = 'Extension_Points'
-} {
- //Super class implementation is sufficient. It will already transform the children and set the compartment ID
- result.children += self.findElement().map toContents(self);
-}
-
-//Synchronized Compartments
-mapping BasicSemanticCompartment::toListCompartment() : BasicCompartment inherits Node::toPapyrusNode, DrawerStyle::toDrawerStyle when {
- self.type.endsWith('Compartment')
-}{
- result.children += self.findElement().map toContents(self);
-}
-
- //1.1 BasicCompartment
-mapping Element::toContents(node : BasicSemanticCompartment) : Sequence(Node);
-
- //1.2 ListCompartment
-mapping Element::toContents(node : ListCompartment) : Sequence(Node) disjuncts
- UseCase::toContents
-;
- //2. TopLevelNode x Compartment
-mapping UseCase::toContents(node : ListCompartment) : Sequence(Node) disjuncts
-UseCase::toExtensionPointCompartmentContents
-;
-
- //3. Compartment x ElementType
-
-mapping UseCase::toExtensionPointCompartmentContents(node : ListCompartment) : Sequence(Node) when {
- node.type = 'Extension_Points';
-}{
- init {
- result :=
- (self.map fillExtensionPoint(node))
- }
-}
-
- //4. ElementType
-
-mapping uml::UseCase::fillExtensionPoint(node : ListCompartment) : Sequence(Node) when {
- node.type='ExtensionPointCompartment';
-}{
- init {
- result := self.extensionPoint->selectByKind(ExtensionPoint).map toExtensionPointInUseCase(node)->asSequence();
- }
-}
-
- //5. ChildLabelNode x TopNode visual ID
-mapping ExtensionPoint::toExtensionPointInUseCase(node : Node) : Shape inherits Element::toCompartmentEntry {
- result.type := 'ExtensionPoint_ExtensionPointLabel';
-}
-
-query View::getDecorationType(element : Element) : String{
- var res := self.doGetDecorationType(element);
-
- /*log('Get papyrus ID for'+ element.oclAsType(EObject).eClass().name+', '+self.type);
-
- log(res);
-
- if self.container().oclIsKindOf(Node) then
- log('IsNode')
- else
- log('IsEdge')
- endif;*/
-
- return res;
-}
-/****** Element Type queries ******/
-
-query View::getNodeType(element : Element) : String {
- return
- if element.oclIsTypeOf(Actor) then 'Actor_Shape'
- elif element.oclIsTypeOf(UseCase) then 'UseCase_Shape'
- elif element.oclIsTypeOf(Package) then 'Package_Shape'
- elif element.oclIsTypeOf(Constraint) then 'Constraint_Shape'
- elif element.oclIsTypeOf(Comment) then 'Comment_Shape'
- elif element.oclIsTypeOf(Diagram) then 'Diagram_ShortcutShape'
- elif element.oclIsKindOf(Classifier) then 'Classifier_SubjectShape'
- elif element.oclIsKindOf(NamedElement) then 'NamedElement_DefaultShape'
- else self.fail()
- endif;
-}
-query View::getEdgeType(element : Element) : String {
- return if self.type = 'Reference' then '' /* Context and Constraint Links handled separately */
- elif self.element.oclIsTypeOf(Include) then 'Include_Edge'
- elif self.element.oclIsTypeOf(Extend) then 'Extend_Edge'
- elif self.element.oclIsTypeOf(Generalization) then 'Generalization_Edge'
- elif self.element.oclIsTypeOf(Association) then 'Association_Edge'
- elif self.element.oclIsTypeOf(Dependency) then 'Dependency_Edge'
- elif self.element.oclIsTypeOf(Abstraction) then 'Abstraction_Edge'
- elif self.element.oclIsTypeOf(Usage) then 'Usage_Edge'
- elif self.element.oclIsTypeOf(Realization) then 'Realization_Edge'
- elif self.element.oclIsTypeOf(PackageMerge) then 'PackageMerge_Edge'
- elif self.element.oclIsTypeOf(PackageImport) then 'PackageImport_Edge'
- else self.fail()
- endif;
-}
-
-query View::doGetDecorationType(element : Element) : String{
-
- return if self.container().oclIsKindOf(Node) then {
- /* Labels & Compartments (GenCompartment + GenNodeLabel) */
- return if
-
- element.oclIsKindOf(Actor) then
- return switch {
- case (self.type = 'Name') 'Actor_NameLabel';
- case (self.type = 'UNKNOWN') 'Actor_StereotypeLabel';
- case (self.type = 'UNKNOWN') 'Actor_QualifiedNameLabel';
- case (self.type = 'Name') 'Actor_FloatingNameLabel';
- }
- elif
- element.oclIsKindOf(Actor) then
- return switch {
- case (self.type = 'Name') 'Actor_ClassifierNameLabel';
- }
- elif
- element.oclIsKindOf(UseCase) then
- return switch {
- case (self.type = 'Name') 'UseCase_NameLabel';
- case (self.type = 'Name') 'UseCase_FloatingNameLabel';
- case (self.type = 'Extension_Points') 'UseCase_ExtensionPointCompartment';
- }
- elif
- element.oclIsKindOf(UseCase) then
- return switch {
- case (self.type = 'Name') 'UseCase_ClassifierNameLabel';
- case (self.type = 'Extension_Points') 'UseCase_ClassifierExtensionPointCompartment';
- }
- elif
- element.oclIsKindOf(Classifier) then
- return switch {
- case (self.type = 'Name') 'Classifier_NameLabel';
- case (self.type = 'Name') 'Classifier_FloatingNameLabel';
- case (self.type = 'UseCaseShapeCompartment') 'Classifier_UseCaseCompartment';
- }
- elif
- element.oclIsKindOf(Package) then
- return switch {
- case (self.type = 'Name') 'Package_NameLabel';
- case (self.type = 'PackageContents') 'Package_PackagedElementCompartment';
- }
- elif
- element.oclIsKindOf(Constraint) then
- return switch {
- case (self.type = 'Name') 'Constraint_NameLabel';
- case (self.type = 'ValueSpecification') 'Constraint_BodyLabel';
- }
- elif
- element.oclIsKindOf(Comment) then
- return switch {
- case (self.type = 'CommentBody') 'Comment_BodyLabel';
- }
- elif
- element.oclIsKindOf(NamedElement) then
- return switch {
- case (self.type = 'Name') 'NamedElement_NameLabel';
- }
- elif
- element.oclIsKindOf(Diagram) then
- return switch {
- case (self.type = 'Name') 'Diagram_NameLabel';
- }
- endif
- } else { /* Floating Edge Labels */
- return if
- element.oclIsKindOf(Include) then
- return switch {
- case (self.type='KindLabel') 'Include_KeywordLabel';
- case (self.type='Stereotype') 'Include_StereotypeLabel';
- }
- elif
- element.oclIsKindOf(Extend) then
- return switch {
- case (self.type='KindLabel') 'Extend_KeywordLabel';
- case (self.type='Stereotype') 'Extend_StereotypeLabel';
- }
- elif
- element.oclIsKindOf(Generalization) then
- return switch {
- case (self.type='Stereotype') 'Generalization_StereotypeLabel';
- }
- elif
- element.oclIsKindOf(Association) then
- return switch {
- case (self.type='Name') 'Association_NameLabel';
- case (self.type='Stereotype') 'Association_StereotypeLabel';
- case (self.type='NameLabel') 'Association_NameLabel';
- }
- elif
- element.oclIsKindOf(Realization) then
- return switch {
- case (self.type='Name') 'Realization_NameLabel';
- case (self.type='Stereotype') 'Realization_StereotypeLabel';
- case (self.type='NameLabel') 'Realization_NameLabel';
- }
- elif
- element.oclIsKindOf(Abstraction) then
- return switch {
- case (self.type='Name') 'Abstraction_NameLabel';
- case (self.type='Stereotype') 'Abstraction_StereotypeLabel';
- case (self.type='NameLabel') 'Abstraction_NameLabel';
- }
- elif
- element.oclIsKindOf(Usage) then
- return switch {
- case (self.type='Name') 'Usage_NameLabel';
- case (self.type='Stereotype') 'Usage_StereotypeLabel';
- case (self.type='NameLabel') 'Usage_NameLabel';
- }
- elif
- element.oclIsKindOf(Dependency) then
- return switch {
- case (self.type='Name') 'Dependency_NameLabel';
- case (self.type='Stereotype') 'Dependency_StereotypeLabel';
- case (self.type='NameLabel') 'Dependency_NameLabel';
- }
- elif
- element.oclIsKindOf(PackageMerge) then
- return switch {
- case (self.type='Stereotype') 'PackageMerge_StereotypeLabel';
- }
- elif
- element.oclIsKindOf(PackageImport) then
- return switch {
- case (self.type='Stereotype') 'PackageImport_StereotypeLabel';
- }
- endif;
- } endif;
-}

Back to the top