Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Maggi2015-11-16 14:19:32 +0000
committerGerrit Code Review @ Eclipse.org2015-11-17 06:48:45 +0000
commit5ad93373dc23bf2533562f698ad62b663cfd0ce0 (patch)
treec9b9d6b5c883c223df246c3e873fc0bfa1768b90
parent3cf9bfd494ddf7f912e728d6f37b23a3dad09a6d (diff)
downloadorg.eclipse.papyrus-5ad93373dc23bf2533562f698ad62b663cfd0ce0.tar.gz
org.eclipse.papyrus-5ad93373dc23bf2533562f698ad62b663cfd0ce0.tar.xz
org.eclipse.papyrus-5ad93373dc23bf2533562f698ad62b663cfd0ce0.zip
Bug 481686 - [Moka] End migration by removing source from the main repo
- remove all resources related to moka - new repository : https://git.eclipse.org/c/papyrus/org.eclipse.papyrus-moka.git/ Change-Id: Ie187cc32fadd83e33dc9b345a6f159765f28c46f Signed-off-by: Benoit Maggi <benoit.maggi@cea.fr>
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/.classpath7
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/.gitignore1
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/.project28
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/.settings/.gitignore1
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/META-INF/MANIFEST.MF17
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/build.properties5
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/plugin.xml12
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/Activator.java67
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/ControlDelegate.java258
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/DummyUMLExecutionEngine.java211
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/DummyVisitor.java86
-rw-r--r--examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/PresentationUtils.java29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.classpath7
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.gitignore1
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/META-INF/MANIFEST.MF28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/build.properties8
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/plugin.xml30
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.di29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.notation323
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.uml104
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/icons/moka_icon.pngbin539 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Activator.java72
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/FUMLAsyncExecutionEngine.java169
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/Classes/Kernel/AsyncObject_.java79
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncEventPool.java92
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncFIFOGetNextEventStrategy.java45
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncGetNextEventStrategy.java44
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncObjectActivation.java325
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/IAsyncEventPool.java39
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/Loci/LociL1/AsyncLocus.java63
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/AsyncControlDelegate.java459
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/AsyncDebug.java42
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/TerminateSignalInstance.java38
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.classpath7
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/META-INF/MANIFEST.MF25
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/build.properties9
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/Activity.gifbin1016 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/Operation.gifbin1035 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/PapyrusLogo16x16.pngbin825 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/moka_icon.pngbin539 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/plugin.xml147
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/Activator.java72
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/AbstractCompositeUtilsHandler.java93
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/GenerateConstructorUsingFieldsHandler.java57
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/GenerateFactoryHandler.java52
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/Utils.java289
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/ui/GenerateConstructorUsingFieldsDialog.java432
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/.classpath8
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/.gitignore1
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/.settings/org.eclipse.jdt.core.prefs295
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/META-INF/MANIFEST.MF23
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/build.properties8
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/CompleteActions/CS_ReadExtentActionActivation.java62
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/CompleteActions/CS_ReadIsClassifiedObjectActionActivation.java87
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_AddStructuralFeatureValueActionActivation.java235
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_ClearStructuralFeatureValueActionActivation.java175
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_CreateLinkActionActivation.java90
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_CreateObjectActionActivation.java55
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_ReadSelfActionActivation.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Classes/Kernel/CS_InstanceValueEvaluation.java137
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Classes/Kernel/CS_OpaqueExpressionEvaluation.java61
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_DispatchOperationOfInterfaceStrategy.java53
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_NameBased_StructuralFeatureOfInterfaceAccessStrategy.java70
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_StructuralFeatureOfInterfaceAccessStrategy.java36
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_AcceptEventActionActivation.java66
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_CallOperationActionActivation.java192
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_ConstructStrategy.java32
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_DefaultConstructStrategy.java345
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_DefaultRequestPropagationStrategy.java43
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_RequestPropagationStrategy.java33
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_SendSignalActionActivation.java120
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_SignalInstance.java43
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_InteractionPoint.java75
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Link.java45
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_LinkKind.java18
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Object.java720
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Reference.java82
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_ExecutionFactory.java83
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_Executor.java59
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_Locus.java45
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/plugin.xml13
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/src/org/eclipse/papyrus/moka/composites/Activator.java67
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/src/org/eclipse/papyrus/moka/composites/CompositeStructuresExecutionEngine.java73
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.classpath7
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/META-INF/MANIFEST.MF24
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/build.properties9
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/icons/error.gifbin353 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/icons/moka_icon.pngbin539 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/icons/uml_generic_table_new.pngbin282 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/icons/validate.gifbin99 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/model/activeObjectControllerLibrary.di29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/model/activeObjectControllerLibrary.notation1151
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/model/activeObjectControllerLibrary.uml457
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/plugin.xml82
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/src/org/eclipse/papyrus/moka/fuml/activeobjectcontrollerlibrary/Activator.java65
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/src/org/eclipse/papyrus/moka/fuml/activeobjectcontrollerlibrary/ActiveObjectControllerServicesRegistry.java43
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/src/org/eclipse/papyrus/moka/fuml/activeobjectcontrollerlibrary/proxy/ActiveObjectControllerUIProxy.java64
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/src/org/eclipse/papyrus/moka/fuml/activeobjectcontrollerlibrary/proxy/executions/ActiveObjectControlerUIProxyMethodExecution.java28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/src/org/eclipse/papyrus/moka/fuml/activeobjectcontrollerlibrary/proxy/executions/RegisterExecution.java79
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/src/org/eclipse/papyrus/moka/fuml/activeobjectcontrollerlibrary/ui/ActiveObjectControllerUI.java994
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/.classpath7
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/.gitignore1
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/META-INF/MANIFEST.MF16
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/build.properties8
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/plugin.xml27
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/resources/AssertionLibrary.di17
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/resources/AssertionLibrary.notation5
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/resources/AssertionLibrary.uml2791
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/Activator.java43
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/AssertionLibraryRegistery.java59
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/basic/AssertEquals.java51
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/basic/AssertFalse.java42
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/basic/AssertList.java51
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/basic/AssertTrue.java42
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/reporting/GenerateTestReport.java87
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/reporting/JUnit.java35
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/reporting/Reporter.java87
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/reporting/TestDecision.java17
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/reporting/TestReport.java56
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/utils/AssertionExecutionContextHelper.java37
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.assertionlibrary/src/org/eclipse/papyrus/moka/fuml/assertionlibrary/utils/ReportNameSingleton.java43
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/.classpath7
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/META-INF/MANIFEST.MF27
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/OSGI-INF/l10n/bundle.properties3
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/build.properties10
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/plugin.properties12
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/plugin.xml33
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/resources/fUML_Library.uml914
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/Activator.java66
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/StandardLibraryRegistry.java162
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/StandardServicesRegistry.java69
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/boolean_/And.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/boolean_/Implies.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/boolean_/Not.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/boolean_/Or.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/boolean_/ToBoolean.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/boolean_/ToString.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/boolean_/Xor.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Abs.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Add.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Div.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Greater.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/GreaterOrEqual.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Lower.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/LowerOrEqual.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Max.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Min.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Minus.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Mod.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Neg.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/Times.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/ToInteger.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/ToString.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/integer/ToUnlimitedNatural.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/io/StandardInputChannelImpl.java83
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/io/StandardOutputChannelImpl.java118
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/list/ListConcat.java44
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/list/ListGet.java46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/list/ListSize.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Abs.java46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Add.java46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Div.java46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Floor.java46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Greater.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/GreaterOrEqual.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Inv.java60
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Lower.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/LowerOrEqual.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Max.java46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Min.java46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Minus.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Neg.java45
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Round.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/Times.java46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/ToInteger.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/ToReal.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/real/ToString.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/string/Concat.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/string/Size.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/string/Substring.java55
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/unlimitednatural/Greater.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/unlimitednatural/GreaterOrEqual.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/unlimitednatural/Lower.java50
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/unlimitednatural/LowerOrEqual.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/unlimitednatural/Max.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/unlimitednatural/Min.java54
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/unlimitednatural/ToInteger.java50
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/unlimitednatural/ToString.java52
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.standardlibrary/src/org/eclipse/papyrus/moka/fuml/standardlibrary/library/unlimitednatural/ToUnlimitedNatural.java59
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/.classpath7
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/META-INF/MANIFEST.MF13
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/build.properties8
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/plugin.xml91
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/src/org/eclipse/papyrus/moka/fuml/validation/Activator.java66
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/src/org/eclipse/papyrus/moka/fuml/validation/ClientSelector.java28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/src/org/eclipse/papyrus/moka/fuml/validation/constraints/ActiveClassHasClassifierBehavior_Constraint.java39
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/src/org/eclipse/papyrus/moka/fuml/validation/constraints/ArgumentAndResultPinsOfCallActions_Constraint.java103
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml.validation/src/org/eclipse/papyrus/moka/fuml/validation/constraints/NonAbstractOperationShallHaveMethod_Constraint.java45
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/.classpath8
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/META-INF/MANIFEST.MF46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/build.properties13
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/BasicActions/ActionActivation.java377
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/BasicActions/CallActionActivation.java109
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/BasicActions/CallBehaviorActionActivation.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/BasicActions/CallOperationActionActivation.java37
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/BasicActions/InputPinActivation.java41
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/BasicActions/InvocationActionActivation.java17
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/BasicActions/OutputPinActivation.java17
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/BasicActions/PinActivation.java73
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/BasicActions/SendSignalActionActivation.java51
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/CompleteActions/AcceptEventActionActivation.java149
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/CompleteActions/AcceptEventActionEventAccepter.java40
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/CompleteActions/ReadExtentActionActivation.java46
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/CompleteActions/ReadIsClassifiedObjectActionActivation.java73
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/CompleteActions/ReclassifyObjectActionActivation.java96
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/CompleteActions/ReduceActionActivation.java99
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/CompleteActions/StartClassifierBehaviorActionActivation.java42
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/CompleteActions/StartObjectBehaviorActionActivation.java76
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/AddStructuralFeatureValueActionActivation.java124
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/ClearAssociationActionActivation.java42
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/ClearStructuralFeatureActionActivation.java58
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/CreateLinkActionActivation.java86
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/CreateObjectActionActivation.java35
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/CreateObjectActionStrategy.java27
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/DefaultCreateObjectActionStrategy.java25
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/DefaultGetAssociationStrategy.java31
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/DestroyLinkActionActivation.java98
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/DestroyObjectActionActivation.java102
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/GetAssociationStrategy.java26
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/LinkActionActivation.java70
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/ReadLinkActionActivation.java82
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/ReadSelfActionActivation.java36
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/ReadStructuralFeatureActionActivation.java57
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/RemoveStructuralFeatureValueActionActivation.java120
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/RestrictiveGetAssociationStrategy.java35
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/StructuralFeatureActionActivation.java71
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/TestIdentityActionActivation.java35
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/ValueSpecificationActionActivation.java30
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/WriteLinkActionActivation.java17
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Actions/IntermediateActions/WriteStructuralFeatureActionActivation.java37
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/CompleteStructuredActivities/ClauseActivation.java129
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/CompleteStructuredActivities/ConditionalNodeActivation.java179
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/CompleteStructuredActivities/LoopNodeActivation.java261
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/CompleteStructuredActivities/StructuredActivityNodeActivation.java222
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/CompleteStructuredActivities/Values.java24
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/ExtraStructuredActivities/ExpansionActivationGroup.java126
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/ExtraStructuredActivities/ExpansionNodeActivation.java56
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/ExtraStructuredActivities/ExpansionRegionActivation.java337
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/ExtraStructuredActivities/TokenSet.java27
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ActivityEdgeInstance.java145
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ActivityExecution.java90
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ActivityFinalNodeActivation.java38
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ActivityNodeActivation.java296
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ActivityNodeActivationGroup.java314
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ActivityParameterNodeActivation.java69
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/CompositeActivityNodeActivation.java131
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ControlNodeActivation.java30
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ControlToken.java44
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/DecisionNodeActivation.java271
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/FlowFinalNodeActivation.java31
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ForkNodeActivation.java53
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ForkedToken.java77
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/InitialNodeActivation.java29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/JoinNodeActivation.java29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/MergeNodeActivation.java17
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ObjectNodeActivation.java136
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/ObjectToken.java52
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/Offer.java84
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Activities/IntermediateActivities/Token.java58
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/BooleanValue.java78
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/CompoundValue.java156
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/DataValue.java52
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/DispatchStrategy.java37
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/EnumerationValue.java86
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/Evaluation.java33
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/ExtensionalValue.java44
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/FeatureValue.java115
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/InstanceValueEvaluation.java110
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/IntegerValue.java111
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/LimitedRedefinitionBasedDispatchStrategy.java38
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/Link.java145
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/LiteralBooleanEvaluation.java29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/LiteralEvaluation.java30
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/LiteralIntegerEvaluation.java29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/LiteralNullEvaluation.java24
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/LiteralRealEvaluation.java29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/LiteralStringEvaluation.java29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/LiteralUnlimitedNaturalEvaluation.java30
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/Object_.java134
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/PrimitiveValue.java41
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/RealValue.java102
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/RedefinitionBasedDispatchStrategy.java67
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/Reference.java111
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/StringValue.java71
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/StructuredValue.java96
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/UnlimitedNaturalValue.java82
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Classes/Kernel/Value.java93
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/BasicBehaviors/Execution.java129
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/BasicBehaviors/OpaqueBehaviorExecution.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/BasicBehaviors/ParameterValue.java44
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/Communications/ArrivalSignal.java17
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/Communications/ClassifierBehaviorExecution.java86
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/Communications/EventAccepter.java21
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/Communications/FIFOGetNextEventStrategy.java26
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/Communications/GetNextEventStrategy.java27
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/Communications/ObjectActivation.java188
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/CommonBehaviors/Communications/SignalInstance.java50
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL1/ChoiceStrategy.java25
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL1/ExecutionFactory.java226
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL1/ExecutionFactoryL1.java60
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL1/Executor.java87
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL1/FirstChoiceStrategy.java23
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL1/Locus.java149
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL1/SemanticStrategy.java20
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL1/SemanticVisitor.java25
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL2/ExecutionFactoryL2.java144
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/generated/org/eclipse/papyrus/moka/fuml/Semantics/Loci/LociL3/ExecutionFactoryL3.java90
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/plugin.properties12
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/plugin.xml32
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/resources/fUML_Semantics.di16
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/resources/fUML_Semantics.notation8
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/resources/fUML_Semantics.uml12545
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/resources/icons/moka_icon.pngbin539 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/schema/org.eclipse.papyrus.moka.fuml.library.exsd102
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/schema/org.eclipse.papyrus.moka.fuml.services.exsd102
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/Activator.java77
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/FUMLExecutionEngine.java267
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/FUMLExecutionEngineForMoka.java282
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/debug/ControlDelegate.java291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/debug/Debug.java23
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/debug/FUMLThread.java256
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/FUMLPresentationUtils.java133
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaStackFrame_from_ActivityEdgeInstance.java51
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaStackFrame_from_ActivityNodeActivation.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaStackFrame_from_UMLModelElement.java99
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaValue_for_fUML.java57
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaValue_from_FeatureValue.java99
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaValue_from_Value.java74
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaVariable_for_fUML.java37
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaVariable_from_ContextObject.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaVariable_from_FeatureValue.java52
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaVariable_from_Value.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/AbstractOpaqueBehaviorExecutionRegistry.java78
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/AbstractSystemServicesRegistry.java129
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/IOpaqueBehaviorExecutionRegistry.java23
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/ISemanticStrategyRegistry.java23
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/ISystemServicesRegistry.java48
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/SystemServicesRegistryUtils.java49
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/service/framework/AbstractService.java76
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/service/framework/AbstractServiceFactory.java16
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/service/framework/AbstractServicesRegistery.java51
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/registry/service/framework/IServiceFactory.java20
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/.classpath7
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/META-INF/MANIFEST.MF33
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/build.properties9
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/icons/brkp_16x16.gifbin197 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/icons/brkpd_16x16.gifbin139 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/icons/debug.gifbin348 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/icons/moka_icon.pngbin539 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/icons/sample.gifbin983 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/plugin.xml234
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/Activator.java67
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/breakpoint/decoration/BreakpointDecoration.java124
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/breakpoint/handlers/MokaAbstractHandler.java65
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/breakpoint/handlers/ToggleBreakpointActivationHandler.java70
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/breakpoint/handlers/ToggleBreakpointHandler.java77
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaAdditionalSemanticsSelectionComponent.java44
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaComboBox.java68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaExecutableElementSelection.java29
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaExecutableSelectionComponent.java31
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaGroupComponent.java39
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaLaunchConfigurationTabGroup.java36
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaLibrariesComboBox.java51
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaProjectSelection.java62
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaProjectSelectionComponent.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaRunConfigurationTab.java95
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaTriggerComboPopulation.java86
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/launch/MokaUMLComboBox.java47
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/preferences/MokaPreferencePage.java59
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/presentation/AnimationUtils.java417
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/presentation/DebugMarkerMappingToPseudoSelector.java54
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/presentation/IPresentation.java55
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/presentation/MokaDebugModelPresentation.java202
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/src/org/eclipse/papyrus/moka/ui/views/MokaAnimationView.java138
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.ui/theme/defaultAnimationTheme.css10
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/.classpath7
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/.project28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/.settings/net.sf.jautodoc.prefs5
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/META-INF/MANIFEST.MF38
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/OSGI-INF/l10n/bundle.properties7
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/about.html28
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/build.properties10
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/icons/moka_icon.pngbin539 -> 0 bytes
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/plugin.properties12
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/plugin.xml45
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/pom.xml14
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/schema/engine.exsd132
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/Activator.java70
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/MokaConstants.java168
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/IMarshaler.java180
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/Marshaller.java337
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/event/EventMessage.java55
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/event/Start_Event.java88
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/event/isuspendresume/Resume_Event.java96
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/event/isuspendresume/Suspend_Event.java100
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/event/iterminate/Terminate_Event.java91
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/reply/Ack.java35
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/reply/ReplyMessage.java30
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/reply/istackframe/GetVariables_Reply.java62
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/reply/ithread/GetStackFrames_Reply.java64
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/reply/ivalue/GetValueString_Reply.java61
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/reply/ivariable/GetReferenceTypeName_Reply.java61
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/reply/ivariable/GetValue_Reply.java62
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/RequestMessage.java30
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/ibreakpointlistener/AddBreakpoint_Request.java60
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/ibreakpointlistener/RemoveBreakpoint_Request.java60
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/idisconnect/Disconnect_Request.java36
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/istackframe/GetVariables_Request.java65
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/isuspendresume/Resume_Request.java80
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/isuspendresume/Suspend_Request.java80
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/iterminate/Terminate_Request.java61
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/ithread/GetStackFrames_Request.java61
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/ivalue/GetValueString_Request.java61
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/ivariable/GetReferenceTypeName_Request.java63
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/communication/request/ivariable/GetValue_Request.java61
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/debug/MokaBreakpoint.java208
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/debug/MokaDebugElement.java121
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/debug/MokaDebugTarget.java842
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/debug/MokaJobChangeListener.java54
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/debug/MokaProcess.java291
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/debug/MokaStackFrame.java403
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/debug/MokaThread.java380
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/debug/MokaValue.java140
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/debug/MokaVariable.java152
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/engine/AbstractExecutionEngine.java546
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/engine/IExecutionEngine.java203
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/engine/MokaExecutionEngineJob.java67
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/launch/EditorUtils.java140
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/launch/MokaLaunchDelegate.java214
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/launch/OpenPapyrusEditorRunnable.java63
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka/src/org/eclipse/papyrus/moka/locator/MokaSourceLocator.java111
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.feature/feature.xml2
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.moka.feature/.project17
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.moka.feature/build.properties6
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.moka.feature/epl-v10.html304
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.moka.feature/feature.properties143
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.moka.feature/feature.xml42
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.moka.feature/license.html107
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.moka.feature/pom.xml14
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.sources.feature/feature.xml2
-rw-r--r--features/papyrus-main-features/org.eclipse.papyrus.doc.feature/feature.xml2
-rw-r--r--features/papyrus-tests-extra-features/org.eclipse.papyrus.tests.extra.feature/feature.xml2
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.moka.doc/.project34
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/.settings/org.eclipse.core.resources.prefs2
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/.settings/org.eclipse.jdt.core.prefs288
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/.settings/org.eclipse.m2e.core.prefs4
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.moka.doc/META-INF/MANIFEST.MF11
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.moka.doc/about.html28
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.moka.doc/build.properties7
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/plugin.properties12
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.moka.doc/plugin.xml16
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.moka.doc/pom.xml49
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/BasicActiveObjectExample.zipbin10004 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/ActiveClassDiagram.pngbin5048 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/AnimationConfiguration.pngbin4953 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/BreakpointDiagramView.pngbin5316 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/BreakpointsView.pngbin3194 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/Debug_Configuration.pngbin16266 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/EmptyLaunchConfiguration.pngbin65095 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/GenerateFactory.pngbin39065 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/MyStyleSheets.pngbin24204 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/NewStyleSheets.pngbin57109 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/New_Configuration.pngbin83505 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/Papyrus_Moka_ExecutionEngines.pngbin42169 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/PropertiesView_EmptyStyleSheets.pngbin32002 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/RemoveBreakpoints.pngbin16632 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/Setup_launch_configuration.pngbin67305 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/ThreadStatusView_empty.pngbin19540 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/ToggleBreakpoint.pngbin41483 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/ToggleBreakpointModelExplorer.pngbin44920 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/ToogleBreakpointActivation.pngbin42210 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/VariableView.pngbin9371 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/Window_Preferences.pngbin67699 -> 0 bytes
-rw-r--r--plugins/doc/org.eclipse.papyrus.moka.doc/resource/images/modelExplorer_Create.pngbin17684 -> 0 bytes
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.moka.doc/resource/moka-main-toc.xml7
-rwxr-xr-xplugins/doc/org.eclipse.papyrus.moka.doc/resource/moka.mediawiki115
-rw-r--r--plugins/doc/pom.xml1
-rwxr-xr-xreleng/extra-tests/pom.xml1
-rw-r--r--releng/extra/pom.xml11
-rw-r--r--releng/extra/site/category.xml6
-rw-r--r--releng/org.eclipse.papyrus.oomph/setups/papyrus.setup3
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/.classpath7
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/.project28
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/META-INF/MANIFEST.MF30
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/OSGI-INF/l10n/bundle.properties3
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/about.html28
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/build.properties8
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/org.eclipse.papyrus.moka.composites.tests.launch41
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/pom.xml15
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/resources/Modeling Utils/model.di2
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/resources/Modeling Utils/model.notation852
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/resources/Modeling Utils/model.uml149
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/resources/Test Suite/TestSuite.di611
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/resources/Test Suite/TestSuite.notation35192
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/resources/Test Suite/TestSuite.uml70646
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/AbstractMokaLaunchConfigurationDelegate.java172
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/Activator.java70
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/AllTests.java31
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/semantics/AbstractMokaTest.java212
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/semantics/async/fuml/AsyncFUMLEngineLaunchDelegate.java53
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/semantics/async/fuml/AsyncRunAllTestsButTestSuite4.java51
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/semantics/async/fuml/AsyncRunTestSuite4.java51
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/semantics/composites/CompositeRunAllTestsButTestSuite4.java51
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/semantics/composites/CompositeRunTestSuite4.java51
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/semantics/composites/CompositesEngineLaunchDelegate.java53
-rw-r--r--tests/junit/extraplugins/moka/org.eclipse.papyrus.moka.tests/src/org/eclipse/papyrus/moka/tests/semantics/composites/modeling/utils/RunGenerateFactoryTest.java142
-rw-r--r--tests/junit/extraplugins/org.eclipse.papyrus.tests.extra/META-INF/MANIFEST.MF1
-rw-r--r--tests/junit/extraplugins/org.eclipse.papyrus.tests.extra/src/org/eclipse/papyrus/tests/extra/AllTests.java3
566 files changed, 0 insertions, 166069 deletions
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/.classpath b/examples/moka/org.eclipse.papyrus.moka.dummyexample/.classpath
deleted file mode 100644
index 8a8f1668cdc..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/.classpath
+++ /dev/null
@@ -1,7 +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.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/.gitignore b/examples/moka/org.eclipse.papyrus.moka.dummyexample/.gitignore
deleted file mode 100644
index ae3c1726048..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/bin/
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/.project b/examples/moka/org.eclipse.papyrus.moka.dummyexample/.project
deleted file mode 100644
index 8bc293b8786..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.moka.dummyexample</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.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/.settings/.gitignore b/examples/moka/org.eclipse.papyrus.moka.dummyexample/.settings/.gitignore
deleted file mode 100644
index 3b1537c221f..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/.settings/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/org.eclipse.jdt.core.prefs
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/META-INF/MANIFEST.MF b/examples/moka/org.eclipse.papyrus.moka.dummyexample/META-INF/MANIFEST.MF
deleted file mode 100644
index 926f891a9cf..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,17 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Dummyexample
-Bundle-SymbolicName: org.eclipse.papyrus.moka.dummyexample;singleton:=true
-Bundle-Version: 1.0.0.qualifier
-Bundle-Activator: org.eclipse.papyrus.moka.dummyexample.Activator
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.papyrus.moka;bundle-version="1.0.0",
- org.eclipse.debug.core;bundle-version="3.7.100",
- org.eclipse.emf.ecore;bundle-version="2.8.1",
- org.eclipse.uml2.uml;bundle-version="4.0.1",
- org.eclipse.ui.console;bundle-version="3.6.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.1.0",
- org.eclipse.papyrus.moka.ui;bundle-version="1.1.0"
-Bundle-ActivationPolicy: lazy
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/build.properties b/examples/moka/org.eclipse.papyrus.moka.dummyexample/build.properties
deleted file mode 100644
index 6f20375d6c7..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/build.properties
+++ /dev/null
@@ -1,5 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/plugin.xml b/examples/moka/org.eclipse.papyrus.moka.dummyexample/plugin.xml
deleted file mode 100644
index d0b168221ad..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/plugin.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.papyrus.moka.engine">
- <engine
- class="org.eclipse.papyrus.moka.dummyexample.DummyUMLExecutionEngine"
- description="A simple execution engine, which visits elements of a model, and displays their name">
- </engine>
- </extension>
-
-</plugin>
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/Activator.java b/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/Activator.java
deleted file mode 100644
index f9c8734df43..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/Activator.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.dummyexample;
-
-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.moka.dummyexample"; //$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)
- */
- 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)
- */
- 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/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/ControlDelegate.java b/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/ControlDelegate.java
deleted file mode 100644
index ab04ae2cb14..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/ControlDelegate.java
+++ /dev/null
@@ -1,258 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.dummyexample;
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.eclipse.debug.core.DebugEvent;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.moka.MokaConstants;
-import org.eclipse.papyrus.moka.communication.event.isuspendresume.Suspend_Event;
-import org.eclipse.papyrus.moka.communication.request.isuspendresume.Resume_Request;
-import org.eclipse.papyrus.moka.communication.request.isuspendresume.Suspend_Request;
-import org.eclipse.papyrus.moka.communication.request.iterminate.Terminate_Request;
-import org.eclipse.papyrus.moka.debug.MokaBreakpoint;
-import org.eclipse.papyrus.moka.debug.MokaStackFrame;
-import org.eclipse.papyrus.moka.debug.MokaThread;
-import org.eclipse.papyrus.moka.engine.AbstractExecutionEngine;
-import org.eclipse.papyrus.moka.ui.presentation.AnimationUtils;
-
-public class ControlDelegate {
-
- /// FIXME Problem when the variable panel is visible
-
- /**
- * The execution engine associated with this ControlDelegate object
- */
- protected AbstractExecutionEngine engine;
-
- /**
- * The list of threads implied by current execution
- */
- protected List<MokaThread> threads;
-
- /**
- * Determines if execution is suspended
- */
- protected boolean suspended = false;
-
- /**
- * The reason for suspending execution
- */
- protected int reasonForSuspending = -1;
-
- /**
- * The reason for resuming execution
- */
- protected int reasonForResuming = -1;
-
- /**
- * The execution mode (i.e., Debug or Run)
- */
- protected String mode;
-
- /**
- * Semantic elements associated with a breakpoint
- */
- protected Set<EObject> elementsWithBreakpoints;
-
- /**
- *
- *
- * @param engine The engine associated with this ControlDelegate object
- */
- public ControlDelegate(AbstractExecutionEngine engine) {
- this.engine = engine;
- this.mode = this.engine.getDebugTarget().getLaunch().getLaunchMode();
- this.elementsWithBreakpoints = new HashSet<EObject>();
- }
-
- /**
- * Manages addition of a breakpoint in the course of execution
- *
- * @param breakpoint
- * The added breakpoint
- */
- public void addBreakpoint(MokaBreakpoint breakpoint) {
- EObject modelElement = breakpoint.getModelElement();
- if (modelElement != null) {
- if (modelElement.eIsProxy()) {
- modelElement = AnimationUtils.resolve(modelElement);
- }
- this.elementsWithBreakpoints.add(modelElement);
- }
- }
-
- /**
- * Manages removal of a breakpoint in the course of execution
- *
- * @param breakpoint
- * The removed breakpoint
- */
- public void removeBreakpoint(MokaBreakpoint breakpoint) {
- EObject modelElement = breakpoint.getModelElement();
- if (modelElement != null) {
- if (modelElement.eIsProxy()) {
- modelElement = AnimationUtils.resolve(modelElement);
- }
- this.elementsWithBreakpoints.remove(modelElement);
- }
- }
-
- /**
- * Manages resuming of execution
- *
- * @param request
- * The request underlying this resume
- */
- public void resume(Resume_Request request) {
- this.suspended = false;
- this.reasonForResuming = request.getResumeDetail();
- if (reasonForResuming != DebugEvent.CLIENT_REQUEST) {
- reasonForResuming = DebugEvent.STEP_OVER;
- }
- this.getThreads()[0].setSuspended(false);
- synchronized (this) {
- notify();
- this.threads.get(0).setStackFrames(new IStackFrame[] {});
- }
- }
-
- /**
- * Manages suspension of execution
- *
- * @param request
- * The request underlying this suspension
- */
- public void suspend(Suspend_Request request) {
- this.suspended = true;
- this.reasonForSuspending = DebugEvent.CLIENT_REQUEST;
- }
-
- /**
- * Manages termination of execution
- *
- * @param request
- * The request underlying this termination
- */
- public void terminate(Terminate_Request request) {
- engine.setIsTerminated(true);
- synchronized (this) {
- notify();
- }
- }
-
- /**
- * Returns the threads underlying this execution
- * The semantics implemented by this engine makes the hypothesis that the execution occurs on a single thread,
- * so that there will be only one thread visible in the thread/stack view when execution is suspended
- *
- * @return The threads underlying this execution
- */
- public MokaThread[] getThreads() {
- if (this.threads == null) {
- this.threads = new ArrayList<MokaThread>();
- if (this.engine.getDebugTarget().getLaunch().getLaunchMode().equals(ILaunchManager.DEBUG_MODE)) {
- MokaThread thread = new MokaThread(this.engine.getDebugTarget());
- thread.setName("Main Thread");
- thread.setStackFrames(new IStackFrame[] {});
- this.threads.add(thread);
- }
- }
- return threads.toArray(new MokaThread[threads.size()]);
- }
-
- /**
- * Method that can be called by a particular execution engine to delegate control of execution flow.
- *
- * @param object
- * An object from the execution flow from which control has to be delegated
- * @return False if execution shall stop, True if execution shall continue
- */
- public boolean control(Object object) {
- if (this.engine.isTerminated()) {
- return false;
- }
-
- // Retrieves the semantic element
- EObject semanticElement = ((DummyVisitor)object).currentlyVisited ;
-
- // Manages animation
- if (semanticElement != null && MokaConstants.MOKA_AUTOMATIC_ANIMATION && this.mode.equals(ILaunchManager.DEBUG_MODE)) {
- this.animate(semanticElement);
- }
-
- if (this.suspended) { /* Client request */
- try {
- synchronized (this) {
- this.getThreads(); // To make sure that this.threads is neither null nor empty
- MokaThread mainThread = this.threads.get(0);
- mainThread.setSuspended(true);
- MokaStackFrame stackFrame = PresentationUtils.getMokaStackFrame((DummyVisitor)object);
- stackFrame.setThread(mainThread);
- mainThread.setStackFrames(new IStackFrame[] { stackFrame });
- Suspend_Event suspendEvent = new Suspend_Event(mainThread, DebugEvent.CLIENT_REQUEST, this.getThreads());
- engine.sendEvent(suspendEvent);
- wait();
- }
- } catch (InterruptedException e) {
- Activator.log.error(e);
- }
- } else { // Tries to check if a breakpoint applies, or if execution was resumed due to a Step Over
- if (this.elementsWithBreakpoints.contains(semanticElement) || this.reasonForResuming == DebugEvent.STEP_OVER) {
- try {
- synchronized (this) {
- this.getThreads(); // To make sure that this.threads is neither null nor empty
- MokaThread mainThread = this.threads.get(0);
- mainThread.setSuspended(true);
- MokaStackFrame stackFrame = PresentationUtils.getMokaStackFrame((DummyVisitor)object);
- stackFrame.setThread(mainThread);
- mainThread.setStackFrames(new IStackFrame[] { stackFrame });
- Suspend_Event suspendEvent = new Suspend_Event(mainThread, DebugEvent.BREAKPOINT, this.getThreads());
- engine.sendEvent(suspendEvent);
- wait();
- }
- } catch (InterruptedException e) {
- Activator.log.error(e);
- }
- }
- }
- return !this.engine.isTerminated();
- }
-
- /**
- * A utility method to perform some animation on a model element
- *
- * @param element
- */
- protected void animate(EObject element) {
- try {
- // Animates the element
- if ((AnimationUtils.getInstance().diagramsExistFor(element))) {
- AnimationUtils.getInstance().addAnimationMarker(element);
- Thread.sleep(MokaConstants.MOKA_ANIMATION_DELAY);
- AnimationUtils.getInstance().removeAnimationMarker(element);
- }
- } catch (InterruptedException e) {
- Activator.log.error(e);
- }
-
- }
-
-}
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/DummyUMLExecutionEngine.java b/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/DummyUMLExecutionEngine.java
deleted file mode 100644
index 60335af304c..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/DummyUMLExecutionEngine.java
+++ /dev/null
@@ -1,211 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.dummyexample;
-
-import java.io.IOException;
-import java.net.UnknownHostException;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.debug.core.model.IThread;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.moka.communication.request.isuspendresume.Resume_Request;
-import org.eclipse.papyrus.moka.communication.request.isuspendresume.Suspend_Request;
-import org.eclipse.papyrus.moka.communication.request.iterminate.Terminate_Request;
-import org.eclipse.papyrus.moka.debug.MokaBreakpoint;
-import org.eclipse.papyrus.moka.debug.MokaDebugTarget;
-import org.eclipse.papyrus.moka.debug.MokaThread;
-import org.eclipse.papyrus.moka.engine.AbstractExecutionEngine;
-import org.eclipse.papyrus.moka.engine.IExecutionEngine;
-import org.eclipse.papyrus.moka.ui.presentation.AnimationUtils;
-import org.eclipse.ui.console.ConsolePlugin;
-import org.eclipse.ui.console.IConsole;
-import org.eclipse.ui.console.IConsoleManager;
-import org.eclipse.ui.console.IOConsole;
-import org.eclipse.ui.console.IOConsoleOutputStream;
-import org.eclipse.uml2.uml.NamedElement;
-
-public class DummyUMLExecutionEngine extends AbstractExecutionEngine implements IExecutionEngine {
-
- /**
- * A static instance of this engine.
- * This is initialized by method init.
- */
- public static DummyUMLExecutionEngine eInstance ;
-
- /**
- * A flag used to track if the execution is actually started
- */
- protected boolean started = false ;
-
- /**
- * The console associated with this engine
- */
- protected static IOConsole console ;
-
- /**
- * The output stream associated with the console of this engine
- */
- protected static IOConsoleOutputStream out ;
-
- /**
- * The name of the console associated with this engine
- */
- protected static final String CONSOLE_NAME = "Console";
-
- /**
- * The control delegate object associated with this engine
- */
- protected ControlDelegate controlDelegate ;
-
- /**
- * The DummyVisitor created for the execution of the eObjectToExecute model element
- */
- protected DummyVisitor visitor ;
-
- //////////////////////////////////////
- // Initialization
- //////////////////////////////////////
-
- @Override
- public void init(EObject eObjectToExecute, String[] args, MokaDebugTarget debugTarget, int requestPort,
- int replyPort, int eventPort) throws UnknownHostException, IOException {
- super.init(eObjectToExecute, args, debugTarget, requestPort, replyPort, eventPort);
- // In addition to AbsractExecutionEngine initialization:
- // - Initializes the Animation Utils (enables a pre-execution retrieval of diagrams associated with the eObjectToExecute)
- // - Creates a DummyVisitor for the given eObjectToExecute
- if (eObjectToExecute instanceof NamedElement) {
- AnimationUtils.init(eObjectToExecute);
- if (this.debugTarget != null) {
- this.debugTarget.setName("Dummy Example Debug Target") ;
- }
- visitor = new DummyVisitor((NamedElement)eObjectToExecute, this.getThreads()[0]) ;
- }
- DummyUMLExecutionEngine.eInstance = this ;
- }
-
- @Override
- public void initializeArguments(String[] args) {
- // not specific initialization to perform
- }
-
- //////////////////////////////////////////////////////////////////////////////////////////////////////
- // Implementation of the debug event processing.
- // All debug events (except resume events) are processed by delegation to the control delegate object
- // Reminder: These methods are automatically called by the event dispatch loop implemented by
- // AbstractExecutionEngine
- //////////////////////////////////////////////////////////////////////////////////////////////////////
-
- @Override
- public void addBreakpoint(MokaBreakpoint breakpoint) {
- this.getControlDelegate().addBreakpoint(breakpoint);
- }
-
- @Override
- public void removeBreakpoint(MokaBreakpoint breakpoint) {
- this.getControlDelegate().removeBreakpoint(breakpoint);
- }
-
- @Override
- public IStackFrame[] getStackFrames(IThread thread) {
- // Never called in this implementation
- // When the debug framework is notified, threads are already constructed with appropriate stack frames.
- return null;
- }
-
- @Override
- public MokaThread[] getThreads() {
- return this.getControlDelegate().getThreads() ;
- }
-
- @Override
- public void disconnect() {
- // Disconnection not supported by this dummy execution engine
- }
-
- @Override
- public void suspend(Suspend_Request request) {
- this.getControlDelegate().suspend(request);
- }
-
- @Override
- public void terminate(Terminate_Request request) {
- this.getControlDelegate().terminate(request);
- }
-
- @Override
- public void resume(Resume_Request request) {
- // In the case where the execution has not yet been started, starts the visitor behavior on a new thread.
- // Otherwise, delegates processing of the request to the control delegate object
- if (!this.started) {
- Runnable execution = new Runnable() {
- public void run() {
- if (visitor != null) {
- try {
- started = true ;
- visitor.visit();
- }
- catch (Exception e) {
- Activator.log.error(e);
- }
- if (!isTerminated()) {
- try {
- getDebugTarget().terminate();
- } catch (DebugException e) {
- Activator.log.error(e);
- }
- }
- }
- }
- };
- Thread mainThread = new Thread(execution);
- mainThread.start();
- } else {
- this.getControlDelegate().resume(request);
- }
- }
-
- //////////////////////////////////
- // Utils
- //////////////////////////////////
-
- /**
- * Returns the control delegate object associated with this engine
- *
- * @return The control delegate object associated with this engine
- */
- public ControlDelegate getControlDelegate() {
- if (this.controlDelegate == null) {
- this.controlDelegate = new ControlDelegate(this) ;
- }
- return this.controlDelegate ;
- }
-
- /**
- * Returns an output stream connected to the console associated with this execution engine
- *
- * @return an output stream connected to the console associated with this execution engine
- */
- public IOConsoleOutputStream getOutputStream() {
- if (console == null) {
- console = new IOConsole(CONSOLE_NAME, null);
- }
- if (out == null) {
- IConsoleManager conMan = ConsolePlugin.getDefault().getConsoleManager();
- conMan.addConsoles(new IConsole[] { console });
- out = console.newOutputStream() ;
- }
- return out;
- }
-}
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/DummyVisitor.java b/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/DummyVisitor.java
deleted file mode 100644
index 37f9f91ea7a..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/DummyVisitor.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.dummyexample;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.moka.debug.MokaThread;
-import org.eclipse.uml2.uml.NamedElement;
-
-/**
- * A simple visitor class, that simply displays the name of the model elements it visits.
- * The visited elements are those contained in the executionRoot element, given as a parameter of the constructor.
- *
- */
-public class DummyVisitor {
-
- /**
- * The list of all the elements to be visited
- */
- protected List<NamedElement> elementsToVisit ;
-
- /**
- * The currently visited element
- */
- protected NamedElement currentlyVisited ;
-
- /**
- * The IThread associated with this visitor.
- */
- protected MokaThread thread ;
-
- /**
- * Constructor
- *
- * @param executionRoot The root execution element, from which elementsToVisit is determined (eAllContents)
- * @param thread The thread to be associated with this visitor
- */
- public DummyVisitor(NamedElement executionRoot, MokaThread thread) {
- this.thread = thread ;
- this.elementsToVisit = new ArrayList<NamedElement>() ;
- Iterator<EObject> i = executionRoot.eAllContents() ;
- for ( ; i.hasNext() ; ) {
- EObject o = i.next() ;
- if (o instanceof NamedElement) {
- elementsToVisit.add((NamedElement)o) ;
- }
- }
- }
-
- /**
- * The visitor behavior.
- * It consists in iterating over elementsToVisit, and display the name of the visited elements.
- * After each visit, inside of the iteration, the control is delegated to a ControlDelegate object,
- * in order to determine if execution can go on, or shall be suspended, or shall be terminated,
- * or if some animation shall happen.
- */
- public void visit() {
- try {
- boolean _continue = true ;
- for (Iterator<NamedElement> i = elementsToVisit.iterator() ; i.hasNext() && _continue ; ) {
- currentlyVisited = i.next() ;
- DummyUMLExecutionEngine.eInstance.getOutputStream().write("I am visiting " + currentlyVisited.getName() + "\n") ;
- // if _continue becomes false (which means that the execution shall terminate), the loop will exit
- _continue = DummyUMLExecutionEngine.eInstance.getControlDelegate().control(this) ;
- }
- } catch (IOException e) {
- Activator.log.error(e);
- }
- }
-
-}
diff --git a/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/PresentationUtils.java b/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/PresentationUtils.java
deleted file mode 100644
index 24f9219b365..00000000000
--- a/examples/moka/org.eclipse.papyrus.moka.dummyexample/src/org/eclipse/papyrus/moka/dummyexample/PresentationUtils.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.dummyexample;
-
-import org.eclipse.papyrus.moka.debug.MokaDebugTarget;
-import org.eclipse.papyrus.moka.debug.MokaStackFrame;
-
-public class PresentationUtils {
-
- public static MokaStackFrame getMokaStackFrame(DummyVisitor visitor) {
- MokaStackFrame stackFrame = new MokaStackFrame((MokaDebugTarget)visitor.thread.getDebugTarget()) ;
- stackFrame.setModelElement(visitor.currentlyVisited) ;
- stackFrame.setThread(visitor.thread) ;
- stackFrame.setName(visitor.currentlyVisited.getName()) ;
- return stackFrame;
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.classpath b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.classpath
deleted file mode 100644
index 2d1a4302f04..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.classpath
+++ /dev/null
@@ -1,7 +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/J2SE-1.5"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.gitignore b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.gitignore
deleted file mode 100644
index ae3c1726048..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/bin/
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.project b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.project
deleted file mode 100644
index 423ccaa2490..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.moka.async.fuml</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.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.settings/org.eclipse.jdt.core.prefs b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 4759947300a..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.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.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=0
-org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
-org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
-org.eclipse.jdt.core.formatter.blank_lines_before_method=1
-org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
-org.eclipse.jdt.core.formatter.blank_lines_before_package=0
-org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
-org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
-org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
-org.eclipse.jdt.core.formatter.comment.format_block_comments=true
-org.eclipse.jdt.core.formatter.comment.format_header=false
-org.eclipse.jdt.core.formatter.comment.format_html=true
-org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
-org.eclipse.jdt.core.formatter.comment.format_line_comments=true
-org.eclipse.jdt.core.formatter.comment.format_source_code=true
-org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
-org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
-org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
-org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
-org.eclipse.jdt.core.formatter.comment.line_length=260
-org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=4
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
-org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
-org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.join_lines_in_comments=false
-org.eclipse.jdt.core.formatter.join_wrapped_lines=false
-org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.lineSplit=260
-org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
-org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
-org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
-org.eclipse.jdt.core.formatter.tabulation.char=tab
-org.eclipse.jdt.core.formatter.tabulation.size=4
-org.eclipse.jdt.core.formatter.use_on_off_tags=false
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
-org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
-org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.settings/org.eclipse.jdt.ui.prefs b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 954281dbc31..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/.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/moka/org.eclipse.papyrus.moka.async.fuml/META-INF/MANIFEST.MF b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/META-INF/MANIFEST.MF
deleted file mode 100644
index b72723256d7..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,28 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.uml2.uml;bundle-version="4.0.1",
- org.eclipse.papyrus.moka;bundle-version="1.2.0",
- org.eclipse.papyrus.moka.fuml;bundle-version="1.2.0",
- org.eclipse.debug.core;bundle-version="3.8.0",
- org.eclipse.papyrus.moka.ui;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0",
- org.eclipse.papyrus.moka.composites;bundle-version="1.2.0",
- org.eclipse.papyrus.moka.fuml.standardlibrary;bundle-version="1.2.0",
- org.eclipse.ui.console,
- org.apache.commons.lang,
- org.eclipse.papyrus.uml.extensionpoints;bundle-version="1.2.0"
-Export-Package: org.eclipse.papyrus.moka.async.fuml,
- org.eclipse.papyrus.moka.async.fuml.Semantics.Classes.Kernel,
- org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications,
- org.eclipse.papyrus.moka.async.fuml.Semantics.Loci.LociL1,
- org.eclipse.papyrus.moka.async.fuml.debug
-Bundle-Vendor: Eclipse Modeling Project
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.2.0.qualifier
-Bundle-Name: Moka Async Runner (Incubation)
-Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.moka.async.fuml.Activator
-Bundle-SymbolicName: org.eclipse.papyrus.moka.async.fuml;singleton:=true
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/about.html b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/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>June 5, 2007</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>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/build.properties b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/build.properties
deleted file mode 100644
index 8e80c8ffb7b..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- resources/,\
- about.html
-src.includes = about.html
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/plugin.xml b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/plugin.xml
deleted file mode 100644
index 392372f68cf..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/plugin.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.papyrus.moka.engine">
- <engine
- class="org.eclipse.papyrus.moka.async.fuml.FUMLAsyncExecutionEngine"
- description="PSCS Execution Engine (multi-threaded implementation)"
- >
- </engine>
- </extension>
- <extension
- point="org.eclipse.emf.ecore.uri_mapping">
- <mapping
- source="pathmap://PAPYRUS_MOKA_FUML_ASYNC_TYPES/"
- target="platform:/plugin/org.eclipse.papyrus.moka.async.fuml/resources/">
- </mapping>
- </extension>
- <extension
- point="org.eclipse.papyrus.uml.extensionpoints.UMLLibrary">
- <library
- description="fUML Asynchronous (Java Threads) Semantics"
- iconpath="resources/icons/moka_icon.png"
- name="fUMLAsyncSemantics"
- path="pathmap://PAPYRUS_MOKA_FUML_ASYNC_TYPES/fUML_Async_Semantics.uml"
- provider="CEA LIST - 2013">
- </library>
- </extension>
-
-</plugin>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/pom.xml b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/pom.xml
deleted file mode 100644
index 43e476c48ec..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/pom.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>org.eclipse.papyrus.extra.releng</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>1.2.0-SNAPSHOT</version>
- <relativePath>../../../releng/extra</relativePath>
- </parent>
- <artifactId>org.eclipse.papyrus.moka.async.fuml</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>1.2.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
-</project> \ No newline at end of file
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.di b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.di
deleted file mode 100644
index 14629c817a2..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.di
+++ /dev/null
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi">
- <pageList>
- <availablePage>
- <emfPageIdentifier href="fUML_Async_Semantics.notation#_Nkzs4F29EeOTf6IB0t4cAA"/>
- </availablePage>
- <availablePage>
- <emfPageIdentifier href="fUML_Async_Semantics.notation#_5LpwgF2-EeOTf6IB0t4cAA"/>
- </availablePage>
- <availablePage>
- <emfPageIdentifier href="fUML_Async_Semantics.notation#_UUgtkF5WEeOQDp6f49za_g"/>
- </availablePage>
- </pageList>
- <sashModel currentSelection="//@sashModel/@windows.0/@children.0">
- <windows>
- <children xsi:type="di:TabFolder">
- <children>
- <emfPageIdentifier href="fUML_Async_Semantics.notation#_Nkzs4F29EeOTf6IB0t4cAA"/>
- </children>
- <children>
- <emfPageIdentifier href="fUML_Async_Semantics.notation#_5LpwgF2-EeOTf6IB0t4cAA"/>
- </children>
- <children>
- <emfPageIdentifier href="fUML_Async_Semantics.notation#_UUgtkF5WEeOQDp6f49za_g"/>
- </children>
- </children>
- </windows>
- </sashModel>
-</di:SashWindowsMngr>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.notation b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.notation
deleted file mode 100644
index fc18f3436dc..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.notation
+++ /dev/null
@@ -1,323 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.2/notation" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML">
- <notation:Diagram xmi:id="_Nkzs4F29EeOTf6IB0t4cAA" type="PapyrusUMLClassDiagram" name="Kernel Extension" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="_PHb9QF29EeOTf6IB0t4cAA" type="2008" fillColor="8047085">
- <children xmi:type="notation:DecorationNode" xmi:id="_PHgOsF29EeOTf6IB0t4cAA" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_PHg1wF29EeOTf6IB0t4cAA" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_PHiD4F29EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_PHiq8F29EeOTf6IB0t4cAA" key="showTitle" value="true"/>
- </eAnnotations>
- <children xmi:type="notation:Shape" xmi:id="_l4y1MF29EeOTf6IB0t4cAA" type="3012">
- <element xmi:type="uml:Property" href="fUML_Async_Semantics.uml#_l4RQwF29EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_l4y1MV29EeOTf6IB0t4cAA"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_PHg1wV29EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_PHg1wl29EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_PHg1w129EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PHg1xF29EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_PHg1xV29EeOTf6IB0t4cAA" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_PHiq8V29EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_PHiq8l29EeOTf6IB0t4cAA" key="showTitle" value="true"/>
- </eAnnotations>
- <children xmi:type="notation:Shape" xmi:id="_j23ZsF29EeOTf6IB0t4cAA" type="3013">
- <element xmi:type="uml:Operation" href="fUML_Async_Semantics.uml#_j2VOMF29EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_j23ZsV29EeOTf6IB0t4cAA"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_PHg1xl29EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_PHg1x129EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_PHg1yF29EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PHg1yV29EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_PHhc0F29EeOTf6IB0t4cAA" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_PHjSAF29EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_PHjSAV29EeOTf6IB0t4cAA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_PHhc0V29EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_PHhc0l29EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_PHhc0129EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PHhc1F29EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_PHwtYF29EeOTf6IB0t4cAA" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_PHxUcF29EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_PHxUcV29EeOTf6IB0t4cAA" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_PHwtYV29EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PHwtYl29EeOTf6IB0t4cAA"/>
- </children>
- <element xmi:type="uml:Class" href="fUML_Async_Semantics.uml#__2jNIF28EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_PHb9QV29EeOTf6IB0t4cAA" x="325" y="395" width="481"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_BcK0IF6OEeOTX_efpbGI-w" type="2008">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Gi7SkF6OEeOTX_efpbGI-w" source="QualifiedName">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Gi7SkV6OEeOTX_efpbGI-w" key="QualifiedNameDepth" value="0"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_BcNQYF6OEeOTX_efpbGI-w" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_BcNQYV6OEeOTX_efpbGI-w" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_BcOegF6OEeOTX_efpbGI-w" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_BcOegV6OEeOTX_efpbGI-w" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_BcNQYl6OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_BcNQY16OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_BcNQZF6OEeOTX_efpbGI-w"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BcNQZV6OEeOTX_efpbGI-w"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_BcN3cF6OEeOTX_efpbGI-w" visible="false" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_BcPFkF6OEeOTX_efpbGI-w" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_BcPFkV6OEeOTX_efpbGI-w" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_BcN3cV6OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_BcN3cl6OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_BcN3c16OEeOTX_efpbGI-w"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BcN3dF6OEeOTX_efpbGI-w"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_BcN3dV6OEeOTX_efpbGI-w" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_BcPFkl6OEeOTX_efpbGI-w" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_BcPFk16OEeOTX_efpbGI-w" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_BcN3dl6OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_BcN3d16OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_BcN3eF6OEeOTX_efpbGI-w"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BcN3eV6OEeOTX_efpbGI-w"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_BcgLUF6OEeOTX_efpbGI-w" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_BcgyYF6OEeOTX_efpbGI-w" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_BcgyYV6OEeOTX_efpbGI-w" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_BcgLUV6OEeOTX_efpbGI-w"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BcgLUl6OEeOTX_efpbGI-w"/>
- </children>
- <element xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_CS_TYPES/PreciseSemanticsOfComposites.uml#_wUwzPd2JEeGnO-TF_1T_iQ"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_BcK0IV6OEeOTX_efpbGI-w" x="325" y="249" width="481" height="62"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_Nkzs4V29EeOTf6IB0t4cAA"/>
- <element xmi:type="uml:Package" href="fUML_Async_Semantics.uml#_JVY7kF28EeOTf6IB0t4cAA"/>
- <edges xmi:type="notation:Connector" xmi:id="_E0L40F6OEeOTX_efpbGI-w" type="4002" source="_PHb9QF29EeOTf6IB0t4cAA" target="_BcK0IF6OEeOTX_efpbGI-w">
- <children xmi:type="notation:DecorationNode" xmi:id="_E0L4016OEeOTX_efpbGI-w" type="6007">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_E0L41F6OEeOTX_efpbGI-w" y="40"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_E0L40V6OEeOTX_efpbGI-w"/>
- <element xmi:type="uml:Generalization" href="fUML_Async_Semantics.uml#_EzEegF6OEeOTX_efpbGI-w"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_E0L40l6OEeOTX_efpbGI-w" points="[8, -11, 3, 115]$[8, -95, 3, 31]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_E0TNkF6OEeOTX_efpbGI-w" id="(0.48693586698337293,0.11)"/>
- </edges>
- </notation:Diagram>
- <notation:Diagram xmi:id="_5LpwgF2-EeOTf6IB0t4cAA" type="PapyrusUMLClassDiagram" name="Communications Extension" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="_5uZ4QF2-EeOTf6IB0t4cAA" type="2008" fillColor="8047085">
- <children xmi:type="notation:DecorationNode" xmi:id="_5uafUF2-EeOTf6IB0t4cAA" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_5uafUV2-EeOTf6IB0t4cAA" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_5ubGYF2-EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5ubGYV2-EeOTf6IB0t4cAA" key="showTitle" value="true"/>
- </eAnnotations>
- <children xmi:type="notation:Shape" xmi:id="_6raoMF3AEeOTf6IB0t4cAA" type="3012">
- <element xmi:type="uml:Property" href="fUML_Async_Semantics.uml#_6q0LQF3AEeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_6raoMV3AEeOTf6IB0t4cAA"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_5uafUl2-EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_5uafU12-EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_5uafVF2-EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5uafVV2-EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_5uafVl2-EeOTf6IB0t4cAA" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_5ubGYl2-EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5ubGY12-EeOTf6IB0t4cAA" key="showTitle" value="true"/>
- </eAnnotations>
- <children xmi:type="notation:Shape" xmi:id="_7l5I4F2_EeOTf6IB0t4cAA" type="3013">
- <element xmi:type="uml:Operation" href="fUML_Async_Semantics.uml#_7lKwIF2_EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_7l5I4V2_EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_74nQkF2_EeOTf6IB0t4cAA" type="3013">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_qrtNwF3BEeOTf6IB0t4cAA" source="CustomAppearance_Annotation">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_qrtNwV3BEeOTf6IB0t4cAA" key="CustomAppearance_MaskValue" value="7050"/>
- </eAnnotations>
- <element xmi:type="uml:Operation" href="fUML_Async_Semantics.uml#_74BasF2_EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_74nQkV2_EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_221jUF3AEeOTf6IB0t4cAA" type="3013">
- <element xmi:type="uml:Operation" href="fUML_Async_Semantics.uml#_22F8cF3AEeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_221jUV3AEeOTf6IB0t4cAA"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_5uafV12-EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_5uafWF2-EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_5uafWV2-EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5uafWl2-EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_5uafW12-EeOTf6IB0t4cAA" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_5ubGZF2-EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5ubGZV2-EeOTf6IB0t4cAA" key="showTitle" value="true"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_pH_qMF2_EeOTf6IB0t4cAA" key="visible" value="true"/>
- </eAnnotations>
- <children xmi:type="notation:Shape" xmi:id="_qSa18F2_EeOTf6IB0t4cAA" type="3052">
- <element xmi:type="uml:Enumeration" href="fUML_Async_Semantics.uml#_qRzx8F2_EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_qSa18V2_EeOTf6IB0t4cAA"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_5uafXF2-EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_5uafXV2-EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_5uafXl2-EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5uafX12-EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_5umskF2-EeOTf6IB0t4cAA" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_5umsk12-EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_5umslF2-EeOTf6IB0t4cAA" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_5umskV2-EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5umskl2-EeOTf6IB0t4cAA"/>
- </children>
- <element xmi:type="uml:Class" href="fUML_Async_Semantics.uml#_wWXx4F2-EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_5uZ4QV2-EeOTf6IB0t4cAA" x="521" y="374" width="390"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_S-66QF2_EeOTf6IB0t4cAA" type="2008">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_X9-1QF2_EeOTf6IB0t4cAA" source="QualifiedName">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_X9_cUF2_EeOTf6IB0t4cAA" key="QualifiedNameDepth" value="0"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_S-7hUF2_EeOTf6IB0t4cAA" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_S-7hUV2_EeOTf6IB0t4cAA" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_S-8IYF2_EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_S-8IYV2_EeOTf6IB0t4cAA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_S-7hUl2_EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_S-7hU12_EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_S-7hVF2_EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_S-7hVV2_EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_S-7hVl2_EeOTf6IB0t4cAA" visible="false" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_S-8IYl2_EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_S-8IY12_EeOTf6IB0t4cAA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_S-7hV12_EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_S-7hWF2_EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_S-7hWV2_EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_S-7hWl2_EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_S-7hW12_EeOTf6IB0t4cAA" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_S-8vcF2_EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_S-8vcV2_EeOTf6IB0t4cAA" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_S-7hXF2_EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_S-7hXV2_EeOTf6IB0t4cAA"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_S-7hXl2_EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_S-7hX12_EeOTf6IB0t4cAA"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_S_KK0F2_EeOTf6IB0t4cAA" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_S_Kx4F2_EeOTf6IB0t4cAA" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_S_Kx4V2_EeOTf6IB0t4cAA" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_S_KK0V2_EeOTf6IB0t4cAA"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_S_KK0l2_EeOTf6IB0t4cAA"/>
- </children>
- <element xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_TYPES/fUML_Semantics.uml#Semantics-CommonBehaviors-Communications-ObjectActivation"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_S-66QV2_EeOTf6IB0t4cAA" x="520" y="210" width="386" height="60"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_5LpwgV2-EeOTf6IB0t4cAA"/>
- <element xmi:type="uml:Package" href="fUML_Async_Semantics.uml#_s2RvQF2-EeOTf6IB0t4cAA"/>
- <edges xmi:type="notation:Connector" xmi:id="_acBlAF2_EeOTf6IB0t4cAA" type="4002" source="_5uZ4QF2-EeOTf6IB0t4cAA" target="_S-66QF2_EeOTf6IB0t4cAA">
- <children xmi:type="notation:DecorationNode" xmi:id="_acCMEF2_EeOTf6IB0t4cAA" type="6007">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_acCMEV2_EeOTf6IB0t4cAA" y="40"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_acBlAV2_EeOTf6IB0t4cAA"/>
- <element xmi:type="uml:Generalization" href="fUML_Async_Semantics.uml#_abc9QF2_EeOTf6IB0t4cAA"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_acBlAl2_EeOTf6IB0t4cAA" points="[3, -3, 0, 160]$[6, -167, 3, -4]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_acHroF2_EeOTf6IB0t4cAA" id="(0.5358974358974359,0.03)"/>
- <targetAnchor xmi:type="notation:IdentityAnchor" xmi:id="_acHroV2_EeOTf6IB0t4cAA" id="(0.5518134715025906,0.06666666666666667)"/>
- </edges>
- </notation:Diagram>
- <notation:Diagram xmi:id="_UUgtkF5WEeOQDp6f49za_g" type="PapyrusUMLClassDiagram" name="LociL1 Extension" measurementUnit="Pixel">
- <children xmi:type="notation:Shape" xmi:id="_UzqHsF5WEeOQDp6f49za_g" type="2008" fillColor="8047085">
- <children xmi:type="notation:DecorationNode" xmi:id="_UzrV0F5WEeOQDp6f49za_g" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_UzrV0V5WEeOQDp6f49za_g" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Uzsj8F5WEeOQDp6f49za_g" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Uzsj8V5WEeOQDp6f49za_g" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_UzrV0l5WEeOQDp6f49za_g"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_UzrV015WEeOQDp6f49za_g"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_UzrV1F5WEeOQDp6f49za_g"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_UzrV1V5WEeOQDp6f49za_g"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_Uzr84F5WEeOQDp6f49za_g" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Uzsj8l5WEeOQDp6f49za_g" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Uzsj815WEeOQDp6f49za_g" key="showTitle" value="true"/>
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_nW4Q0F6OEeOTX_efpbGI-w" key="visible" value="true"/>
- </eAnnotations>
- <children xmi:type="notation:Shape" xmi:id="_kdMt8F6OEeOTX_efpbGI-w" type="3013">
- <element xmi:type="uml:Operation" href="fUML_Async_Semantics.uml#_kcPEoF6OEeOTX_efpbGI-w"/>
- <layoutConstraint xmi:type="notation:Location" xmi:id="_kdMt8V6OEeOTX_efpbGI-w"/>
- </children>
- <styles xmi:type="notation:TitleStyle" xmi:id="_Uzr84V5WEeOQDp6f49za_g"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_Uzr84l5WEeOQDp6f49za_g"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_Uzr8415WEeOQDp6f49za_g"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Uzr85F5WEeOQDp6f49za_g"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_Uzr85V5WEeOQDp6f49za_g" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Uzsj9F5WEeOQDp6f49za_g" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_UztLAF5WEeOQDp6f49za_g" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_Uzr85l5WEeOQDp6f49za_g"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_Uzr8515WEeOQDp6f49za_g"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_Uzr86F5WEeOQDp6f49za_g"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Uzr86V5WEeOQDp6f49za_g"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_Uz5YQF5WEeOQDp6f49za_g" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_Uz5YQ15WEeOQDp6f49za_g" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_Uz5YRF5WEeOQDp6f49za_g" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_Uz5YQV5WEeOQDp6f49za_g"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_Uz5YQl5WEeOQDp6f49za_g"/>
- </children>
- <element xmi:type="uml:Class" href="fUML_Async_Semantics.uml#_ILvk8F5WEeOQDp6f49za_g"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_UzqHsV5WEeOQDp6f49za_g" x="385" y="430" width="401"/>
- </children>
- <children xmi:type="notation:Shape" xmi:id="_VIxhoF6OEeOTX_efpbGI-w" type="2008">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_an5cwF6OEeOTX_efpbGI-w" source="QualifiedName">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_an6D0F6OEeOTX_efpbGI-w" key="QualifiedNameDepth" value="0"/>
- </eAnnotations>
- <children xmi:type="notation:DecorationNode" xmi:id="_VIyIsF6OEeOTX_efpbGI-w" type="5029"/>
- <children xmi:type="notation:BasicCompartment" xmi:id="_VIyvwF6OEeOTX_efpbGI-w" visible="false" type="7017">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VI0k8F6OEeOTX_efpbGI-w" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VI0k8V6OEeOTX_efpbGI-w" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_VIyvwV6OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_VIyvwl6OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_VIyvw16OEeOTX_efpbGI-w"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VIyvxF6OEeOTX_efpbGI-w"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_VIyvxV6OEeOTX_efpbGI-w" visible="false" type="7018">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VI1MAF6OEeOTX_efpbGI-w" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VI1MAV6OEeOTX_efpbGI-w" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_VIyvxl6OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_VIyvx16OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_VIyvyF6OEeOTX_efpbGI-w"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VIyvyV6OEeOTX_efpbGI-w"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_VIzW0F6OEeOTX_efpbGI-w" visible="false" type="7019">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VI1zEF6OEeOTX_efpbGI-w" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VI2aIF6OEeOTX_efpbGI-w" key="showTitle" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_VIzW0V6OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:SortingStyle" xmi:id="_VIzW0l6OEeOTX_efpbGI-w"/>
- <styles xmi:type="notation:FilteringStyle" xmi:id="_VIzW016OEeOTX_efpbGI-w"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VIzW1F6OEeOTX_efpbGI-w"/>
- </children>
- <children xmi:type="notation:BasicCompartment" xmi:id="_VJQp0F6OEeOTX_efpbGI-w" visible="false" type="compartment_shape_display">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_VJRQ4F6OEeOTX_efpbGI-w" source="PapyrusCSSForceValue">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_VJRQ4V6OEeOTX_efpbGI-w" key="mutable" value="true"/>
- </eAnnotations>
- <styles xmi:type="notation:TitleStyle" xmi:id="_VJQp0V6OEeOTX_efpbGI-w"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VJQp0l6OEeOTX_efpbGI-w"/>
- </children>
- <element xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_CS_TYPES/PreciseSemanticsOfComposites.uml#_m8YmQOYdEeGYZqnbU6eCYw"/>
- <layoutConstraint xmi:type="notation:Bounds" xmi:id="_VIxhoV6OEeOTX_efpbGI-w" x="385" y="253" width="401" height="63"/>
- </children>
- <styles xmi:type="notation:DiagramStyle" xmi:id="_UUgtkV5WEeOQDp6f49za_g"/>
- <element xmi:type="uml:Package" href="fUML_Async_Semantics.uml#_D1WzgF5WEeOQDp6f49za_g"/>
- <edges xmi:type="notation:Connector" xmi:id="_bx9cIF6OEeOTX_efpbGI-w" type="4002" source="_UzqHsF5WEeOQDp6f49za_g" target="_VIxhoF6OEeOTX_efpbGI-w">
- <children xmi:type="notation:DecorationNode" xmi:id="_bx9cI16OEeOTX_efpbGI-w" type="6007">
- <layoutConstraint xmi:type="notation:Location" xmi:id="_bx9cJF6OEeOTX_efpbGI-w" y="40"/>
- </children>
- <styles xmi:type="notation:FontStyle" xmi:id="_bx9cIV6OEeOTX_efpbGI-w"/>
- <element xmi:type="uml:Generalization" href="fUML_Async_Semantics.uml#_bxOcUF6OEeOTX_efpbGI-w"/>
- <bendpoints xmi:type="notation:RelativeBendpoints" xmi:id="_bx9cIl6OEeOTX_efpbGI-w" points="[5, -10, 7, 146]$[5, -124, 7, 32]"/>
- <sourceAnchor xmi:type="notation:IdentityAnchor" xmi:id="_byC7sF6OEeOTX_efpbGI-w" id="(0.4975369458128079,0.1)"/>
- </edges>
- </notation:Diagram>
-</xmi:XMI>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.uml b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.uml
deleted file mode 100644
index e9bc7ddd444..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/fUML_Async_Semantics.uml
+++ /dev/null
@@ -1,104 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<uml:Model xmi:version="20110701" xmlns:xmi="http://www.omg.org/spec/XMI/20110701" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML" xmi:id="_AVyjUF28EeOTf6IB0t4cAA" name="fUMLAsync">
- <packageImport xmi:type="uml:PackageImport" xmi:id="_mghSgFzLEeOyfYQ3OSvhhA">
- <importedPackage xmi:type="uml:Model" href="pathmap://UML_METAMODELS/UML.metamodel.uml#_0"/>
- </packageImport>
- <packageImport xmi:type="uml:PackageImport" xmi:id="_AVyjUV28EeOTf6IB0t4cAA">
- <importedPackage xmi:type="uml:Model" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
- </packageImport>
- <packageImport xmi:type="uml:PackageImport" xmi:id="_EbNrIF29EeOTf6IB0t4cAA">
- <importedPackage xmi:type="uml:Model" href="pathmap://PAPYRUS_MOKA_FUML_TYPES/fUML_Semantics.uml#_0"/>
- </packageImport>
- <packageImport xmi:type="uml:PackageImport" xmi:id="_5yiwUF6NEeOTX_efpbGI-w">
- <importedPackage xmi:type="uml:Model" href="pathmap://PAPYRUS_MOKA_FUML_CS_TYPES/PreciseSemanticsOfComposites.uml#_rP7eQNyJEeGru4CffneBug"/>
- </packageImport>
- <packagedElement xmi:type="uml:Package" xmi:id="_EhegoF28EeOTf6IB0t4cAA" name="Semantics">
- <packagedElement xmi:type="uml:Package" xmi:id="_G78_AF28EeOTf6IB0t4cAA" name="Classes">
- <packagedElement xmi:type="uml:Package" xmi:id="_JVY7kF28EeOTf6IB0t4cAA" name="Kernel">
- <packagedElement xmi:type="uml:Class" xmi:id="__2jNIF28EeOTf6IB0t4cAA" name="AsyncObject_">
- <generalization xmi:type="uml:Generalization" xmi:id="_EzEegF6OEeOTX_efpbGI-w">
- <general xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_CS_TYPES/PreciseSemanticsOfComposites.uml#_wUwzPd2JEeGnO-TF_1T_iQ"/>
- </generalization>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_l4RQwF29EeOTf6IB0t4cAA" name="objectactivationThread" visibility="protected">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_o1KfsF29EeOTf6IB0t4cAA" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_o1mkkF29EeOTf6IB0t4cAA" value="1"/>
- </ownedAttribute>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_j2VOMF29EeOTf6IB0t4cAA" name="startBehavior">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_dUaj4F2-EeOTf6IB0t4cAA" name="classifier" visibility="public">
- <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_dUaj4V2-EeOTf6IB0t4cAA"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_dUCwcF2-EeOTf6IB0t4cAA" name="inputs" visibility="public">
- <type xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_TYPES/fUML_Semantics.uml#Semantics-CommonBehaviors-BasicBehaviors-ParameterValue"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_dUCwcV2-EeOTf6IB0t4cAA"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_dUDXgF2-EeOTf6IB0t4cAA" value="*"/>
- </ownedParameter>
- <redefinedOperation xmi:type="uml:Operation" href="pathmap://PAPYRUS_MOKA_FUML_TYPES/fUML_Semantics.uml#Semantics-Classes-Kernel-Object-startBehavior.1"/>
- </ownedOperation>
- </packagedElement>
- </packagedElement>
- </packagedElement>
- <packagedElement xmi:type="uml:Package" xmi:id="_piitoF2-EeOTf6IB0t4cAA" name="CommonBehaviors">
- <packagedElement xmi:type="uml:Package" xmi:id="_s2RvQF2-EeOTf6IB0t4cAA" name="Communications">
- <packagedElement xmi:type="uml:Class" xmi:id="_wWXx4F2-EeOTf6IB0t4cAA" name="AsyncObjectActivation">
- <generalization xmi:type="uml:Generalization" xmi:id="_abc9QF2_EeOTf6IB0t4cAA">
- <general xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_TYPES/fUML_Semantics.uml#Semantics-CommonBehaviors-Communications-ObjectActivation"/>
- </generalization>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_6q0LQF3AEeOTf6IB0t4cAA" name="currentState" visibility="public" type="_qRzx8F2_EeOTf6IB0t4cAA" isUnique="false">
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="__E5w8F3AEeOTf6IB0t4cAA" value="1"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="__Ffm0F3AEeOTf6IB0t4cAA" value="1"/>
- <defaultValue xmi:type="uml:LiteralString" xmi:id="__Hej0F3AEeOTf6IB0t4cAA">
- <value xsi:nil="true"/>
- </defaultValue>
- </ownedAttribute>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_7lKwIF2_EeOTf6IB0t4cAA" name="send">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_JtayUF3CEeOTf6IB0t4cAA" name="signalInstance" visibility="public">
- <type xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_TYPES/fUML_Semantics.uml#Semantics-CommonBehaviors-Communications-SignalInstance"/>
- </ownedParameter>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_74BasF2_EeOTf6IB0t4cAA" name="getNextEvent">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_jZbS8F3BEeOTf6IB0t4cAA" name="returnResult" visibility="public" direction="return">
- <type xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_TYPES/fUML_Semantics.uml#Semantics-CommonBehaviors-Communications-SignalInstance"/>
- </ownedParameter>
- <redefinedOperation xmi:type="uml:Operation" href="pathmap://PAPYRUS_MOKA_FUML_TYPES/fUML_Semantics.uml#Semantics-CommonBehaviors-Communications-ObjectActivation-getNextEvent.1"/>
- </ownedOperation>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_22F8cF3AEeOTf6IB0t4cAA" name="startBehavior">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_-aRqIF3BEeOTf6IB0t4cAA" name="classifier" visibility="public">
- <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-aRqIV3BEeOTf6IB0t4cAA"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_-alMIF3BEeOTf6IB0t4cAA" name="inputs" visibility="public">
- <type xmi:type="uml:Class" href="fUML_Semantics.uml#Semantics-CommonBehaviors-BasicBehaviors-ParameterValue"/>
- <lowerValue xmi:type="uml:LiteralInteger" xmi:id="_-alMIV3BEeOTf6IB0t4cAA"/>
- <upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_-alMIl3BEeOTf6IB0t4cAA" value="*"/>
- </ownedParameter>
- </ownedOperation>
- <nestedClassifier xmi:type="uml:Enumeration" xmi:id="_qRzx8F2_EeOTf6IB0t4cAA" name="ObjectActivationState">
- <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_wtgDAF2_EeOTf6IB0t4cAA" name="RUNNING"/>
- <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_zOicYF2_EeOTf6IB0t4cAA" name="STOPPED"/>
- <ownedLiteral xmi:type="uml:EnumerationLiteral" xmi:id="_1WuQ4F2_EeOTf6IB0t4cAA" name="WAITING"/>
- </nestedClassifier>
- </packagedElement>
- </packagedElement>
- </packagedElement>
- <packagedElement xmi:type="uml:Package" xmi:id="__upc0F5VEeOQDp6f49za_g" name="Loci">
- <packagedElement xmi:type="uml:Package" xmi:id="_D1WzgF5WEeOQDp6f49za_g" name="LociL1">
- <packagedElement xmi:type="uml:Class" xmi:id="_ILvk8F5WEeOQDp6f49za_g" name="AsyncLocus">
- <generalization xmi:type="uml:Generalization" xmi:id="_bxOcUF6OEeOTX_efpbGI-w">
- <general xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_CS_TYPES/PreciseSemanticsOfComposites.uml#_m8YmQOYdEeGYZqnbU6eCYw"/>
- </generalization>
- <ownedBehavior xmi:type="uml:OpaqueBehavior" xmi:id="_d2OYoJNBEeOZv5vArj9pvw" name="instantiate_method" specification="_kcPEoF6OEeOTX_efpbGI-w"/>
- <ownedOperation xmi:type="uml:Operation" xmi:id="_kcPEoF6OEeOTX_efpbGI-w" name="instantiate" method="_d2OYoJNBEeOZv5vArj9pvw">
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_WU2SwI_cEeO0CoHvchsUDA" name="type">
- <type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
- </ownedParameter>
- <ownedParameter xmi:type="uml:Parameter" xmi:id="_WUgUgI_cEeO0CoHvchsUDA" name="result" direction="return">
- <type xmi:type="uml:Class" href="pathmap://PAPYRUS_MOKA_FUML_TYPES/fUML_Semantics.uml#Semantics-Classes-Kernel-Object"/>
- </ownedParameter>
- <redefinedOperation xmi:type="uml:Operation" href="pathmap://PAPYRUS_MOKA_FUML_CS_TYPES/PreciseSemanticsOfComposites.uml#_v1ptAOYdEeGYZqnbU6eCYw"/>
- </ownedOperation>
- </packagedElement>
- </packagedElement>
- </packagedElement>
- </packagedElement>
-</uml:Model>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/icons/moka_icon.png b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/icons/moka_icon.png
deleted file mode 100644
index 67391356053..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/resources/icons/moka_icon.png
+++ /dev/null
Binary files differ
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Activator.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Activator.java
deleted file mode 100644
index 2efc2279232..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Activator.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml;
-
-import org.eclipse.papyrus.infra.core.log.LogHelper;
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-// TODO: Auto-generated Javadoc
-/**
- * The activator class controls the plug-in life cycle.
- */
-public class Activator extends AbstractUIPlugin {
-
- // The plug-in ID
- /** The Constant PLUGIN_ID. */
- public static final String PLUGIN_ID = "org.eclipse.papyrus.moka.async.fuml"; //$NON-NLS-1$
-
- // The shared instance
- /** The plugin. */
- 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/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/FUMLAsyncExecutionEngine.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/FUMLAsyncExecutionEngine.java
deleted file mode 100644
index 91e047243a9..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/FUMLAsyncExecutionEngine.java
+++ /dev/null
@@ -1,169 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.papyrus.infra.core.Activator;
-import org.eclipse.papyrus.moka.MokaConstants;
-import org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications.AsyncFIFOGetNextEventStrategy;
-import org.eclipse.papyrus.moka.async.fuml.Semantics.Loci.LociL1.AsyncLocus;
-import org.eclipse.papyrus.moka.async.fuml.debug.AsyncControlDelegate;
-import org.eclipse.papyrus.moka.communication.Marshaller;
-import org.eclipse.papyrus.moka.communication.event.isuspendresume.Resume_Event;
-import org.eclipse.papyrus.moka.communication.request.isuspendresume.Resume_Request;
-import org.eclipse.papyrus.moka.composites.CompositeStructuresExecutionEngine;
-import org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications.CS_DispatchOperationOfInterfaceStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications.CS_NameBased_StructuralFeatureOfInterfaceAccessStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions.CS_DefaultConstructStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions.CS_DefaultRequestPropagationStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3.CS_ExecutionFactory;
-import org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3.CS_Executor;
-import org.eclipse.papyrus.moka.fuml.FUMLExecutionEngine;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Locus;
-import org.eclipse.papyrus.moka.fuml.debug.ControlDelegate;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.uml2.uml.Behavior;
-
-/**
- * Entry point of this plug-in. By extending the FUMLExecutionEngine it contributes
- * to the extension point defined by Moka and is by the way registered as a new engine
- * that can be used to execute a defined model
- *
- * @author CEA LIST (jt605650)
- *
- */
-public class FUMLAsyncExecutionEngine extends CompositeStructuresExecutionEngine {
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.composites.CompositeStructuresExecutionEngine#start(org.eclipse.uml2.uml.Behavior)
- */
- @Override
- public void start(Behavior behavior) {
- if (behavior != null) {
- main = behavior;
- // creates the locus, executor and execution factory
- this.locus = new AsyncLocus();
- this.locus.setFactory(new CS_ExecutionFactory());
- this.locus.setExecutor(new CS_Executor());
- // initializes built-in primitive types
- this.initializeBuiltInPrimitiveTypes(locus);
- // Initializes opaque behavior executions
- this.registerOpaqueBehaviorExecutions(locus);
- // Initializes semantic strategies
- this.registerSemanticStrategies(locus);
- // Initializes system services
- this.registerSystemServices(locus);
- // Initializes arguments
- this.initializeArguments(this.args);
- // Finally launches the execution
- this.started = true;
- this.locus.executor.execute(main, null, this.arguments);
- ((AsyncControlDelegate) eInstance.getControlDelegate()).notifyMainThreadLogicallyEnded();
- }
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.papyrus.moka.composites.CompositeStructuresExecutionEngine#registerSemanticStrategies(org.eclipse.papyrus.moka.fuml.Semantics.Loci
- * .LociL1.Locus)
- */
- @Override
- protected void registerSemanticStrategies(Locus locus) {
- super.registerSemanticStrategies(locus);
- locus.factory.setStrategy(new AsyncFIFOGetNextEventStrategy());
- locus.factory.setStrategy(new CS_DispatchOperationOfInterfaceStrategy());
- locus.factory.setStrategy(new CS_NameBased_StructuralFeatureOfInterfaceAccessStrategy());
- locus.factory.setStrategy(new CS_DefaultRequestPropagationStrategy());
- locus.factory.setStrategy(new CS_DefaultConstructStrategy());
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.fuml.FUMLExecutionEngineForMoka#getControlDelegate()
- */
- @Override
- public ControlDelegate getControlDelegate() {
- if (this.controlDelegate == null) {
- this.controlDelegate = new AsyncControlDelegate(this);
- }
- return this.controlDelegate;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.papyrus.moka.fuml.FUMLExecutionEngineForMoka#resume(org.eclipse.papyrus.moka.communication.request.isuspendresume.Resume_Request)
- */
- @Override
- public void resume(Resume_Request request) {
- if (!this.started) {
- Runnable execution = new Runnable() {
-
- public void run() {
- if (main != null) {
- try {
- start(main);
- }
- catch (Exception e) {
- Activator.log.error(e);
- if (!MokaConstants.SILENT_MODE) {
- Display.getDefault().syncExec(new Runnable() {
- public void run() {
- MessageDialog.openError(Display.getDefault().getActiveShell(), "Moka", "An unexpected error occurred during execution. See error log for details.");
- }
- });
- }
- setIsTerminated(true);
- }
- // Waits for termination. i.e., the main thread is terminated, but object activations may still be running
- FUMLExecutionEngine.eInstance.getControlDelegate().waitForTermination();
- try {
- getDebugTarget().terminate();
- } catch (DebugException e) {
- Activator.log.error(e);
- }
- }
- }
- };
- Thread mainThread = new Thread(execution);
- ((AsyncControlDelegate) eInstance.getControlDelegate()).registerObjectActivation(null);
- mainThread.start();
- } else {
- this.getControlDelegate().resume(request);
- }
- }
-
- // **************************************
- // Management of a resume() request emitted from the debug target.
- // @see ISuspendResume.resume()
- // ***************************************
- /**
- * Manages reply to a resume() request emitted from the debug target.
- *
- * @param message
- * the message
- */
- @Override
- protected void resume_reply(String message) {
- Resume_Request request = Marshaller.getInstance().resume_request_unmarshal(message);
- this.resume(request);
- Resume_Event event = new Resume_Event(request.getDebugElement(), request.getResumeDetail(), this.getThreads());
- this.sendEvent(event);
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/Classes/Kernel/AsyncObject_.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/Classes/Kernel/AsyncObject_.java
deleted file mode 100644
index 0a8e3608258..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/Classes/Kernel/AsyncObject_.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.Semantics.Classes.Kernel;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.async.fuml.Activator;
-import org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications.AsyncObjectActivation;
-import org.eclipse.papyrus.moka.async.fuml.debug.AsyncControlDelegate;
-import org.eclipse.papyrus.moka.async.fuml.debug.AsyncDebug;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.fuml.FUMLExecutionEngine;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue;
-import org.eclipse.uml2.uml.Class;
-
-/**
- * Object_ class is slightly modified in order to enable creation and starting of its
- * object activation on a new thread. This override the previous behavior that was limited
- * the call of the startBehavior(...) method
- *
- */
-public class AsyncObject_ extends CS_Object {
-
- /** The objectactivation thread. */
- protected Thread objectactivationThread;
-
- /**
- * Create and start the Java Thread required to execute its owning objectActivation.
- *
- * @param classifier
- * @param inputs
- */
- @Override
- public void startBehavior(Class classifier, List<ParameterValue> inputs) {
- if (this.objectActivation == null) {
- this.objectActivation = new AsyncObjectActivation(classifier, inputs);
- this.objectActivation.object = this;
- }
- /* 1. Create Thread Name */
- String threadName = "Thread_";
- Iterator<Class> classes = this.types.iterator();
- while (classes.hasNext()) {
- threadName += classes.next().getName();
- if (classes.hasNext()) {
- threadName += "|";
- }
- }
- /* 2. Pattern to start the Runnable corresponding to the AsyncObjectActivation */
- // Thread objectactivationThread = new Thread((AsyncObjectActivation)this.objectActivation, threadName);
- objectactivationThread = new Thread((AsyncObjectActivation) this.objectActivation, threadName);
-
- ((AsyncControlDelegate) FUMLExecutionEngine.eInstance.getControlDelegate()).registerObjectActivation(this.objectActivation, threadName); // Added for connection with debug api
-
- objectactivationThread.start();
-
- AsyncDebug.println("[NEW THREAD] Active object instance started on a new thread");
- }
-
- /**
- * TODO write Javadoc
- */
- public void join() {
- try {
- objectactivationThread.join();
- } catch (InterruptedException e) {
- Activator.log.error(e);
- }
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncEventPool.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncEventPool.java
deleted file mode 100644
index 40cbac0617d..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncEventPool.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications;
-
-import java.util.concurrent.LinkedBlockingQueue;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.ObjectActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.SemanticStrategy;
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class AsyncEventPool.
- */
-@SuppressWarnings("serial")
-/**
- * The event pool provide a way for an object activation to communicate with others.
- * An instance of such class is always owned by an object activation
- * The only Java thread that can retrieve signal instances is the one linked to to the
- * object activation.
- * Every object activation that need to communicate with the one owning the event pool can
- * use the send method to offer a new SignalInstance
- * @author CEA LIST (jt605650)
- */
-public class AsyncEventPool extends LinkedBlockingQueue<SignalInstance> implements IAsyncEventPool {
-
- /* Event pool owner */
- /** The object activation. */
- private ObjectActivation objectActivation;
-
- /**
- * Constructor.
- *
- * @param activation
- * that owns the event pool
- */
- public AsyncEventPool(ObjectActivation activation) {
- super();
- this.objectActivation = activation;
- }
-
- /**
- * Offers the given signal instance to the Queue. Since the eventPool is unbounded
- * offer always deliver the SignalInstance to the event pool
- *
- * @param signalInstance
- * that need to be added to the event pool
- * @return true, if successful
- */
- public boolean send(SignalInstance signalInstance) {
- return this.offer(signalInstance);
- }
-
- /**
- * Call the getNextEvent strategy registered in the locus in order to take a signalInstance.
- *
- * @return the next event
- */
- public SignalInstance getNextEvent() {
- SemanticStrategy strategy = this.objectActivation.object.locus.factory.getStrategy("getNextEvent");
- return ((AsyncGetNextEventStrategy) strategy).getNextEvent(this);
- }
-
- /**
- * Get the object activation that owns the current event pool.
- *
- * @return objectActivation owning the event pool
- */
- public synchronized ObjectActivation getObjectActivation() {
- return objectActivation;
- }
-
- /**
- * Modify the owner of the current event pool.
- *
- * @param objectActivation
- * new owner of the current event pool
- */
- public synchronized void setObjectActivation(ObjectActivation objectActivation) {
- this.objectActivation = objectActivation;
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncFIFOGetNextEventStrategy.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncFIFOGetNextEventStrategy.java
deleted file mode 100644
index e81d38d352b..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncFIFOGetNextEventStrategy.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications;
-
-import org.eclipse.papyrus.moka.async.fuml.Activator;
-import org.eclipse.papyrus.moka.async.fuml.debug.AsyncDebug;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-
-/**
- * FIFO strategy that retrieve the oldest SignalInstance owned by the EventPool object.
- */
-public class AsyncFIFOGetNextEventStrategy extends AsyncGetNextEventStrategy {
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications.AsyncGetNextEventStrategy#getNextEvent(org.eclipse.papyrus.moka
- * .async.fuml.Semantics.CommonBehaviors.Communications.AsyncEventPool)
- */
- @Override
- /**
- * This method is always called by the object activation owning the event pool.
- * The call is blocking if no SignalInstance can be retrieved from the event pool.
- */
- public SignalInstance getNextEvent(AsyncEventPool eventPool) {
- SignalInstance nextEvent = null;
- try {
- nextEvent = eventPool.take();
- } catch (InterruptedException e) {
- AsyncDebug.println("getNextEvent interrupted while waiting");
- Activator.log.error(e);
- }
- return nextEvent;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncGetNextEventStrategy.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncGetNextEventStrategy.java
deleted file mode 100644
index 493f5410109..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncGetNextEventStrategy.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:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.SemanticStrategy;
-
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class AsyncGetNextEventStrategy.
- *
- * @author CEA LIST (jt605650)
- */
-public abstract class AsyncGetNextEventStrategy extends SemanticStrategy {
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.SemanticStrategy#getName()
- */
- @Override
- public String getName() {
- return "getNextEvent";
- }
-
- /**
- * Gets the next event.
- *
- * @param eventPool
- * the event pool
- * @return the next event
- */
- public abstract SignalInstance getNextEvent(AsyncEventPool eventPool);
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncObjectActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncObjectActivation.java
deleted file mode 100644
index 221c671e025..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/AsyncObjectActivation.java
+++ /dev/null
@@ -1,325 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications;
-
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.jface.dialogs.MessageDialog;
-import org.eclipse.papyrus.infra.core.Activator;
-import org.eclipse.papyrus.moka.MokaConstants;
-import org.eclipse.papyrus.moka.async.fuml.debug.AsyncControlDelegate;
-import org.eclipse.papyrus.moka.async.fuml.debug.AsyncDebug;
-import org.eclipse.papyrus.moka.fuml.FUMLExecutionEngine;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.CompleteActions.AcceptEventActionEventAccepter;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.ClassifierBehaviorExecution;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.EventAccepter;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.ObjectActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.ChoiceStrategy;
-import org.eclipse.papyrus.moka.fuml.standardlibrary.library.io.StandardOutputChannelImpl;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.RGB;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.ui.console.IOConsoleOutputStream;
-import org.eclipse.uml2.uml.AcceptEventAction;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Signal;
-import org.eclipse.uml2.uml.SignalEvent;
-import org.eclipse.uml2.uml.Trigger;
-
-// TODO: Auto-generated Javadoc
-/**
- * Extend the original ObjectActivation class in order to support starting of execution
- * of the different classifiers behaviors over a new Java Thread.
- *
- * @author CEA LIST (JT605650)
- */
-public class AsyncObjectActivation extends ObjectActivation implements Runnable {
-
- /* Thread State */
- /**
- * The Enum ObjectActivationState.
- */
- public enum ObjectActivationState {
-
- /** The running. */
- RUNNING,
- /** The stopped. */
- STOPPED,
- /** The waiting. */
- WAITING
- } // WAITING State added for connection with debug api
-
- /** The current state. */
- protected ObjectActivationState currentState = null;
-
- /* Arguments of the ObjectActivation */
- /** The classifier. */
- final protected Class classifier;
-
- /** The inputs. */
- final protected List<ParameterValue> inputs;
-
- /* The event pool handled by the ObjectActivation */
- /** The evt pool. */
- protected AsyncEventPool evtPool;
-
- /**
- * Constructor of AsyncObjectActivation.
- *
- * @param classifier
- * that need to be executed on the current object activation
- * @param inputs
- * parameters that are provided to the execution
- */
- public AsyncObjectActivation(Class classifier, List<ParameterValue> inputs) {
- super();
- this.classifier = classifier;
- this.inputs = inputs;
- this.evtPool = new AsyncEventPool(this);
- }
-
- /**
- * Implementation of the behavior of the current object activation.
- */
- public void run() {
- /* 1. The current object activation is in the running state */
- this.currentState = ObjectActivationState.RUNNING;
- /* 2. Execute behavior(s) associated to the given classifier */
- try {
- this.startBehavior(this.classifier, this.inputs);
- } catch (Exception e) {
- Activator.log.error(e);
- if (!MokaConstants.SILENT_MODE) {
- Display.getDefault().syncExec(new Runnable() {
- public void run() {
- MessageDialog.openError(Display.getDefault().getActiveShell(), "Moka", "An unexpected error occurred during execution. See error log for details.");
- }
- });
- }
- ((AsyncControlDelegate) FUMLExecutionEngine.eInstance.getControlDelegate()).notifyThreadTermination(this); // Added for connection with debug api
- }
- /* 3. While current object activation is running then dispatch events */
- while (!FUMLExecutionEngine.eInstance.isTerminated() && this.currentState.equals(ObjectActivationState.RUNNING)) {
- try {
- this.dispatchNextEvent(); /* Dispatch is blocking if no SignalInstance available */
- } catch (Exception e) {
- Activator.log.error(e);
- if (!MokaConstants.SILENT_MODE) {
- Display.getDefault().syncExec(new Runnable() {
- public void run() {
- MessageDialog.openError(Display.getDefault().getActiveShell(), "Moka", "An unexpected error occurred during execution. See error log for details.");
- }
- });
- }
- ((AsyncControlDelegate) FUMLExecutionEngine.eInstance.getControlDelegate()).notifyThreadTermination(this); // Added for connection with debug api
- }
- if (this.waitingEventAccepters.isEmpty()) {
- this.currentState = ObjectActivationState.STOPPED;
- }
- }
- ((AsyncControlDelegate) FUMLExecutionEngine.eInstance.getControlDelegate()).notifyThreadTermination(this); // Added for connection with debug api
- }
-
- // Added for connection with debug API
- /**
- * Gets the current state.
- *
- * @return the current state
- */
- public ObjectActivationState getCurrentState() {
- return this.currentState;
- }
-
- /**
- * Causality is broken here in order to let the thread that emitted
- * the signal to continue its execution.
- *
- * @param signalInstance
- * the signal instance
- */
- @Override
- public synchronized void send(SignalInstance signalInstance) {
- SignalInstance copy = (SignalInstance) signalInstance.copy();
- this.evtPool.send(copy);
- AsyncDebug.println("[SignalInstance sent] " + signalInstance.type.getName());
- }
-
- // Added for connection with debug API
- /** The has been waiting. */
- protected boolean hasBeenWaiting = false;
-
- /**
- * Retrieve a SignalInstance stored in the event pool.
- *
- * @return the next event
- */
- @Override
- public SignalInstance getNextEvent() {
- // Added for connection with debug API
- if (this.evtPool.isEmpty()) {
- this.currentState = ObjectActivationState.WAITING;
- this.hasBeenWaiting = true;
- ((AsyncControlDelegate) FUMLExecutionEngine.eInstance.getControlDelegate()).notifyWaitingStateEntered(this);
- }
- SignalInstance signalInstance = this.evtPool.getNextEvent();
- this.currentState = ObjectActivationState.RUNNING;
- //
-
- if (signalInstance != null) {
- AsyncDebug.println("[consumed SignalInstance] " + signalInstance.type.getName());
- }
- return signalInstance;
- }
-
- /**
- * Start the event dispatch loop for this object activation (if it has
- * not already been started).
- * If a classifier is given that is a type of the object of this object
- * activation and there is not already a classifier behavior execution
- * for it, then create a classifier behavior execution for it.
- * Otherwise, create a classifier behavior execution for each of the
- * types of the object of this object activation which has a classifier
- * behavior or which is a behavior itself
- * and for which there is not currently a classifier behavior execution.
- * Start EventDispatchLoop
- *
- * @param classifier
- * the classifier
- * @param inputs
- * the inputs
- */
- @Override
- public void startBehavior(Class classifier, List<ParameterValue> inputs) {
- /* 1. Start behavior of the current classifier */
- if (classifier == null) {
- AsyncDebug.println("Starting behavior for all classifiers...");
- // *** Start all classifier behaviors concurrently. ***
- List<Class> types = this.object.types;
- for (Iterator<Class> i = types.iterator(); i.hasNext();) {
- Class type = i.next();
- if (type instanceof Behavior | type.getClassifierBehavior() != null) {
- this.startBehavior(type, new ArrayList<ParameterValue>());
- }
- }
- } else {
- AsyncDebug.println("Starting behavior for " + classifier.getName() + "...");
- boolean notYetStarted = true;
- int i = 1;
- while (notYetStarted & i <= this.classifierBehaviorExecutions.size()) {
- notYetStarted = (this.classifierBehaviorExecutions.get(i - 1).classifier != classifier);
- i = i + 1;
- }
- if (notYetStarted) {
- ClassifierBehaviorExecution newExecution = new ClassifierBehaviorExecution();
- newExecution.objectActivation = this;
- this.classifierBehaviorExecutions.add(newExecution);
- newExecution.execute(classifier, inputs);
- }
- }
-
- }
-
- /**
- * Stop all the classifier behaviors. The current object activation enters the STOPPED state
- */
- @Override
- public void stop() {
- /* 1. Terminate all of my classifier behaviors */
- super.stop();
- /* 2. Terminate my execution thread */
- this.currentState = ObjectActivationState.STOPPED;
- }
-
- /** The out. */
- protected IOConsoleOutputStream out;
-
- /**
- * Get the next signal instance out of the event pool.
- * If there is one or more waiting event accepters with triggers that
- * match the signal instance, then dispatch it to exactly one of those
- * waiting accepters
- */
- @Override
- public void dispatchNextEvent() {
- /* 1. Get next event is blocking if used on a empty event pool */
- SignalInstance signalInstance = this.getNextEvent();
- AsyncDebug.println("[dispatchNextEvent] signalInstance = " + signalInstance);
- /* 2. Look for EventAccepter that match the selected SignalInstance */
- List<Integer> matchingEventAccepterIndexes = new ArrayList<Integer>();
- List<EventAccepter> waitingEventAccepters = this.waitingEventAccepters;
- for (int i = 0; i < waitingEventAccepters.size(); i++) {
- EventAccepter eventAccepter = waitingEventAccepters.get(i);
- if (eventAccepter.match(signalInstance)) {
- matchingEventAccepterIndexes.add(i);
- }
- }
- /* 3. Choose one matching event accepter non-deterministically */
- if (matchingEventAccepterIndexes.size() > 0) {
- int j = ((ChoiceStrategy) this.object.locus.factory.getStrategy("choice")).choose(matchingEventAccepterIndexes.size());
- EventAccepter selectedEventAccepter = this.waitingEventAccepters.get(matchingEventAccepterIndexes.get(j - 1));
- // this.waitingEventAccepters.remove(j - 1);
- this.waitingEventAccepters.remove(selectedEventAccepter);
- if (this.hasBeenWaiting) {
- this.hasBeenWaiting = false;
- if (selectedEventAccepter instanceof AcceptEventActionEventAccepter) {
- ((AsyncControlDelegate) FUMLExecutionEngine.eInstance.getControlDelegate()).notifyWaitingStateExit(this, (AcceptEventActionEventAccepter) selectedEventAccepter);
- }
- }
- selectedEventAccepter.accept(signalInstance);
- } else {
- if (this.out == null) {
- this.out = StandardOutputChannelImpl.getConsole().newOutputStream();
- }
-
- String expectedSignals = "";
- for (EventAccepter eventAccepter : this.waitingEventAccepters) {
- if (eventAccepter instanceof AcceptEventActionEventAccepter) {
- AcceptEventActionEventAccepter acceptEventAccepter = (AcceptEventActionEventAccepter) eventAccepter;
- AcceptEventAction acceptEventAction = (AcceptEventAction) acceptEventAccepter.actionActivation.node;
- for (Trigger trigger : acceptEventAction.getTriggers()) {
- if (trigger.getEvent() instanceof SignalEvent) {
- SignalEvent signalEvent = (SignalEvent) trigger.getEvent();
- Signal signal = signalEvent.getSignal();
- if (!expectedSignals.isEmpty()) {
- expectedSignals += ", ";
- }
- expectedSignals += signal.getName();
- }
- }
- }
- }
-
- final SignalInstance finalSignalInstance = signalInstance;
- final String finalExpectedSignals = expectedSignals;
- Display.getDefault().syncExec(new Runnable() {
-
- public void run() {
- try {
- out.setColor(new Color(null, new RGB(200, 120, 10)));
- out.write("[ WARNING : Lost signal " + finalSignalInstance.getTypes().get(0).getName() + " (classifier behavior of " + classifier.getName() + " was waiting for " + finalExpectedSignals + ") ]\n");
- out.flush();
- } catch (IOException e) {
- Activator.log.error(e);
- }
- }
- });
- }
-
-
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/IAsyncEventPool.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/IAsyncEventPool.java
deleted file mode 100644
index 0f4a97a524e..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/CommonBehaviors/Communications/IAsyncEventPool.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-
-// TODO: Auto-generated Javadoc
-/**
- * Interface that need to be implemented by the AsyncEventPool.
- *
- * @author CEA LIST (t605650)
- */
-public interface IAsyncEventPool {
-
- /**
- * Send.
- *
- * @param signalInstance
- * the signal instance
- * @return true, if successful
- */
- public boolean send(SignalInstance signalInstance);
-
- /**
- * Gets the next event.
- *
- * @return the next event
- */
- public SignalInstance getNextEvent();
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/Loci/LociL1/AsyncLocus.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/Loci/LociL1/AsyncLocus.java
deleted file mode 100644
index b3113476d09..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/Semantics/Loci/LociL1/AsyncLocus.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.Semantics.Loci.LociL1;
-
-import org.eclipse.papyrus.moka.async.fuml.Semantics.Classes.Kernel.AsyncObject_;
-import org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3.CS_Locus;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.ExtensionalValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.Class;
-
-// TODO: Auto-generated Javadoc
-/**
- * Extends the original Locus class.
- *
- * @author CEA LIST (jt605650)
- */
-public class AsyncLocus extends CS_Locus {
-
- /**
- * Instantiate method now create AsyncObject_ instead of Object_.
- *
- * @param type
- * the type
- * @return the object_
- */
- @Override
- public Object_ instantiate(Class type) {
- // Instantiate the given class at this locus.
- Object_ object = null;
- if (type instanceof Behavior) {
- object = this.factory.createExecution((Behavior) type, null);
- } else {
- object = new AsyncObject_();
- object.types.add(type);
- object.createFeatureValues();
- this.add(object);
- }
- return object;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Locus#remove(org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.ExtensionalValue)
- */
- @Override
- public void remove(ExtensionalValue value) {
- synchronized (this) {
- super.remove(value);
- }
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/AsyncControlDelegate.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/AsyncControlDelegate.java
deleted file mode 100644
index 72374b88cb1..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/AsyncControlDelegate.java
+++ /dev/null
@@ -1,459 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.debug;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.debug.core.DebugEvent;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.core.model.IDebugElement;
-import org.eclipse.debug.core.model.IDebugTarget;
-import org.eclipse.debug.core.model.IStackFrame;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.infra.core.Activator;
-import org.eclipse.papyrus.moka.MokaConstants;
-import org.eclipse.papyrus.moka.async.fuml.Semantics.CommonBehaviors.Communications.AsyncObjectActivation;
-import org.eclipse.papyrus.moka.communication.event.Start_Event;
-import org.eclipse.papyrus.moka.communication.event.isuspendresume.Resume_Event;
-import org.eclipse.papyrus.moka.communication.event.isuspendresume.Suspend_Event;
-import org.eclipse.papyrus.moka.communication.event.iterminate.Terminate_Event;
-import org.eclipse.papyrus.moka.communication.request.isuspendresume.Resume_Request;
-import org.eclipse.papyrus.moka.communication.request.isuspendresume.Suspend_Request;
-import org.eclipse.papyrus.moka.communication.request.iterminate.Terminate_Request;
-import org.eclipse.papyrus.moka.debug.MokaStackFrame;
-import org.eclipse.papyrus.moka.debug.MokaThread;
-import org.eclipse.papyrus.moka.engine.AbstractExecutionEngine;
-import org.eclipse.papyrus.moka.fuml.FUMLExecutionEngine;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.CompleteActions.AcceptEventActionEventAccepter;
-import org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityEdgeInstance;
-import org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityExecution;
-import org.eclipse.papyrus.moka.fuml.Semantics.Activities.IntermediateActivities.ActivityNodeActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.ExtensionalValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.EventAccepter;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.ObjectActivation;
-import org.eclipse.papyrus.moka.fuml.debug.ControlDelegate;
-import org.eclipse.papyrus.moka.fuml.debug.FUMLThread;
-import org.eclipse.papyrus.moka.fuml.presentation.FUMLPresentationUtils;
-import org.eclipse.papyrus.moka.ui.presentation.AnimationUtils;
-import org.eclipse.uml2.uml.AcceptEventAction;
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class AsyncControlDelegate.
- */
-public class AsyncControlDelegate extends ControlDelegate {
-
- /** The main thread. */
- protected FUMLThread mainThread;
-
- /** The object activations. */
- protected List<ObjectActivation> objectActivations = new ArrayList<ObjectActivation>();
-
- /** The object activations to fuml thread. */
- protected Map<ObjectActivation, FUMLThread> objectActivationsToFUMLThread = new HashMap<ObjectActivation, FUMLThread>();
-
- /** The terminate request by client. */
- protected boolean terminateRequestByClient = false;
-
- /** The locks. */
- protected Map<FUMLThread, Object> locks = new HashMap<FUMLThread, Object>();
-
- /**
- * Instantiates a new async control delegate.
- *
- * @param engine
- * the engine
- */
- public AsyncControlDelegate(AbstractExecutionEngine engine) {
- super(engine);
- this.threads = new ArrayList<FUMLThread>();
- this.objectActivationToWaitingAcceptEventActions = new HashMap<AsyncObjectActivation, List<AcceptEventAction>>();
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.fuml.debug.ControlDelegate#getThreads()
- */
- @Override
- public synchronized MokaThread[] getThreads() {
- return threads.toArray(new MokaThread[threads.size()]);
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.fuml.debug.ControlDelegate#waitForTermination()
- */
- @Override
- public void waitForTermination() {
- while (!this.engine.isTerminated()) {
- synchronized (this) {
- try {
- wait();
- } catch (InterruptedException e) {
- Activator.log.error(e);
- }
- }
- }
- }
-
- /**
- * Resume fuml thread.
- *
- * @param thread
- * the thread
- * @param reasonForResuming
- * the reason for resuming
- */
- protected void resumeFUMLThread(FUMLThread thread, int reasonForResuming) {
- thread.setSuspended(false);
- thread.stepEnded();
- thread.setReasonForResuming(reasonForResuming);
- thread.setReasonForSuspending(-1);
- if (reasonForResuming == DebugEvent.STEP_OVER) {
- thread.setIsStepping(true);
- }
- thread.setStackFrames(new IStackFrame[] {});
- Object lock = this.locks.get(thread);
- synchronized (lock) {
- this.locks.remove(thread);
- lock.notify();
- }
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.fuml.debug.ControlDelegate#resume(org.eclipse.papyrus.moka.communication.request.isuspendresume.Resume_Request)
- */
- @Override
- public synchronized void resume(Resume_Request request) {
- this.reasonForResuming = request.getResumeDetail();
- if (reasonForResuming != DebugEvent.CLIENT_REQUEST) {
- reasonForResuming = DebugEvent.STEP_OVER;
- }
- IDebugElement elementToResume = request.getDebugElement();
- if (elementToResume instanceof IDebugTarget) {
- // resume all threads
- for (FUMLThread thread : this.threads) {
- if (thread.isSuspended() && !thread.isWaiting()) {
- this.resumeFUMLThread(thread, reasonForResuming);
- }
- }
- } else {
- // This is a thread
- FUMLThread thread = (FUMLThread) request.getDebugElement();
- this.resumeFUMLThread(thread, reasonForResuming);
- }
- }
-
- /**
- * Register object activation.
- *
- * @param activation
- * the activation
- * @param activationName
- * the activation name
- */
- public synchronized void registerObjectActivation(ObjectActivation activation, String activationName) {
- FUMLThread fUMLThread = new FUMLThread(FUMLExecutionEngine.eInstance.getDebugTarget());
- this.threads.add(0, fUMLThread);
- if (activation == null) { // this is the main thread
- fUMLThread.setName("Main Thread");
- fUMLThread.setStackFrames(new IStackFrame[] {});
- mainThread = fUMLThread;
- return;
- }
- objectActivations.add(activation);
- this.objectActivationsToFUMLThread.put(activation, fUMLThread);
- // This is a thread for an object activation, created in the course of execution
- Start_Event event = new Start_Event(fUMLThread, getThreads());
- fUMLThread.setName(activationName + " (" + fUMLThread.hashCode() + ")");
- fUMLThread.setStackFrames(new IStackFrame[] {});
- FUMLExecutionEngine.eInstance.sendEvent(event);
- }
-
- /**
- * Register object activation.
- *
- * @param activation
- * the activation
- */
- public void registerObjectActivation(ObjectActivation activation) {
- this.registerObjectActivation(activation, "ObjectActivation");
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.fuml.debug.ControlDelegate#terminate(org.eclipse.papyrus.moka.communication.request.iterminate.Terminate_Request)
- */
- @Override
- public void terminate(Terminate_Request request) {
- engine.setIsTerminated(true);
- this.terminateRequestByClient = true;
- for (List<AcceptEventAction> waitingOn : this.objectActivationToWaitingAcceptEventActions.values()) {
- for (EObject o : waitingOn) {
- AnimationUtils.getInstance().removeAnimationMarker(o);
- }
- }
- /**********/
- // 439639: [Moka] oepm.async.fuml.debug.AsyncControlDelegate.terminate shall send a TerminateSignalInstance to all objects in the execution locus
- // https://bugs.eclipse.org/bugs/show_bug.cgi?id=439639
- for (ExtensionalValue v : FUMLExecutionEngine.eInstance.getLocus().extensionalValues) {
- if (v instanceof Object_) {
- ((Object_) v).send(new TerminateSignalInstance());
- }
- }
- // for(ObjectActivation activation : objectActivations) {
- // if(activation != null /* && ((AsyncObjectActivation)activation).getCurrentState() == ObjectActivationState.WAITING */) {
- // //activation.send(new TerminateSignalInstance());
- // activation.object.send(new TerminateSignalInstance()) ;
- // }
- // }
- /***********/
- for (Object lock : this.locks.values()) {
- synchronized (lock) {
- lock.notify();
- }
- }
- synchronized (this) {
- notifyAll();
- }
- AnimationUtils.getInstance().removeAllAnimationMarker();
- }
-
- /**
- * Notify thread termination.
- *
- * @param objectActivation
- * the object activation
- */
- public synchronized void notifyThreadTermination(ObjectActivation objectActivation) {
- if (this.terminateRequestByClient)
- {
- return; // do nothing
- }
- if (!FUMLExecutionEngine.eInstance.isTerminated()) {
- FUMLThread fUMLThread = this.objectActivationsToFUMLThread.get(objectActivation);
- if (fUMLThread != null) {
- fUMLThread.setIsTerminated(true);
- this.threads.remove(fUMLThread);
- }
- Terminate_Event terminateEvent = null;
- if (this.threads.isEmpty()) {
- this.engine.setIsTerminated(true);
- synchronized (this) {
- notifyAll();
- }
- terminateEvent = new Terminate_Event(this.engine.getDebugTarget(), this.getThreads());
- } else if (fUMLThread != null) {
- terminateEvent = new Terminate_Event(fUMLThread, this.getThreads());
- }
- // else {
- // terminateEvent = new Terminate_Event(this.engine.getDebugTarget(), this.getThreads()) ;
- // }
- if (terminateEvent != null) {
- FUMLExecutionEngine.eInstance.sendEvent(terminateEvent);
- }
- }
-
- }
-
- /**
- * Notify main thread logically ended.
- */
- public synchronized void notifyMainThreadLogicallyEnded() {
- if (this.terminateRequestByClient)
- {
- return; // do nothing
- }
- this.mainThread.setIsTerminated(true);
- Terminate_Event terminateEvent;
- this.threads.remove(mainThread);
- if (this.threads.isEmpty()) {
- this.engine.setIsTerminated(true);
- synchronized (this) { // FIXME
- notifyAll();
- }
- terminateEvent = new Terminate_Event(this.engine.getDebugTarget(), this.getThreads());
- } else {
- terminateEvent = new Terminate_Event(mainThread, this.getThreads());
- }
- FUMLExecutionEngine.eInstance.sendEvent(terminateEvent);
- }
-
-
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.fuml.debug.ControlDelegate#suspend(org.eclipse.papyrus.moka.communication.request.isuspendresume.Suspend_Request)
- */
- @Override
- public synchronized void suspend(Suspend_Request request) {
- if (request.getDebugElement() instanceof IDebugTarget) {
- for (FUMLThread thread : this.threads) {
- thread.setReasonForSuspending(request.getSuspendDetail());
- thread.setIsStepping(false);
- }
- } else { // This is a thread
- FUMLThread thread = (FUMLThread) request.getDebugElement();
- thread.setReasonForSuspending(request.getSuspendDetail());
- thread.setIsStepping(false);
- }
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.papyrus.moka.fuml.debug.ControlDelegate#control(java.lang.Object)
- */
- @Override
- public boolean control(Object object) {
- if (this.engine.isTerminated()) {
- return false;
- }
-
- // Retrieves the semantic element
- EObject semanticElement = null;
- Object_ executionContext = null;
- if (object instanceof ActivityNodeActivation) {
- semanticElement = ((ActivityNodeActivation) object).node;
- if (((ActivityNodeActivation) object).group != null) {
- executionContext = ((ActivityNodeActivation) object).getExecutionContext();
- }
- } else if (object instanceof ActivityEdgeInstance) {
- semanticElement = ((ActivityEdgeInstance) object).edge;
- if (((ActivityEdgeInstance) object).group != null) {
- executionContext = ((ActivityEdgeInstance) object).group.getActivityExecution().context;
- }
- } else {
- Activator.log.error(new Exception("Unexpected element in ControlDelegate::control"));
- this.engine.setIsTerminated(true);
- return false;
- }
-
- if (executionContext != null) {
- try {
- FUMLThread thread = null;
- if (executionContext instanceof ActivityExecution) {
- // Execution takes place in the context of the Main thread
- thread = this.mainThread;
- } else {
- ObjectActivation objectActivation = executionContext.objectActivation;
- thread = this.objectActivationsToFUMLThread.get(objectActivation);
- if (thread == null) { // This means that the context is a passive object executing in the context of the main thread ?? TODO check this...
- thread = this.mainThread;
- }
- }
- if (semanticElement != null && MokaConstants.MOKA_AUTOMATIC_ANIMATION && this.mode.equals(ILaunchManager.DEBUG_MODE) && !thread.isStepping()) {
- this.animate(semanticElement);
- }
- int reasonForSuspending = -1;
- if (thread.getReasonForSuspending() != -1) {
- reasonForSuspending = thread.getReasonForSuspending();
- } else if (thread.getReasonForResuming() != DebugEvent.CLIENT_REQUEST) {
- reasonForSuspending = DebugEvent.STEP_END;
- } else if (this.elementsWithBreakpoints.contains(semanticElement)) { // Tries to check if a breakpoint applies
- reasonForSuspending = DebugEvent.BREAKPOINT;
- }
- if (reasonForSuspending != -1) {
- thread.setSuspended(true);
- thread.setReasonForSuspending(reasonForSuspending);
- MokaStackFrame stackFrame = FUMLPresentationUtils.getMokaStackFrame(object);
- stackFrame.setThread(thread);
- thread.setStackFrames(new IStackFrame[] { stackFrame });
- Suspend_Event suspendEvent = new Suspend_Event(thread, reasonForSuspending, this.getThreads());
- engine.sendEvent(suspendEvent);
- String lock = new String();
- this.locks.put(thread, lock);
- synchronized (lock) {
- lock.wait();
- }
- }
- } catch (InterruptedException e) {
- Activator.log.error(e);
- }
- }
-
- return !this.engine.isTerminated();
- }
-
- /** The object activation to waiting accept event actions. */
- protected Map<AsyncObjectActivation, List<AcceptEventAction>> objectActivationToWaitingAcceptEventActions;
-
- /**
- * Notify waiting state entered.
- *
- * @param asyncObjectActivation
- * the async object activation
- */
- public void notifyWaitingStateEntered(AsyncObjectActivation asyncObjectActivation) {
- FUMLThread thread = this.objectActivationsToFUMLThread.get(asyncObjectActivation);
- if (thread != null) {
- thread.setIsWaiting(true);
- thread.setSuspended(true);
- thread.setStackFrames(new IStackFrame[] {});
- if (MokaConstants.MOKA_AUTOMATIC_ANIMATION && this.mode.equals(ILaunchManager.DEBUG_MODE)) {
- Suspend_Event suspendEvent = new Suspend_Event(thread, DebugEvent.CHANGE, this.getThreads());
- engine.sendEvent(suspendEvent);
- List<AcceptEventAction> waitingAcceptEventActions = new ArrayList<AcceptEventAction>();
- for (EventAccepter eventAccepter : asyncObjectActivation.waitingEventAccepters) {
- if (eventAccepter instanceof AcceptEventActionEventAccepter) {
- AcceptEventAction action = (AcceptEventAction) ((AcceptEventActionEventAccepter) eventAccepter).actionActivation.node;
- waitingAcceptEventActions.add(action);
- AnimationUtils.getInstance().addAnimationMarker(action);
- }
- }
- objectActivationToWaitingAcceptEventActions.put(asyncObjectActivation, waitingAcceptEventActions);
- }
- }
- }
-
- /**
- * Notify waiting state exit.
- *
- * @param asyncObjectActivation
- * the async object activation
- * @param accepter
- * the accepter
- */
- public void notifyWaitingStateExit(AsyncObjectActivation asyncObjectActivation, AcceptEventActionEventAccepter accepter) {
- FUMLThread thread = this.objectActivationsToFUMLThread.get(asyncObjectActivation);
- if (thread != null) {
- thread.setIsWaiting(false);
- thread.setSuspended(false);
- thread.setStackFrames(new IStackFrame[] {});
- if (MokaConstants.MOKA_AUTOMATIC_ANIMATION && this.mode.equals(ILaunchManager.DEBUG_MODE)) {
- Resume_Event resumeEvent = new Resume_Event(thread, DebugEvent.CHANGE, this.getThreads());
- engine.sendEvent(resumeEvent);
- List<AcceptEventAction> waitingAcceptEventActions = objectActivationToWaitingAcceptEventActions.get(asyncObjectActivation);
- AcceptEventAction action = (AcceptEventAction) accepter.actionActivation.node;
- if (waitingAcceptEventActions != null) {
- waitingAcceptEventActions.remove(action);
- } else {
- waitingAcceptEventActions = new ArrayList<AcceptEventAction>();
- }
- objectActivationToWaitingAcceptEventActions.put(asyncObjectActivation, waitingAcceptEventActions);
- if (action != null) {
- AnimationUtils.getInstance().removeAnimationMarker(action);
- }
- }
- }
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/AsyncDebug.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/AsyncDebug.java
deleted file mode 100644
index b5165c63988..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/AsyncDebug.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.debug;
-
-import org.eclipse.papyrus.moka.fuml.debug.Debug;
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class AsyncDebug.
- */
-public class AsyncDebug extends Debug {
-
- /**
- * Println.
- *
- * @param message
- * the message
- */
- public static void println(String message) {
- // int remainingSpaces = 30-Thread.currentThread().getName().length();
- // if(remainingSpaces < 0){
- // System.out.println(
- // String.format("%s", "["+Thread.currentThread().getName()+"]")
- // +message);
- // }else{
- // int sideSpaceCount = remainingSpaces/2;
- // System.out.println(
- // String.format("[%"+sideSpaceCount+"s%s%"+sideSpaceCount+"s]", " ",
- // Thread.currentThread().getName()
- // ," ")+message);
- // }
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/TerminateSignalInstance.java b/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/TerminateSignalInstance.java
deleted file mode 100644
index 094b9ce384e..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.async.fuml/src/org/eclipse/papyrus/moka/async/fuml/debug/TerminateSignalInstance.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.async.fuml.debug;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-import org.eclipse.uml2.uml.Signal;
-import org.eclipse.uml2.uml.UMLFactory;
-
-// TODO: Auto-generated Javadoc
-/**
- * The Class TerminateSignalInstance.
- */
-public class TerminateSignalInstance extends SignalInstance {
-
- /** The terminate signal. */
- protected static Signal terminateSignal;
-
- /**
- * Instantiates a new terminate signal instance.
- */
- public TerminateSignalInstance() {
- if (terminateSignal == null) {
- terminateSignal = UMLFactory.eINSTANCE.createSignal();
- terminateSignal.setName("TerminateSignal");
- }
- this.type = terminateSignal;
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.classpath b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.classpath
deleted file mode 100644
index ad32c83a788..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.classpath
+++ /dev/null
@@ -1,7 +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.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.project b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.project
deleted file mode 100644
index 71dd9012134..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.moka.composites.utils</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.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.settings/org.eclipse.jdt.core.prefs b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 94d61f00da6..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.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.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=0
-org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
-org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
-org.eclipse.jdt.core.formatter.blank_lines_before_method=1
-org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
-org.eclipse.jdt.core.formatter.blank_lines_before_package=0
-org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
-org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
-org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
-org.eclipse.jdt.core.formatter.comment.format_block_comments=true
-org.eclipse.jdt.core.formatter.comment.format_header=false
-org.eclipse.jdt.core.formatter.comment.format_html=true
-org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
-org.eclipse.jdt.core.formatter.comment.format_line_comments=true
-org.eclipse.jdt.core.formatter.comment.format_source_code=true
-org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
-org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
-org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
-org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
-org.eclipse.jdt.core.formatter.comment.line_length=260
-org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=4
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
-org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
-org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.join_lines_in_comments=false
-org.eclipse.jdt.core.formatter.join_wrapped_lines=false
-org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.lineSplit=260
-org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
-org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
-org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
-org.eclipse.jdt.core.formatter.tabulation.char=tab
-org.eclipse.jdt.core.formatter.tabulation.size=4
-org.eclipse.jdt.core.formatter.use_on_off_tags=false
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
-org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
-org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.settings/org.eclipse.jdt.ui.prefs b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 954281dbc31..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/.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/moka/org.eclipse.papyrus.moka.composites.utils/META-INF/MANIFEST.MF b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/META-INF/MANIFEST.MF
deleted file mode 100644
index 97e9779e32f..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,25 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.emf;bundle-version="2.6.0",
- org.eclipse.uml2.uml;bundle-version="4.0.1",
- org.junit,
- org.eclipse.emf.transaction;bundle-version="1.4.0",
- org.eclipse.papyrus.uml.tools.utils;bundle-version="1.2.0",
- org.eclipse.papyrus.uml.extensionpoints;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.emf;bundle-version="1.2.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0",
- org.eclipse.papyrus.moka.fuml;bundle-version="1.2.0",
- org.eclipse.ui;bundle-version="3.106.0",
- org.eclipse.gmf.runtime.diagram.ui,
- org.eclipse.papyrus.uml.icons;bundle-version="1.2.0",
- org.eclipse.papyrus.editor;bundle-version="1.2.0",
- org.eclipse.papyrus.moka.composites;bundle-version="1.2.0"
-Export-Package: org.eclipse.papyrus.moka.composites.utils.handlers
-Bundle-Vendor: Eclipse Modeling Project
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.2.0.qualifier
-Bundle-Name: Moka Composite Utils (Incubation)
-Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.moka.composites.utils.Activator
-Bundle-SymbolicName: org.eclipse.papyrus.moka.composites.utils;singleton:=true
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/about.html b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/about.html
deleted file mode 100644
index 209103075a7..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/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/moka/org.eclipse.papyrus.moka.composites.utils/build.properties b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/build.properties
deleted file mode 100644
index b1bc53cf94a..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/build.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- build.properties,\
- icons/,\
- about.html
-src.includes = about.html
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/Activity.gif b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/Activity.gif
deleted file mode 100644
index 7d019de7662..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/Activity.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/Operation.gif b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/Operation.gif
deleted file mode 100644
index dfb60d981dc..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/Operation.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/PapyrusLogo16x16.png b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/PapyrusLogo16x16.png
deleted file mode 100644
index 3447e03cbe2..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/PapyrusLogo16x16.png
+++ /dev/null
Binary files differ
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/moka_icon.png b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/moka_icon.png
deleted file mode 100644
index 67391356053..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/icons/moka_icon.png
+++ /dev/null
Binary files differ
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/plugin.xml b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/plugin.xml
deleted file mode 100644
index 71957fcf99a..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/plugin.xml
+++ /dev/null
@@ -1,147 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.ui.menus">
- <menuContribution
- allPopups="false"
- locationURI="popup:org.eclipse.papyrus.views.modelexplorer.popup.moka">
- <menu
- icon="platform:/plugin/org.eclipse.papyrus.editor/icons/papyrus/Papyrus_16x16.gif"
- id="org.eclipse.papyrus.views.modelexplorer.popup.moka.utils"
- label="Modeling Utils">
- <visibleWhen
- checkEnabled="false">
- <with
- variable="selection">
- <iterate
- ifEmpty="false"
- operator="and">
- <adapt
- type="org.eclipse.emf.ecore.EObject">
- <instanceof
- value="org.eclipse.uml2.uml.Element">
- </instanceof>
- </adapt>
- </iterate>
- </with>
- </visibleWhen>
- </menu>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="popup:org.eclipse.papyrus.views.modelexplorer.popup.moka.utils">
- <command
- commandId="org.eclipse.papyrus.moka.composites.utils.handlers.GenerateFactoryHandlerCommand"
- icon="platform:/plugin/org.eclipse.papyrus.uml.icons/resource/gif/Activity.gif"
- id="org.eclipse.papyrus.moka.composites.utils.handlers.GenerateFactoryHandlerMenu"
- label="Generate Factory"
- style="push"
- tooltip="Generate Factory">
- <visibleWhen
- checkEnabled="false">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.moka.composites.utils.generatorconstructorusingfieldscommand"
- icon="platform:/plugin/org.eclipse.papyrus.uml.icons/resource/gif/Operation.gif"
- label="Generate Constructor Using Fields"
- style="push"
- tooltip="Generate Constructor Using Fields">
- <visibleWhen
- checkEnabled="false">
- </visibleWhen>
- </command>
- </menuContribution>
- <menuContribution
- allPopups="false"
- locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu.moka">
- <menu
- icon="platform:/plugin/org.eclipse.papyrus.editor/icons/papyrus/Papyrus_16x16.gif"
- id="org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu.moka.utils"
- label="Modeling Utils">
- </menu>
- </menuContribution>
- <menuContribution
- allPopups="true"
- locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu.moka.utils">
- <command
- commandId="org.eclipse.papyrus.moka.composites.utils.handlers.GenerateFactoryHandlerCommand"
- icon="platform:/plugin/org.eclipse.papyrus.uml.icons/resource/gif/Activity.gif"
- id="org.eclipse.papyrus.moka.composites.utils.handlers.GenerateFactoryHandlerMenu"
- label="Generate Factory"
- style="push">
- <visibleWhen
- checkEnabled="false">
- </visibleWhen>
- </command>
- <command
- commandId="org.eclipse.papyrus.moka.composites.utils.generatorconstructorusingfieldscommand"
- icon="platform:/plugin/org.eclipse.papyrus.uml.icons/resource/gif/Operation.gif"
- label="Generate Constructor Using Fields"
- style="push"
- tooltip="Generate Constructor Using Fields">
- <visibleWhen
- checkEnabled="false">
- </visibleWhen>
- </command>
- </menuContribution>
- </extension>
- <extension
- point="org.eclipse.ui.commands">
- <command
- categoryId="org.eclipse.papyrus.editor.category"
- description="Generate Factory"
- id="org.eclipse.papyrus.moka.composites.utils.handlers.GenerateFactoryHandlerCommand"
- name="Generate Factory">
- </command>
- <command
- categoryId="org.eclipse.papyrus.editor.category"
- description="Generate Constructor Using Fields"
- id="org.eclipse.papyrus.moka.composites.utils.generatorconstructorusingfieldscommand"
- name="Generate Constructor Using Fields">
- </command>
- </extension>
- <extension
- point="org.eclipse.ui.handlers">
- <handler
- class="org.eclipse.papyrus.moka.composites.utils.handlers.GenerateFactoryHandler"
- commandId="org.eclipse.papyrus.moka.composites.utils.handlers.GenerateFactoryHandlerCommand">
- <enabledWhen>
- <with
- variable="selection">
- <iterate
- ifEmpty="false"
- operator="and">
- <adapt
- type="org.eclipse.emf.ecore.EObject">
- <instanceof
- value="org.eclipse.uml2.uml.Class">
- </instanceof>
- </adapt>
- </iterate>
- </with>
- </enabledWhen>
- </handler>
- <handler
- class="org.eclipse.papyrus.moka.composites.utils.handlers.GenerateConstructorUsingFieldsHandler"
- commandId="org.eclipse.papyrus.moka.composites.utils.generatorconstructorusingfieldscommand">
- <enabledWhen>
- <with
- variable="selection">
- <iterate
- ifEmpty="false"
- operator="and">
- <adapt
- type="org.eclipse.emf.ecore.EObject">
- <instanceof
- value="org.eclipse.uml2.uml.Class">
- </instanceof>
- </adapt>
- </iterate>
- </with>
- </enabledWhen>
- </handler>
- </extension>
-
-</plugin>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/pom.xml b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/pom.xml
deleted file mode 100644
index ae77b314f80..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/pom.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>org.eclipse.papyrus.extra.releng</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>1.2.0-SNAPSHOT</version>
- <relativePath>../../../releng/extra</relativePath>
- </parent>
- <artifactId>org.eclipse.papyrus.moka.composites.utils</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>1.2.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
-</project> \ No newline at end of file
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/Activator.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/Activator.java
deleted file mode 100644
index 660f2e68655..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/Activator.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.utils;
-
-import org.eclipse.ui.IStartup;
-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 implements IStartup {
-
- // The plug-in ID
- public static final String PLUGIN_ID = "org.eclipse.papyrus.moka.composites.utils"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * 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;
- }
-
- /*
- * (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;
- }
-
- @Override
- public void earlyStartup() {
- // TODO Auto-generated method stub
-
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/AbstractCompositeUtilsHandler.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/AbstractCompositeUtilsHandler.java
deleted file mode 100644
index ec757075f99..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/AbstractCompositeUtilsHandler.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.utils.handlers;
-
-import org.eclipse.core.commands.AbstractHandler;
-import org.eclipse.core.commands.ExecutionEvent;
-import org.eclipse.core.commands.ExecutionException;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
-import org.eclipse.ui.handlers.HandlerUtil;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.NamedElement;
-
-public abstract class AbstractCompositeUtilsHandler extends AbstractHandler {
-
-
- /**
- * Moka Modeling Utils menu are enable only if selected object refer as a Class
- *
- * (non-Javadoc)
- *
- * @see org.eclipse.core.commands.AbstractHandler#isEnabled()
- */
- @Override
- public boolean isEnabled() {
- Element selectedElement = Utils.getSelection();
- if (selectedElement != null) {
- return selectedElement instanceof Class && !(selectedElement instanceof Behavior);
- }
- return false;
- }
-
- /**
- * Return the class associated with the selection object or null whether
- * no class could have been found
- *
- * @param selected
- * @return Class
- */
- protected Class getClassFromSelection(ISelection selected) {
- if (selected.isEmpty()) {
- return null;
- } else {
- // Every object retrieved from the model explorer is an IAdaptable
- IAdaptable adaptableObj = (IAdaptable) ((IStructuredSelection) selected).getFirstElement();
- // Get the model object behind the adaptable object
- EObject modelObj = (EObject) adaptableObj.getAdapter(org.eclipse.emf.ecore.EObject.class);
- NamedElement nElem = (NamedElement) modelObj;
- return nElem instanceof Class ? (Class) nElem : null;
- }
- }
-
- @Override
- public Object execute(ExecutionEvent event) throws ExecutionException {
- Class context = null;
- context = this.getClassFromSelection(HandlerUtil.getCurrentSelection(event));
- if (context != null) {
- this.start(context);
- }
- return null;
- }
-
- /**
- * Launch the ConstructorBehaviorCreationCompiler
- *
- * @param myClass
- * which is the class who need to create the constructor
- *
- */
- public void start(Class myClass) {
- TransactionalEditingDomain domain = (TransactionalEditingDomain) EMFHelper.resolveEditingDomain(myClass);
- RecordingCommand updateCommand = this.getUpdateCommand(myClass, domain);
- domain.getCommandStack().execute(updateCommand);
- }
-
- public abstract RecordingCommand getUpdateCommand(Class myClass, TransactionalEditingDomain domain);
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/GenerateConstructorUsingFieldsHandler.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/GenerateConstructorUsingFieldsHandler.java
deleted file mode 100644
index af4883b4783..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/GenerateConstructorUsingFieldsHandler.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.utils.handlers;
-
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.papyrus.moka.composites.utils.ui.GenerateConstructorUsingFieldsDialog;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.uml2.uml.Class;
-
-
-public class GenerateConstructorUsingFieldsHandler extends AbstractCompositeUtilsHandler {
-
- @Override
- public RecordingCommand getUpdateCommand(Class context, TransactionalEditingDomain domain) {
- return new GenerateConstructorUsingFieldsCommand(context, domain);
- }
-
- /**
- * A command that generates a Constructor for a Class, from a dialog box.
- *
- * @see GenerateConstructorUsingFieldsDialog
- *
- */
- protected class GenerateConstructorUsingFieldsCommand extends RecordingCommand {
-
- protected Class context;
-
- public GenerateConstructorUsingFieldsCommand(Class context, TransactionalEditingDomain domain) {
- super(domain);
- this.context = context;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor
- * , org.eclipse.core.runtime.IAdaptable)
- */
- @Override
- protected void doExecute() {
- GenerateConstructorUsingFieldsDialog dialog = new GenerateConstructorUsingFieldsDialog(Display.getCurrent().getActiveShell(), context);
- dialog.open();
- }
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/GenerateFactoryHandler.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/GenerateFactoryHandler.java
deleted file mode 100644
index a9a16e219cb..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/GenerateFactoryHandler.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.utils.handlers;
-
-import org.eclipse.emf.transaction.RecordingCommand;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.uml2.uml.Class;
-
-
-public class GenerateFactoryHandler extends AbstractCompositeUtilsHandler {
-
- @Override
- public RecordingCommand getUpdateCommand(Class context, TransactionalEditingDomain domain) {
- return new GenerateFactoryCommand(context, domain);
- }
-
- /**
- * Command that generate factory for a given class.
- *
- * @see Utils.getFactory
- */
- protected class GenerateFactoryCommand extends RecordingCommand {
-
- protected Class context;
-
- public GenerateFactoryCommand(Class context, TransactionalEditingDomain domain) {
- super(domain);
- this.context = context;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see
- * org.eclipse.gmf.runtime.emf.commands.core.command.AbstractTransactionalCommand#doExecuteWithResult(org.eclipse.core.runtime.IProgressMonitor
- * , org.eclipse.core.runtime.IAdaptable)
- */
- @Override
- protected void doExecute() {
- Utils.getFactory(context);
- }
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/Utils.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/Utils.java
deleted file mode 100644
index 0fce3355362..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/handlers/Utils.java
+++ /dev/null
@@ -1,289 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.utils.handlers;
-
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart;
-import org.eclipse.gmf.runtime.notation.View;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.papyrus.uml.extensionpoints.profile.IRegisteredProfile;
-import org.eclipse.papyrus.uml.extensionpoints.profile.RegisteredProfile;
-import org.eclipse.papyrus.uml.extensionpoints.utils.Util;
-import org.eclipse.papyrus.uml.tools.utils.PackageUtil;
-import org.eclipse.ui.ISelectionService;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.uml2.uml.Activity;
-import org.eclipse.uml2.uml.ActivityParameterNode;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.CallOperationAction;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.CreateObjectAction;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.ForkNode;
-import org.eclipse.uml2.uml.InputPin;
-import org.eclipse.uml2.uml.LiteralInteger;
-import org.eclipse.uml2.uml.ObjectFlow;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.OutputPin;
-import org.eclipse.uml2.uml.Parameter;
-import org.eclipse.uml2.uml.ParameterDirectionKind;
-import org.eclipse.uml2.uml.Profile;
-import org.eclipse.uml2.uml.StartObjectBehaviorAction;
-import org.eclipse.uml2.uml.Stereotype;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.UMLPackage;
-
-public class Utils {
-
- public static Profile standardProfile;
-
- public static String STANDARD_PROFILE_NAME = "Standard";
-
-
- /**
- * Generates (or retrieve) a factory Activity for the given context Class.
- * A factory Activity consists in a CreateObjectAction for the given context Class,
- * followed by a CallOperationAction for the default constructor of this class.
- *
- * @param context
- * The class for which a Factory is requested
- * @return A factory Activity for the given context Class
- */
- public static Activity getFactory(Class context) {
-
- // First try to retrieve the factory
- // Retrieval is based on name.
- Activity factory = null;
- String contextName = context.getName() == null ? "" : context.getName();
- for (Iterator<Behavior> i = context.getOwnedBehaviors().iterator(); i.hasNext() && factory == null;) {
- Behavior cddFactory = i.next();
- String cddName = cddFactory.getName() == null ? "" : cddFactory.getName();
- if (cddFactory instanceof Activity && cddName.equals(contextName + "_Factory")) {
- factory = (Activity) cddFactory;
- }
- }
-
- Parameter returnParam = null;
- // if the factory does not exist, then creates it, otherwise "cleans" it
- if (factory == null) {
- factory = (Activity) context.createOwnedBehavior(context.getName() + "_Factory", UMLPackage.eINSTANCE.getActivity());
- returnParam = factory.createOwnedParameter("result", context);
- returnParam.setDirection(ParameterDirectionKind.RETURN_LITERAL);
- } else {
- factory.getNodes().clear();
- factory.getEdges().clear();
- for (Iterator<Parameter> i = factory.getOwnedParameters().iterator(); i.hasNext() && returnParam == null;) {
- Parameter cddReturn = i.next();
- if (cddReturn.getDirection() == ParameterDirectionKind.RETURN_LITERAL) {
- returnParam = cddReturn;
- }
- }
- if (returnParam == null) {
- returnParam = factory.createOwnedParameter("result", context);
- returnParam.setDirection(ParameterDirectionKind.RETURN_LITERAL);
- }
- }
-
- ActivityParameterNode returnParamNode = (ActivityParameterNode) factory.createOwnedNode("resultParameterNode", UMLPackage.eINSTANCE.getActivityParameterNode());
- returnParamNode.setParameter(returnParam);
- returnParamNode.setType(context);
- LiteralInteger returnParamNodeUpperBound = UMLFactory.eINSTANCE.createLiteralInteger();
- returnParamNodeUpperBound.setValue(1);
- returnParamNode.setUpperBound(returnParamNodeUpperBound);
-
- // Retrieves the default constructor of context
- Operation defaultConstructor = getDefaultConstructor(context);
-
- CreateObjectAction createObject = (CreateObjectAction) factory.createOwnedNode("createObject", UMLPackage.eINSTANCE.getCreateObjectAction());
- OutputPin createObjectResultPin = createObject.createResult("result", context);
- LiteralInteger createObjectResultPinUpperBound = UMLFactory.eINSTANCE.createLiteralInteger();
- createObjectResultPinUpperBound.setValue(1);
- createObjectResultPin.setUpperBound(createObjectResultPinUpperBound);
- createObject.setClassifier(context);
-
- CallOperationAction callConstructor = (CallOperationAction) factory.createOwnedNode("callConstructor", UMLPackage.eINSTANCE.getCallOperationAction());
- callConstructor.setOperation(defaultConstructor);
- InputPin callConstructorTargetPin = callConstructor.createTarget("target", context);
- LiteralInteger callConstructorTargetPinUpperBound = UMLFactory.eINSTANCE.createLiteralInteger();
- callConstructorTargetPinUpperBound.setValue(1);
- callConstructorTargetPin.setUpperBound(callConstructorTargetPinUpperBound);
- OutputPin callConstructorResultPin = callConstructor.createResult("result", context);
- LiteralInteger callConstructorResultPinUpperBound = UMLFactory.eINSTANCE.createLiteralInteger();
- callConstructorResultPinUpperBound.setValue(1);
- callConstructorResultPin.setUpperBound(callConstructorResultPinUpperBound);
-
- ObjectFlow createObjectAction_callConstructor = (ObjectFlow) factory.createEdge("createObjectAction to callConstructor", UMLPackage.eINSTANCE.getObjectFlow());
- createObjectAction_callConstructor.setSource(createObjectResultPin);
- createObjectAction_callConstructor.setTarget(callConstructorTargetPin);
-
- ObjectFlow toReturnParamNode = (ObjectFlow) factory.createEdge("callConstructor to returnParamNode", UMLPackage.eINSTANCE.getObjectFlow());
- toReturnParamNode.setTarget(returnParamNode);
- if (!context.isActive()) {
- toReturnParamNode.setSource(callConstructorResultPin);
- } else {
- StartObjectBehaviorAction startBehavior = (StartObjectBehaviorAction) factory.createOwnedNode("start classifier behavior", UMLPackage.eINSTANCE.getStartObjectBehaviorAction());
- InputPin startBehaviorInputPin = startBehavior.createObject("object", context);
- LiteralInteger startBehaviorInputPinUpperBound = UMLFactory.eINSTANCE.createLiteralInteger();
- startBehaviorInputPinUpperBound.setValue(1);
- startBehaviorInputPin.setUpperBound(startBehaviorInputPinUpperBound);
- /*
- * // 439321: [Moka] The factory generator of oepm.composite.utils is invalid in the case of an Active class
- * // https://bugs.eclipse.org/bugs/show_bug.cgi?id=439321
- * //OutputPin startBehaviorResultPin = startBehavior.createResult("result", context);
- * //LiteralInteger startBehaviorResultPinUpperBound = UMLFactory.eINSTANCE.createLiteralInteger();
- * //startBehaviorResultPinUpperBound.setValue(1) ;
- * //startBehaviorResultPin.setUpperBound(startBehaviorResultPinUpperBound) ;
- * //toReturnParamNode.setSource(startBehaviorResultPin);
- */
- ForkNode fork = (ForkNode) factory.createOwnedNode("forkInstanciatedObject", UMLPackage.eINSTANCE.getForkNode());
- toReturnParamNode.setSource(fork);
- ObjectFlow forkToStartBehaviorInputPin = (ObjectFlow) factory.createEdge("fork to startbehavior input pin", UMLPackage.eINSTANCE.getObjectFlow());
- forkToStartBehaviorInputPin.setSource(fork);
- forkToStartBehaviorInputPin.setTarget(startBehaviorInputPin);
- //
- ObjectFlow callConstructor_startBehavior = (ObjectFlow) factory.createEdge("callConstructor to startBehavior", UMLPackage.eINSTANCE.getObjectFlow());
- callConstructor_startBehavior.setSource(callConstructorResultPin);
- callConstructor_startBehavior.setTarget(fork);
- }
-
- return factory;
- }
-
- /**
- * Returns the default constructor of the given UML Class context.
- * If the default constructor does not exist, it is the generated, with side effects
- * on the given context Class (i.e., the generated constructor is added to the list of
- * operations of the given context Class.
- * A default constructor for a given context Class is a UML Operation with:
- * - constructor.name == context.name
- * - a single parameter p such that: p.direction == Return and p.type = context
- *
- * @param context
- * A UML Class
- * @return the default constructor Operation for the given context Class
- */
- public static Operation getDefaultConstructor(Class context) {
- // Returns the default constructor if it exists.
- // Creates it otherwise.
- Operation createdOp = null;
-
- // Find operation with "Create" Stereotype
- for (int i = 0; i < context.getOwnedOperations().size() && createdOp == null; i++) {
- Operation cddOperation = context.getOwnedOperations().get(i);
- for (int j = 0; j < cddOperation.getAppliedStereotypes().size(); j++) {
- Stereotype createStereotype = cddOperation.getAppliedStereotypes().get(j);
- if (createStereotype.getName().equals("Create")) {
- if (cddOperation.getName().equals(context.getName())) {
- if (cddOperation.getOwnedParameters().size() == 1) {
- Parameter returnParameter = cddOperation.getOwnedParameters().get(0);
- if (returnParameter.getDirection().equals(ParameterDirectionKind.RETURN_LITERAL)) {
- if (returnParameter.getType().getName().equals(context.getName())) {
- createdOp = cddOperation;
- }
- }
- }
- }
-
- }
- }
- }
-
- // No operation with "Create" Stereotype found : => Creation of the operation.
- if (createdOp == null) {
- Stereotype appliedStereotype = null;
- if (!isStandardProfileApplied(context)) {
- PackageUtil.applyProfile(context.getModel(), standardProfile, true);
- }
-
- createdOp = UMLFactory.eINSTANCE.createOperation();
- context.getOwnedOperations().add(createdOp);
-
-
-
- for (int j = 0; j < createdOp.getApplicableStereotypes().size() && appliedStereotype == null; j++) {
- Stereotype cddStereotype = createdOp.getApplicableStereotypes().get(j);
- if (cddStereotype.getName().equals("Create")) {
- appliedStereotype = cddStereotype;
- }
- }
-
- Parameter result = UMLFactory.eINSTANCE.createParameter();
- result.setDirection(ParameterDirectionKind.RETURN_LITERAL);
- result.setType(context);
- result.setName("return");
-
- createdOp.setName(context.getName());
- createdOp.getOwnedParameters().add(result);
- createdOp.applyStereotype(appliedStereotype);
- }
-
- return createdOp;
- }
-
- /**
- * Returns true if the Standard profile is applied on the Model containing the given element
- *
- * @param element
- * A UML model element
- * @return true if the Standard profile is applied on the Model containing the given element
- */
- public static boolean isStandardProfileApplied(Element element) {
- if (standardProfile == null) {
- IRegisteredProfile registeredProfile = RegisteredProfile.getRegisteredProfile(STANDARD_PROFILE_NAME);
- URI modelUri = registeredProfile.getUri();
- Resource modelResource = Util.createTemporaryResourceSet().getResource(modelUri, true);
- if (modelResource.getContents().get(0) instanceof Profile) {
- standardProfile = (Profile) modelResource.getContents().get(0);
- }
- }
- List<Profile> appliedProfiles = element.getModel().getAppliedProfiles();
- return appliedProfiles.contains(standardProfile);
- }
-
- /**
- * Duplicated from SequoiaAbstractHandler. @author Patrick Tessier (CEA).
- * getSelected element in the diagram or in hte model explorer
- *
- * @return Element or null
- */
- public static Element getSelection() {
- Element selectedElement = null;
- ISelectionService selectionService = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getSelectionService();
- ISelection selection = selectionService.getSelection();
-
- if (selection instanceof IStructuredSelection) {
- Object selectedobject = ((IStructuredSelection) selection).getFirstElement();
- if (selectedobject instanceof GraphicalEditPart) {
- Object graphicalElement = ((GraphicalEditPart) selectedobject).getModel();
- if ((graphicalElement instanceof View) && ((View) graphicalElement).getElement() instanceof org.eclipse.uml2.uml.Element) {
- selectedElement = (org.eclipse.uml2.uml.Element) ((View) graphicalElement).getElement();
- }
- } else if (selectedobject instanceof IAdaptable) {
- EObject selectedEObject = (EObject) ((IAdaptable) selectedobject).getAdapter(EObject.class);
- if (selectedEObject instanceof org.eclipse.uml2.uml.Element) {
- selectedElement = (Element) selectedEObject;
- }
- }
-
- return selectedElement;
- }
- return null;
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/ui/GenerateConstructorUsingFieldsDialog.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/ui/GenerateConstructorUsingFieldsDialog.java
deleted file mode 100644
index 11269cf6036..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites.utils/src/org/eclipse/papyrus/moka/composites/utils/ui/GenerateConstructorUsingFieldsDialog.java
+++ /dev/null
@@ -1,432 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2014 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.utils.ui;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.jface.dialogs.TrayDialog;
-import org.eclipse.jface.viewers.BaseLabelProvider;
-import org.eclipse.jface.viewers.CheckStateChangedEvent;
-import org.eclipse.jface.viewers.CheckboxTableViewer;
-import org.eclipse.jface.viewers.ICheckStateListener;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.ITableLabelProvider;
-import org.eclipse.jface.viewers.Viewer;
-import org.eclipse.papyrus.moka.composites.utils.handlers.Utils;
-import org.eclipse.papyrus.moka.fuml.presentation.FUMLPresentationUtils;
-import org.eclipse.papyrus.uml.tools.utils.PackageUtil;
-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.graphics.Image;
-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.uml2.uml.Class;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.Parameter;
-import org.eclipse.uml2.uml.ParameterDirectionKind;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.Stereotype;
-import org.eclipse.uml2.uml.UMLFactory;
-
-public class GenerateConstructorUsingFieldsDialog extends TrayDialog {
-
- protected Class context;
-
- protected CheckboxTableViewer viewer;
-
- private Button btUP;
-
- private Button btDown;
-
- private List<Object> checkList = new ArrayList<Object>();
-
- public GenerateConstructorUsingFieldsDialog(Shell shell, Class context) {
- super(shell);
- setShellStyle(SWT.CLOSE | SWT.RESIZE);
- this.context = context;
- }
-
- @Override
- protected Control createDialogArea(Composite parent) {
- parent.getShell().setText("Generate Constructor Using Fields");
- parent.getShell().setMinimumSize(500, 500);
-
- /*
- * Create composite which contains all controls, composites, & others
- * stuff.
- */
- Composite mainLayout = new Composite(parent, SWT.FILL);
- mainLayout.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- mainLayout.setLayout(new GridLayout(1, true));
-
- // Create Label Using Fields
- Label lblSelectFields = new Label(mainLayout, SWT.NONE);
- lblSelectFields.setText("Select fields to initialize :");
-
- /* Create composite which contains compositeCheckBox & compositeButtons */
- Composite cpCenter = new Composite(mainLayout, SWT.RESIZE);
-
- // Set Layout and position
- GridData gdCenter = new GridData(SWT.FILL, SWT.FILL, true, true);
- gdCenter.widthHint = 514;
- gdCenter.heightHint = 274;
- cpCenter.setLayoutData(gdCenter);
- cpCenter.setLayout(new GridLayout(2, false));
-
- /* Create left "panel" which contains bindings with check box controls */
- Composite cpCheckBox = new Composite(cpCenter, SWT.RESIZE | SWT.BORDER);
- cpCheckBox.setLayout(new GridLayout(1, false));
-
- // Set Layout and position
- GridData gdCheckBox = new GridData(SWT.FILL, SWT.FILL, true, true);
- gdCheckBox.widthHint = 370;
- cpCheckBox.setLayoutData(gdCheckBox);
-
- /* Add all attributes on a CheckboxTableViewer */
- viewer = CheckboxTableViewer.newCheckList(cpCheckBox, SWT.FULL_SELECTION | SWT.FILL);
- viewer.setContentProvider(new StruturedContentProvider());
- viewer.setLabelProvider(new TableLabelProvider());
- viewer.setInput(this.context.getOwnedAttributes());
-
- // Listen which box is checked.
- viewer.addCheckStateListener(new ICheckStateListener() {
-
- @Override
- public void checkStateChanged(CheckStateChangedEvent event) {
- if (event.getChecked() == true) {
- viewer.setChecked(event.getElement(), true);
- checkList.add(event.getElement());
- } else {
- viewer.setChecked(event.getElement(), false);
- checkList.remove(event.getElement());
- }
- }
- });
-
- viewer.getTable().addSelectionListener(new SelectionListener() {
-
- @Override
- public void widgetSelected(SelectionEvent event) {
- List<?> elements = (List<?>) viewer.getInput();
- Property data = null;
-
- if (event.item.getData() instanceof Property) {
- data = (Property) event.item.getData();
-
- if (data == elements.get(0)) {
- btUP.setEnabled(false);
- btDown.setEnabled(true);
- } else if (data == elements.get(elements.size() - 1)) {
- btDown.setEnabled(false);
- btUP.setEnabled(true);
- } else {
- btUP.setEnabled(true);
- btDown.setEnabled(true);
- }
- }
- }
-
- @Override
- public void widgetDefaultSelected(SelectionEvent e) {
- }
- });
-
- viewer.setAllChecked(true);
- Object[] tmp = viewer.getCheckedElements();
- for (int i = 0; i < tmp.length; i++) {
- checkList.add(tmp[i]);
- }
-
- /* Create right "panel" which contains Select/Deselect Buttons */
- Composite cpButtons = new Composite(cpCenter, SWT.RESIZE);
-
- // Set Layout and position
- GridData gdButtons = new GridData(SWT.FILL, SWT.FILL, true, true);
- gdButtons.widthHint = 144;
- cpButtons.setLayoutData(gdButtons);
- cpButtons.setLayout(new GridLayout(1, false));
-
- /* Create Select-Deselect buttons */
- /* Push Button Select All */
- Button btSelect = new Button(cpButtons, SWT.PUSH);
- btSelect.setText("Select All");
-
- // Set size and position
- GridData gdSelect = new GridData(SWT.FILL, SWT.FILL, false, false);
- gdSelect.widthHint = 100;
- gdSelect.heightHint = 25;
- btSelect.setLayoutData(gdSelect);
-
- // Add Listener
- btSelect.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent event) {
- viewer.setAllChecked(true);
-
- if (checkList.size() != 0) {
- checkList.removeAll(checkList);
- Object[] tmp = viewer.getCheckedElements();
- for (int i = 0; i < tmp.length; i++) {
- checkList.add(tmp[i]);
- }
- }
- // System.out.println(event.toString());
- }
- });
-
- /* Push Button Deselect All */
- Button btDeSelect = new Button(cpButtons, SWT.PUSH);
- btDeSelect.setText("Deselect All");
-
- // Set size and position
- GridData gdDeSelect = new GridData(SWT.FILL, SWT.FILL, false, false);
- gdDeSelect.widthHint = 100;
- gdDeSelect.heightHint = 25;
- btDeSelect.setLayoutData(gdDeSelect);
-
- // Add Listener
- btDeSelect.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent event) {
- viewer.setAllChecked(false);
-
- if (checkList.size() != 0) {
- checkList.removeAll(checkList);
- }
-
- // System.out.println(event.toString());
- }
- });
-
- /* Create Up-Down buttons */
- /* Push Button Up */
- btUP = new Button(cpButtons, SWT.PUSH);
- btUP.setText("Up");
-
- // Set size and position
- GridData gdUP = new GridData(SWT.FILL, SWT.FILL, false, false);
- gdUP.widthHint = 100;
- gdUP.heightHint = 25;
- btUP.setLayoutData(gdUP);
- btUP.setEnabled(false);
-
- btUP.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent event) {
- viewer.setInput(getElementListUP());
- // System.out.println(event.toString());
- }
- });
-
- /* Push Button Down */
- btDown = new Button(cpButtons, SWT.PUSH);
- btDown.setText("Down");
-
- // Set size and position
- GridData gdDown = new GridData(SWT.FILL, SWT.FILL, false, false);
- gdDown.widthHint = 100;
- gdDown.heightHint = 25;
- btDown.setLayoutData(gdDown);
-
- btDown.addSelectionListener(new SelectionAdapter() {
-
- @Override
- public void widgetSelected(SelectionEvent event) {
- viewer.setInput(getElementListDown());
- // System.out.println(event.toString());
- }
- });
-
- return mainLayout;
- }
-
- protected boolean isCreate(Operation operation) {
- for (int j = 0; j < operation.getAppliedStereotypes().size(); j++) {
- Stereotype st_tmp = operation.getAppliedStereotypes().get(j);
- if (st_tmp.getName().equals("Create")) {
- return true;
- }
- }
- return false;
- }
-
- static class StruturedContentProvider implements IStructuredContentProvider {
-
- @SuppressWarnings("unchecked")
- @Override
- public Object[] getElements(Object inputElement) {
- ArrayList<Property> result = new ArrayList<Property>();
- if (inputElement instanceof List) {
- result.addAll((Collection<? extends Property>) inputElement);
- }
- return result.toArray();
- }
-
- @Override
- public void dispose() {
- }
-
- @Override
- public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
- }
- }
-
- static class TableLabelProvider extends BaseLabelProvider implements ITableLabelProvider {
-
- @Override
- public Image getColumnImage(Object element, int columnIndex) {
- if (element instanceof Property) {
- Property current = (Property) element;
- switch (columnIndex) {
- case 0:
- FUMLPresentationUtils.init(current);
- Image image = FUMLPresentationUtils.getImage(current);
- return image;
- default:
- return null;
- }
- }
- return null;
-
- }
-
- @Override
- public String getColumnText(Object element, int columnIndex) {
- if (element instanceof Property) {
- Property current = (Property) element;
- switch (columnIndex) {
- case 0:
- return current.getName();
- default:
- return "";
- }
- }
- return "";
- }
-
- }
-
- protected List<?> getElementListUP() {
-
- List<?> elements = (List<?>) viewer.getInput();
- IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
- List<?> element = selection.toList();
- ArrayList<Object> elementList = new ArrayList<Object>();
- ArrayList<Object> elementListTMP = new ArrayList<Object>();
-
- for (int i = 0; i < elements.size(); i++) {
- if (element.get(0) == elements.get(i)) {
- elementListTMP.remove(elements.get(i - 1));
- elementListTMP.add(element.get(0));
- elementListTMP.add(elements.get(i - 1));
-
- } else {
- elementListTMP.add(elements.get(i));
-
- }
- }
-
- elementList.addAll(elementListTMP);
- return elementList;
- }
-
- protected List<?> getElementListDown() {
-
- List<?> elements = (List<?>) viewer.getInput();
- IStructuredSelection selection = (IStructuredSelection) viewer.getSelection();
- List<?> element = selection.toList();
- ArrayList<Object> elementList = new ArrayList<Object>();
- ArrayList<Object> elementListTMP = new ArrayList<Object>();
-
- for (int i = 0; i < elements.size(); i++) {
- if (element.get(0) == elements.get(i)) {
- elementListTMP.add(elements.get(i + 1));
- elementListTMP.add(element.get(0));
- i++;
- } else {
- elementListTMP.add(elements.get(i));
- }
- }
-
- elementList.addAll(elementListTMP);
- return elementList;
- }
-
- @Override
- protected void okPressed() {
- // System.err.println("Ok pressed");
-
- // Check if the right profile is applied.
- // List<Profile> appliedProfiles = context.getModel().getAppliedProfiles();
- // for(int i = 0; i < appliedProfiles.size(); i++) {
- // System.out.println(appliedProfiles.get(i).getQualifiedName());
- // }
-
- if (!Utils.isStandardProfileApplied(context)) {
- PackageUtil.applyProfile(context.getModel(), Utils.standardProfile, true);
- }
-
- // Creating operation and method with "Create" stereotype
- Operation operation = Utils.getDefaultConstructor(context);
-
- int flagParamOp = 0;
-
- // Add parameters to instantiate
- for (int i = 0; i < checkList.size(); i++) {
- if (checkList.get(i) instanceof Property) {
- Property prop = (Property) checkList.get(i);
- Parameter in = UMLFactory.eINSTANCE.createParameter();
- in.setDirection(ParameterDirectionKind.IN_LITERAL);
- in.setType(prop.getType());
- in.setName(prop.getName());
-
- /* Check if parameter is already exist on the operation. */
- flagParamOp = 0;
-
- if (operation.getOwnedParameters().size() <= 1) {
- operation.getOwnedParameters().add(operation.getOwnedParameters().size() - 1, in);
- }
-
- else {
- for (int j = 0; j < operation.getOwnedParameters().size() && flagParamOp == 0; j++) {
- Parameter opParameter = operation.getOwnedParameters().get(j);
- if (!opParameter.getName().equals(in.getName())) {
- flagParamOp = 0;
- } else {
- flagParamOp = -1;
- }
- }
-
- if (flagParamOp == 0) {
- operation.getOwnedParameters().add(operation.getOwnedParameters().size() - 1, in);
- }
- }
- }
- }
-
- super.okPressed();
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.classpath b/extraplugins/moka/org.eclipse.papyrus.moka.composites/.classpath
deleted file mode 100644
index dbc112b4d9f..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.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.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="generated"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.gitignore b/extraplugins/moka/org.eclipse.papyrus.moka.composites/.gitignore
deleted file mode 100644
index ae3c1726048..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/bin/
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.project b/extraplugins/moka/org.eclipse.papyrus.moka.composites/.project
deleted file mode 100644
index 3faccde87be..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.moka.composites</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.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.settings/org.eclipse.jdt.core.prefs b/extraplugins/moka/org.eclipse.papyrus.moka.composites/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 09308dbc127..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,295 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=0
-org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
-org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
-org.eclipse.jdt.core.formatter.blank_lines_before_method=1
-org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
-org.eclipse.jdt.core.formatter.blank_lines_before_package=0
-org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
-org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
-org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
-org.eclipse.jdt.core.formatter.comment.format_block_comments=true
-org.eclipse.jdt.core.formatter.comment.format_header=false
-org.eclipse.jdt.core.formatter.comment.format_html=true
-org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
-org.eclipse.jdt.core.formatter.comment.format_line_comments=true
-org.eclipse.jdt.core.formatter.comment.format_source_code=true
-org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
-org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
-org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
-org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
-org.eclipse.jdt.core.formatter.comment.line_length=260
-org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
-org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
-org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
-org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=4
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
-org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
-org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.join_lines_in_comments=false
-org.eclipse.jdt.core.formatter.join_wrapped_lines=false
-org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.lineSplit=260
-org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
-org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
-org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
-org.eclipse.jdt.core.formatter.tabulation.char=tab
-org.eclipse.jdt.core.formatter.tabulation.size=4
-org.eclipse.jdt.core.formatter.use_on_off_tags=false
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
-org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
-org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.settings/org.eclipse.jdt.ui.prefs b/extraplugins/moka/org.eclipse.papyrus.moka.composites/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 954281dbc31..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/.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/moka/org.eclipse.papyrus.moka.composites/META-INF/MANIFEST.MF b/extraplugins/moka/org.eclipse.papyrus.moka.composites/META-INF/MANIFEST.MF
deleted file mode 100644
index 87cd75a6293..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,23 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.uml2.uml;bundle-version="4.0.1",
- org.eclipse.papyrus.moka.fuml;bundle-version="1.2.0",
- org.eclipse.papyrus.moka;bundle-version="1.2.0",
- org.eclipse.debug.core;bundle-version="3.8.0"
-Export-Package: org.eclipse.papyrus.moka.composites,
- org.eclipse.papyrus.moka.composites.Semantics.Actions.CompleteActions,
- org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions,
- org.eclipse.papyrus.moka.composites.Semantics.Classes.Kernel,
- org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications,
- org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions,
- org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses,
- org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3
-Bundle-Vendor: Eclipse Modeling Project
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.2.0.qualifier
-Bundle-Name: Moka Composites Extension (Incubation)
-Bundle-ManifestVersion: 2
-Bundle-Activator: org.eclipse.papyrus.moka.composites.Activator
-Bundle-SymbolicName: org.eclipse.papyrus.moka.composites;singleton:=true
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/about.html b/extraplugins/moka/org.eclipse.papyrus.moka.composites/about.html
deleted file mode 100644
index 82d49bf5f81..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/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>June 5, 2007</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>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/build.properties b/extraplugins/moka/org.eclipse.papyrus.moka.composites/build.properties
deleted file mode 100644
index f0c577ad41c..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-source.. = src/,\
- generated/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.xml,\
- about.html
-src.includes = about.html
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/CompleteActions/CS_ReadExtentActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/CompleteActions/CS_ReadExtentActionActivation.java
deleted file mode 100644
index bad4f911899..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/CompleteActions/CS_ReadExtentActionActivation.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Actions.CompleteActions;
-
-// Imports
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.CompleteActions.ReadExtentActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.ExtensionalValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.uml2.uml.ReadExtentAction;
-
-public class CS_ReadExtentActionActivation extends ReadExtentActionActivation {
-
- @Override
- public void doAction() {
- // Get the extent, at the current execution locus, of the classifier
- // (which must be a class) identified in the action.
- // Place references to the resulting set of objects on the result pin.
- // Extends default fUML semantics in the sense that produced tokens contain
- // CS_References instead of References, in the case where the object is a
- // CS_Object
-
- ReadExtentAction action = (ReadExtentAction) (this.node);
- List<ExtensionalValue> objects = this.getExecutionLocus().getExtent(action.getClassifier());
-
- // Debug.println("[doAction] " + action.classifier.name + " has " +
- // objects.size() + " instance(s).");
-
- List<Value> references = new ArrayList<Value>();
- for (int i = 0; i < objects.size(); i++) {
- Value object = objects.get(i);
- Reference reference = null;
- if (object instanceof CS_Object) {
- reference = new CS_Reference();
- ((CS_Reference) reference).compositeReferent = (CS_Object) object;
- } else {
- reference = new Reference();
- }
- reference.referent = (Object_) object;
- references.add(reference);
- }
-
- this.putTokens(action.getResult(), references);
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/CompleteActions/CS_ReadIsClassifiedObjectActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/CompleteActions/CS_ReadIsClassifiedObjectActionActivation.java
deleted file mode 100644
index 492701c0c6f..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/CompleteActions/CS_ReadIsClassifiedObjectActionActivation.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Actions.CompleteActions;
-
-import java.util.List;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.CompleteActions.ReadIsClassifiedObjectActionActivation;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.Interface;
-import org.eclipse.uml2.uml.InterfaceRealization;
-
-public class CS_ReadIsClassifiedObjectActionActivation extends ReadIsClassifiedObjectActionActivation {
-
- @Override
- public Boolean checkAllParents(Classifier type, Classifier classifier) {
- // If the given classifier is not an Interface, behaves like in fUML.
- // Otherwise, check if the given type (or one of its direct or indirect ancestors)
- // has an InterfaceRealization relationships with the given classifier.
- boolean matched = false;
- if (!(classifier instanceof Interface)) {
- matched = super.checkAllParents(type, classifier);
- } else if (!(type instanceof Class)) {
- matched = false;
- } else if (this.realizesInterface((Class) type, (Interface) classifier)) {
- matched = true;
- } else {
- List<Classifier> directParents = type.getGenerals();
- int i = 1;
- while (!matched & i <= directParents.size()) {
- Classifier directParent = directParents.get(i - 1);
- matched = this.checkAllParents(directParent, classifier);
- i = i + 1;
- }
- }
- return matched;
- }
-
- public Boolean realizesInterface(Class type, Interface interface_) {
- // Checks if the given type has an InterfaceRealization relationship
- // with the given interface or a descendant of the interface.
- List<InterfaceRealization> realizations = type.getInterfaceRealizations();
- boolean realized = false;
- int i = 1;
- while (i <= realizations.size() && !realized) {
- InterfaceRealization realization = realizations.get(i - 1);
- Interface contract = realization.getContract();
- if (contract == interface_) {
- realized = true;
- } else if (this.isDescendant(contract, interface_)) {
- realized = true;
- }
- i = i + 1;
- }
- return realized;
- }
-
- public Boolean isDescendant(Interface contract, Interface interface_) {
- // Checks if the given contract is a descendant of the given interface_
- boolean matched = false;
- List<Classifier> descendants = contract.getGenerals();
- int i = 1;
- while (i <= descendants.size() && !matched) {
- if (descendants.get(i - 1) instanceof Interface) {
- Interface descendant = (Interface) descendants.get(i - 1);
- if (descendant == interface_) {
- matched = true;
- } else {
- matched = this.isDescendant(descendant, interface_);
- }
- }
- i = i + 1;
- }
- return matched;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_AddStructuralFeatureValueActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_AddStructuralFeatureValueActionActivation.java
deleted file mode 100644
index c9989164526..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_AddStructuralFeatureValueActionActivation.java
+++ /dev/null
@@ -1,235 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions;
-
-// Imports
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_InteractionPoint;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Link;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.IntermediateActions.AddStructuralFeatureValueActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.FeatureValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Link;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.StructuredValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.UnlimitedNaturalValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.ChoiceStrategy;
-import org.eclipse.uml2.uml.AddStructuralFeatureValueAction;
-import org.eclipse.uml2.uml.Association;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.StructuralFeature;
-
-
-public class CS_AddStructuralFeatureValueActionActivation extends AddStructuralFeatureValueActionActivation {
-
- @Override
- public void doAction() {
- // If the feature is a port and the input value to be added is a
- // Reference,
- // Replaces this Reference by an InteractionPoint, and then behaves
- // as usual.
- // If the feature is not a port, behaves as usual
-
- AddStructuralFeatureValueAction action = (AddStructuralFeatureValueAction) (this.node);
- StructuralFeature feature = action.getStructuralFeature();
-
- if (!(feature instanceof Port)) {
- // Behaves as usual
- this.doActionDefault();
- } else {
- List<Value> inputValues = this.takeTokens(action.getValue());
- // NOTE: Multiplicity of the value input pin is required to be 1..1.
- Value inputValue = inputValues.get(0);
- if (inputValue instanceof Reference) {
- // First constructs an InteractionPoint from the inputValue
- Reference reference = (Reference) inputValue;
- CS_InteractionPoint interactionPoint = new CS_InteractionPoint();
- interactionPoint.referent = reference.referent;
- interactionPoint.definingPort = (Port) feature;
- // The value on action.object is necessarily instanceof
- // ReferenceToCompositeStructure (otherwise, the feature cannot
- // be a port)
- CS_Reference owner = (CS_Reference) this.takeTokens(action.getObject()).get(0);
- interactionPoint.owner = owner;
- // Then replaces the Reference by an InteractionPoint
- // in the inputValues
- inputValues.remove(0);
- inputValues.add(0, interactionPoint);
- // Finally concludes with usual fUML behavior of
- // AddStructuralFeatureValueAction (i.e., the usual behavior
- // when
- // the value on action.object pin is a StructuredValue)
- Integer insertAt = 0;
- if (action.getInsertAt() != null) {
- insertAt = ((UnlimitedNaturalValue) this.takeTokens(action.getInsertAt()).get(0)).value;
- }
- if (action.isReplaceAll()) {
- owner.setFeatureValue(feature, inputValues, 0);
- } else {
- FeatureValue featureValue = owner.getFeatureValue(feature);
-
- if (featureValue.values.size() > 0 & insertAt == 0) {
- // If there is no insertAt pin, then the structural
- // feature must
- // be unordered, and the insertion position is
- // immaterial.
- insertAt = ((ChoiceStrategy) this.getExecutionLocus().factory.getStrategy("choice")).choose(featureValue.values.size());
- }
- if (feature.isUnique()) {
- // Remove any existing value that duplicates the input
- // value
- Integer j = position(interactionPoint, featureValue.values, 1);
- if (j > 0) {
- featureValue.values.remove(j - 1);
- if (insertAt > 0 & j < insertAt) {
- insertAt = insertAt - 1;
- }
- }
- }
-
- if (insertAt <= 0) {
- // Note: insertAt = -1 indicates an unlimited value of
- // "*"
- featureValue.values.add(interactionPoint);
- } else {
- featureValue.values.add(insertAt - 1, interactionPoint);
- }
- }
- if (action.getResult() != null) {
- this.putToken(action.getResult(), owner);
- }
- } else {
- // behaves as usual
- this.doActionDefault();
- }
- }
- }
-
- public void doActionDefault() {
- // Get the values of the object and value input pins.
- // If the given feature is an association end, then create a link
- // between the object and value inputs.
- // Otherwise, if the object input is a structural value, then add a
- // value to the values for the feature.
- // If isReplaceAll is true, first remove all current matching links or
- // feature values.
- // If isReplaceAll is false and there is an insertAt pin, insert the
- // value at the appropriate position.
- // This operation captures same semantics as fUML
- // AddStructuralFeatureValueActionActivation.doAction(), except that
- // when the feature is an association end, a CS_Link will be created instead
- // of a Link
-
- AddStructuralFeatureValueAction action = (AddStructuralFeatureValueAction) (this.node);
- StructuralFeature feature = action.getStructuralFeature();
- Association association = this.getAssociation(feature);
-
- Value value = this.takeTokens(action.getObject()).get(0);
- List<Value> inputValues = this.takeTokens(action.getValue());
-
- // NOTE: Multiplicity of the value input pin is required to be 1..1.
- Value inputValue = inputValues.get(0);
-
- int insertAt = 0;
- if (action.getInsertAt() != null) {
- insertAt = ((UnlimitedNaturalValue) this.takeTokens(action.getInsertAt()).get(0)).value;
- }
-
- if (association != null) {
- List<Link> links = this.getMatchingLinks(association, feature, value);
-
- Property oppositeEnd = this.getOppositeEnd(association, feature);
- int position = 0;
- if (oppositeEnd.isOrdered()) {
- position = -1;
- }
-
- if (action.isReplaceAll()) {
- for (int i = 0; i < links.size(); i++) {
- Link link = links.get(i);
- link.destroy();
- }
- } else if (feature.isUnique()) {
- for (int i = 0; i < links.size(); i++) {
- Link link = links.get(i);
- FeatureValue featureValue = link.getFeatureValue(feature);
- if (featureValue.values.get(0).equals(inputValue)) {
- position = link.getFeatureValue(oppositeEnd).position;
- if (insertAt > 0 & featureValue.position < insertAt) {
- insertAt = insertAt - 1;
- }
- link.destroy();
- }
- }
- }
-
- CS_Link newLink = new CS_Link();
- newLink.type = association;
-
- // This necessary when setting a feature value with an insertAt
- // position
- newLink.locus = this.getExecutionLocus();
-
- newLink.setFeatureValue(feature, inputValues, insertAt);
-
- List<Value> oppositeValues = new ArrayList<Value>();
- oppositeValues.add(value);
- newLink.setFeatureValue(oppositeEnd, oppositeValues, position);
-
- newLink.locus.add(newLink);
-
- } else if (value instanceof StructuredValue) {
- StructuredValue structuredValue = (StructuredValue) value;
-
- if (action.isReplaceAll()) {
- structuredValue.setFeatureValue(feature, inputValues, 0);
- } else {
- FeatureValue featureValue = structuredValue.getFeatureValue(feature);
-
- if (featureValue.values.size() > 0 & insertAt == 0) {
- // *** If there is no insertAt pin, then the structural
- // feature must be unordered, and the insertion position is
- // immaterial. ***
- insertAt = ((ChoiceStrategy) this.getExecutionLocus().factory.getStrategy("choice")).choose(featureValue.values.size());
- }
-
- if (feature.isUnique()) {
- // Remove any existing value that duplicates the input value
- int j = position(inputValue, featureValue.values, 1);
- if (j > 0) {
- featureValue.values.remove(j - 1);
- if (insertAt > 0 & j < insertAt) {
- insertAt = insertAt - 1;
- }
- }
- }
-
- if (insertAt <= 0) { // Note: insertAt = -1 indicates an
- // unlimited value of "*"
- featureValue.values.add(inputValue);
- } else {
- featureValue.values.add(insertAt - 1, inputValue);
- }
- }
- }
-
- if (action.getResult() != null) {
- this.putToken(action.getResult(), value);
- }
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_ClearStructuralFeatureValueActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_ClearStructuralFeatureValueActionActivation.java
deleted file mode 100644
index 7ab4f4bb73b..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_ClearStructuralFeatureValueActionActivation.java
+++ /dev/null
@@ -1,175 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_InteractionPoint;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Link;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.IntermediateActions.ClearStructuralFeatureActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.ExtensionalValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.FeatureValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Link;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.StructuredValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.uml2.uml.Association;
-import org.eclipse.uml2.uml.ClearStructuralFeatureAction;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.StructuralFeature;
-
-public class CS_ClearStructuralFeatureValueActionActivation extends ClearStructuralFeatureActionActivation {
-
- @Override
- public void doAction() {
- // Get the value of the object input pin.
- // If the given feature is an association end, then
- // destroy all links that have the object input on the opposite end.
- // Otherwise, if the object input is a structured value, then
- // set the appropriate feature of the input value to be empty.
- ClearStructuralFeatureAction action = (ClearStructuralFeatureAction) (this.node);
- StructuralFeature feature = action.getStructuralFeature();
- Association association = this.getAssociation(feature);
- Value value = this.takeTokens(action.getObject()).get(0);
- if (association != null) {
- List<Link> links = this.getMatchingLinks(association, feature, value);
- for (int i = 0; i < links.size(); i++) {
- Link link = links.get(i);
- link.destroy();
- }
- } else if (value instanceof StructuredValue) {
- // If the value is a data value, then it must be copied before
- // any change is made.
- if (!(value instanceof Reference)) {
- value = value.copy();
- } else {
- // extension to fUML
- List<CS_Link> linksToDestroy = this.getLinksToDestroy((StructuredValue) value, feature);
- for (int i = 0; i < linksToDestroy.size(); i++) {
- linksToDestroy.get(i).destroy();
- }
- //
- }
- ((StructuredValue) value).setFeatureValue(action.getStructuralFeature(), new ArrayList<Value>(), 0);
- }
- if (action.getResult() != null) {
- this.putToken(action.getResult(), value);
- }
- }
-
- public List<CS_Link> getLinksToDestroy(StructuredValue value, StructuralFeature feature) {
- List<CS_Link> linksToDestroy = new ArrayList<CS_Link>();
- if (value instanceof CS_Reference) {
- CS_Reference context = (CS_Reference) value;
- // Retrieves the feature values for the structural feature associated with this action,
- // in the context of this reference
- FeatureValue featureValue = context.getFeatureValue(feature);
- if (feature instanceof Port) {
- // all values are interaction points
- // any link targeting this interaction point must be destroyed
- for (int i = 0; i < featureValue.values.size(); i++) {
- CS_InteractionPoint interactionPoint = (CS_InteractionPoint) featureValue.values.get(i);
- List<CS_Link> connectorInstances = context.compositeReferent.getLinks(interactionPoint);
- for (int j = 0; j < connectorInstances.size(); j++) {
- CS_Link link = connectorInstances.get(j);
- linksToDestroy.add(link);
- }
- }
- } else { // feature is an attribute
- // Retrieve all potential link ends,
- // separating potential link ends corresponding to the given feature,
- // and potential link ends corresponding to other features.
- // By "potential link ends", we refer to the values of a given feature,
- // as well as interaction points associated with this value, if any.
- List<Value> allValuesForFeature = new ArrayList<Value>();
- List<Value> allOtherValues = new ArrayList<Value>();
- for (int i = 0; i < context.referent.featureValues.size(); i++) {
- StructuralFeature currentFeature = context.referent.featureValues.get(i).feature;
- List<Value> values = this.getPotentialLinkEnds(context, currentFeature);
- for (int j = 0; j < values.size(); j++) {
- Value v = values.get(j);
- if (currentFeature != feature) {
- allOtherValues.add(v);
- } else {
- allValuesForFeature.add(v);
- }
- }
- }
- // Retrieves all links available at the locus
- List<ExtensionalValue> extensionalValues = this.getExecutionLocus().extensionalValues;
- List<CS_Link> allLinks = new ArrayList<CS_Link>();
- for (int i = 0; i < extensionalValues.size(); i++) {
- ExtensionalValue extensionalValue = extensionalValues.get(i);
- if (extensionalValue instanceof CS_Link) {
- allLinks.add((CS_Link) extensionalValue);
- }
- }
- // Retrieves links representing connector instances in the context object
- for (int i = 0; i < allLinks.size(); i++) {
- CS_Link link = allLinks.get(i);
- boolean linkHasToBeDestroyed = false;
- for (int j = 0; j < allValuesForFeature.size() && !linkHasToBeDestroyed; j++) {
- Value v = allValuesForFeature.get(j);
- StructuralFeature featureForV = link.getFeature(v);
- if (featureForV != null) {
- // Check if feature values of this link for other features
- // contains elements identified in allOtherValue
- for (int k = 0; k < link.featureValues.size() && !linkHasToBeDestroyed; k++) {
- FeatureValue otherFeatureValue = link.featureValues.get(k);
- if (otherFeatureValue.feature != featureForV) {
- for (int l = 0; l < otherFeatureValue.values.size() && !linkHasToBeDestroyed; l++) {
- for (int m = 0; m < allOtherValues.size() && !linkHasToBeDestroyed; m++) {
- if (otherFeatureValue.values.get(l) == allOtherValues.get(m)) {
- linkHasToBeDestroyed = true;
- }
- }
- }
- }
- }
- }
- }
- if (linkHasToBeDestroyed) {
- linksToDestroy.add(link);
- }
- }
- }
- }
- return linksToDestroy;
- }
-
- public List<Value> getPotentialLinkEnds(CS_Reference context, StructuralFeature feature) {
- // Retrieves all feature values for the context object for the given feature,
- // as well as all interaction point for these values
- List<Value> potentialLinkEnds = new ArrayList<Value>();
- FeatureValue featureValue = context.getFeatureValue(feature);
- for (int i = 0; i < featureValue.values.size(); i++) {
- Value v = featureValue.values.get(i);
- potentialLinkEnds.add(v);
- if (v instanceof CS_Reference) {
- // add all interaction points associated with v
- for (int j = 0; j < ((CS_Reference) v).referent.featureValues.size(); j++) {
- if (((CS_Reference) v).referent.featureValues.get(j).feature instanceof Port) {
- List<Value> interactionPoints = (((CS_Reference) v).referent.featureValues.get(j)).values;
- for (int k = 0; k < interactionPoints.size(); k++) {
- potentialLinkEnds.add(interactionPoints.get(k));
- }
- }
- }
- }
- }
- return potentialLinkEnds;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_CreateLinkActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_CreateLinkActionActivation.java
deleted file mode 100644
index e21e60cdb9b..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_CreateLinkActionActivation.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions;
-
-// Imports
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Link;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.IntermediateActions.CreateLinkActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.ExtensionalValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Link;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.UnlimitedNaturalValue;
-import org.eclipse.uml2.uml.Association;
-import org.eclipse.uml2.uml.CreateLinkAction;
-import org.eclipse.uml2.uml.LinkEndCreationData;
-import org.eclipse.uml2.uml.LinkEndData;
-
-
-public class CS_CreateLinkActionActivation extends CreateLinkActionActivation {
-
- @Override
- public void doAction() {
- // Get the extent at the current execution locus of the association for
- // which a link is being created.
- // Destroy all links that have a value for any end for which
- // isReplaceAll is true.
- // Create a new link for the association, at the current locus, with the
- // given end data values,
- // inserted at the given insertAt position (for ordered ends).
- // fUML semantics is extended in the sense that a CS_Link is created instead of
- // a Link
- CreateLinkAction action = (CreateLinkAction) (this.node);
- List<LinkEndCreationData> endDataList = new ArrayList<LinkEndCreationData>();
- for (LinkEndData data : action.getEndData()) {
- endDataList.add((LinkEndCreationData) data);
- }
- Association linkAssociation = this.getAssociation();
- List<ExtensionalValue> extent = this.getExecutionLocus().getExtent(linkAssociation);
- boolean unique = false;
- for (int i = 0; i < endDataList.size(); i++) {
- if (endDataList.get(i).getEnd().isUnique()) {
- unique = true;
- }
- }
- for (int i = 0; i < extent.size(); i++) {
- ExtensionalValue value = extent.get(i);
- Link link = (Link) value;
- boolean match = true;
- boolean destroy = false;
- int j = 1;
- while (j <= endDataList.size()) {
- LinkEndCreationData endData = endDataList.get(j - 1);
- if (this.endMatchesEndData(link, endData)) {
- if (endData.isReplaceAll()) {
- destroy = true;
- }
- } else {
- match = false;
- }
- j = j + 1;
- }
- if (destroy | unique & match) {
- link.destroy();
- }
- }
- CS_Link newLink = new CS_Link();
- newLink.type = linkAssociation;
- for (int i = 0; i < endDataList.size(); i++) {
- LinkEndCreationData endData = endDataList.get(i);
- int insertAt = 0;
- if (endData.getInsertAt() != null) {
- insertAt = ((UnlimitedNaturalValue) (this.takeTokens(endData.getInsertAt()).get(0))).value;
- }
- newLink.setFeatureValue(endData.getEnd(), this.takeTokens(endData.getValue()), insertAt);
- }
- newLink.addTo(this.getExecutionLocus());
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_CreateObjectActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_CreateObjectActionActivation.java
deleted file mode 100644
index 3dcf830712f..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_CreateObjectActionActivation.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions;
-
-// Imports
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.IntermediateActions.CreateObjectActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.IntermediateActions.CreateObjectActionStrategy;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.CreateObjectAction;
-
-
-public class CS_CreateObjectActionActivation extends CreateObjectActionActivation {
-
- @Override
- public void doAction() {
- // Create an object with the given classifier (which must be a class) as
- // its type, at the same locus as the action activation.
- // Place a reference to the object on the result pin of the action.
- // Extends fUML semantics in the sense that the reference placed
- // on the result pin is a CS_Reference (in the case where the instantiated object
- // is a CS_Object) not a Reference
- // Note that Locus.instantiate(Class) is extended in this specification
- // to produce a CS_Object instead of an Object in the case where the class
- // to be instantiated is not a behavior
-
- CreateObjectAction action = (CreateObjectAction) (this.node);
-
- Reference reference;
- Object_ referent = ((CreateObjectActionStrategy) this.getExecutionLocus().factory.getStrategy("CreateObjectActionStrategy")).instantiate((Class) (action.getClassifier()), this.getExecutionLocus());
- if (referent instanceof CS_Object) {
- reference = new CS_Reference();
- ((CS_Reference) reference).compositeReferent = (CS_Object) referent;
- } else {
- reference = new Reference();
- }
- reference.referent = referent;
-
- this.putToken(action.getResult(), reference);
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_ReadSelfActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_ReadSelfActionActivation.java
deleted file mode 100644
index a35b9ea45ae..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Actions/IntermediateActions/CS_ReadSelfActionActivation.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions;
-
-// Imports
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.IntermediateActions.ReadSelfActionActivation;
-import org.eclipse.uml2.uml.OutputPin;
-import org.eclipse.uml2.uml.ReadSelfAction;
-
-
-public class CS_ReadSelfActionActivation extends ReadSelfActionActivation {
-
- @Override
- public void doAction() {
- // Get the context object of the activity execution containing this
- // action activation and place a reference to it on the result output
- // pin.
- // Extends fUML semantics in the sense that the reference placed on
- // the result pin is a CS_Reference, not a Reference
-
- // Debug.println("[ReadSelfActionActivation] Start...");
-
- CS_Reference context = new CS_Reference();
- context.referent = this.getExecutionContext();
- if (context.referent instanceof CS_Object) {// i.e. alternatively, it can be an execution
- context.compositeReferent = (CS_Object) context.referent;
- }
-
- // Debug.println("[ReadSelfActionActivation] context object = " +
- // context.referent);
-
- OutputPin resultPin = ((ReadSelfAction) (this.node)).getResult();
- this.putToken(resultPin, context);
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Classes/Kernel/CS_InstanceValueEvaluation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Classes/Kernel/CS_InstanceValueEvaluation.java
deleted file mode 100644
index b6fd464356f..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Classes/Kernel/CS_InstanceValueEvaluation.java
+++ /dev/null
@@ -1,137 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Classes.Kernel;
-
-// Imports
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.DataValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.EnumerationValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.InstanceValueEvaluation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.StructuredValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.debug.Debug;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.DataType;
-import org.eclipse.uml2.uml.Enumeration;
-import org.eclipse.uml2.uml.EnumerationLiteral;
-import org.eclipse.uml2.uml.InstanceSpecification;
-import org.eclipse.uml2.uml.InstanceValue;
-import org.eclipse.uml2.uml.Slot;
-import org.eclipse.uml2.uml.ValueSpecification;
-
-
-public class CS_InstanceValueEvaluation extends InstanceValueEvaluation {
-
- @Override
- public Value evaluate() {
- // If the instance specification is for an enumeration, then return the
- // identified enumeration literal.
- // If the instance specification is for a data type (but not a primitive
- // value or an enumeration), then create a data value of the given data
- // type.
- // If the instance specification is for an object, then create an object
- // at the current locus with the specified types.
- // Set each feature of the created value to the result of evaluating the
- // value specifications for the specified slot for the feature.
- // Extends fUML semantics in the sense that when the instance specification
- // is for an object which is not typed by a Behavior, A CS_Reference (to a
- // CS_Object) is produced instead of a Reference (to an Object)
-
- // Debug.println("[evaluate] InstanceValueEvaluation...");
-
- InstanceSpecification instance = ((InstanceValue) this.specification).getInstance();
- List<Classifier> types = instance.getClassifiers();
- Classifier myType = types.get(0);
-
- Debug.println("[evaluate] type = " + myType.getName());
-
- Value value;
- if (instance instanceof EnumerationLiteral) {
- // Debug.println("[evaluate] Type is an enumeration.");
- EnumerationValue enumerationValue = new EnumerationValue();
- enumerationValue.type = (Enumeration) myType;
- enumerationValue.literal = (EnumerationLiteral) instance;
- value = enumerationValue;
- } else {
- StructuredValue structuredValue = null;
-
- if (myType instanceof DataType) {
- // Debug.println("[evaluate] Type is a data type.");
- DataValue dataValue = new DataValue();
- dataValue.type = (DataType) myType;
- structuredValue = dataValue;
- } else {
- Object_ object = null;
- if (myType instanceof Behavior) {
- // Debug.println("[evaluate] Type is a behavior.");
- object = this.locus.factory.createExecution((Behavior) myType, null);
- } else {
- // Debug.println("[evaluate] Type is a class.");
- object = new CS_Object();
- for (int i = 0; i < types.size(); i++) {
- Classifier type = types.get(i);
- object.types.add((Class) type);
- }
- }
-
- this.locus.add(object);
-
- Reference reference;
- if (object instanceof CS_Object) {
- reference = new CS_Reference();
- ((CS_Reference) reference).compositeReferent = (CS_Object) object;
- } else {
- reference = new Reference();
- }
- reference.referent = object;
- structuredValue = reference;
- }
-
- structuredValue.createFeatureValues();
-
- // Debug.println("[evaluate] " + instance.slot.size() +
- // " slot(s).");
-
- List<Slot> instanceSlots = instance.getSlots();
- for (int i = 0; i < instanceSlots.size(); i++) {
- Slot slot = instanceSlots.get(i);
- List<Value> values = new ArrayList<Value>();
-
- // Debug.println("[evaluate] feature = " +
- // slot.definingFeature.name + ", " + slot.value.size() +
- // " value(s).");
- List<ValueSpecification> slotValues = slot.getValues();
- for (int j = 0; j < slotValues.size(); j++) {
- ValueSpecification slotValue = slotValues.get(j);
- // Debug.println("[evaluate] Value = " +
- // slotValue.getClass().getName());
- values.add(this.locus.executor.evaluate(slotValue));
- }
- structuredValue.setFeatureValue(slot.getDefiningFeature(), values, 0);
- }
-
- value = structuredValue;
- }
-
- return value;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Classes/Kernel/CS_OpaqueExpressionEvaluation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Classes/Kernel/CS_OpaqueExpressionEvaluation.java
deleted file mode 100644
index 1450c943308..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Classes/Kernel/CS_OpaqueExpressionEvaluation.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Classes.Kernel;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Evaluation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.OpaqueExpression;
-
-public class CS_OpaqueExpressionEvaluation extends Evaluation {
-
- @Override
- public Value evaluate() {
- // Execute the behavior associated with the context OpaqueExpression, if any.
- // If multiple return values are computed, then return the first one.
- // If no value are computed, return null
- List<Value> evaluation = this.executeExpressionBehavior();
- if (evaluation.size() > 0) {
- return evaluation.get(0);
- } else {
- return null;
- }
- }
-
- public List<Value> executeExpressionBehavior() {
- // If a behavior is associated with the context OpaqueExpression,
- // then execute this behavior, and return computed values.
- // Otherwise, return an empty list of values.
- List<Value> evaluation = new ArrayList<Value>();
- OpaqueExpression expression = (OpaqueExpression) this.specification;
- Behavior behavior = expression.getBehavior();
- if (behavior != null) {
- List<ParameterValue> inputs = new ArrayList<ParameterValue>();
- List<ParameterValue> results = this.locus.executor.execute(behavior, null, inputs);
- for (int i = 0; i < results.size(); i++) { // results.size should be 1
- ParameterValue parameterValue = results.get(i);
- List<Value> values = parameterValue.values;
- for (int j = 0; j < values.size(); j++) {
- evaluation.add(values.get(j));
- }
- }
- }
- return evaluation;
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_DispatchOperationOfInterfaceStrategy.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_DispatchOperationOfInterfaceStrategy.java
deleted file mode 100644
index 5b73084b30d..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_DispatchOperationOfInterfaceStrategy.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications;
-
-// Imports
-import java.util.List;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.RedefinitionBasedDispatchStrategy;
-import org.eclipse.uml2.uml.Interface;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.Parameter;
-
-
-public class CS_DispatchOperationOfInterfaceStrategy extends RedefinitionBasedDispatchStrategy {
-
- @Override
- public Boolean operationsMatch(Operation ownedOperation, Operation baseOperation) {
- // Override operationsMatch, in the case where baseOperation belongs
- // to an Interface.
- // In this case, ownedOperation matches baseOperation if it has the same name and signature
- // Otherwise, behaves like fUML RedefinitionBasedDispatchStrategy
- boolean matches = true;
- if (baseOperation.getNamespace() instanceof Interface) {
- matches = (baseOperation.getName().equals(ownedOperation.getName()));
- matches = matches && (baseOperation.getOwnedParameters().size() == ownedOperation.getOwnedParameters().size());
- List<Parameter> ownedOperationParameters = ownedOperation.getOwnedParameters();
- List<Parameter> baseOperationParameters = baseOperation.getOwnedParameters();
- for (int i = 0; matches == true && i < ownedOperationParameters.size(); i++) {
- Parameter ownedParameter = ownedOperationParameters.get(i);
- Parameter baseParameter = baseOperationParameters.get(i);
- matches = (ownedParameter.getType() == baseParameter.getType());
- matches = matches && (ownedParameter.getLower() == ownedParameter.getLower());
- matches = matches && (ownedParameter.getUpper() == ownedParameter.getUpper());
- matches = matches && (ownedParameter.getDirection() == ownedParameter.getDirection());
- }
- } else {
- matches = super.operationsMatch(ownedOperation, baseOperation);
- }
-
- return matches;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_NameBased_StructuralFeatureOfInterfaceAccessStrategy.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_NameBased_StructuralFeatureOfInterfaceAccessStrategy.java
deleted file mode 100644
index a8682f8475a..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_NameBased_StructuralFeatureOfInterfaceAccessStrategy.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications;
-
-// Imports
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.FeatureValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.uml2.uml.StructuralFeature;
-
-public class CS_NameBased_StructuralFeatureOfInterfaceAccessStrategy extends CS_StructuralFeatureOfInterfaceAccessStrategy {
-
- @Override
- public FeatureValue read(CS_Object cs_Object, StructuralFeature feature) {
- // returns the a copy of the first feature value of cs_Object where the name of the corresponding feature
- // matches the name of the feature given as a parameter
- // Otherwise, returns an empty feature value
- List<FeatureValue> featureValues = cs_Object.featureValues;
- FeatureValue matchingFeatureValue = null;
- for (int i = 0; i < featureValues.size() && matchingFeatureValue == null; i++) {
- FeatureValue featureValue = featureValues.get(i);
- if (featureValue.feature.getName().equals(feature.getName())) {
- matchingFeatureValue = featureValue;
- }
- }
- if (matchingFeatureValue != null) {
- matchingFeatureValue = matchingFeatureValue.copy();
- matchingFeatureValue.feature = feature;
- } else {
- matchingFeatureValue = new FeatureValue();
- matchingFeatureValue.feature = feature;
- matchingFeatureValue.values = new ArrayList<Value>();
- matchingFeatureValue.position = 0;
- }
-
- return matchingFeatureValue;
- }
-
- @Override
- public void write(CS_Object cs_Object, StructuralFeature feature, List<Value> values, Integer position) {
- // Retrieves the first feature value of cs_Object where the name of the corresponding feature
- // matches the name of the feature given as a parameter
- // Then updates the values for this feature value
- List<FeatureValue> featureValues = cs_Object.featureValues;
- FeatureValue matchingFeatureValue = null;
- for (int i = 0; i < featureValues.size() && matchingFeatureValue == null; i++) {
- FeatureValue featureValue = featureValues.get(i);
- if (featureValue.feature.getName().equals(feature.getName())) {
- matchingFeatureValue = featureValue;
- }
- }
- if (matchingFeatureValue != null) {
- cs_Object.setFeatureValue(matchingFeatureValue.feature, values, position);
- }
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_StructuralFeatureOfInterfaceAccessStrategy.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_StructuralFeatureOfInterfaceAccessStrategy.java
deleted file mode 100644
index 1511f133cbe..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CommonBehaviors/Communications/CS_StructuralFeatureOfInterfaceAccessStrategy.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications;
-
-// Imports
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.FeatureValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.SemanticStrategy;
-import org.eclipse.uml2.uml.StructuralFeature;
-
-public abstract class CS_StructuralFeatureOfInterfaceAccessStrategy extends SemanticStrategy {
-
- @Override
- public String getName() {
- // StructuralFeatureAccessStrategy are always named "structuralFeature"
- return "structuralFeature";
- }
-
- public abstract FeatureValue read(CS_Object cs_Object, StructuralFeature feature);
-
- public abstract void write(CS_Object cs_Object, StructuralFeature feature, List<Value> values, Integer position);
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_AcceptEventActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_AcceptEventActionActivation.java
deleted file mode 100644
index 8c51b08088d..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_AcceptEventActionActivation.java
+++ /dev/null
@@ -1,66 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions;
-
-// Imports
-import java.util.List;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.CompleteActions.AcceptEventActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-import org.eclipse.uml2.uml.AcceptEventAction;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.Signal;
-import org.eclipse.uml2.uml.SignalEvent;
-import org.eclipse.uml2.uml.Trigger;
-
-
-public class CS_AcceptEventActionActivation extends AcceptEventActionActivation {
-
- @Override
- public Boolean match(SignalInstance signalInstance) {
- // Return true if the given signal instance matches a trigger of the accept
- // event action of this activation.
- // Matching implies that the type of the signalInstance matches the Signal
- // of one of the triggers.
- // When the type matches with the Signal, and if the trigger specifies a
- // list of ports,
- // the signalInstance matches the trigger only if it occurred on a port
- // identified in the list.
-
- AcceptEventAction action = (AcceptEventAction) (this.node);
- List<Trigger> triggers = action.getTriggers();
- Signal signal = signalInstance.type;
-
- Boolean matches = false;
- Integer i = 1;
- while (!matches & i <= triggers.size()) {
- Trigger t = triggers.get(i - 1);
- matches = ((SignalEvent) t.getEvent()).getSignal() == signal;
- if (matches && t.getPorts().size() > 0) {
- List<Port> portsOfTrigger = t.getPorts();
- Port onPort = ((CS_SignalInstance) signalInstance).interactionPoint.definingPort;
- Boolean portMatches = false;
- Integer j = 1;
- while (!portMatches & j <= portsOfTrigger.size()) {
- portMatches = onPort == portsOfTrigger.get(j - 1);
- j = j + 1;
- }
- matches = portMatches;
- }
- i = i + 1;
- }
-
- return matches;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_CallOperationActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_CallOperationActionActivation.java
deleted file mode 100644
index 93ec1784e20..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_CallOperationActionActivation.java
+++ /dev/null
@@ -1,192 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions;
-
-// Imports
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.CallOperationActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.Execution;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Locus;
-import org.eclipse.uml2.uml.CallOperationAction;
-import org.eclipse.uml2.uml.Interface;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.OutputPin;
-import org.eclipse.uml2.uml.Parameter;
-import org.eclipse.uml2.uml.ParameterDirectionKind;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.Stereotype;
-
-public class CS_CallOperationActionActivation extends CallOperationActionActivation {
-
- @Override
- public void doAction() {
- CallOperationAction action = (CallOperationAction) (this.node);
- // First determines if this is a call to a constructor and if a default
- // construction strategy needs to be applied.
- // This is a call to a constructor if the called operation has
- // stereotype <<Create>> applied.
- // The default construction strategy is used if no method is associated with the
- // <<Create>> operation.
- // Otherwise, behaves as in fUML.
- if (action.getOnPort() == null && this.isCreate(action.getOperation()) && action.getOperation().getMethods().size() == 0) {
- Locus locus = this.getExecutionLocus();
- CS_ConstructStrategy strategy = ((CS_ConstructStrategy) locus.factory.getStrategy("constructStrategy"));
- Value target = this.takeTokens(action.getTarget()).get(0);
- if (target instanceof CS_Reference) {
- strategy.construct(action.getOperation(), ((CS_Reference) target).compositeReferent);
- List<Parameter> parameters = action.getOperation().getOwnedParameters();
- List<OutputPin> resultPins = action.getResults();
- List<Value> values = new ArrayList<Value>();
- values.add(target);
- int i = 1;
- while (i <= parameters.size()) {
- Parameter parameter = parameters.get(i - 1);
- if (parameter.getDirection() == ParameterDirectionKind.RETURN_LITERAL) {
- OutputPin resultPin = resultPins.get(0);
- this.putTokens(resultPin, values);
- }
- i = i + 1;
- }
- }
- } else {
- super.doAction();
- }
- }
-
- @Override
- public Execution getCallExecution() {
- // If onPort is not specified, behaves like in fUML
- // If onPort is specified, and if the value on the target input pin is a
- // reference, dispatch the operation
- // to it and return the resulting execution object.
- // As compared to fUML, instead of dispatching directly to target reference
- // by calling operation dispatch:
- // - If the invoked BehavioralFeature is on a provided Interface but not on any required Interface,
- // then, when the InvocationAction is executed, the invocation is made into the object given on
- // the target InputPin through the given Port
- // - If the invoked BehavioralFeature is on a required Interface but not on any provided Interface,
- // then, if the InvocationAction is being executed inside the object given on the target InputPin,
- // the invocation is forwarded out of the target object through the given Port.
- // - If the invoked BehavioralFeature is on both a provided and a required Interface,
- // then, if the InvocationAction is being executed inside the object given on the target InputPin,
- // the invocation is made out of the target object through the given Port.
- // Otherwise the invocation is made into the target object through the given Port.
-
- CallOperationAction action = (CallOperationAction) (this.node);
- Execution execution = null;
- if (action.getOnPort() == null) {
- execution = super.getCallExecution();
- } else {
- Value target = this.takeTokens(action.getTarget()).get(0);
- if (target instanceof CS_Reference) {
- // Tries to determine if the operation call has to be
- // dispatched to the environment or to the internals of
- // target, through onPort
- CS_Reference targetReference = (CS_Reference) target;
- Object_ executionContext = this.group.activityExecution.context;
- boolean operationIsOnProvidedInterface = this.isOperationProvided(action.getOnPort(), action.getOperation());
- boolean operationIsOnRequiredInterface = this.isOperationRequired(action.getOnPort(), action.getOperation());
- // Operation on a provided interface only
- if (operationIsOnProvidedInterface && !operationIsOnRequiredInterface) {
- execution = targetReference.dispatchIn(action.getOperation(), action.getOnPort());
- }
- // Operation is on a required interface only
- else if (!operationIsOnProvidedInterface && operationIsOnRequiredInterface) {
- // If not executing in the context of the target,
- // Semantics are undefined.
- // Otherwise, dispatch outside.
- if (executionContext == targetReference.referent || targetReference.compositeReferent.contains(executionContext)) {
- execution = targetReference.dispatchOut(action.getOperation(), action.getOnPort());
- }
- }
- // Operation is both on a provided and a required interface
- else if (operationIsOnProvidedInterface && operationIsOnRequiredInterface) {
- if (executionContext == targetReference.referent || targetReference.compositeReferent.contains(executionContext)) {
- execution = targetReference.dispatchOut(action.getOperation(), action.getOnPort());
- } else {
- execution = targetReference.dispatchIn(action.getOperation(), action.getOnPort());
- }
- }
- }
- }
- return execution;
- }
-
- public boolean isOperationProvided(Port port, Operation operation) {
- boolean isProvided = false;
- if (operation.getOwner() instanceof Interface) {
- // We have to look in provided interfaces of the port if
- // they define directly or indirectly the Operation
- Integer interfaceIndex = 1;
- // Iterates on provided interfaces of the port
- List<Interface> providedInterfaces = port.getProvideds();
- while (interfaceIndex <= providedInterfaces.size() && !isProvided) {
- Interface interface_ = providedInterfaces.get(interfaceIndex - 1);
- // Iterates on members of the current Interface
- Integer memberIndex = 1;
- while (memberIndex <= interface_.getMembers().size() && !isProvided) {
- NamedElement cddOperation = interface_.getMembers().get(memberIndex - 1);
- if (cddOperation instanceof Operation) {
- isProvided = operation == cddOperation;
- }
- memberIndex = memberIndex + 1;
- }
- interfaceIndex = interfaceIndex + 1;
- }
- }
- return isProvided;
- }
-
- public boolean isOperationRequired(Port port, Operation operation) {
- boolean isRequired = false;
- Integer interfaceIndex = 1;
- // Iterates on provided interfaces of the port
- List<Interface> requiredInterfaces = port.getRequireds();
- while (interfaceIndex <= requiredInterfaces.size() && !isRequired) {
- Interface interface_ = requiredInterfaces.get(interfaceIndex - 1);
- // Iterates on members of the current Interface
- Integer memberIndex = 1;
- while (memberIndex <= interface_.getMembers().size() && !isRequired) {
- NamedElement cddOperation = interface_.getMembers().get(memberIndex - 1);
- if (cddOperation instanceof Operation) {
- isRequired = operation == cddOperation;
- }
- memberIndex = memberIndex + 1;
- }
- interfaceIndex = interfaceIndex + 1;
- }
- return isRequired;
- }
-
- public boolean isCreate(Operation o) {
- // FIXME This code is Eclipse specific
- // How to handle this in the spec?
- List<Stereotype> appliedStereotypes = o.getAppliedStereotypes();
- int i = 0;
- boolean isCreate = false;
- while (i < appliedStereotypes.size() && !isCreate) {
- Stereotype s = appliedStereotypes.get(i);
- if (s.getName().equals("Create")) {
- isCreate = true;
- }
- }
- return isCreate;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_ConstructStrategy.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_ConstructStrategy.java
deleted file mode 100644
index 838e81a70ec..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_ConstructStrategy.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions;
-
-// Imports
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.SemanticStrategy;
-import org.eclipse.uml2.uml.Operation;
-
-public abstract class CS_ConstructStrategy extends SemanticStrategy {
-
- @Override
- public String getName() {
- // a CS_ConstructionStrategy is always named "constructStrategy"
- return "constructStrategy";
- }
-
- public abstract Object_ construct(Operation constructor, CS_Object context);
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_DefaultConstructStrategy.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_DefaultConstructStrategy.java
deleted file mode 100644
index 265c9a0bfbb..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_DefaultConstructStrategy.java
+++ /dev/null
@@ -1,345 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.Classes.Kernel.CS_OpaqueExpressionEvaluation;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_InteractionPoint;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Link;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Evaluation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.FeatureValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Locus;
-import org.eclipse.uml2.uml.Association;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Connector;
-import org.eclipse.uml2.uml.ConnectorEnd;
-import org.eclipse.uml2.uml.Interface;
-import org.eclipse.uml2.uml.MultiplicityElement;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.UMLFactory;
-import org.eclipse.uml2.uml.ValueSpecification;
-
-
-public class CS_DefaultConstructStrategy extends CS_ConstructStrategy {
-
- public Locus locus;
-
- @Override
- public Object_ construct(Operation constructor, CS_Object context) {
- this.locus = context.locus;
- return this.constructObject(context, (Class) constructor.getType());
- }
-
- public Object_ constructObject(CS_Object context, Class type) {
- CS_Reference referenceToContext = new CS_Reference();
- referenceToContext.referent = context;
- referenceToContext.compositeReferent = context;
- // FIXME detect infinite recursive instantiation
- List<Property> allAttributes = type.getAllAttributes();
- int i = 1;
- // Instantiate ports and parts
- while (i <= allAttributes.size()) {
- Property p = allAttributes.get(i - 1);
- if (p.getDefaultValue() != null) {
- ValueSpecification defaultValueSpecification = p.getDefaultValue();
- Evaluation evaluation = (Evaluation) context.locus.factory.instantiateVisitor(defaultValueSpecification);
- evaluation.specification = defaultValueSpecification;
- evaluation.locus = context.locus;
- if (evaluation instanceof CS_OpaqueExpressionEvaluation) {
- List<Value> evaluations = ((CS_OpaqueExpressionEvaluation) evaluation).executeExpressionBehavior();
- for (int j = 0; j < evaluations.size(); j++) {
- this.addStructuralFeatureValue(referenceToContext, p, evaluations.get(j));
- }
- } else {
- Value defaultValue = evaluation.evaluate();
- this.addStructuralFeatureValue(referenceToContext, p, defaultValue);
- }
- } else if (this.canInstantiate(p)) {
- int j = 1;
- while (j <= p.getLower()) {
- Object_ value;
- // if p is a Port typed by an Interface
- // creates an Object without type, but with FeatureValues corresponding to
- // structural features of the interface.
- if (p instanceof Port && p.getType() instanceof Interface) {
- value = this.instantiateInterface((Interface) p.getType(), this.locus);
- this.addStructuralFeatureValue(referenceToContext, p, value);
- } else {
- value = context.locus.instantiate((Class) p.getType());
- // TODO account for existing constructors
- value = this.constructObject((CS_Object) value, (Class) p.getType());
- this.addStructuralFeatureValue(referenceToContext, p, value);
- if (((Class) p.getType()).isActive()) {
- value.startBehavior((Class) p.getType(), new ArrayList<ParameterValue>());
- }
- }
- j = j + 1;
- }
- }
- i = i + 1;
- }
- // Instantiate connectors
- List<NamedElement> allMembers = type.getMembers();
- i = 1;
- while (i <= allMembers.size()) {
- NamedElement member = allMembers.get(i - 1);
- if (member instanceof Connector) {
- Connector connector = (Connector) member;
- if (this.isArrayPattern(connector)) {
- this.generateArrayPattern(referenceToContext, connector);
- } else if (this.isStarPattern(connector)) {
- this.generateStarPattern(referenceToContext, connector);
- }
- }
- i = i + 1;
- }
- return referenceToContext.referent;
- }
-
- public void addStructuralFeatureValue(CS_Reference context, Property feature, Value value) {
- FeatureValue featureValue = context.getFeatureValue(feature);
- if (featureValue != null) {
- List<Value> values = featureValue.values;
- if (feature instanceof Port) {
- // insert an interaction point
- CS_InteractionPoint interactionPoint = new CS_InteractionPoint();
- interactionPoint.definingPort = (Port) feature;
- interactionPoint.referent = (CS_Object) value;
- interactionPoint.owner = context;
- values.add(interactionPoint);
- } else if (value instanceof CS_Object) {
- // insert a reference
- CS_Reference reference = new CS_Reference();
- reference.compositeReferent = (CS_Object) value;
- reference.referent = (CS_Object) value;
- values.add(reference);
- } else {
- values.add(value);
- }
- }
- }
-
- public void generateArrayPattern(CS_Reference context, Connector connector) {
- ConnectorEnd end1 = connector.getEnds().get(0);
- ConnectorEnd end2 = connector.getEnds().get(1);
- List<Reference> end1Values = this.getValuesFromConnectorEnd(context, end1);
- List<Reference> end2Values = this.getValuesFromConnectorEnd(context, end2);
- for (int i = 0; i < end1Values.size(); i++) {
- CS_Link link = new CS_Link();
- if (connector.getType() == null) {
- link.type = this.getDefaultAssociation();
- } else {
- link.type = connector.getType();
- }
- List<Value> valuesForEnd1 = new ArrayList<Value>();
- valuesForEnd1.add(end1Values.get(i));
- List<Value> valuesForEnd2 = new ArrayList<Value>();
- valuesForEnd2.add(end2Values.get(i));
- link.setFeatureValue(link.type.getOwnedEnds().get(0), valuesForEnd1, -1);
- link.setFeatureValue(link.type.getOwnedEnds().get(1), valuesForEnd2, -1);
- link.addTo(context.referent.locus);
- }
- }
-
- public List<Reference> getValuesFromConnectorEnd(CS_Reference context, ConnectorEnd end) {
- List<Reference> endValues = new ArrayList<Reference>();
- if (end.getPartWithPort() != null) {
- FeatureValue valueForPart = context.getFeatureValue(end.getPartWithPort());
- if (valueForPart != null) {
- for (int i = 0; i < valueForPart.values.size(); i++) {
- Reference reference = (Reference) valueForPart.values.get(i);
- FeatureValue valueForPort = reference.getFeatureValue((Port) end.getRole());
- if (valueForPort != null) {
- for (int j = 0; j < valueForPort.values.size(); j++) {
- endValues.add((Reference) valueForPort.values.get(j));
- }
- }
- }
- }
- } else {
- FeatureValue valueForRole = context.getFeatureValue((Property) end.getRole());
- if (valueForRole != null) {
- for (int i = 0; i < valueForRole.values.size(); i++) {
- endValues.add((Reference) valueForRole.values.get(i));
- }
- }
- }
- return endValues;
- }
-
- public void generateStarPattern(CS_Reference context, Connector connector) {
- ConnectorEnd end1 = connector.getEnds().get(0);
- ConnectorEnd end2 = connector.getEnds().get(1);
- List<Reference> end1Values = this.getValuesFromConnectorEnd(context, end1);
- List<Reference> end2Values = this.getValuesFromConnectorEnd(context, end2);
- for (int i = 0; i < end1Values.size(); i++) {
- for (int j = 0; j < end2Values.size(); j++) {
- CS_Link link = new CS_Link();
- if (connector.getType() == null) {
- link.type = this.getDefaultAssociation();
- } else {
- link.type = connector.getType();
- }
- List<Value> valuesForEnd1 = new ArrayList<Value>();
- valuesForEnd1.add(end1Values.get(i));
- List<Value> valuesForEnd2 = new ArrayList<Value>();
- valuesForEnd2.add(end2Values.get(j));
- link.setFeatureValue(link.type.getOwnedEnds().get(0), valuesForEnd1, -1);
- link.setFeatureValue(link.type.getOwnedEnds().get(1), valuesForEnd2, -1);
- link.addTo(context.referent.locus);
- }
- }
- }
-
- public boolean canInstantiate(Property p) {
- // Instantiate is possible if:
- // - p is composite
- // - p is typed
- // - This type is a Class and it is not abstract
- // - Or p is a Port and the type is an Interface
- if (p.isComposite()) {
- if (p.getType() != null) {
- if (p.getType() instanceof Class) {
- return !((Class) p.getType()).isAbstract();
- } else if (p.getType() instanceof Interface) {
- return p instanceof Port;
- }
- }
- }
- return false;
- }
-
- public int getCardinality(ConnectorEnd end) {
- int lowerOfRole = ((MultiplicityElement) end.getRole()).getLower();
- if (lowerOfRole == 0) {
- return 0;
- } else if (end.getPartWithPort() == null) {
- return lowerOfRole;
- } else {
- int lowerOfPart = end.getPartWithPort().getLower();
- return lowerOfRole * lowerOfPart;
- }
- }
-
-
- public boolean isArrayPattern(Connector c) {
- // This is an array pattern if:
- // - c is binary
- // - lower bound of the two connector ends is 1
- // - Cardinality of ends are equals
- if (c.getEnds().size() == 2) {
- if (c.getEnds().get(0).getLower() == 1) {
- if (c.getEnds().get(1).getLower() == 1) {
- if (this.canInstantiate((Property) c.getEnds().get(0).getRole()) && this.canInstantiate((Property) c.getEnds().get(1).getRole())) {
- int cardinality1 = this.getCardinality(c.getEnds().get(0));
- int cardinality2 = this.getCardinality(c.getEnds().get(1));
- return cardinality1 == cardinality2;
- }
- }
- }
- }
- return false;
- }
-
-
- public boolean isStarPattern(Connector c) {
- // This is an array pattern if:
- // - c is binary
- // - lower bound of end1 equals cardinality of end1
- // - lower bound of end2 equals cardinality of end2
- if (c.getEnds().size() == 2) {
- if (this.canInstantiate((Property) c.getEnds().get(0).getRole()) && this.canInstantiate((Property) c.getEnds().get(1).getRole())) {
- int cardinalityOfEnd1 = this.getCardinality(c.getEnds().get(0));
- int lowerBoundofEnd1 = c.getEnds().get(0).getLower();
- if (cardinalityOfEnd1 == lowerBoundofEnd1) {
- int cardinalityOfEnd2 = this.getCardinality(c.getEnds().get(1));
- int lowerBoundofEnd2 = c.getEnds().get(1).getLower();
- return cardinalityOfEnd2 == lowerBoundofEnd2;
- }
- }
- }
- return false;
- }
-
- public Association defaultAssociation;
-
- public Association getDefaultAssociation() {
- // Computes an returns an Association with two untyped owned ends,
- // with multiplicity [*].
- // This association can be used to type links instantiated from untyped connectors
- if (defaultAssociation == null) {
- defaultAssociation = UMLFactory.eINSTANCE.createAssociation();
- defaultAssociation.setName("DefaultGeneratedAssociation");
- Property end1 = defaultAssociation.createOwnedEnd("x", null);
- end1.setLower(0);
- end1.setUpper(-1);
- end1.setIsOrdered(true);
- end1.setIsUnique(true);
- Property end2 = defaultAssociation.createOwnedEnd("y", null);
- end2.setLower(0);
- end2.setUpper(-1);
- end2.setIsOrdered(true);
- end2.setIsUnique(true);
- }
- return defaultAssociation;
- }
-
- public Object_ instantiateInterface(Interface interface_, Locus locus) {
- Class realizingClass = this.getRealizingClass(interface_);
- Object_ object = locus.instantiate(realizingClass);
- return object;
- }
-
- public List<Class> generatedRealizingClasses = new ArrayList<Class>();
-
- public Class getRealizingClass(Interface interface_) {
- Class realizingClass = null;
- // TODO For cached RealizingClasses, search based on InterfaceRealizations rather than name
- String realizingClassName = interface_.getQualifiedName() + "GeneratedRealizingClass";
- int i = 1;
- while (i <= generatedRealizingClasses.size() && realizingClass == null) {
- Class cddRealizingClass = generatedRealizingClasses.get(i - 1);
- if (cddRealizingClass.getName().equals(realizingClassName)) {
- realizingClass = cddRealizingClass;
- }
- i = i + 1;
- }
- if (realizingClass == null) {
- realizingClass = this.generateRealizingClass(interface_, realizingClassName);
- generatedRealizingClasses.add(realizingClass);
- }
- return realizingClass;
- }
-
- public Class generateRealizingClass(Interface interface_, String className) {
- Class realizingClass = UMLFactory.eINSTANCE.createClass();
- realizingClass.setName(className);
- realizingClass.createInterfaceRealization("", interface_);
- // TODO Deal with structural features of the interface
- // TODO Make a test case for reading/writing structural features of an interface
- return realizingClass;
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_DefaultRequestPropagationStrategy.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_DefaultRequestPropagationStrategy.java
deleted file mode 100644
index 92491f421c6..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_DefaultRequestPropagationStrategy.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions;
-
-// Imports
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.SendSignalActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.SemanticVisitor;
-
-
-public class CS_DefaultRequestPropagationStrategy extends CS_RequestPropagationStrategy {
-
- @Override
- public List<Reference> select(List<Reference> potentialTargets, SemanticVisitor context) {
- // returns all potential targets in the case where the context is a SendSignalActionActivation
- // returns the first potential target in the case where the context is anything else
- List<Reference> selectedTargets = new ArrayList<Reference>();
- if (context instanceof SendSignalActionActivation) {
- for (int i = 0; i < potentialTargets.size(); i++) {
- selectedTargets.add(potentialTargets.get(i));
- }
- } else {
- if (potentialTargets.size() >= 1) {
- selectedTargets.add(potentialTargets.get(0));
- }
- }
- return selectedTargets;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_RequestPropagationStrategy.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_RequestPropagationStrategy.java
deleted file mode 100644
index c11f7879d4e..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_RequestPropagationStrategy.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions;
-
-// Imports
-import java.util.List;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.SemanticStrategy;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.SemanticVisitor;
-
-
-public abstract class CS_RequestPropagationStrategy extends SemanticStrategy {
-
- @Override
- public String getName() {
- // a CS_RequestPropagationStrategy are always named "requestPropagation"
- return "requestPropagation";
- }
-
- public abstract List<Reference> select(List<Reference> potentialTargets, SemanticVisitor context);
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_SendSignalActionActivation.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_SendSignalActionActivation.java
deleted file mode 100644
index c4e387079ef..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_SendSignalActionActivation.java
+++ /dev/null
@@ -1,120 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions;
-
-// Imports
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.SendSignalActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.uml2.uml.InputPin;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.SendSignalAction;
-import org.eclipse.uml2.uml.Signal;
-
-
-public class CS_SendSignalActionActivation extends SendSignalActionActivation {
-
- @Override
- public void doAction() {
- // If onPort is not specified, behaves like in fUML
- // If onPort is specified,
- // Get the value from the target pin. If the value is not a reference,
- // then do nothing.
- // Otherwise, construct a signal using the values from the argument pins
- // As compared to fUML, instead of sending directly to target reference
- // by calling operation send:
- // - if the target is to be the same as or a container of (directly or indirectly)
- // the object executing the Action, the Signal shall be related to a Reception belonging
- // to a required interface of onPort, and sendOut is called on the target reference
- // so that the signal will be sent to the environment
- // - if the target is NOT to be the same as or a container of (directly or indirectly)
- // the object executing the Action, the Signal shall be related to a Reception belonging
- // to a provided Interface of onPort, and operation sendIn is called so that the signal
- // will be sent to the internals of the target object
-
- SendSignalAction action = (SendSignalAction) (this.node);
-
- if (action.getOnPort() == null) {
- // Behaves like in fUML
- this.doActionDefault();
- } else {
- Value target = this.takeTokens(action.getTarget()).get(0);
-
- if (target instanceof CS_Reference) {
- // Constructs the signal instance
- Signal signal = action.getSignal();
- CS_SignalInstance signalInstance = new CS_SignalInstance();
- signalInstance.type = signal;
-
- List<Property> attributes = signal.getOwnedAttributes();
- List<InputPin> argumentPins = action.getArguments();
- Integer i = 0;
- while (i < attributes.size()) {
- Property attribute = attributes.get(i);
- InputPin argumentPin = argumentPins.get(i);
- List<Value> values = this.takeTokens(argumentPin);
- signalInstance.setFeatureValue(attribute, values, 0);
- i = i + 1;
- }
-
- // Tries to determine if the signal has to be
- // sent to the environment or to the internals of
- // target, through onPort
- CS_Reference targetReference = (CS_Reference) target;
- // Port onPort = action.onPort ;
- Object_ executionContext = this.group.activityExecution.context;
- if (executionContext == targetReference.referent || targetReference.compositeReferent.contains(executionContext)) {
- targetReference.sendOut(signalInstance, action.getOnPort());
- } else {
- targetReference.sendIn(signalInstance, action.getOnPort());
- }
- }
- }
- }
-
- public void doActionDefault() {
- // Get the value from the target pin. If the value is not a reference,
- // then do nothing.
- // Otherwise, construct a signal using the values from the argument pins
- // and send it to the referent object.
- // This operation captures same semantics as fUML
- // SendSignalActionActivation.doAction() except that it constructs
- // a CS_SignalInstance instead of a SignalInstance
-
- SendSignalAction action = (SendSignalAction) (this.node);
- Value target = this.takeTokens(action.getTarget()).get(0);
-
- if (target instanceof Reference) {
- Signal signal = action.getSignal();
-
- CS_SignalInstance signalInstance = new CS_SignalInstance();
- signalInstance.type = signal;
-
- List<Property> attributes = signal.getOwnedAttributes();
- List<InputPin> argumentPins = action.getArguments();
- for (int i = 0; i < attributes.size(); i++) {
- Property attribute = attributes.get(i);
- InputPin argumentPin = argumentPins.get(i);
- List<Value> values = this.takeTokens(argumentPin);
- signalInstance.setFeatureValue(attribute, values, 0);
- }
-
- ((Reference) target).send(signalInstance);
- }
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_SignalInstance.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_SignalInstance.java
deleted file mode 100644
index 3747e69e5a5..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/InvocationActions/CS_SignalInstance.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions;
-
-// Imports
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_InteractionPoint;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-
-
-public class CS_SignalInstance extends SignalInstance {
-
- /*
- * The InteractionPoint on which this signal instance occured.
- */
- public CS_InteractionPoint interactionPoint;
-
- @Override
- public Value copy() {
- // Create a new signal instance with the same type, interaction point and feature values as this signal instance.
- CS_SignalInstance newValue = (CS_SignalInstance) (super.copy());
- newValue.type = this.type;
- newValue.interactionPoint = this.interactionPoint;
- return newValue;
- }
-
- @Override
- public Value new_() {
- // Create a new signal instance with no type or feature values.
- return new CS_SignalInstance();
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_InteractionPoint.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_InteractionPoint.java
deleted file mode 100644
index 0c91993c296..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_InteractionPoint.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses;
-
-// Imports
-import java.util.List;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.Execution;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.Port;
-
-
-public class CS_InteractionPoint extends Reference {
-
- /*
- * Represents the Reference to the CompositeObject owning this InteractionPort. NOTE: This is introduced to address requirement R3 (It represents
- * the "link from that instance to the instance of the owning classifier [...] through which communication is forwarded to the instance of the
- * owning classifier or through which the owning classifier communicates)
- */
- public CS_Reference owner;
-
- /*
- * The Port for which this InteractionPoint is a runtime manifestation
- */
- public Port definingPort;
-
- @Override
- public void startBehavior(Class classifier, List<ParameterValue> inputs) {
- // Overriden to do nothing
- }
-
- @Override
- public Execution dispatch(Operation operation) {
- // Delegates dispatching to the owning object
- return this.owner.dispatchIn(operation, this);
- }
-
- @Override
- public void send(SignalInstance signalInstance) {
- // Delegates sending to the owning object
- this.owner.sendIn(signalInstance, this);
- }
-
- @Override
- public Value copy() {
- // Create a new interaction point with the same referent as this interaction point.
- CS_InteractionPoint newValue = (CS_InteractionPoint) (super.copy());
- newValue.referent = this.referent;
- return newValue;
- }
-
- @Override
- public Value new_() {
- // Create a new interaction point with no referent.
- return new CS_InteractionPoint();
- }
-
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Link.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Link.java
deleted file mode 100644
index edbef84fedf..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Link.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses;
-
-// Imports
-import java.util.List;
-
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.FeatureValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Link;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.uml2.uml.StructuralFeature;
-
-
-public class CS_Link extends Link {
-
- public Boolean hasValueForAFeature(Value value) {
- // Returns true if the given value object is used as a value for a FeatureValue of this link
- return this.getFeature(value) != null;
- }
-
- public StructuralFeature getFeature(Value value) {
- List<FeatureValue> allFeatureValues = this.getFeatureValues();
- Integer i = 1;
- StructuralFeature feature = null;
- while (i <= allFeatureValues.size() && feature == null) {
- FeatureValue featureValue = allFeatureValues.get(i - 1);
- if (!featureValue.values.isEmpty() && featureValue.values.get(0).equals(value)) {
- feature = featureValue.feature;
- }
- i = i + 1;
- }
- return feature;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_LinkKind.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_LinkKind.java
deleted file mode 100644
index e6796162f9d..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_LinkKind.java
+++ /dev/null
@@ -1,18 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses;
-
-public enum CS_LinkKind {
- ToEnvironment, ToInternal, None;
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Object.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Object.java
deleted file mode 100644
index 19eba7c0a45..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Object.java
+++ /dev/null
@@ -1,720 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses;
-
-// Imports
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications.CS_DispatchOperationOfInterfaceStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications.CS_StructuralFeatureOfInterfaceAccessStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions.CS_RequestPropagationStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions.CS_SignalInstance;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.CallOperationActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Actions.BasicActions.SendSignalActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.ExtensionalValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.FeatureValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.Execution;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.ChoiceStrategy;
-import org.eclipse.uml2.uml.Class;
-import org.eclipse.uml2.uml.Classifier;
-import org.eclipse.uml2.uml.ConnectorKind;
-import org.eclipse.uml2.uml.Interface;
-import org.eclipse.uml2.uml.NamedElement;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.Signal;
-import org.eclipse.uml2.uml.StructuralFeature;
-
-
-public class CS_Object extends Object_ {
-
- public Execution dispatchIn(Operation operation, CS_InteractionPoint interactionPoint) {
- // If the interaction point refers to a behavior port, does nothing [for the moment... ?],
- // since the only kind of event supported in fUML is SignalEvent
- // If it does not refer to a behavior port, select appropriate delegation links
- // from interactionPoint, and propagates the operation call through
- // these links
- Execution execution = null;
- if (interactionPoint.definingPort.isBehavior()) {
- // Do nothing
- } else {
- boolean operationIsProvided = true;
- List<Reference> potentialTargets = new ArrayList<Reference>();
- List<CS_Link> cddLinks = this.getLinks(interactionPoint);
- Integer linkIndex = 1;
- while (linkIndex <= cddLinks.size()) {
- List<Reference> validTargets = this.selectTargetsForDispatching(cddLinks.get(linkIndex - 1), interactionPoint, ConnectorKind.DELEGATION_LITERAL, operation, operationIsProvided);
- Integer targetIndex = 1;
- while (targetIndex <= validTargets.size()) {
- potentialTargets.add(validTargets.get(targetIndex - 1));
- targetIndex = targetIndex + 1;
- }
- linkIndex = linkIndex + 1;
- }
- // If potentialTargets is empty, no delegation target have been found,
- // and the operation call will be lost
- if (!(potentialTargets.size() == 0)) {
- CS_RequestPropagationStrategy strategy = (CS_RequestPropagationStrategy) this.locus.factory.getStrategy("requestPropagation");
- // Choose one target non-deterministically
- List<Reference> targets = strategy.select(potentialTargets, new CallOperationActionActivation());
- Reference target = targets.get(0);
- execution = target.dispatch(operation);
- }
- }
- return execution;
- }
-
-
- public void sendIn(SignalInstance signalInstance, CS_InteractionPoint interactionPoint) {
- // If the interaction is a behavior port,
- // creates a CS_SignalInstance from the signal instance,
- // sets its interaction point,
- // and sends it to the target object using operation send
- // If this is not a behavior port,
- // select appropriate delegation targets from interactionPoint,
- // and propagates the signal to these targets
- if (interactionPoint.definingPort.isBehavior()) {
- CS_SignalInstance newSignalInstance = (CS_SignalInstance) signalInstance.copy();
- newSignalInstance.interactionPoint = interactionPoint;
- this.send(newSignalInstance);
- } else {
- boolean toInternal = true;
- List<Reference> potentialTargets = new ArrayList<Reference>();
- List<CS_Link> cddLinks = this.getLinks(interactionPoint);
- Integer linkIndex = 1;
- while (linkIndex <= cddLinks.size()) {
- List<Reference> validTargets = this.selectTargetsForSending(cddLinks.get(linkIndex - 1), interactionPoint, ConnectorKind.DELEGATION_LITERAL, signalInstance.type, toInternal);
- Integer targetIndex = 1;
- while (targetIndex <= validTargets.size()) {
- potentialTargets.add(validTargets.get(targetIndex - 1));
- targetIndex = targetIndex + 1;
- }
- linkIndex = linkIndex + 1;
- }
- // If potential targets is empty, no delegation target has been found,
- // and the signal is lost
- // Otherwise, do the following concurrently
- for (int i = 0; i < potentialTargets.size(); i++) {
- Reference target = potentialTargets.get(i);
- CS_SignalInstance newSignalInstance = (CS_SignalInstance) signalInstance.copy();
- newSignalInstance.interactionPoint = interactionPoint;
- target.send(newSignalInstance);
- }
- }
- }
-
-
- public List<Reference> selectTargetsForSending(CS_Link link, CS_InteractionPoint interactionPoint, ConnectorKind connectorKind, Signal signal, Boolean toInternal) {
- // From the given link, signal and interaction point, retrieves potential targets (i.e. end values of link)
- // through which request can be propagated
- // These targets are attached to interaction point through the given link, and respect the following rules:
- // - if toInternal is true, connectorKind must be Delegation, the given link has to target the internals of this CS_Object
- // - if toInternal is false, the given link has to target the environment of this CS_Object.
- List<Reference> potentialTargets = new ArrayList<Reference>();
- if (toInternal && connectorKind == ConnectorKind.DELEGATION_LITERAL) {
- if (this.getLinkKind(link, interactionPoint) == CS_LinkKind.ToInternal) {
- Integer i = 1;
- while (i <= link.getFeatureValues().size()) {
- List<Value> values = link.getFeatureValues().get(i - 1).values;
- if (!values.isEmpty()) {
- Integer j = 1;
- while (j <= values.size()) {
- Reference cddTarget = (Reference) values.get(j - 1);
- if (!cddTarget.equals(interactionPoint)) {
- potentialTargets.add(cddTarget);
- }
- j = j + 1;
- }
- }
- i = i + 1;
- }
- }
- } else { // to Environment
- if (this.getLinkKind(link, interactionPoint) == CS_LinkKind.ToEnvironment) {
- Integer i = 1;
- while (i <= link.getFeatureValues().size()) {
- List<Value> values = link.getFeatureValues().get(i - 1).values;
- if (!values.isEmpty() && values.get(0) instanceof Reference) {
- Reference cddTarget = (Reference) values.get(0);
- if (connectorKind == ConnectorKind.ASSEMBLY_LITERAL) {
- if (!(cddTarget instanceof CS_InteractionPoint)) { // This is an assembly link
- potentialTargets.add(cddTarget);
- } else {
- // This is an assembly if the interaction point is not a feature value
- // for a container of this CS_Object
- List<CS_Object> directContainers = this.getDirectContainers();
- boolean isAssembly = true;
- Integer j = 1;
- if (!this.hasValueForAFeature(cddTarget)) {
- while (isAssembly && j <= directContainers.size()) {
- CS_Object container = directContainers.get(j - 1);
- if (container.hasValueForAFeature(cddTarget)) {
- isAssembly = false;
- }
- j++;
- }
- } else {
- isAssembly = false;
- }
- if (isAssembly) {
- potentialTargets.add(cddTarget);
- }
- }
- } else { // delegation
- // This is a delegation if the target is an interaction point
- // and if this interaction is a feature value for a container of this CS_Object
- if (cddTarget instanceof CS_InteractionPoint) {
- List<CS_Object> directContainers = this.getDirectContainers();
- boolean isDelegation = false;
- Integer j = 1;
- while (!isDelegation && j <= directContainers.size()) {
- CS_Object container = directContainers.get(j - 1);
- if (container.hasValueForAFeature(cddTarget)) {
- isDelegation = true;
- }
- j++;
- }
- if (isDelegation) {
- potentialTargets.add(cddTarget);
- }
- }
- }
- }
- i = i + 1;
- }
- }
- }
- return potentialTargets;
- }
-
- public List<Reference> selectTargetsForDispatching(CS_Link link, CS_InteractionPoint interactionPoint, ConnectorKind connectorKind, Operation operation, Boolean toInternal) {
- // From the given link, operation and interaction point, retrieves potential targets (i.e. end values of link)
- // through which request can be propagated
- // These targets are attached to interaction point through the given link, and respect the following rules:
- // - if isProvided is true, connectorKind must be Delegation, the given link has to target the internals of this CS_Object,
- // and a valid target must provide the Operation
- // - if isProvided is false, the given link has to target the environment of this CS_Object.
- // - if connectorKind is assembly, a valid target has to provide the operation
- // - if connectorKind is delegation, a valid target has to require the operation
- List<Reference> potentialTargets = new ArrayList<Reference>();
- if (toInternal && connectorKind == ConnectorKind.DELEGATION_LITERAL) {
- if (this.getLinkKind(link, interactionPoint) == CS_LinkKind.ToInternal) {
- Integer i = 1;
- while (i <= link.getFeatureValues().size()) {
- List<Value> values = link.getFeatureValues().get(i - 1).values;
- if (!values.isEmpty() && values.get(0) instanceof Reference) {
- Reference cddTarget = (Reference) values.get(0);
- if (cddTarget != interactionPoint && this.isOperationProvided(cddTarget, operation)) {
- potentialTargets.add(cddTarget);
- }
- }
- i = i + 1;
- }
- }
- } else { // to environment
- if (this.getLinkKind(link, interactionPoint) == CS_LinkKind.ToEnvironment) {
- Integer i = 1;
- while (i <= link.getFeatureValues().size()) {
- List<Value> values = link.getFeatureValues().get(i - 1).values;
- if (!values.isEmpty() && values.get(0) instanceof Reference) {
- Reference cddTarget = (Reference) values.get(0);
- if (connectorKind == ConnectorKind.ASSEMBLY_LITERAL) {
- if (!(cddTarget instanceof CS_InteractionPoint)) { // This is an assembly link
- if (this.isOperationProvided(cddTarget, operation)) {
- potentialTargets.add(cddTarget);
- }
- } else {
- // This is an assembly if the interaction point is not a feature value
- // for a container of this CS_Object
- List<CS_Object> directContainers = this.getDirectContainers();
- boolean isAssembly = true;
- Integer j = 1;
- if (!this.hasValueForAFeature(cddTarget)) {
- while (isAssembly && j <= directContainers.size()) {
- CS_Object container = directContainers.get(j - 1);
- if (container.hasValueForAFeature(cddTarget)) {
- isAssembly = false;
- }
- j++;
- }
- } else {
- isAssembly = false;
- }
- if (isAssembly) {
- if (this.isOperationProvided(cddTarget, operation)) {
- potentialTargets.add(cddTarget);
- }
- }
- }
- } else { // delegation
- // This is a delegation if the target is an interaction point
- // and if this interaction is a feature value for a container of this CS_Object
- if (cddTarget instanceof CS_InteractionPoint) {
- List<CS_Object> directContainers = this.getDirectContainers();
- boolean isDelegation = false;
- Integer j = 1;
- while (!isDelegation && j <= directContainers.size()) {
- CS_Object container = directContainers.get(j - 1);
- if (container.hasValueForAFeature(cddTarget)) {
- isDelegation = true;
- }
- j++;
- }
- if (isDelegation) {
- if (this.isOperationRequired(cddTarget, operation)) {
- potentialTargets.add(cddTarget);
- }
- }
- }
- }
- }
- i = i + 1;
- }
- }
- }
- return potentialTargets;
- }
-
- public void sendOut(SignalInstance signalInstance, CS_InteractionPoint interactionPoint) {
- // Select appropriate delegation links from interactionPoint,
- // and propagates the signal instance through these links
- // Appropriate links are links which target elements
- // in the environment of this CS_Object.
- // These can be delegation links (i.e, the targeted elements must
- // require a reception for the signal) or assembly links (i.e., the target elements
- // must provide a reception for the signal)
-
- boolean notToInternal = false; // i.e. to environment
- List<Reference> allPotentialTargets = new ArrayList<Reference>();
- List<Reference> targetsForSendingIn = new ArrayList<Reference>();
- List<Reference> targetsForSendingOut = new ArrayList<Reference>();
-
- List<CS_Link> cddLinks = this.getLinks(interactionPoint);
- Integer linkIndex = 1;
- while (linkIndex <= cddLinks.size()) {
- List<Reference> validAssemblyTargets = this.selectTargetsForSending(cddLinks.get(linkIndex - 1), interactionPoint, ConnectorKind.ASSEMBLY_LITERAL, signalInstance.type, notToInternal);
- Integer targetIndex = 1;
- while (targetIndex <= validAssemblyTargets.size()) {
- allPotentialTargets.add(validAssemblyTargets.get(targetIndex - 1));
- targetsForSendingIn.add(validAssemblyTargets.get(targetIndex - 1));
- targetIndex = targetIndex + 1;
- }
- List<Reference> validDelegationTargets = this.selectTargetsForSending(cddLinks.get(linkIndex - 1), interactionPoint, ConnectorKind.DELEGATION_LITERAL, signalInstance.type, notToInternal);
- targetIndex = 1;
- while (targetIndex <= validDelegationTargets.size()) {
- allPotentialTargets.add(validDelegationTargets.get(targetIndex - 1));
- targetsForSendingOut.add(validDelegationTargets.get(targetIndex - 1));
- targetIndex = targetIndex + 1;
- }
- linkIndex = linkIndex + 1;
- }
-
- CS_RequestPropagationStrategy strategy = (CS_RequestPropagationStrategy) this.locus.factory.getStrategy("requestPropagation");
- List<Reference> selectedTargets = strategy.select(allPotentialTargets, new SendSignalActionActivation());
-
- for (int j = 0; j < selectedTargets.size(); j++) {
- Reference target = selectedTargets.get(j);
- for (int k = 0; k < targetsForSendingIn.size(); k++) {
- Reference cddTarget = targetsForSendingIn.get(k);
- if (cddTarget == target) {
- target.send(signalInstance);
- }
- }
- for (int k = 0; k < targetsForSendingOut.size(); k++) {
- // The target must be an interaction point
- // i.e. a delegation connector for a required reception can only target a port
- CS_InteractionPoint cddTarget = (CS_InteractionPoint) targetsForSendingOut.get(k);
- if (cddTarget == target) {
- CS_Reference owner = cddTarget.owner;
- owner.sendOut(signalInstance, cddTarget);
- }
- }
- }
- }
-
- public Execution dispatchOut(Operation operation, CS_InteractionPoint interactionPoint) {
- // Select appropriate delegation links from interactionPoint,
- // and propagates the operation call through these links
- // Appropriate links are links which target elements
- // in the environment of this CS_Object.
- // These can be delegation links (i.e, the targeted elements must
- // require the operation) or assembly links (i.e., the target elements
- // must provide the operation)
-
-
- Execution execution = null;
-
- boolean notToInternal = false; // i.e. to environment
- List<Reference> allPotentialTargets = new ArrayList<Reference>();
- List<Reference> targetsForDispatchingIn = new ArrayList<Reference>();
- List<Reference> targetsForDispatchingOut = new ArrayList<Reference>();
-
- List<CS_Link> cddLinks = this.getLinks(interactionPoint);
- Integer linkIndex = 1;
- while (linkIndex <= cddLinks.size()) {
- List<Reference> validAssemblyTargets = this.selectTargetsForDispatching(cddLinks.get(linkIndex - 1), interactionPoint, ConnectorKind.ASSEMBLY_LITERAL, operation, notToInternal);
- Integer targetIndex = 1;
- while (targetIndex <= validAssemblyTargets.size()) {
- allPotentialTargets.add(validAssemblyTargets.get(targetIndex - 1));
- targetsForDispatchingIn.add(validAssemblyTargets.get(targetIndex - 1));
- targetIndex = targetIndex + 1;
- }
- List<Reference> validDelegationTargets = this.selectTargetsForDispatching(cddLinks.get(linkIndex - 1), interactionPoint, ConnectorKind.DELEGATION_LITERAL, operation, notToInternal);
- targetIndex = 1;
- while (targetIndex <= validDelegationTargets.size()) {
- allPotentialTargets.add(validDelegationTargets.get(targetIndex - 1));
- targetsForDispatchingOut.add(validDelegationTargets.get(targetIndex - 1));
- targetIndex = targetIndex + 1;
- }
- linkIndex = linkIndex + 1;
- }
-
- CS_RequestPropagationStrategy strategy = (CS_RequestPropagationStrategy) this.locus.factory.getStrategy("requestPropagation");
- List<Reference> selectedTargets = strategy.select(allPotentialTargets, new SendSignalActionActivation());
-
- for (int j = 0; j < selectedTargets.size(); j++) {
- Reference target = selectedTargets.get(j);
- for (int k = 0; k < targetsForDispatchingIn.size() && execution == null; k++) {
- Reference cddTarget = targetsForDispatchingIn.get(k);
- if (cddTarget == target) {
- execution = target.dispatch(operation);
- }
- }
- for (int k = 0; k < targetsForDispatchingOut.size() && execution == null; k++) {
- // The target must be an interaction point
- // i.e. a delegation connector for a required operation can only target a port
- CS_InteractionPoint cddTarget = (CS_InteractionPoint) targetsForDispatchingOut.get(k);
- if (cddTarget == target) {
- CS_Reference owner = cddTarget.owner;
- execution = owner.dispatchOut(operation, cddTarget);
- }
- }
- }
- return execution;
- }
-
- @Override
- public FeatureValue getFeatureValue(StructuralFeature feature) {
- // In the case where the feature belongs to an Interface,
- // fUML semantics is extended in the sense that reading is
- // delegated to a CS_StructuralFeatureOfInterfaceAccessStrategy
- if (feature.getNamespace() instanceof Interface) {
- CS_StructuralFeatureOfInterfaceAccessStrategy readStrategy = (CS_StructuralFeatureOfInterfaceAccessStrategy) this.locus.factory.getStrategy("structuralFeature");
- return readStrategy.read(this, feature);
- } else {
- return super.getFeatureValue(feature);
- }
- }
-
- @Override
- public void setFeatureValue(StructuralFeature feature, List<Value> values, Integer position) {
- // In the case where the feature belongs to an Interface,
- // fUML semantics is extended in the sense that writing is
- // delegated to a CS_StructuralFeatureOfInterfaceAccessStrategy
- if (feature.getNamespace() instanceof Interface) {
- CS_StructuralFeatureOfInterfaceAccessStrategy writeStrategy = (CS_StructuralFeatureOfInterfaceAccessStrategy) this.locus.factory.getStrategy("structuralFeature");
- writeStrategy.write(this, feature, values, position);
- } else {
- super.setFeatureValue(feature, values, position);
- }
- }
-
- public Boolean contains(Object_ object) {
- // Determines if the object given as a parameter is directly
- // or indirectly contained by this CS_Object
- boolean objectIsContained = this.directlyContains(object);
- // if object is not directly contained, restart the research
- // recursively on the objects owned by this CS_Object
- for (int i = 0; i < this.featureValues.size() && !objectIsContained; i++) {
- FeatureValue featureValue = this.featureValues.get(i);
- List<Value> values = featureValue.values;
- for (int j = 0; j < values.size() && !objectIsContained; j++) {
- Value value = values.get(j);
- if (value instanceof CS_Object) {
- objectIsContained = ((CS_Object) value).contains(object);
- } else if (value instanceof CS_Reference) {
- CS_Object referent = ((CS_Reference) value).compositeReferent;
- objectIsContained = referent.contains(object);
- }
- }
- }
- return objectIsContained;
- }
-
- public Boolean directlyContains(Object_ object) {
- // Determines if the object given as a parameter is directly
- // contained by this CS_Object
- boolean objectIsContained = false;
- for (int i = 0; i < this.featureValues.size() && !objectIsContained; i++) {
- FeatureValue featureValue = this.featureValues.get(i);
- List<Value> values = featureValue.values;
- for (int j = 0; j < values.size() && !objectIsContained; j++) {
- Value value = values.get(j);
- if (value == object) {
- objectIsContained = true;
- } else if (value instanceof CS_Reference) {
- objectIsContained = (((CS_Reference) value).referent == object);
- }
- }
- }
- return objectIsContained;
- }
-
- public List<CS_Object> getDirectContainers() {
- // Retrieves all the extensional values at this locus which are direct
- // containers for this CS_Object
- // An extensional value is a direct container for an object if:
- // - it is a CS_Object
- // - it directly contains this object (i.e. CS_Object.directlyContains(Object)==true)
- List<CS_Object> containers = new ArrayList<CS_Object>();
- for (int i = 0; i < this.locus.extensionalValues.size(); i++) {
- ExtensionalValue extensionalValue = this.locus.extensionalValues.get(i);
- if (extensionalValue != this && extensionalValue instanceof CS_Object) {
- CS_Object cddContainer = (CS_Object) extensionalValue;
- if (cddContainer.directlyContains(this)) {
- containers.add(cddContainer);
- }
- }
- }
- return containers;
- }
-
- public Boolean isOperationProvided(Reference reference, Operation operation) {
- // Determines if the given reference provides the operation
- // If the reference is an interaction point, it provides the operation if this operation
- // is a member of one of its provided interfaces
- // If the reference is NOT an interactionPoint, it provides this operation if this operation is
- // an operation of one of its type, or one of its type provides a realization for this operation (in the case
- // where the namespace of this Operation is an interface)
- boolean isProvided = false;
- if (reference instanceof CS_InteractionPoint) {
- if (operation.getOwner() instanceof Interface) {
- // We have to look in provided interfaces of the port if
- // they define directly or indirectly the Operation
- Integer interfaceIndex = 1;
- // Iterates on provided interfaces of the port
- List<Interface> providedInterfaces = ((CS_InteractionPoint) reference).definingPort.getProvideds();
- while (interfaceIndex <= providedInterfaces.size() && !isProvided) {
- Interface interface_ = providedInterfaces.get(interfaceIndex - 1);
- // Iterates on members of the current Interface
- Integer memberIndex = 1;
- while (memberIndex <= interface_.getMembers().size() && !isProvided) {
- NamedElement cddOperation = interface_.getMembers().get(memberIndex - 1);
- if (cddOperation instanceof Operation) {
- isProvided = operation == cddOperation;
- }
- memberIndex = memberIndex + 1;
- }
- interfaceIndex = interfaceIndex + 1;
- }
- }
- } else {
- // We have to look if one of the Classifiers typing this reference
- // directly or indirectly provides this operation
- List<Classifier> types = reference.getTypes();
- Integer typeIndex = 1;
- while (typeIndex <= types.size() && !isProvided) {
- if (types.get(typeIndex - 1) instanceof Class) {
- Integer memberIndex = 1;
- List<NamedElement> members = ((Class) types.get(typeIndex - 1)).getMembers();
- while (memberIndex <= members.size() && !isProvided) {
- NamedElement cddOperation = members.get(memberIndex - 1);
- if (cddOperation instanceof Operation) {
- CS_DispatchOperationOfInterfaceStrategy strategy = new CS_DispatchOperationOfInterfaceStrategy();
- isProvided = strategy.operationsMatch((Operation) cddOperation, operation);
- }
- memberIndex = memberIndex + 1;
- }
- }
- typeIndex = typeIndex + 1;
- }
- }
- return isProvided;
- }
-
- public Boolean isOperationRequired(Reference reference, Operation operation) {
- // Determines if the given reference requires the operation
- // If the reference is an interaction point, it requires the operation if this operation
- // is a member of one of its required interfaces
- // If the reference is not a interaction point, it cannot require an operation
- boolean matches = false;
- if (reference instanceof CS_InteractionPoint) {
- Integer interfaceIndex = 1;
- // Iterates on provided interfaces of the port
- List<Interface> requiredInterfaces = ((CS_InteractionPoint) reference).definingPort.getRequireds();
- while (interfaceIndex <= requiredInterfaces.size() && !matches) {
- Interface interface_ = requiredInterfaces.get(interfaceIndex - 1);
- // Iterates on members of the current Interface
- Integer memberIndex = 1;
- while (memberIndex <= interface_.getMembers().size() && !matches) {
- NamedElement cddOperation = interface_.getMembers().get(memberIndex - 1);
- if (cddOperation instanceof Operation) {
- matches = operation == cddOperation;
- }
- memberIndex = memberIndex + 1;
- }
- interfaceIndex = interfaceIndex + 1;
- }
- }
- return matches;
- }
-
- public CS_LinkKind getLinkKind(CS_Link link, CS_InteractionPoint interactionPoint) {
- // If the given interaction point belongs to this object, and if the given interaction point is used as an end of the link,
- // then the links targets the environment of the object (enumeration literal ToEnvironment) if all the feature values of the link
- // (but one for the interaction point) refer to values which are not themselves values for features of this object.
- // If all the feature values of the link refer to values which are themselves values for features of this object,
- // the link targets the internals of the object (enumeration literal ToInternal). Otherwise, the link has no particular meaning
- // in the context defined by the object and the interaction point (enumeration literal None).
- if (!link.hasValueForAFeature(interactionPoint)) {
- return CS_LinkKind.None;
- }
- CS_LinkKind kind = CS_LinkKind.ToInternal;
- List<FeatureValue> featureValues = link.getFeatureValues();
- Integer i = 1;
- while (i <= featureValues.size() && kind != CS_LinkKind.None) {
- FeatureValue value = featureValues.get(i - 1);
- if (value.values.isEmpty()) {
- kind = CS_LinkKind.None;
- } else {
- Value v = value.values.get(0);
- boolean vIsAValueForAFeatureOfContext = false;
- if (v.equals(interactionPoint)) {
- vIsAValueForAFeatureOfContext = true;
- } else if (v instanceof CS_InteractionPoint) {
- v = ((CS_InteractionPoint) v).owner;
- vIsAValueForAFeatureOfContext = this.hasValueForAFeature(v);
- } else {
- vIsAValueForAFeatureOfContext = this.hasValueForAFeature(v);
- }
- if (!vIsAValueForAFeatureOfContext) {
- kind = CS_LinkKind.ToEnvironment;
- }
- }
- i = i + 1;
- }
- return kind;
- }
-
- public List<CS_Link> getLinks(CS_InteractionPoint interactionPoint) {
- // Get all links (available at the locus of this object) where the given interaction point is used as a feature value
- // (i.e. the interaction is an end such links)
- List<ExtensionalValue> extensionalValues = this.locus.extensionalValues;
- Integer i = 1;
- List<CS_Link> connectorInstances = new ArrayList<CS_Link>();
- while (i <= extensionalValues.size()) {
- ExtensionalValue value = extensionalValues.get(i - 1);
- if (value instanceof CS_Link) {
- CS_Link link = (CS_Link) value;
- if (this.getLinkKind(link, interactionPoint) != CS_LinkKind.None) {
- connectorInstances.add(link);
- }
- }
- i = i + 1;
- }
- return connectorInstances;
- }
-
- public Boolean hasValueForAFeature(Value value) {
- // Returns true if the given value object is used as a value for a feature value of this object
- List<FeatureValue> allFeatureValues = this.getFeatureValues();
- Integer i = 1;
- boolean isAValue = false;
- while (i <= allFeatureValues.size() && !isAValue) {
- FeatureValue featureValue = allFeatureValues.get(i - 1);
- if (!featureValue.values.isEmpty()) {
- List<Value> valuesForCurrentFeature = featureValue.values;
- Integer j = 1;
- while (j <= valuesForCurrentFeature.size() && !isAValue) {
- isAValue = featureValue.values.get(j - 1).equals(value);
- j = j + 1;
- }
- }
- i = i + 1;
- }
- return isAValue;
- }
-
- public void sendOut(SignalInstance signalInstance, Port onPort) {
- // Select a CS_InteractionPoint value playing onPort,
- // and send the signal instance to this interaction point
- FeatureValue featureValue = this.getFeatureValue(onPort);
- List<Value> values = featureValue.values;
- List<Reference> potentialTargets = new ArrayList<Reference>();
- for (int i = 0; i < values.size(); i++) {
- potentialTargets.add((Reference) values.get(i));
- }
- CS_RequestPropagationStrategy strategy = (CS_RequestPropagationStrategy) this.locus.factory.getStrategy("requestPropagation");
- List<Reference> targets = strategy.select(potentialTargets, new SendSignalActionActivation());
- for (int i = 0; i < targets.size(); i++) {
- CS_InteractionPoint target = (CS_InteractionPoint) targets.get(i);
- this.sendOut(signalInstance, target);
- }
- }
-
- public Execution dispatchOut(Operation operation, Port onPort) {
- // Select a CS_InteractionPoint value playing onPort,
- // and dispatches the operation to this interaction point
- Execution execution = null;
- FeatureValue featureValue = this.getFeatureValue(onPort);
- List<Value> values = featureValue.values;
- List<Reference> potentialTargets = new ArrayList<Reference>();
- for (int i = 0; i < values.size(); i++) {
- potentialTargets.add((Reference) values.get(i));
- }
- CS_RequestPropagationStrategy strategy = (CS_RequestPropagationStrategy) this.locus.factory.getStrategy("requestPropagation");
- List<Reference> targets = strategy.select(potentialTargets, new CallOperationActionActivation());
- // if targets is empty, no dispatch target has been found,
- // and the operation call is lost
- if (targets.size() >= 1) {
- CS_InteractionPoint target = (CS_InteractionPoint) targets.get(0);
- execution = this.dispatchOut(operation, target);
- }
- return execution;
- }
-
- public Execution dispatchIn(Operation operation, Port onPort) {
- // delegates dispatching to composite referent
- // Select a CS_InteractionPoint value playing onPort,
- // and dispatches the operation call to this interaction point
- FeatureValue featureValue = this.getFeatureValue(onPort);
- List<Value> values = featureValue.values;
- Integer choice = ((ChoiceStrategy) this.locus.factory.getStrategy("choice")).choose(featureValue.values.size()) - 1;
- CS_InteractionPoint interactionPoint = (CS_InteractionPoint) values.get(choice);
- return interactionPoint.dispatch(operation);
- }
-
- public void sendIn(SignalInstance signalInstance, Port onPort) {
- // Select a Reference value playing onPort,
- // and send the signal instance to this interaction point
- FeatureValue featureValue = this.getFeatureValue(onPort);
- List<Value> values = featureValue.values;
- List<Reference> potentialTargets = new ArrayList<Reference>();
- for (int i = 0; i < values.size(); i++) {
- potentialTargets.add((Reference) values.get(i));
- }
- CS_RequestPropagationStrategy strategy = (CS_RequestPropagationStrategy) this.locus.factory.getStrategy("requestPropagation");
- List<Reference> targets = strategy.select(potentialTargets, new SendSignalActionActivation());
- for (int i = 0; i < targets.size(); i++) {
- Reference target = targets.get(i);
- target.send(signalInstance);
- }
- }
-
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Reference.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Reference.java
deleted file mode 100644
index 160e9a57b61..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Reference.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses;
-
-// Imports
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.Execution;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
-import org.eclipse.uml2.uml.Operation;
-import org.eclipse.uml2.uml.Port;
-
-
-public class CS_Reference extends Reference {
-
- /*
- * The composite object referenced by this ReferenceToCompositeStructure. This property subsets Reference::referent.
- */
- public CS_Object compositeReferent;
-
- public Execution dispatchIn(Operation operation, CS_InteractionPoint interactionPoint) {
- // Delegates dispatching to composite referent
- return this.compositeReferent.dispatchIn(operation, interactionPoint);
- }
-
- public void sendIn(SignalInstance signalInstance, CS_InteractionPoint interactionPoint) {
- // delegates sending to composite referent
- this.compositeReferent.sendIn(signalInstance, interactionPoint);
- }
-
- public void sendOut(SignalInstance signalInstance, Port onPort) {
- // delegates sending to composite referent
- this.compositeReferent.sendOut(signalInstance, onPort);
- }
-
- public Execution dispatchOut(Operation operation, Port onPort) {
- // delegates dispatching to composite referent
- return this.compositeReferent.dispatchOut(operation, onPort);
- }
-
- public Execution dispatchIn(Operation operation, Port onPort) {
- // delegates dispatching to composite referent
- return this.compositeReferent.dispatchIn(operation, onPort);
- }
-
- public void sendIn(SignalInstance signalInstance, Port onPort) {
- // delegates sending to composite referent
- this.compositeReferent.sendIn(signalInstance, onPort);
- }
-
- public Execution dispatchOut(Operation operation, CS_InteractionPoint interactionPoint) {
- // Delegates dispatching (through the interaction point, to the environment)
- // to compositeReferent
- return this.compositeReferent.dispatchOut(operation, interactionPoint);
- }
-
- public void sendOut(SignalInstance signalInstance, CS_InteractionPoint interactionPoint) {
- // Delegates sending (through the interaction point, to the environment)
- // to compositeReferent
- this.compositeReferent.sendOut(signalInstance, interactionPoint);
- }
-
- @Override
- public Value copy() {
- // Create a new reference with the same referent and composite referent as this reference.
- CS_Reference newValue = new CS_Reference();
- newValue.referent = this.referent;
- newValue.compositeReferent = this.compositeReferent;
- return newValue;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_ExecutionFactory.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_ExecutionFactory.java
deleted file mode 100644
index 68298985456..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_ExecutionFactory.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3;
-
-// Imports
-import org.eclipse.papyrus.moka.composites.Semantics.Actions.CompleteActions.CS_ReadExtentActionActivation;
-import org.eclipse.papyrus.moka.composites.Semantics.Actions.CompleteActions.CS_ReadIsClassifiedObjectActionActivation;
-import org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions.CS_AddStructuralFeatureValueActionActivation;
-import org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions.CS_ClearStructuralFeatureValueActionActivation;
-import org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions.CS_CreateLinkActionActivation;
-import org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions.CS_CreateObjectActionActivation;
-import org.eclipse.papyrus.moka.composites.Semantics.Actions.IntermediateActions.CS_ReadSelfActionActivation;
-import org.eclipse.papyrus.moka.composites.Semantics.Classes.Kernel.CS_InstanceValueEvaluation;
-import org.eclipse.papyrus.moka.composites.Semantics.Classes.Kernel.CS_OpaqueExpressionEvaluation;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions.CS_AcceptEventActionActivation;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions.CS_CallOperationActionActivation;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions.CS_SendSignalActionActivation;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.SemanticVisitor;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL3.ExecutionFactoryL3;
-import org.eclipse.uml2.uml.AcceptEventAction;
-import org.eclipse.uml2.uml.AddStructuralFeatureValueAction;
-import org.eclipse.uml2.uml.CallOperationAction;
-import org.eclipse.uml2.uml.ClearStructuralFeatureAction;
-import org.eclipse.uml2.uml.CreateLinkAction;
-import org.eclipse.uml2.uml.CreateObjectAction;
-import org.eclipse.uml2.uml.Element;
-import org.eclipse.uml2.uml.InstanceValue;
-import org.eclipse.uml2.uml.OpaqueExpression;
-import org.eclipse.uml2.uml.ReadExtentAction;
-import org.eclipse.uml2.uml.ReadIsClassifiedObjectAction;
-import org.eclipse.uml2.uml.ReadSelfAction;
-import org.eclipse.uml2.uml.SendSignalAction;
-
-
-public class CS_ExecutionFactory extends ExecutionFactoryL3 {
-
- @Override
- public SemanticVisitor instantiateVisitor(Element element) {
- // Extends fUML semantics in the sense that newly introduced
- // semantic visitors are instantiated instead of fUML visitors
-
- SemanticVisitor visitor = null;
- if (element instanceof ReadExtentAction) {
- visitor = new CS_ReadExtentActionActivation();
- } else if (element instanceof ReadIsClassifiedObjectAction) {
- visitor = new CS_ReadIsClassifiedObjectActionActivation();
- } else if (element instanceof AddStructuralFeatureValueAction) {
- visitor = new CS_AddStructuralFeatureValueActionActivation();
- } else if (element instanceof ClearStructuralFeatureAction) {
- visitor = new CS_ClearStructuralFeatureValueActionActivation();
- } else if (element instanceof CreateLinkAction) {
- visitor = new CS_CreateLinkActionActivation();
- } else if (element instanceof CreateObjectAction) {
- visitor = new CS_CreateObjectActionActivation();
- } else if (element instanceof ReadSelfAction) {
- visitor = new CS_ReadSelfActionActivation();
- } else if (element instanceof InstanceValue) {
- visitor = new CS_InstanceValueEvaluation();
- } else if (element instanceof AcceptEventAction) {
- visitor = new CS_AcceptEventActionActivation();
- } else if (element instanceof CallOperationAction) {
- visitor = new CS_CallOperationActionActivation();
- } else if (element instanceof SendSignalAction) {
- visitor = new CS_SendSignalActionActivation();
- } else if (element instanceof OpaqueExpression) {
- visitor = new CS_OpaqueExpressionEvaluation();
- } else {
- visitor = super.instantiateVisitor(element);
- }
- return visitor;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_Executor.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_Executor.java
deleted file mode 100644
index 29e82ec652d..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_Executor.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3;
-
-// Imports
-import java.util.List;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
-import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.ParameterValue;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Executor;
-import org.eclipse.papyrus.moka.fuml.debug.Debug;
-import org.eclipse.uml2.uml.Class;
-
-
-public class CS_Executor extends Executor {
-
- @Override
- public Reference start(Class type, List<ParameterValue> inputs) {
- // Instantiate the given class and start any behavior of the resulting
- // object.
- // (The behavior of an object includes any classifier behaviors for an
- // active object or the class of the object itself, if that is a
- // behavior.)
- // fUML semantics is extended in the sense that when the instantiated object
- // is a CS_Object, a CS_Reference is returned (instead of a Reference)
-
- Debug.println("[start] Starting " + type.getName() + "...");
-
- Object_ object = this.locus.instantiate(type);
-
- Debug.println("[start] Object = " + object);
- object.startBehavior(type, inputs);
-
- Reference reference;
- if (object instanceof CS_Object) {
- reference = new CS_Reference();
- ((CS_Reference) reference).compositeReferent = (CS_Object) object;
- } else {
- reference = new Reference();
- }
- reference.referent = object;
-
- return reference;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_Locus.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_Locus.java
deleted file mode 100644
index b0ad18f3bb3..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/Loci/LociL3/CS_Locus.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3;
-
-// Imports
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.StructuredClasses.CS_Object;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Locus;
-import org.eclipse.uml2.uml.Behavior;
-import org.eclipse.uml2.uml.Class;
-
-
-public class CS_Locus extends Locus {
-
- @Override
- public Object_ instantiate(Class type) {
- // Extends fUML semantics by instantiating a CS_Object
- // in the case where type is not a Behavior.
- // Otherwise behaves like in fUML
-
- Object_ object = null;
-
- if (type instanceof Behavior) {
- object = super.instantiate(type);
- } else {
- object = new CS_Object();
- object.types.add(type);
- object.createFeatureValues();
- this.add(object);
- }
-
- return object;
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/plugin.xml b/extraplugins/moka/org.eclipse.papyrus.moka.composites/plugin.xml
deleted file mode 100644
index f20bf8d8d6a..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/plugin.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension
- point="org.eclipse.papyrus.moka.engine">
- <engine
- class="org.eclipse.papyrus.moka.composites.CompositeStructuresExecutionEngine"
- description="PSCS Execution Engine (single-threaded implementation)"
- >
- </engine>
- </extension>
-
-</plugin>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/pom.xml b/extraplugins/moka/org.eclipse.papyrus.moka.composites/pom.xml
deleted file mode 100644
index 7c58471696d..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/pom.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <artifactId>org.eclipse.papyrus.extra.releng</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>1.2.0-SNAPSHOT</version>
- <relativePath>../../../releng/extra</relativePath>
- </parent>
- <artifactId>org.eclipse.papyrus.moka.composites</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>1.2.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
-</project> \ No newline at end of file
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/src/org/eclipse/papyrus/moka/composites/Activator.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/src/org/eclipse/papyrus/moka/composites/Activator.java
deleted file mode 100644
index ba3a41962d5..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/src/org/eclipse/papyrus/moka/composites/Activator.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites;
-
-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.moka.composites"; //$NON-NLS-1$
-
- // The shared instance
- private static Activator plugin;
-
- /**
- * 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;
- }
-
- /*
- * (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/moka/org.eclipse.papyrus.moka.composites/src/org/eclipse/papyrus/moka/composites/CompositeStructuresExecutionEngine.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/src/org/eclipse/papyrus/moka/composites/CompositeStructuresExecutionEngine.java
deleted file mode 100644
index f39fa4c31dc..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/src/org/eclipse/papyrus/moka/composites/CompositeStructuresExecutionEngine.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA LIST.
- *
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.moka.composites;
-
-import org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications.CS_DispatchOperationOfInterfaceStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.CommonBehaviors.Communications.CS_NameBased_StructuralFeatureOfInterfaceAccessStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions.CS_DefaultConstructStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.InvocationActions.CS_DefaultRequestPropagationStrategy;
-import org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3.CS_ExecutionFactory;
-import org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3.CS_Executor;
-import org.eclipse.papyrus.moka.composites.Semantics.Loci.LociL3.CS_Locus;
-import org.eclipse.papyrus.moka.fuml.FUMLExecutionEngineForMoka;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Locus;
-import org.eclipse.uml2.uml.Behavior;
-
-public class CompositeStructuresExecutionEngine extends FUMLExecutionEngineForMoka {
-
- // Starts the execution of the given behavior
- @Override
- public void start(Behavior behavior) {
- if (behavior != null) {
-
- main = behavior;
-
- // creates the locus, executor and execution factory
- this.locus = new CS_Locus();
- locus.setExecutor(new CS_Executor());
- locus.setFactory(new CS_ExecutionFactory());
-
- // initializes built-in primitive types
- this.initializeBuiltInPrimitiveTypes(locus);
-
- // Initializes opaque behavior executions
- this.registerOpaqueBehaviorExecutions(locus);
-
- // Initializes semantic strategies
- this.registerSemanticStrategies(locus);
-
- // Initializes system services
- this.registerSystemServices(locus);
-
- // Initializes arguments
- this.initializeArguments(this.args);
-
- // Finally launches the execution
- this.started = true;
-
- // Finally launches the execution
- locus.executor.execute(main, null, this.arguments);
- }
- }
-
- // Register semantic strategies available in the environment
- @Override
- protected void registerSemanticStrategies(Locus locus) {
- super.registerSemanticStrategies(locus);
- locus.factory.setStrategy(new CS_DispatchOperationOfInterfaceStrategy());
- locus.factory.setStrategy(new CS_NameBased_StructuralFeatureOfInterfaceAccessStrategy());
- locus.factory.setStrategy(new CS_DefaultRequestPropagationStrategy());
- locus.factory.setStrategy(new CS_DefaultConstructStrategy());
- }
-}
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.classpath b/extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.classpath
deleted file mode 100644
index ad32c83a788..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.classpath
+++ /dev/null
@@ -1,7 +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.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.project b/extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.project
deleted file mode 100644
index 0d1315beb0a..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary</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.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.settings/org.eclipse.jdt.core.prefs b/extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 94d61f00da6..00000000000
--- a/extraplugins/moka/org.eclipse.papyrus.moka.fuml.activeobjectcontrollerlibrary/.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.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16