Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/emf/org.eclipse.papyrus.infra.emf.types')
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.classpath8
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.project28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/META-INF/MANIFEST.MF43
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/about.html28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/build.properties20
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/Values.gifbin0 -> 361 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ConstantValue.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ListValue.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gifbin0 -> 223 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ConstantValue.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/DynamicValue.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/FeatureToSet.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/HierarchyPermission.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/InvariantContainerRuleConfiguration.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ListValue.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/QueryExecutionValue.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesActionConfiguration.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesAdviceConfiguration.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ViewToDisplay.gifbin0 -> 129 bytes
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.ecore18
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.genmodel24
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.ecore26
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.genmodel30
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.properties44
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.xml115
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/pom.xml12
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ConstantValue.java60
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/DynamicValue.java27
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureToSet.java87
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValue.java28
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ListValue.java50
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/QueryExecutionValue.java27
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceConfiguration.java52
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceFactory.java88
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdvicePackage.java580
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ConstantValueImpl.java186
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/DynamicValueImpl.java47
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureToSetImpl.java254
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureValueImpl.java49
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ListValueImpl.java160
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/QueryExecutionValueImpl.java47
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceConfigurationImpl.java162
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceFactoryImpl.java149
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdvicePackageImpl.java377
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ConstantValueItemProvider.java223
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/DynamicValueItemProvider.java104
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureToSetItemProvider.java219
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureValueItemProvider.java119
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ListValueItemProvider.java162
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/QueryExecutionValueItemProvider.java104
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceConfigurationItemProvider.java170
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceEditPlugin.java108
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceItemProviderAdapterFactory.java409
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceAdapterFactory.java315
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceFactoryImpl.java51
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceImpl.java38
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceSwitch.java320
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/HierarchyPermission.java114
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleConfiguration.java52
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleFactory.java61
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRulePackage.java305
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/HierarchyPermissionImpl.java281
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleConfigurationImpl.java162
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleFactoryImpl.java116
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRulePackageImpl.java253
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/HierarchyPermissionItemProvider.java216
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleConfigurationItemProvider.java167
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleEditPlugin.java108
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleItemProviderAdapterFactory.java353
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleAdapterFactory.java168
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceFactoryImpl.java51
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceImpl.java38
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleSwitch.java159
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/Activator.java63
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValueUtils.java133
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdvice.java175
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdviceFactory.java31
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterNotfoundException.java71
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterRegistry.java154
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToBooleanConverter.java51
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToIntegerConverter.java50
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToBooleanConverter.java39
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEENumConverter.java61
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEnumerationConverter.java51
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToIntegerConverter.java38
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToStringConverter.java39
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRule.java124
123 files changed, 9211 insertions, 0 deletions
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.classpath b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.classpath
new file mode 100644
index 00000000000..6a42377b56a
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.classpath
@@ -0,0 +1,8 @@
+<?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.7"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="src-gen"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.project b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.project
new file mode 100644
index 00000000000..6c62ecfe762
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.infra.emf.types</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.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.core.prefs b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000000..f08be2b06c4
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,291 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=260
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=false
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=260
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=5
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.ui.prefs b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 00000000000..954281dbc31
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,68 @@
+cleanup.add_default_serial_version_id=true
+cleanup.add_generated_serial_version_id=false
+cleanup.add_missing_annotations=true
+cleanup.add_missing_deprecated_annotations=true
+cleanup.add_missing_methods=false
+cleanup.add_missing_nls_tags=false
+cleanup.add_missing_override_annotations=true
+cleanup.add_missing_override_annotations_interface_methods=true
+cleanup.add_serial_version_id=false
+cleanup.always_use_blocks=true
+cleanup.always_use_parentheses_in_expressions=false
+cleanup.always_use_this_for_non_static_field_access=false
+cleanup.always_use_this_for_non_static_method_access=false
+cleanup.convert_functional_interfaces=false
+cleanup.convert_to_enhanced_for_loop=false
+cleanup.correct_indentation=false
+cleanup.format_source_code=false
+cleanup.format_source_code_changes_only=false
+cleanup.insert_inferred_type_arguments=false
+cleanup.make_local_variable_final=true
+cleanup.make_parameters_final=false
+cleanup.make_private_fields_final=true
+cleanup.make_type_abstract_if_missing_method=false
+cleanup.make_variable_declarations_final=false
+cleanup.never_use_blocks=false
+cleanup.never_use_parentheses_in_expressions=true
+cleanup.organize_imports=false
+cleanup.qualify_static_field_accesses_with_declaring_class=false
+cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+cleanup.qualify_static_member_accesses_with_declaring_class=true
+cleanup.qualify_static_method_accesses_with_declaring_class=false
+cleanup.remove_private_constructors=true
+cleanup.remove_redundant_type_arguments=true
+cleanup.remove_trailing_whitespaces=true
+cleanup.remove_trailing_whitespaces_all=true
+cleanup.remove_trailing_whitespaces_ignore_empty=false
+cleanup.remove_unnecessary_casts=true
+cleanup.remove_unnecessary_nls_tags=true
+cleanup.remove_unused_imports=true
+cleanup.remove_unused_local_variables=false
+cleanup.remove_unused_private_fields=true
+cleanup.remove_unused_private_members=false
+cleanup.remove_unused_private_methods=true
+cleanup.remove_unused_private_types=true
+cleanup.sort_members=false
+cleanup.sort_members_all=false
+cleanup.use_anonymous_class_creation=false
+cleanup.use_blocks=true
+cleanup.use_blocks_only_for_return_and_throw=false
+cleanup.use_lambda=true
+cleanup.use_parentheses_in_expressions=false
+cleanup.use_this_for_non_static_field_access=false
+cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+cleanup.use_this_for_non_static_method_access=false
+cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+cleanup.use_type_arguments=false
+cleanup_profile=_Papyrus
+cleanup_settings_version=2
+eclipse.preferences.version=1
+formatter_profile=_Papyrus
+formatter_settings_version=12
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;com;
+org.eclipse.jdt.ui.javadoc=true
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.staticondemandthreshold=99
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="false" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * Constructor.\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="filecomment_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*****************************************************************************\n * Copyright (c) ${year} CEA LIST and others.\n * \n * All rights reserved. This program and the accompanying materials\n * are made available under the terms of the Eclipse Public License v1.0\n * which accompanies this distribution, and is available at\n * http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * CEA LIST - Initial API and implementation\n * \n *****************************************************************************/\n</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/**\n * ${see_to_overridden}\n *\n * ${tags}\n */</template><template autoinsert\="false" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${see_to_target}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbody_context" deleted\="false" description\="Code in new annotation type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/META-INF/MANIFEST.MF b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..d56fcb5df95
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/META-INF/MANIFEST.MF
@@ -0,0 +1,43 @@
+Manifest-Version: 1.0
+Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0",
+ org.eclipse.emf.ecore;visibility:=reexport,
+ org.eclipse.emf.ecore.xmi;visibility:=reexport,
+ org.eclipse.papyrus.infra.types;visibility:=reexport,
+ org.eclipse.papyrus.infra.types.rulebased;visibility:=reexport,
+ org.eclipse.papyrus.infra.constraints;visibility:=reexport,
+ org.eclipse.papyrus.infra.types;visibility:=reexport,
+ org.eclipse.uml2.uml;visibility:=reexport,
+ org.eclipse.uml2.types;visibility:=reexport,
+ org.eclipse.papyrus.infra.properties;visibility:=reexport,
+ org.eclipse.papyrus.infra.types.rulebased;bundle-version="1.2.0";visibility:=reexport,
+ org.eclipse.emf.edit;visibility:=reexport,
+ org.eclipse.papyrus.infra.constraints.edit;visibility:=reexport,
+ org.eclipse.emf.ecore.edit;visibility:=reexport,
+ org.eclipse.papyrus.infra.types.edit;visibility:=reexport,
+ org.eclipse.papyrus.infra.properties.edit;bundle-version="1.2.0";visibility:=reexport,
+ org.eclipse.uml2.uml.edit;visibility:=reexport,
+ org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0",
+ org.eclipse.papyrus.infra.services.edit;bundle-version="1.2.0",
+ org.eclipse.gmf.runtime.emf.type.core;bundle-version="1.4.0",
+ org.eclipse.core.databinding;bundle-version="1.4.1",
+ org.eclipse.papyrus.infra.core;bundle-version="1.2.0"
+Export-Package: org.eclipse.papyrus.infra.emf.types,
+ org.eclipse.papyrus.infra.emf.types.advices.values,
+ org.eclipse.papyrus.infra.emf.types.advices.values.impl,
+ org.eclipse.papyrus.infra.emf.types.advices.values.provider,
+ org.eclipse.papyrus.infra.emf.types.advices.values.util,
+ org.eclipse.papyrus.infra.emf.types.converter,
+ org.eclipse.papyrus.infra.emf.types.rules.container,
+ org.eclipse.papyrus.infra.emf.types.rules.container.impl,
+ org.eclipse.papyrus.infra.emf.types.rules.container.provider,
+ org.eclipse.papyrus.infra.emf.types.rules.container.util
+Bundle-Vendor: %providerName
+Bundle-ActivationPolicy: lazy
+Bundle-ClassPath: .
+Bundle-Version: 1.2.0.qualifier
+Bundle-Name: %pluginName
+Bundle-Localization: plugin
+Bundle-ManifestVersion: 2
+Bundle-Activator: org.eclipse.papyrus.infra.emf.types.rules.container.provider.InvariantContainerRuleEditPlugin$Implementation
+Bundle-SymbolicName: org.eclipse.papyrus.infra.emf.types;singleton:=true
+Bundle-RequiredExecutionEnvironment: JavaSE-1.7
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/about.html b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/about.html
new file mode 100644
index 00000000000..82d49bf5f81
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/about.html
@@ -0,0 +1,28 @@
+<!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/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/build.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/build.properties
new file mode 100644
index 00000000000..130a42b93dc
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/build.properties
@@ -0,0 +1,20 @@
+# Copyright (c) 2014 CEA LIST.
+#
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# CEA LIST - Initial API and implementation
+
+bin.includes = .,\
+ icons/,\
+ META-INF/,\
+ plugin.xml,\
+ plugin.properties
+jars.compile.order = .
+source.. = src-gen/,\
+ src/
+output.. = bin/
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/Values.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/Values.gif
new file mode 100644
index 00000000000..f1f019535ea
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/Values.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif
new file mode 100644
index 00000000000..889f3af917f
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeInvariantRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif
new file mode 100644
index 00000000000..fdd9def4faa
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateCompositeRuleConfiguration_composedRules_InvariantContainerRuleConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif
new file mode 100644
index 00000000000..dac4138ca01
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif
new file mode 100644
index 00000000000..755e4ca7a46
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif
new file mode 100644
index 00000000000..8ce82e3f6c7
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif
new file mode 100644
index 00000000000..fe708946d58
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif
new file mode 100644
index 00000000000..4aaad5a4cd7
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif
new file mode 100644
index 00000000000..44afafd55da
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif
new file mode 100644
index 00000000000..f93c92d061a
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif
new file mode 100644
index 00000000000..5ef9a94e8da
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif
new file mode 100644
index 00000000000..bbf242da6a9
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralReal.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif
new file mode 100644
index 00000000000..f08356ef9bb
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif
new file mode 100644
index 00000000000..37dad615792
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif
new file mode 100644
index 00000000000..8ce82e3f6c7
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif
new file mode 100644
index 00000000000..4aaad5a4cd7
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif
new file mode 100644
index 00000000000..33e07420851
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif
new file mode 100644
index 00000000000..e180c4cf7ca
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif
new file mode 100644
index 00000000000..a149010ace4
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_RuntimeValuesEditionAdviceConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif
new file mode 100644
index 00000000000..1cbba050ada
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesActionConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif
new file mode 100644
index 00000000000..a3f9e7cf231
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateElementTypeSetConfiguration_adviceBindingsConfigurations_SetValuesAdviceConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif
new file mode 100644
index 00000000000..03366e35d0f
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif
new file mode 100644
index 00000000000..8997497557c
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif
new file mode 100644
index 00000000000..c048169804a
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif
new file mode 100644
index 00000000000..7ca3215e5f4
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantContainerRuleConfiguration_permissions_HierarchyPermission.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif
new file mode 100644
index 00000000000..ca9cabaa91c
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateInvariantTypeConfiguration_invariantRuleConfiguration_InvariantContainerRuleConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ConstantValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ConstantValue.gif
new file mode 100644
index 00000000000..fdf618977f6
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ConstantValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ListValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ListValue.gif
new file mode 100644
index 00000000000..7cb2132b359
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_ListValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif
new file mode 100644
index 00000000000..05dc6202681
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateListValue_values_QueryExecutionValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif
new file mode 100644
index 00000000000..5389eace04f
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateNotInvariantRuleConfiguration_composedRule_InvariantContainerRuleConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif
new file mode 100644
index 00000000000..64a27cb9075
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuleBasedTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif
new file mode 100644
index 00000000000..06ebb8d9145
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuledTypeConfiguration_ruleConfiguration_InvariantContainerRuleConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif
new file mode 100644
index 00000000000..320d1178250
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionActionConfiguration_viewsToDisplay_ViewToDisplay.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif
new file mode 100644
index 00000000000..1d24f793204
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateRuntimeValuesEditionAdviceConfiguration_viewsToDisplay_ViewToDisplay.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif
new file mode 100644
index 00000000000..bf19516c7a4
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesActionConfiguration_featuresToSet_FeatureToSet.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif
new file mode 100644
index 00000000000..6878b7d54b1
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/ctool16/CreateSetValuesAdviceConfiguration_featuresToSet_FeatureToSet.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ConstantValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ConstantValue.gif
new file mode 100644
index 00000000000..e4bc22dd17e
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ConstantValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/DynamicValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/DynamicValue.gif
new file mode 100644
index 00000000000..ed874747401
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/DynamicValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/FeatureToSet.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/FeatureToSet.gif
new file mode 100644
index 00000000000..5a9bc7514fa
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/FeatureToSet.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/HierarchyPermission.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/HierarchyPermission.gif
new file mode 100644
index 00000000000..c4a8af41844
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/HierarchyPermission.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/InvariantContainerRuleConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/InvariantContainerRuleConfiguration.gif
new file mode 100644
index 00000000000..89ad5da38ab
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/InvariantContainerRuleConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ListValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ListValue.gif
new file mode 100644
index 00000000000..c3370c7ddd5
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ListValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/QueryExecutionValue.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/QueryExecutionValue.gif
new file mode 100644
index 00000000000..ed874747401
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/QueryExecutionValue.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif
new file mode 100644
index 00000000000..9250fecbffd
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionActionConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif
new file mode 100644
index 00000000000..48e3cf22687
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/RuntimeValuesEditionAdviceConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesActionConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesActionConfiguration.gif
new file mode 100644
index 00000000000..7b7c428c715
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesActionConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesAdviceConfiguration.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesAdviceConfiguration.gif
new file mode 100644
index 00000000000..33a997a1606
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/SetValuesAdviceConfiguration.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ViewToDisplay.gif b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ViewToDisplay.gif
new file mode 100644
index 00000000000..83afb9b3c9a
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/icons/full/obj16/ViewToDisplay.gif
Binary files differ
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.ecore b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.ecore
new file mode 100644
index 00000000000..d35d1f3e65b
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.ecore
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="container" nsURI="http://www.eclipse.org/papyrus/emf/types/invariantcontainerrule/1.1"
+ nsPrefix="invariantcontainerrule">
+ <eClassifiers xsi:type="ecore:EClass" name="InvariantContainerRuleConfiguration"
+ eSuperTypes="platform:/plugin/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.ecore#//RuleConfiguration">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="permissions" upperBound="-1"
+ eType="#//HierarchyPermission" containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="HierarchyPermission">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="containerType" lowerBound="1"
+ eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="permitted" lowerBound="1"
+ eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="strict" lowerBound="1"
+ eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EBoolean"/>
+ </eClassifiers>
+</ecore:EPackage>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.genmodel b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.genmodel
new file mode 100644
index 00000000000..fc18bd2dde7
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/InvariantContainerRule.genmodel
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="Copyright (c) 2014 CEA LIST.&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;All rights reserved. This program and the accompanying materials&#xD;&#xA;are made available under the terms of the Eclipse Public License v1.0&#xD;&#xA;which accompanies this distribution, and is available at&#xD;&#xA;http://www.eclipse.org/legal/epl-v10.html&#xD;&#xA;&#xD;&#xA;Contributors:&#xD;&#xA; CEA LIST - Initial API and implementation"
+ modelDirectory="/org.eclipse.papyrus.infra.emf.types/src-gen" editDirectory="/org.eclipse.papyrus.infra.emf.types/src-gen"
+ editorDirectory="/org.eclipse.papyrus.infra.types.editor/src-gen" modelPluginID="org.eclipse.papyrus.infra.emf.types"
+ modelName="InvariantContainerRule" rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container"
+ importerID="org.eclipse.emf.importer.ecore" complianceLevel="7.0" copyrightFields="false"
+ editPluginID="org.eclipse.papyrus.infra.emf.types" editorPluginID="org.eclipse.papyrus.infra.types.editor"
+ usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore ../../org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.genmodel#//types platform:/plugin/org.eclipse.papyrus.infra.types.rulebased/model/RuleBased.genmodel#//rulebased"
+ operationReflection="true" importOrganizing="true">
+ <foreignModel>InvariantContainerRule.ecore</foreignModel>
+ <genPackages prefix="InvariantContainerRule" basePackage="org.eclipse.papyrus.infra.emf.types.rules"
+ resource="XMI" disposableProviderFactory="true" childCreationExtenders="true"
+ ecorePackage="InvariantContainerRule.ecore#/">
+ <genClasses ecoreClass="InvariantContainerRule.ecore#//InvariantContainerRuleConfiguration">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference InvariantContainerRule.ecore#//InvariantContainerRuleConfiguration/permissions"/>
+ </genClasses>
+ <genClasses ecoreClass="InvariantContainerRule.ecore#//HierarchyPermission">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute InvariantContainerRule.ecore#//HierarchyPermission/containerType"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute InvariantContainerRule.ecore#//HierarchyPermission/permitted"/>
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute InvariantContainerRule.ecore#//HierarchyPermission/strict"/>
+ </genClasses>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.ecore b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.ecore
new file mode 100644
index 00000000000..8e8734b8987
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.ecore
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="values" nsURI="http://www.eclipse.org/papyrus/emf/types/setvaluesadvice/1.1"
+ nsPrefix="setvaluesadvice">
+ <eClassifiers xsi:type="ecore:EClass" name="SetValuesAdviceConfiguration" eSuperTypes="../../org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.ecore#//AbstractAdviceBindingConfiguration">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="featuresToSet" upperBound="-1"
+ eType="#//FeatureToSet" containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="FeatureToSet">
+ <eStructuralFeatures xsi:type="ecore:EAttribute" name="featureName" lowerBound="1"
+ eType="ecore:EDataType platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore#//EString"/>
+ <eStructuralFeatures xsi:type="ecore:EReference" name="value" lowerBound="1" eType="#//FeatureValue"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="FeatureValue" abstract="true"/>
+ <eClassifiers xsi:type="ecore:EClass" name="DynamicValue" abstract="true" eSuperTypes="#//FeatureValue"/>
+ <eClassifiers xsi:type="ecore:EClass" name="ConstantValue" eSuperTypes="#//FeatureValue">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="valueInstance" eType="ecore:EClass platform:/plugin/org.eclipse.uml2.uml/model/UML.ecore#//ValueSpecification"
+ containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="ListValue" eSuperTypes="#//FeatureValue">
+ <eStructuralFeatures xsi:type="ecore:EReference" name="values" upperBound="-1"
+ eType="#//FeatureValue" containment="true"/>
+ </eClassifiers>
+ <eClassifiers xsi:type="ecore:EClass" name="QueryExecutionValue" eSuperTypes="#//DynamicValue"/>
+</ecore:EPackage>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.genmodel b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.genmodel
new file mode 100644
index 00000000000..a937a1c4195
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/model/SetValuesAdvice.genmodel
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
+ xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="Copyright (c) 2014 CEA LIST.&#xD;&#xA;&#xD;&#xA;&#xD;&#xA;All rights reserved. This program and the accompanying materials&#xD;&#xA;are made available under the terms of the Eclipse Public License v1.0&#xD;&#xA;which accompanies this distribution, and is available at&#xD;&#xA;http://www.eclipse.org/legal/epl-v10.html&#xD;&#xA;&#xD;&#xA;Contributors:&#xD;&#xA; CEA LIST - Initial API and implementation"
+ modelDirectory="/org.eclipse.papyrus.infra.emf.types/src-gen" editDirectory="/org.eclipse.papyrus.infra.emf.types/src-gen"
+ editorDirectory="/org.eclipse.papyrus.infra.emf.types.editor/src-gen" modelPluginID="org.eclipse.papyrus.infra.emf.types"
+ modelName="SetValuesAdvice" editPluginClass="org.eclipse.papyrus.infra.emf.types.advices.values.provider.SetValuesAdviceEditPlugin"
+ testsDirectory="/org.eclipse.papyrus.infra.emf.types.tests/src-gen" importerID="org.eclipse.emf.importer.ecore"
+ complianceLevel="7.0" copyrightFields="false" usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/plugin/org.eclipse.papyrus.infra.types/model/ElementTypesConfigurations.genmodel#//types platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml platform:/plugin/org.eclipse.uml2.types/model/Types.genmodel#//types">
+ <foreignModel>SetValuesAdvice.ecore</foreignModel>
+ <genPackages prefix="SetValuesAdvice" basePackage="org.eclipse.papyrus.infra.emf.types.advices"
+ resource="XMI" disposableProviderFactory="true" childCreationExtenders="true"
+ ecorePackage="SetValuesAdvice.ecore#/">
+ <genClasses ecoreClass="SetValuesAdvice.ecore#//SetValuesAdviceConfiguration">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SetValuesAdvice.ecore#//SetValuesAdviceConfiguration/featuresToSet"/>
+ </genClasses>
+ <genClasses ecoreClass="SetValuesAdvice.ecore#//FeatureToSet">
+ <genFeatures createChild="false" ecoreFeature="ecore:EAttribute SetValuesAdvice.ecore#//FeatureToSet/featureName"/>
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SetValuesAdvice.ecore#//FeatureToSet/value"/>
+ </genClasses>
+ <genClasses image="false" ecoreClass="SetValuesAdvice.ecore#//FeatureValue"/>
+ <genClasses ecoreClass="SetValuesAdvice.ecore#//DynamicValue"/>
+ <genClasses ecoreClass="SetValuesAdvice.ecore#//ConstantValue">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SetValuesAdvice.ecore#//ConstantValue/valueInstance"/>
+ </genClasses>
+ <genClasses ecoreClass="SetValuesAdvice.ecore#//ListValue">
+ <genFeatures property="None" children="true" createChild="true" ecoreFeature="ecore:EReference SetValuesAdvice.ecore#//ListValue/values"/>
+ </genClasses>
+ <genClasses ecoreClass="SetValuesAdvice.ecore#//QueryExecutionValue"/>
+ </genPackages>
+</genmodel:GenModel>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.properties b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.properties
new file mode 100644
index 00000000000..79340c1e4ad
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.properties
@@ -0,0 +1,44 @@
+
+# <copyright>
+# </copyright>
+#
+# $Id$
+
+pluginName = EMF TypesConfigurations Model and Core
+providerName = Eclipse Modeling Project
+_UI_CreateChild_text = {0}
+_UI_CreateChild_text2 = {1} {0}
+_UI_CreateChild_text3 = {1}
+_UI_CreateChild_tooltip = Create New {0} Under {1} Feature
+_UI_CreateChild_description = Create a new child of type {0} for the {1} feature of the selected {2}.
+_UI_CreateSibling_description = Create a new sibling of type {0} for the selected {2}, under the {1} feature of their parent.
+ _UI_PropertyDescriptor_description = The {0} of the {1}
+ _UI_RuntimeValuesEditionAdviceConfiguration_type = Runtime Values Edition Advice Configuration
+_UI_ViewToDisplay_type = View To Display
+_UI_Unknown_type = Object
+ _UI_Unknown_datatype= Value
+ _UI_RuntimeValuesEditionAdviceConfiguration_viewsToDisplay_feature = Views To Display
+_UI_ViewToDisplay_view_feature = View
+_UI_Unknown_feature = Unspecified
+
+_UI_SetValuesAdviceConfiguration_type = Set Values Advice Configuration
+_UI_FeatureToSet_type = Feature To Set
+_UI_FeatureValue_type = Feature Value
+_UI_DynamicValue_type = Dynamic Value
+_UI_ConstantValue_type = Constant Value
+_UI_ListValue_type = List Value
+_UI_QueryExecutionValue_type = Query Execution Value
+_UI_SetValuesAdviceConfiguration_featuresToSet_feature = Features To Set
+_UI_FeatureToSet_featureName_feature = Feature Name
+_UI_FeatureToSet_value_feature = Value
+_UI_ConstantValue_valueInstance_feature = Value Instance
+_UI_ListValue_values_feature = Values
+_UI_InvariantContainerRuleConfiguration_type = Invariant Container Rule Configuration
+_UI_HierarchyPermission_type = Hierarchy Permission
+_UI_InvariantContainerRuleConfiguration_permissions_feature = Permissions
+_UI_HierarchyPermission_childType_feature = Child Type
+_UI_HierarchyPermission_isPermitted_feature = Is Permitted
+_UI_HierarchyPermission_isStrict_feature = Is Strict
+_UI_HierarchyPermission_strict_feature = Strict
+_UI_HierarchyPermission_containerType_feature = Container Type
+_UI_HierarchyPermission_permitted_feature = Permitted
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.xml
new file mode 100644
index 00000000000..4e53bafcb4e
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/plugin.xml
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.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
+-->
+
+<plugin>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <!-- @generated InvariantContainerRule -->
+ <package
+ uri="http://www.eclipse.org/papyrus/emf/types/invariantcontainerrule/1.1"
+ class="org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage"
+ genModel="model/InvariantContainerRule.genmodel"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.ecore.extension_parser">
+ <!-- @generated InvariantContainerRule -->
+ <parser
+ type="invariantcontainerrule"
+ class="org.eclipse.papyrus.infra.emf.types.rules.container.util.InvariantContainerRuleResourceFactoryImpl"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
+ <!-- @generated InvariantContainerRule -->
+ <factory
+ uri="http://www.eclipse.org/papyrus/emf/types/invariantcontainerrule/1.1"
+ class="org.eclipse.papyrus.infra.emf.types.rules.container.provider.InvariantContainerRuleItemProviderAdapterFactory"
+ supportedTypes=
+ "org.eclipse.emf.edit.provider.IEditingDomainItemProvider
+ org.eclipse.emf.edit.provider.IStructuredItemContentProvider
+ org.eclipse.emf.edit.provider.ITreeItemContentProvider
+ org.eclipse.emf.edit.provider.IItemLabelProvider
+ org.eclipse.emf.edit.provider.IItemPropertySource"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.edit.childCreationExtenders">
+ <!-- @generated InvariantContainerRule -->
+ <extender
+ uri="http://www.eclipse.org/papyrus/infra/types/rulebased/1.1"
+ class="org.eclipse.papyrus.infra.emf.types.rules.container.provider.InvariantContainerRuleItemProviderAdapterFactory$RuleBasedChildCreationExtender"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.ecore.generated_package">
+ <!-- @generated SetValuesAdvice -->
+ <package
+ uri="http://www.eclipse.org/papyrus/emf/types/setvaluesadvice/1.1"
+ class="org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage"
+ genModel="model/SetValuesAdvice.genmodel"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.ecore.extension_parser">
+ <!-- @generated SetValuesAdvice -->
+ <parser
+ type="setvaluesadvice"
+ class="org.eclipse.papyrus.infra.emf.types.advices.values.util.SetValuesAdviceResourceFactoryImpl"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
+ <!-- @generated SetValuesAdvice -->
+ <factory
+ uri="http://www.eclipse.org/papyrus/emf/types/setvaluesadvice/1.1"
+ class="org.eclipse.papyrus.infra.emf.types.advices.values.provider.SetValuesAdviceItemProviderAdapterFactory"
+ supportedTypes=
+ "org.eclipse.emf.edit.provider.IEditingDomainItemProvider
+ org.eclipse.emf.edit.provider.IStructuredItemContentProvider
+ org.eclipse.emf.edit.provider.ITreeItemContentProvider
+ org.eclipse.emf.edit.provider.IItemLabelProvider
+ org.eclipse.emf.edit.provider.IItemPropertySource"/>
+ </extension>
+
+ <extension point="org.eclipse.emf.edit.childCreationExtenders">
+ <!-- @generated SetValuesAdvice -->
+ <extender
+ uri="http://www.eclipse.org/papyrus/infra/elementtypesconfigurations/1.1"
+ class="org.eclipse.papyrus.infra.emf.types.advices.values.provider.SetValuesAdviceItemProviderAdapterFactory$ElementTypesConfigurationsChildCreationExtender"/>
+ </extension>
+ <extension
+ point="org.eclipse.papyrus.infra.types.core.adviceConfigurationKind">
+ <adviceConfigurationKind
+ configurationClass="org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration"
+ factoryClass="org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceEditHelperAdviceFactory">
+ </adviceConfigurationKind>
+ </extension>
+ <extension
+ point="org.eclipse.papyrus.infra.types.rulebased.ruleKind">
+ <ruleKind
+ configurationClass="org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration"
+ ruleClass="org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRule">
+ </ruleKind>
+ </extension>
+</plugin>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/pom.xml b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/pom.xml
new file mode 100644
index 00000000000..a3299c0e10a
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/pom.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>org.eclipse.papyrus.infra-emf</artifactId>
+ <groupId>org.eclipse.papyrus</groupId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <artifactId>org.eclipse.papyrus.infra.emf.types</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ConstantValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ConstantValue.java
new file mode 100644
index 00000000000..7c8ee5f06fa
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ConstantValue.java
@@ -0,0 +1,60 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import org.eclipse.uml2.uml.ValueSpecification;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Constant Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue#getValueInstance <em>Value Instance</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getConstantValue()
+ * @model
+ * @generated
+ */
+public interface ConstantValue extends FeatureValue {
+ /**
+ * Returns the value of the '<em><b>Value Instance</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value Instance</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Value Instance</em>' containment reference.
+ * @see #setValueInstance(ValueSpecification)
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getConstantValue_ValueInstance()
+ * @model containment="true"
+ * @generated
+ */
+ ValueSpecification getValueInstance();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue#getValueInstance <em>Value Instance</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Value Instance</em>' containment reference.
+ * @see #getValueInstance()
+ * @generated
+ */
+ void setValueInstance(ValueSpecification value);
+
+} // ConstantValue
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/DynamicValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/DynamicValue.java
new file mode 100644
index 00000000000..1511d0edb7f
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/DynamicValue.java
@@ -0,0 +1,27 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Dynamic Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getDynamicValue()
+ * @model abstract="true"
+ * @generated
+ */
+public interface DynamicValue extends FeatureValue {
+} // DynamicValue
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureToSet.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureToSet.java
new file mode 100644
index 00000000000..fbd31dc6fcf
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureToSet.java
@@ -0,0 +1,87 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Feature To Set</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getFeatureName <em>Feature Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getValue <em>Value</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getFeatureToSet()
+ * @model
+ * @generated
+ */
+public interface FeatureToSet extends EObject {
+ /**
+ * Returns the value of the '<em><b>Feature Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Feature Name</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Feature Name</em>' attribute.
+ * @see #setFeatureName(String)
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getFeatureToSet_FeatureName()
+ * @model required="true"
+ * @generated
+ */
+ String getFeatureName();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getFeatureName <em>Feature Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Feature Name</em>' attribute.
+ * @see #getFeatureName()
+ * @generated
+ */
+ void setFeatureName(String value);
+
+ /**
+ * Returns the value of the '<em><b>Value</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Value</em>' containment reference isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Value</em>' containment reference.
+ * @see #setValue(FeatureValue)
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getFeatureToSet_Value()
+ * @model containment="true" required="true"
+ * @generated
+ */
+ FeatureValue getValue();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getValue <em>Value</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Value</em>' containment reference.
+ * @see #getValue()
+ * @generated
+ */
+ void setValue(FeatureValue value);
+
+} // FeatureToSet
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValue.java
new file mode 100644
index 00000000000..3968704c8d6
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValue.java
@@ -0,0 +1,28 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Feature Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getFeatureValue()
+ * @model abstract="true"
+ * @generated
+ */
+public interface FeatureValue extends EObject {
+} // FeatureValue
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ListValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ListValue.java
new file mode 100644
index 00000000000..3af22c17bf0
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/ListValue.java
@@ -0,0 +1,50 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import org.eclipse.emf.common.util.EList;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>List Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue#getValues <em>Values</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getListValue()
+ * @model
+ * @generated
+ */
+public interface ListValue extends FeatureValue {
+ /**
+ * Returns the value of the '<em><b>Values</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Values</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Values</em>' containment reference list.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getListValue_Values()
+ * @model containment="true"
+ * @generated
+ */
+ EList<FeatureValue> getValues();
+
+} // ListValue
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/QueryExecutionValue.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/QueryExecutionValue.java
new file mode 100644
index 00000000000..e5883f48ca5
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/QueryExecutionValue.java
@@ -0,0 +1,27 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Query Execution Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ *
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getQueryExecutionValue()
+ * @model
+ * @generated
+ */
+public interface QueryExecutionValue extends DynamicValue {
+} // QueryExecutionValue
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceConfiguration.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceConfiguration.java
new file mode 100644
index 00000000000..8603abc35ee
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceConfiguration.java
@@ -0,0 +1,52 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Configuration</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration#getFeaturesToSet <em>Features To Set</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getSetValuesAdviceConfiguration()
+ * @model
+ * @generated
+ */
+public interface SetValuesAdviceConfiguration extends AbstractAdviceBindingConfiguration {
+ /**
+ * Returns the value of the '<em><b>Features To Set</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Features To Set</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Features To Set</em>' containment reference list.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#getSetValuesAdviceConfiguration_FeaturesToSet()
+ * @model containment="true"
+ * @generated
+ */
+ EList<FeatureToSet> getFeaturesToSet();
+
+} // SetValuesAdviceConfiguration
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceFactory.java
new file mode 100644
index 00000000000..0b1ee7391c9
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceFactory.java
@@ -0,0 +1,88 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage
+ * @generated
+ */
+public interface SetValuesAdviceFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ SetValuesAdviceFactory eINSTANCE = org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Configuration</em>'.
+ * @generated
+ */
+ SetValuesAdviceConfiguration createSetValuesAdviceConfiguration();
+
+ /**
+ * Returns a new object of class '<em>Feature To Set</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Feature To Set</em>'.
+ * @generated
+ */
+ FeatureToSet createFeatureToSet();
+
+ /**
+ * Returns a new object of class '<em>Constant Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Constant Value</em>'.
+ * @generated
+ */
+ ConstantValue createConstantValue();
+
+ /**
+ * Returns a new object of class '<em>List Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>List Value</em>'.
+ * @generated
+ */
+ ListValue createListValue();
+
+ /**
+ * Returns a new object of class '<em>Query Execution Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Query Execution Value</em>'.
+ * @generated
+ */
+ QueryExecutionValue createQueryExecutionValue();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ SetValuesAdvicePackage getSetValuesAdvicePackage();
+
+} //SetValuesAdviceFactory
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdvicePackage.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdvicePackage.java
new file mode 100644
index 00000000000..60ef970d7e9
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdvicePackage.java
@@ -0,0 +1,580 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface SetValuesAdvicePackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "values";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/papyrus/emf/types/setvaluesadvice/1.1";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "setvaluesadvice";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ SetValuesAdvicePackage eINSTANCE = org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl <em>Configuration</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getSetValuesAdviceConfiguration()
+ * @generated
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION = 0;
+
+ /**
+ * The feature id for the '<em><b>Description</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION__DESCRIPTION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__DESCRIPTION;
+
+ /**
+ * The feature id for the '<em><b>Before</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION__BEFORE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__BEFORE;
+
+ /**
+ * The feature id for the '<em><b>After</b></em>' attribute list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION__AFTER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__AFTER;
+
+ /**
+ * The feature id for the '<em><b>Identifier</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION__IDENTIFIER = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__IDENTIFIER;
+
+ /**
+ * The feature id for the '<em><b>Target</b></em>' reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION__TARGET = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__TARGET;
+
+ /**
+ * The feature id for the '<em><b>Container Configuration</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION__CONTAINER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__CONTAINER_CONFIGURATION;
+
+ /**
+ * The feature id for the '<em><b>Matcher Configuration</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION__MATCHER_CONFIGURATION = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__MATCHER_CONFIGURATION;
+
+ /**
+ * The feature id for the '<em><b>Inheritance</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION__INHERITANCE = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION__INHERITANCE;
+
+ /**
+ * The feature id for the '<em><b>Features To Set</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Configuration</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int SET_VALUES_ADVICE_CONFIGURATION_FEATURE_COUNT = ElementTypesConfigurationsPackage.ABSTRACT_ADVICE_BINDING_CONFIGURATION_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl <em>Feature To Set</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getFeatureToSet()
+ * @generated
+ */
+ int FEATURE_TO_SET = 1;
+
+ /**
+ * The feature id for the '<em><b>Feature Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FEATURE_TO_SET__FEATURE_NAME = 0;
+
+ /**
+ * The feature id for the '<em><b>Value</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FEATURE_TO_SET__VALUE = 1;
+
+ /**
+ * The number of structural features of the '<em>Feature To Set</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FEATURE_TO_SET_FEATURE_COUNT = 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureValueImpl <em>Feature Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getFeatureValue()
+ * @generated
+ */
+ int FEATURE_VALUE = 2;
+
+ /**
+ * The number of structural features of the '<em>Feature Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int FEATURE_VALUE_FEATURE_COUNT = 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.DynamicValueImpl <em>Dynamic Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.DynamicValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getDynamicValue()
+ * @generated
+ */
+ int DYNAMIC_VALUE = 3;
+
+ /**
+ * The number of structural features of the '<em>Dynamic Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int DYNAMIC_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl <em>Constant Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getConstantValue()
+ * @generated
+ */
+ int CONSTANT_VALUE = 4;
+
+ /**
+ * The feature id for the '<em><b>Value Instance</b></em>' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CONSTANT_VALUE__VALUE_INSTANCE = FEATURE_VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Constant Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int CONSTANT_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl <em>List Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getListValue()
+ * @generated
+ */
+ int LIST_VALUE = 5;
+
+ /**
+ * The feature id for the '<em><b>Values</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LIST_VALUE__VALUES = FEATURE_VALUE_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>List Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int LIST_VALUE_FEATURE_COUNT = FEATURE_VALUE_FEATURE_COUNT + 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.QueryExecutionValueImpl <em>Query Execution Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.QueryExecutionValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getQueryExecutionValue()
+ * @generated
+ */
+ int QUERY_EXECUTION_VALUE = 6;
+
+ /**
+ * The number of structural features of the '<em>Query Execution Value</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int QUERY_EXECUTION_VALUE_FEATURE_COUNT = DYNAMIC_VALUE_FEATURE_COUNT + 0;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration <em>Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Configuration</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration
+ * @generated
+ */
+ EClass getSetValuesAdviceConfiguration();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration#getFeaturesToSet <em>Features To Set</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Features To Set</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration#getFeaturesToSet()
+ * @see #getSetValuesAdviceConfiguration()
+ * @generated
+ */
+ EReference getSetValuesAdviceConfiguration_FeaturesToSet();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet <em>Feature To Set</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Feature To Set</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet
+ * @generated
+ */
+ EClass getFeatureToSet();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getFeatureName <em>Feature Name</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Feature Name</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getFeatureName()
+ * @see #getFeatureToSet()
+ * @generated
+ */
+ EAttribute getFeatureToSet_FeatureName();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getValue <em>Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Value</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet#getValue()
+ * @see #getFeatureToSet()
+ * @generated
+ */
+ EReference getFeatureToSet_Value();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue <em>Feature Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Feature Value</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue
+ * @generated
+ */
+ EClass getFeatureValue();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue <em>Dynamic Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Dynamic Value</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue
+ * @generated
+ */
+ EClass getDynamicValue();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue <em>Constant Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Constant Value</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue
+ * @generated
+ */
+ EClass getConstantValue();
+
+ /**
+ * Returns the meta object for the containment reference '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue#getValueInstance <em>Value Instance</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference '<em>Value Instance</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue#getValueInstance()
+ * @see #getConstantValue()
+ * @generated
+ */
+ EReference getConstantValue_ValueInstance();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue <em>List Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>List Value</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.ListValue
+ * @generated
+ */
+ EClass getListValue();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue#getValues <em>Values</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Values</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.ListValue#getValues()
+ * @see #getListValue()
+ * @generated
+ */
+ EReference getListValue_Values();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue <em>Query Execution Value</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Query Execution Value</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue
+ * @generated
+ */
+ EClass getQueryExecutionValue();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ SetValuesAdviceFactory getSetValuesAdviceFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl <em>Configuration</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getSetValuesAdviceConfiguration()
+ * @generated
+ */
+ EClass SET_VALUES_ADVICE_CONFIGURATION = eINSTANCE.getSetValuesAdviceConfiguration();
+
+ /**
+ * The meta object literal for the '<em><b>Features To Set</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET = eINSTANCE.getSetValuesAdviceConfiguration_FeaturesToSet();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl <em>Feature To Set</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getFeatureToSet()
+ * @generated
+ */
+ EClass FEATURE_TO_SET = eINSTANCE.getFeatureToSet();
+
+ /**
+ * The meta object literal for the '<em><b>Feature Name</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute FEATURE_TO_SET__FEATURE_NAME = eINSTANCE.getFeatureToSet_FeatureName();
+
+ /**
+ * The meta object literal for the '<em><b>Value</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference FEATURE_TO_SET__VALUE = eINSTANCE.getFeatureToSet_Value();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureValueImpl <em>Feature Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getFeatureValue()
+ * @generated
+ */
+ EClass FEATURE_VALUE = eINSTANCE.getFeatureValue();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.DynamicValueImpl <em>Dynamic Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.DynamicValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getDynamicValue()
+ * @generated
+ */
+ EClass DYNAMIC_VALUE = eINSTANCE.getDynamicValue();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl <em>Constant Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getConstantValue()
+ * @generated
+ */
+ EClass CONSTANT_VALUE = eINSTANCE.getConstantValue();
+
+ /**
+ * The meta object literal for the '<em><b>Value Instance</b></em>' containment reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference CONSTANT_VALUE__VALUE_INSTANCE = eINSTANCE.getConstantValue_ValueInstance();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl <em>List Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getListValue()
+ * @generated
+ */
+ EClass LIST_VALUE = eINSTANCE.getListValue();
+
+ /**
+ * The meta object literal for the '<em><b>Values</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference LIST_VALUE__VALUES = eINSTANCE.getListValue_Values();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.QueryExecutionValueImpl <em>Query Execution Value</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.QueryExecutionValueImpl
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdvicePackageImpl#getQueryExecutionValue()
+ * @generated
+ */
+ EClass QUERY_EXECUTION_VALUE = eINSTANCE.getQueryExecutionValue();
+
+ }
+
+} //SetValuesAdvicePackage
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ConstantValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ConstantValueImpl.java
new file mode 100644
index 00000000000..2e87bf3d248
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ConstantValueImpl.java
@@ -0,0 +1,186 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+import org.eclipse.uml2.uml.ValueSpecification;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Constant Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ConstantValueImpl#getValueInstance <em>Value Instance</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class ConstantValueImpl extends FeatureValueImpl implements ConstantValue {
+ /**
+ * The cached value of the '{@link #getValueInstance() <em>Value Instance</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValueInstance()
+ * @generated
+ * @ordered
+ */
+ protected ValueSpecification valueInstance;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ConstantValueImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SetValuesAdvicePackage.Literals.CONSTANT_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ValueSpecification getValueInstance() {
+ return valueInstance;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetValueInstance(ValueSpecification newValueInstance, NotificationChain msgs) {
+ ValueSpecification oldValueInstance = valueInstance;
+ valueInstance = newValueInstance;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, oldValueInstance, newValueInstance);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValueInstance(ValueSpecification newValueInstance) {
+ if (newValueInstance != valueInstance) {
+ NotificationChain msgs = null;
+ if (valueInstance != null)
+ msgs = ((InternalEObject)valueInstance).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs);
+ if (newValueInstance != null)
+ msgs = ((InternalEObject)newValueInstance).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, null, msgs);
+ msgs = basicSetValueInstance(newValueInstance, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE, newValueInstance, newValueInstance));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE:
+ return basicSetValueInstance(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE:
+ return getValueInstance();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE:
+ setValueInstance((ValueSpecification)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE:
+ setValueInstance((ValueSpecification)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE:
+ return valueInstance != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //ConstantValueImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/DynamicValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/DynamicValueImpl.java
new file mode 100644
index 00000000000..e204d86c803
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/DynamicValueImpl.java
@@ -0,0 +1,47 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Dynamic Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public abstract class DynamicValueImpl extends FeatureValueImpl implements DynamicValue {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected DynamicValueImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SetValuesAdvicePackage.Literals.DYNAMIC_VALUE;
+ }
+
+} //DynamicValueImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureToSetImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureToSetImpl.java
new file mode 100644
index 00000000000..45fbd7e49ea
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureToSetImpl.java
@@ -0,0 +1,254 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet;
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Feature To Set</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl#getFeatureName <em>Feature Name</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.FeatureToSetImpl#getValue <em>Value</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class FeatureToSetImpl extends EObjectImpl implements FeatureToSet {
+ /**
+ * The default value of the '{@link #getFeatureName() <em>Feature Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFeatureName()
+ * @generated
+ * @ordered
+ */
+ protected static final String FEATURE_NAME_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getFeatureName() <em>Feature Name</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFeatureName()
+ * @generated
+ * @ordered
+ */
+ protected String featureName = FEATURE_NAME_EDEFAULT;
+
+ /**
+ * The cached value of the '{@link #getValue() <em>Value</em>}' containment reference.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValue()
+ * @generated
+ * @ordered
+ */
+ protected FeatureValue value;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected FeatureToSetImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SetValuesAdvicePackage.Literals.FEATURE_TO_SET;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getFeatureName() {
+ return featureName;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setFeatureName(String newFeatureName) {
+ String oldFeatureName = featureName;
+ featureName = newFeatureName;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME, oldFeatureName, featureName));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureValue getValue() {
+ return value;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public NotificationChain basicSetValue(FeatureValue newValue, NotificationChain msgs) {
+ FeatureValue oldValue = value;
+ value = newValue;
+ if (eNotificationRequired()) {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.FEATURE_TO_SET__VALUE, oldValue, newValue);
+ if (msgs == null) msgs = notification; else msgs.add(notification);
+ }
+ return msgs;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setValue(FeatureValue newValue) {
+ if (newValue != value) {
+ NotificationChain msgs = null;
+ if (value != null)
+ msgs = ((InternalEObject)value).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SetValuesAdvicePackage.FEATURE_TO_SET__VALUE, null, msgs);
+ if (newValue != null)
+ msgs = ((InternalEObject)newValue).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SetValuesAdvicePackage.FEATURE_TO_SET__VALUE, null, msgs);
+ msgs = basicSetValue(newValue, msgs);
+ if (msgs != null) msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, SetValuesAdvicePackage.FEATURE_TO_SET__VALUE, newValue, newValue));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE:
+ return basicSetValue(null, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME:
+ return getFeatureName();
+ case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE:
+ return getValue();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME:
+ setFeatureName((String)newValue);
+ return;
+ case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE:
+ setValue((FeatureValue)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME:
+ setFeatureName(FEATURE_NAME_EDEFAULT);
+ return;
+ case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE:
+ setValue((FeatureValue)null);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME:
+ return FEATURE_NAME_EDEFAULT == null ? featureName != null : !FEATURE_NAME_EDEFAULT.equals(featureName);
+ case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE:
+ return value != null;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (featureName: ");
+ result.append(featureName);
+ result.append(')');
+ return result.toString();
+ }
+
+} //FeatureToSetImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureValueImpl.java
new file mode 100644
index 00000000000..5458fb8b2dd
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/FeatureValueImpl.java
@@ -0,0 +1,49 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Feature Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public abstract class FeatureValueImpl extends EObjectImpl implements FeatureValue {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected FeatureValueImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SetValuesAdvicePackage.Literals.FEATURE_VALUE;
+ }
+
+} //FeatureValueImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ListValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ListValueImpl.java
new file mode 100644
index 00000000000..fdac4a7810c
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/ListValueImpl.java
@@ -0,0 +1,160 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.ListValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>List Value</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.ListValueImpl#getValues <em>Values</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class ListValueImpl extends FeatureValueImpl implements ListValue {
+ /**
+ * The cached value of the '{@link #getValues() <em>Values</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getValues()
+ * @generated
+ * @ordered
+ */
+ protected EList<FeatureValue> values;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ListValueImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SetValuesAdvicePackage.Literals.LIST_VALUE;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<FeatureValue> getValues() {
+ if (values == null) {
+ values = new EObjectContainmentEList<FeatureValue>(FeatureValue.class, this, SetValuesAdvicePackage.LIST_VALUE__VALUES);
+ }
+ return values;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.LIST_VALUE__VALUES:
+ return ((InternalEList<?>)getValues()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.LIST_VALUE__VALUES:
+ return getValues();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.LIST_VALUE__VALUES:
+ getValues().clear();
+ getValues().addAll((Collection<? extends FeatureValue>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.LIST_VALUE__VALUES:
+ getValues().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.LIST_VALUE__VALUES:
+ return values != null && !values.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //ListValueImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/QueryExecutionValueImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/QueryExecutionValueImpl.java
new file mode 100644
index 00000000000..974e83b77f9
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/QueryExecutionValueImpl.java
@@ -0,0 +1,47 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.impl;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Query Execution Value</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public class QueryExecutionValueImpl extends DynamicValueImpl implements QueryExecutionValue {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected QueryExecutionValueImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SetValuesAdvicePackage.Literals.QUERY_EXECUTION_VALUE;
+ }
+
+} //QueryExecutionValueImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceConfigurationImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceConfigurationImpl.java
new file mode 100644
index 00000000000..1345c934375
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceConfigurationImpl.java
@@ -0,0 +1,162 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+import org.eclipse.papyrus.infra.types.impl.AbstractAdviceBindingConfigurationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Configuration</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.advices.values.impl.SetValuesAdviceConfigurationImpl#getFeaturesToSet <em>Features To Set</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class SetValuesAdviceConfigurationImpl extends AbstractAdviceBindingConfigurationImpl implements SetValuesAdviceConfiguration {
+ /**
+ * The cached value of the '{@link #getFeaturesToSet() <em>Features To Set</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getFeaturesToSet()
+ * @generated
+ * @ordered
+ */
+ protected EList<FeatureToSet> featuresToSet;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SetValuesAdviceConfigurationImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return SetValuesAdvicePackage.Literals.SET_VALUES_ADVICE_CONFIGURATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<FeatureToSet> getFeaturesToSet() {
+ if (featuresToSet == null) {
+ featuresToSet = new EObjectContainmentEList<FeatureToSet>(FeatureToSet.class, this, SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET);
+ }
+ return featuresToSet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET:
+ return ((InternalEList<?>)getFeaturesToSet()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET:
+ return getFeaturesToSet();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET:
+ getFeaturesToSet().clear();
+ getFeaturesToSet().addAll((Collection<? extends FeatureToSet>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET:
+ getFeaturesToSet().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET:
+ return featuresToSet != null && !featuresToSet.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //SetValuesAdviceConfigurationImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceFactoryImpl.java
new file mode 100644
index 00000000000..884a0f1dab3
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdviceFactoryImpl.java
@@ -0,0 +1,149 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SetValuesAdviceFactoryImpl extends EFactoryImpl implements SetValuesAdviceFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static SetValuesAdviceFactory init() {
+ try {
+ SetValuesAdviceFactory theSetValuesAdviceFactory = (SetValuesAdviceFactory)EPackage.Registry.INSTANCE.getEFactory(SetValuesAdvicePackage.eNS_URI);
+ if (theSetValuesAdviceFactory != null) {
+ return theSetValuesAdviceFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new SetValuesAdviceFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdviceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION: return createSetValuesAdviceConfiguration();
+ case SetValuesAdvicePackage.FEATURE_TO_SET: return createFeatureToSet();
+ case SetValuesAdvicePackage.CONSTANT_VALUE: return createConstantValue();
+ case SetValuesAdvicePackage.LIST_VALUE: return createListValue();
+ case SetValuesAdvicePackage.QUERY_EXECUTION_VALUE: return createQueryExecutionValue();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdviceConfiguration createSetValuesAdviceConfiguration() {
+ SetValuesAdviceConfigurationImpl setValuesAdviceConfiguration = new SetValuesAdviceConfigurationImpl();
+ return setValuesAdviceConfiguration;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureToSet createFeatureToSet() {
+ FeatureToSetImpl featureToSet = new FeatureToSetImpl();
+ return featureToSet;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ConstantValue createConstantValue() {
+ ConstantValueImpl constantValue = new ConstantValueImpl();
+ return constantValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ListValue createListValue() {
+ ListValueImpl listValue = new ListValueImpl();
+ return listValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public QueryExecutionValue createQueryExecutionValue() {
+ QueryExecutionValueImpl queryExecutionValue = new QueryExecutionValueImpl();
+ return queryExecutionValue;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdvicePackage getSetValuesAdvicePackage() {
+ return (SetValuesAdvicePackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static SetValuesAdvicePackage getPackage() {
+ return SetValuesAdvicePackage.eINSTANCE;
+ }
+
+} //SetValuesAdviceFactoryImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdvicePackageImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdvicePackageImpl.java
new file mode 100644
index 00000000000..8f6c95804c1
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/impl/SetValuesAdvicePackageImpl.java
@@ -0,0 +1,377 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EcorePackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet;
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.ListValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage;
+
+import org.eclipse.uml2.uml.UMLPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SetValuesAdvicePackageImpl extends EPackageImpl implements SetValuesAdvicePackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass setValuesAdviceConfigurationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass featureToSetEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass featureValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass dynamicValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass constantValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass listValueEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass queryExecutionValueEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private SetValuesAdvicePackageImpl() {
+ super(eNS_URI, SetValuesAdviceFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link SetValuesAdvicePackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static SetValuesAdvicePackage init() {
+ if (isInited) return (SetValuesAdvicePackage)EPackage.Registry.INSTANCE.getEPackage(SetValuesAdvicePackage.eNS_URI);
+
+ // Obtain or create and register package
+ SetValuesAdvicePackageImpl theSetValuesAdvicePackage = (SetValuesAdvicePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof SetValuesAdvicePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new SetValuesAdvicePackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ ElementTypesConfigurationsPackage.eINSTANCE.eClass();
+ UMLPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theSetValuesAdvicePackage.createPackageContents();
+
+ // Initialize created meta-data
+ theSetValuesAdvicePackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theSetValuesAdvicePackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(SetValuesAdvicePackage.eNS_URI, theSetValuesAdvicePackage);
+ return theSetValuesAdvicePackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getSetValuesAdviceConfiguration() {
+ return setValuesAdviceConfigurationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getSetValuesAdviceConfiguration_FeaturesToSet() {
+ return (EReference)setValuesAdviceConfigurationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getFeatureToSet() {
+ return featureToSetEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getFeatureToSet_FeatureName() {
+ return (EAttribute)featureToSetEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getFeatureToSet_Value() {
+ return (EReference)featureToSetEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getFeatureValue() {
+ return featureValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getDynamicValue() {
+ return dynamicValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getConstantValue() {
+ return constantValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getConstantValue_ValueInstance() {
+ return (EReference)constantValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getListValue() {
+ return listValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getListValue_Values() {
+ return (EReference)listValueEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getQueryExecutionValue() {
+ return queryExecutionValueEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdviceFactory getSetValuesAdviceFactory() {
+ return (SetValuesAdviceFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ setValuesAdviceConfigurationEClass = createEClass(SET_VALUES_ADVICE_CONFIGURATION);
+ createEReference(setValuesAdviceConfigurationEClass, SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET);
+
+ featureToSetEClass = createEClass(FEATURE_TO_SET);
+ createEAttribute(featureToSetEClass, FEATURE_TO_SET__FEATURE_NAME);
+ createEReference(featureToSetEClass, FEATURE_TO_SET__VALUE);
+
+ featureValueEClass = createEClass(FEATURE_VALUE);
+
+ dynamicValueEClass = createEClass(DYNAMIC_VALUE);
+
+ constantValueEClass = createEClass(CONSTANT_VALUE);
+ createEReference(constantValueEClass, CONSTANT_VALUE__VALUE_INSTANCE);
+
+ listValueEClass = createEClass(LIST_VALUE);
+ createEReference(listValueEClass, LIST_VALUE__VALUES);
+
+ queryExecutionValueEClass = createEClass(QUERY_EXECUTION_VALUE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ ElementTypesConfigurationsPackage theElementTypesConfigurationsPackage = (ElementTypesConfigurationsPackage)EPackage.Registry.INSTANCE.getEPackage(ElementTypesConfigurationsPackage.eNS_URI);
+ EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+ UMLPackage theUMLPackage = (UMLPackage)EPackage.Registry.INSTANCE.getEPackage(UMLPackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ setValuesAdviceConfigurationEClass.getESuperTypes().add(theElementTypesConfigurationsPackage.getAbstractAdviceBindingConfiguration());
+ dynamicValueEClass.getESuperTypes().add(this.getFeatureValue());
+ constantValueEClass.getESuperTypes().add(this.getFeatureValue());
+ listValueEClass.getESuperTypes().add(this.getFeatureValue());
+ queryExecutionValueEClass.getESuperTypes().add(this.getDynamicValue());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(setValuesAdviceConfigurationEClass, SetValuesAdviceConfiguration.class, "SetValuesAdviceConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getSetValuesAdviceConfiguration_FeaturesToSet(), this.getFeatureToSet(), null, "featuresToSet", null, 0, -1, SetValuesAdviceConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(featureToSetEClass, FeatureToSet.class, "FeatureToSet", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getFeatureToSet_FeatureName(), theEcorePackage.getEString(), "featureName", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEReference(getFeatureToSet_Value(), this.getFeatureValue(), null, "value", null, 1, 1, FeatureToSet.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(featureValueEClass, FeatureValue.class, "FeatureValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(dynamicValueEClass, DynamicValue.class, "DynamicValue", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ initEClass(constantValueEClass, ConstantValue.class, "ConstantValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getConstantValue_ValueInstance(), theUMLPackage.getValueSpecification(), null, "valueInstance", null, 0, 1, ConstantValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(listValueEClass, ListValue.class, "ListValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getListValue_Values(), this.getFeatureValue(), null, "values", null, 0, -1, ListValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(queryExecutionValueEClass, QueryExecutionValue.class, "QueryExecutionValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //SetValuesAdvicePackageImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ConstantValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ConstantValueItemProvider.java
new file mode 100644
index 00000000000..1c17bc4e4d6
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ConstantValueItemProvider.java
@@ -0,0 +1,223 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+import org.eclipse.uml2.uml.UMLFactory;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ConstantValueItemProvider extends FeatureValueItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ConstantValueItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns ConstantValue.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ConstantValue"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_ConstantValue_type");
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(ConstantValue.class)) {
+ case SetValuesAdvicePackage.CONSTANT_VALUE__VALUE_INSTANCE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createOpaqueExpression()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createExpression()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createStringExpression()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createInstanceValue()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createTimeExpression()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createDuration()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createInterval()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createDurationInterval()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createLiteralBoolean()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createLiteralInteger()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createLiteralNull()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createLiteralReal()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createLiteralString()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createLiteralUnlimitedNatural()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE,
+ UMLFactory.eINSTANCE.createTimeInterval()));
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/DynamicValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/DynamicValueItemProvider.java
new file mode 100644
index 00000000000..e688855181a
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/DynamicValueItemProvider.java
@@ -0,0 +1,104 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class DynamicValueItemProvider extends FeatureValueItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public DynamicValueItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This returns DynamicValue.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/DynamicValue"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_DynamicValue_type");
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureToSetItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureToSetItemProvider.java
new file mode 100644
index 00000000000..68ce38da760
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureToSetItemProvider.java
@@ -0,0 +1,219 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FeatureToSetItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureToSetItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addFeatureNamePropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Feature Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addFeatureNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_FeatureToSet_featureName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_FeatureToSet_featureName_feature", "_UI_FeatureToSet_type"),
+ SetValuesAdvicePackage.Literals.FEATURE_TO_SET__FEATURE_NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(SetValuesAdvicePackage.Literals.FEATURE_TO_SET__VALUE);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns FeatureToSet.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureToSet"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((FeatureToSet)object).getFeatureName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_FeatureToSet_type") :
+ getString("_UI_FeatureToSet_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(FeatureToSet.class)) {
+ case SetValuesAdvicePackage.FEATURE_TO_SET__FEATURE_NAME:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case SetValuesAdvicePackage.FEATURE_TO_SET__VALUE:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.FEATURE_TO_SET__VALUE,
+ SetValuesAdviceFactory.eINSTANCE.createConstantValue()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.FEATURE_TO_SET__VALUE,
+ SetValuesAdviceFactory.eINSTANCE.createListValue()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.FEATURE_TO_SET__VALUE,
+ SetValuesAdviceFactory.eINSTANCE.createQueryExecutionValue()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return SetValuesAdviceEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureValueItemProvider.java
new file mode 100644
index 00000000000..2dd4cc5df76
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/FeatureValueItemProvider.java
@@ -0,0 +1,119 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class FeatureValueItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public FeatureValueItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_FeatureValue_type");
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return SetValuesAdviceEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ListValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ListValueItemProvider.java
new file mode 100644
index 00000000000..0371e0da16d
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/ListValueItemProvider.java
@@ -0,0 +1,162 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.ListValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ListValueItemProvider extends FeatureValueItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ListValueItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(SetValuesAdvicePackage.Literals.LIST_VALUE__VALUES);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns ListValue.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ListValue"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_ListValue_type");
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(ListValue.class)) {
+ case SetValuesAdvicePackage.LIST_VALUE__VALUES:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.LIST_VALUE__VALUES,
+ SetValuesAdviceFactory.eINSTANCE.createConstantValue()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.LIST_VALUE__VALUES,
+ SetValuesAdviceFactory.eINSTANCE.createListValue()));
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.LIST_VALUE__VALUES,
+ SetValuesAdviceFactory.eINSTANCE.createQueryExecutionValue()));
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/QueryExecutionValueItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/QueryExecutionValueItemProvider.java
new file mode 100644
index 00000000000..132b086cb40
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/QueryExecutionValueItemProvider.java
@@ -0,0 +1,104 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class QueryExecutionValueItemProvider extends DynamicValueItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public QueryExecutionValueItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This returns QueryExecutionValue.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/QueryExecutionValue"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_QueryExecutionValue_type");
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceConfigurationItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceConfigurationItemProvider.java
new file mode 100644
index 00000000000..63f204c6ae5
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceConfigurationItemProvider.java
@@ -0,0 +1,170 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage;
+
+import org.eclipse.papyrus.infra.types.provider.AbstractAdviceBindingConfigurationItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SetValuesAdviceConfigurationItemProvider extends AbstractAdviceBindingConfigurationItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdviceConfigurationItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(SetValuesAdvicePackage.Literals.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns SetValuesAdviceConfiguration.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/SetValuesAdviceConfiguration"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((SetValuesAdviceConfiguration)object).getDescription();
+ return label == null || label.length() == 0 ?
+ getString("_UI_SetValuesAdviceConfiguration_type") :
+ getString("_UI_SetValuesAdviceConfiguration_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(SetValuesAdviceConfiguration.class)) {
+ case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (SetValuesAdvicePackage.Literals.SET_VALUES_ADVICE_CONFIGURATION__FEATURES_TO_SET,
+ SetValuesAdviceFactory.eINSTANCE.createFeatureToSet()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return SetValuesAdviceEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceEditPlugin.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceEditPlugin.java
new file mode 100644
index 00000000000..4d2ce3f144c
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceEditPlugin.java
@@ -0,0 +1,108 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.provider.EcoreEditPlugin;
+
+import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin;
+
+import org.eclipse.uml2.uml.edit.UMLEditPlugin;
+
+/**
+ * This is the central singleton for the SetValuesAdvice edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class SetValuesAdviceEditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final SetValuesAdviceEditPlugin INSTANCE = new SetValuesAdviceEditPlugin();
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Implementation plugin;
+
+ /**
+ * Create the instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdviceEditPlugin() {
+ super
+ (new ResourceLocator [] {
+ EcoreEditPlugin.INSTANCE,
+ TypesConfigurationsEditPlugin.INSTANCE,
+ UMLEditPlugin.INSTANCE,
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceItemProviderAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceItemProviderAdapterFactory.java
new file mode 100644
index 00000000000..36424e29805
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/provider/SetValuesAdviceItemProviderAdapterFactory.java
@@ -0,0 +1,409 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.provider;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.edit.command.CommandParameter;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+
+import org.eclipse.emf.edit.provider.ChangeNotifier;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IChangeNotifier;
+import org.eclipse.emf.edit.provider.IChildCreationExtender;
+import org.eclipse.emf.edit.provider.IDisposable;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.INotifyChangedListener;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceFactory;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.util.SetValuesAdviceAdapterFactory;
+
+import org.eclipse.papyrus.infra.types.ElementTypeSetConfiguration;
+import org.eclipse.papyrus.infra.types.ElementTypesConfigurationsPackage;
+
+import org.eclipse.papyrus.infra.types.util.ElementTypesConfigurationsSwitch;
+
+/**
+ * This is the factory that is used to provide the interfaces needed to support Viewers.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters also support Eclipse property sheets.
+ * Note that most of the adapters are shared among multiple instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class SetValuesAdviceItemProviderAdapterFactory extends SetValuesAdviceAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Object> supportedTypes = new ArrayList<Object>();
+
+ /**
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdviceItemProviderAdapterFactory() {
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SetValuesAdviceConfigurationItemProvider setValuesAdviceConfigurationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createSetValuesAdviceConfigurationAdapter() {
+ if (setValuesAdviceConfigurationItemProvider == null) {
+ setValuesAdviceConfigurationItemProvider = new SetValuesAdviceConfigurationItemProvider(this);
+ }
+
+ return setValuesAdviceConfigurationItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected FeatureToSetItemProvider featureToSetItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createFeatureToSetAdapter() {
+ if (featureToSetItemProvider == null) {
+ featureToSetItemProvider = new FeatureToSetItemProvider(this);
+ }
+
+ return featureToSetItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ConstantValueItemProvider constantValueItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createConstantValueAdapter() {
+ if (constantValueItemProvider == null) {
+ constantValueItemProvider = new ConstantValueItemProvider(this);
+ }
+
+ return constantValueItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ListValueItemProvider listValueItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createListValueAdapter() {
+ if (listValueItemProvider == null) {
+ listValueItemProvider = new ListValueItemProvider(this);
+ }
+
+ return listValueItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected QueryExecutionValueItemProvider queryExecutionValueItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createQueryExecutionValueAdapter() {
+ if (queryExecutionValueItemProvider == null) {
+ queryExecutionValueItemProvider = new QueryExecutionValueItemProvider(this);
+ }
+
+ return queryExecutionValueItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (setValuesAdviceConfigurationItemProvider != null) setValuesAdviceConfigurationItemProvider.dispose();
+ if (featureToSetItemProvider != null) featureToSetItemProvider.dispose();
+ if (constantValueItemProvider != null) constantValueItemProvider.dispose();
+ if (listValueItemProvider != null) listValueItemProvider.dispose();
+ if (queryExecutionValueItemProvider != null) queryExecutionValueItemProvider.dispose();
+ }
+
+ /**
+ * A child creation extender for the {@link ElementTypesConfigurationsPackage}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class ElementTypesConfigurationsChildCreationExtender implements IChildCreationExtender {
+ /**
+ * The switch for creating child descriptors specific to each extended class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static class CreationSwitch extends ElementTypesConfigurationsSwitch<Object> {
+ /**
+ * The child descriptors being populated.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected List<Object> newChildDescriptors;
+
+ /**
+ * The domain in which to create the children.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EditingDomain editingDomain;
+
+ /**
+ * Creates the a switch for populating child descriptors in the given domain.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ CreationSwitch(List<Object> newChildDescriptors, EditingDomain editingDomain) {
+ this.newChildDescriptors = newChildDescriptors;
+ this.editingDomain = editingDomain;
+ }
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object caseElementTypeSetConfiguration(ElementTypeSetConfiguration object) {
+ newChildDescriptors.add
+ (createChildParameter
+ (ElementTypesConfigurationsPackage.Literals.ELEMENT_TYPE_SET_CONFIGURATION__ADVICE_BINDINGS_CONFIGURATIONS,
+ SetValuesAdviceFactory.eINSTANCE.createSetValuesAdviceConfiguration()));
+
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CommandParameter createChildParameter(Object feature, Object child) {
+ return new CommandParameter(null, feature, child);
+ }
+
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Collection<Object> getNewChildDescriptors(Object object, EditingDomain editingDomain) {
+ ArrayList<Object> result = new ArrayList<Object>();
+ new CreationSwitch(result, editingDomain).doSwitch((EObject)object);
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ResourceLocator getResourceLocator() {
+ return SetValuesAdviceEditPlugin.INSTANCE;
+ }
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceAdapterFactory.java
new file mode 100644
index 00000000000..eef8a34eb33
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceAdapterFactory.java
@@ -0,0 +1,315 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.*;
+
+import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration;
+import org.eclipse.papyrus.infra.types.AdviceConfiguration;
+import org.eclipse.papyrus.infra.types.ConfigurationElement;
+import org.eclipse.papyrus.infra.types.IdentifiedConfiguration;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage
+ * @generated
+ */
+public class SetValuesAdviceAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static SetValuesAdvicePackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdviceAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = SetValuesAdvicePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected SetValuesAdviceSwitch<Adapter> modelSwitch =
+ new SetValuesAdviceSwitch<Adapter>() {
+ @Override
+ public Adapter caseSetValuesAdviceConfiguration(SetValuesAdviceConfiguration object) {
+ return createSetValuesAdviceConfigurationAdapter();
+ }
+ @Override
+ public Adapter caseFeatureToSet(FeatureToSet object) {
+ return createFeatureToSetAdapter();
+ }
+ @Override
+ public Adapter caseFeatureValue(FeatureValue object) {
+ return createFeatureValueAdapter();
+ }
+ @Override
+ public Adapter caseDynamicValue(DynamicValue object) {
+ return createDynamicValueAdapter();
+ }
+ @Override
+ public Adapter caseConstantValue(ConstantValue object) {
+ return createConstantValueAdapter();
+ }
+ @Override
+ public Adapter caseListValue(ListValue object) {
+ return createListValueAdapter();
+ }
+ @Override
+ public Adapter caseQueryExecutionValue(QueryExecutionValue object) {
+ return createQueryExecutionValueAdapter();
+ }
+ @Override
+ public Adapter caseConfigurationElement(ConfigurationElement object) {
+ return createConfigurationElementAdapter();
+ }
+ @Override
+ public Adapter caseAdviceConfiguration(AdviceConfiguration object) {
+ return createAdviceConfigurationAdapter();
+ }
+ @Override
+ public Adapter caseIdentifiedConfiguration(IdentifiedConfiguration object) {
+ return createIdentifiedConfigurationAdapter();
+ }
+ @Override
+ public Adapter caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) {
+ return createAbstractAdviceBindingConfigurationAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration <em>Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration
+ * @generated
+ */
+ public Adapter createSetValuesAdviceConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet <em>Feature To Set</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet
+ * @generated
+ */
+ public Adapter createFeatureToSetAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue <em>Feature Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue
+ * @generated
+ */
+ public Adapter createFeatureValueAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue <em>Dynamic Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.DynamicValue
+ * @generated
+ */
+ public Adapter createDynamicValueAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue <em>Constant Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.ConstantValue
+ * @generated
+ */
+ public Adapter createConstantValueAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.ListValue <em>List Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.ListValue
+ * @generated
+ */
+ public Adapter createListValueAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue <em>Query Execution Value</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.QueryExecutionValue
+ * @generated
+ */
+ public Adapter createQueryExecutionValueAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.ConfigurationElement <em>Configuration Element</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.types.ConfigurationElement
+ * @generated
+ */
+ public Adapter createConfigurationElementAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AdviceConfiguration <em>Advice Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.types.AdviceConfiguration
+ * @generated
+ */
+ public Adapter createAdviceConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.IdentifiedConfiguration <em>Identified Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.types.IdentifiedConfiguration
+ * @generated
+ */
+ public Adapter createIdentifiedConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration <em>Abstract Advice Binding Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration
+ * @generated
+ */
+ public Adapter createAbstractAdviceBindingConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //SetValuesAdviceAdapterFactory
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceFactoryImpl.java
new file mode 100644
index 00000000000..2878ed651fa
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceFactoryImpl.java
@@ -0,0 +1,51 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.util.SetValuesAdviceResourceImpl
+ * @generated
+ */
+public class SetValuesAdviceResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdviceResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ Resource result = new SetValuesAdviceResourceImpl(uri);
+ return result;
+ }
+
+} //SetValuesAdviceResourceFactoryImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceImpl.java
new file mode 100644
index 00000000000..4aba894f779
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceResourceImpl.java
@@ -0,0 +1,38 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.util.SetValuesAdviceResourceFactoryImpl
+ * @generated
+ */
+public class SetValuesAdviceResourceImpl extends XMIResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public SetValuesAdviceResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //SetValuesAdviceResourceImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceSwitch.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceSwitch.java
new file mode 100644
index 00000000000..8f0981ee0b0
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/advices/values/util/SetValuesAdviceSwitch.java
@@ -0,0 +1,320 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.advices.values.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+import org.eclipse.papyrus.infra.emf.types.advices.values.*;
+
+import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration;
+import org.eclipse.papyrus.infra.types.AdviceConfiguration;
+import org.eclipse.papyrus.infra.types.ConfigurationElement;
+import org.eclipse.papyrus.infra.types.IdentifiedConfiguration;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdvicePackage
+ * @generated
+ */
+public class SetValuesAdviceSwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static SetValuesAdvicePackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public SetValuesAdviceSwitch() {
+ if (modelPackage == null) {
+ modelPackage = SetValuesAdvicePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case SetValuesAdvicePackage.SET_VALUES_ADVICE_CONFIGURATION: {
+ SetValuesAdviceConfiguration setValuesAdviceConfiguration = (SetValuesAdviceConfiguration)theEObject;
+ T result = caseSetValuesAdviceConfiguration(setValuesAdviceConfiguration);
+ if (result == null) result = caseAbstractAdviceBindingConfiguration(setValuesAdviceConfiguration);
+ if (result == null) result = caseAdviceConfiguration(setValuesAdviceConfiguration);
+ if (result == null) result = caseIdentifiedConfiguration(setValuesAdviceConfiguration);
+ if (result == null) result = caseConfigurationElement(setValuesAdviceConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SetValuesAdvicePackage.FEATURE_TO_SET: {
+ FeatureToSet featureToSet = (FeatureToSet)theEObject;
+ T result = caseFeatureToSet(featureToSet);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SetValuesAdvicePackage.FEATURE_VALUE: {
+ FeatureValue featureValue = (FeatureValue)theEObject;
+ T result = caseFeatureValue(featureValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SetValuesAdvicePackage.DYNAMIC_VALUE: {
+ DynamicValue dynamicValue = (DynamicValue)theEObject;
+ T result = caseDynamicValue(dynamicValue);
+ if (result == null) result = caseFeatureValue(dynamicValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SetValuesAdvicePackage.CONSTANT_VALUE: {
+ ConstantValue constantValue = (ConstantValue)theEObject;
+ T result = caseConstantValue(constantValue);
+ if (result == null) result = caseFeatureValue(constantValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SetValuesAdvicePackage.LIST_VALUE: {
+ ListValue listValue = (ListValue)theEObject;
+ T result = caseListValue(listValue);
+ if (result == null) result = caseFeatureValue(listValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case SetValuesAdvicePackage.QUERY_EXECUTION_VALUE: {
+ QueryExecutionValue queryExecutionValue = (QueryExecutionValue)theEObject;
+ T result = caseQueryExecutionValue(queryExecutionValue);
+ if (result == null) result = caseDynamicValue(queryExecutionValue);
+ if (result == null) result = caseFeatureValue(queryExecutionValue);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSetValuesAdviceConfiguration(SetValuesAdviceConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Feature To Set</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Feature To Set</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFeatureToSet(FeatureToSet object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Feature Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Feature Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseFeatureValue(FeatureValue object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Dynamic Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Dynamic Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseDynamicValue(DynamicValue object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Constant Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Constant Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseConstantValue(ConstantValue object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>List Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>List Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseListValue(ListValue object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Query Execution Value</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Query Execution Value</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseQueryExecutionValue(QueryExecutionValue object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Configuration Element</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Configuration Element</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseConfigurationElement(ConfigurationElement object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Advice Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Advice Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAdviceConfiguration(AdviceConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Identified Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Identified Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseIdentifiedConfiguration(IdentifiedConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Abstract Advice Binding Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Abstract Advice Binding Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractAdviceBindingConfiguration(AbstractAdviceBindingConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //SetValuesAdviceSwitch
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/HierarchyPermission.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/HierarchyPermission.java
new file mode 100644
index 00000000000..c958a836856
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/HierarchyPermission.java
@@ -0,0 +1,114 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container;
+
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Hierarchy Permission</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#getContainerType <em>Container Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isPermitted <em>Permitted</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isStrict <em>Strict</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getHierarchyPermission()
+ * @model
+ * @generated
+ */
+public interface HierarchyPermission extends EObject {
+ /**
+ * Returns the value of the '<em><b>Container Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Container Type</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Container Type</em>' attribute.
+ * @see #setContainerType(String)
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getHierarchyPermission_ContainerType()
+ * @model required="true"
+ * @generated
+ */
+ String getContainerType();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#getContainerType <em>Container Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Container Type</em>' attribute.
+ * @see #getContainerType()
+ * @generated
+ */
+ void setContainerType(String value);
+
+ /**
+ * Returns the value of the '<em><b>Permitted</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Permitted</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Permitted</em>' attribute.
+ * @see #setPermitted(boolean)
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getHierarchyPermission_Permitted()
+ * @model required="true"
+ * @generated
+ */
+ boolean isPermitted();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isPermitted <em>Permitted</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Permitted</em>' attribute.
+ * @see #isPermitted()
+ * @generated
+ */
+ void setPermitted(boolean value);
+
+ /**
+ * Returns the value of the '<em><b>Strict</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Strict</em>' attribute isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Strict</em>' attribute.
+ * @see #setStrict(boolean)
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getHierarchyPermission_Strict()
+ * @model required="true"
+ * @generated
+ */
+ boolean isStrict();
+
+ /**
+ * Sets the value of the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isStrict <em>Strict</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param value the new value of the '<em>Strict</em>' attribute.
+ * @see #isStrict()
+ * @generated
+ */
+ void setStrict(boolean value);
+
+} // HierarchyPermission
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleConfiguration.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleConfiguration.java
new file mode 100644
index 00000000000..f9a65ff0996
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleConfiguration.java
@@ -0,0 +1,52 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration;
+
+/**
+ * <!-- begin-user-doc -->
+ * A representation of the model object '<em><b>Configuration</b></em>'.
+ * <!-- end-user-doc -->
+ *
+ * <p>
+ * The following features are supported:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration#getPermissions <em>Permissions</em>}</li>
+ * </ul>
+ *
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getInvariantContainerRuleConfiguration()
+ * @model
+ * @generated
+ */
+public interface InvariantContainerRuleConfiguration extends RuleConfiguration {
+ /**
+ * Returns the value of the '<em><b>Permissions</b></em>' containment reference list.
+ * The list contents are of type {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission}.
+ * <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Permissions</em>' containment reference list isn't clear,
+ * there really should be more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ * @return the value of the '<em>Permissions</em>' containment reference list.
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#getInvariantContainerRuleConfiguration_Permissions()
+ * @model containment="true"
+ * @generated
+ */
+ EList<HierarchyPermission> getPermissions();
+
+} // InvariantContainerRuleConfiguration
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleFactory.java
new file mode 100644
index 00000000000..fb68ee93054
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRuleFactory.java
@@ -0,0 +1,61 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container;
+
+import org.eclipse.emf.ecore.EFactory;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Factory</b> for the model.
+ * It provides a create method for each non-abstract class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage
+ * @generated
+ */
+public interface InvariantContainerRuleFactory extends EFactory {
+ /**
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ InvariantContainerRuleFactory eINSTANCE = org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleFactoryImpl.init();
+
+ /**
+ * Returns a new object of class '<em>Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Configuration</em>'.
+ * @generated
+ */
+ InvariantContainerRuleConfiguration createInvariantContainerRuleConfiguration();
+
+ /**
+ * Returns a new object of class '<em>Hierarchy Permission</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return a new object of class '<em>Hierarchy Permission</em>'.
+ * @generated
+ */
+ HierarchyPermission createHierarchyPermission();
+
+ /**
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the package supported by this factory.
+ * @generated
+ */
+ InvariantContainerRulePackage getInvariantContainerRulePackage();
+
+} //InvariantContainerRuleFactory
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRulePackage.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRulePackage.java
new file mode 100644
index 00000000000..aea208459f3
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRulePackage.java
@@ -0,0 +1,305 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+
+import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Package</b> for the model.
+ * It contains accessors for the meta objects to represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleFactory
+ * @model kind="package"
+ * @generated
+ */
+public interface InvariantContainerRulePackage extends EPackage {
+ /**
+ * The package name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNAME = "container";
+
+ /**
+ * The package namespace URI.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/papyrus/emf/types/invariantcontainerrule/1.1";
+
+ /**
+ * The package namespace name.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ String eNS_PREFIX = "invariantcontainerrule";
+
+ /**
+ * The singleton instance of the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ InvariantContainerRulePackage eINSTANCE = org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl <em>Configuration</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl#getInvariantContainerRuleConfiguration()
+ * @generated
+ */
+ int INVARIANT_CONTAINER_RULE_CONFIGURATION = 0;
+
+ /**
+ * The feature id for the '<em><b>Permissions</b></em>' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS = RuleBasedPackage.RULE_CONFIGURATION_FEATURE_COUNT + 0;
+
+ /**
+ * The number of structural features of the '<em>Configuration</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INVARIANT_CONTAINER_RULE_CONFIGURATION_FEATURE_COUNT = RuleBasedPackage.RULE_CONFIGURATION_FEATURE_COUNT + 1;
+
+ /**
+ * The number of operations of the '<em>Configuration</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int INVARIANT_CONTAINER_RULE_CONFIGURATION_OPERATION_COUNT = RuleBasedPackage.RULE_CONFIGURATION_OPERATION_COUNT + 0;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl <em>Hierarchy Permission</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl#getHierarchyPermission()
+ * @generated
+ */
+ int HIERARCHY_PERMISSION = 1;
+
+ /**
+ * The feature id for the '<em><b>Container Type</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIERARCHY_PERMISSION__CONTAINER_TYPE = 0;
+
+ /**
+ * The feature id for the '<em><b>Permitted</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIERARCHY_PERMISSION__PERMITTED = 1;
+
+ /**
+ * The feature id for the '<em><b>Strict</b></em>' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIERARCHY_PERMISSION__STRICT = 2;
+
+ /**
+ * The number of structural features of the '<em>Hierarchy Permission</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIERARCHY_PERMISSION_FEATURE_COUNT = 3;
+
+ /**
+ * The number of operations of the '<em>Hierarchy Permission</em>' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ * @ordered
+ */
+ int HIERARCHY_PERMISSION_OPERATION_COUNT = 0;
+
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration <em>Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Configuration</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration
+ * @generated
+ */
+ EClass getInvariantContainerRuleConfiguration();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration#getPermissions <em>Permissions</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the containment reference list '<em>Permissions</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration#getPermissions()
+ * @see #getInvariantContainerRuleConfiguration()
+ * @generated
+ */
+ EReference getInvariantContainerRuleConfiguration_Permissions();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission <em>Hierarchy Permission</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for class '<em>Hierarchy Permission</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission
+ * @generated
+ */
+ EClass getHierarchyPermission();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#getContainerType <em>Container Type</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Container Type</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#getContainerType()
+ * @see #getHierarchyPermission()
+ * @generated
+ */
+ EAttribute getHierarchyPermission_ContainerType();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isPermitted <em>Permitted</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Permitted</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isPermitted()
+ * @see #getHierarchyPermission()
+ * @generated
+ */
+ EAttribute getHierarchyPermission_Permitted();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isStrict <em>Strict</em>}'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the meta object for the attribute '<em>Strict</em>'.
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission#isStrict()
+ * @see #getHierarchyPermission()
+ * @generated
+ */
+ EAttribute getHierarchyPermission_Strict();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ InvariantContainerRuleFactory getInvariantContainerRuleFactory();
+
+ /**
+ * <!-- begin-user-doc -->
+ * Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each operation of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ interface Literals {
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl <em>Configuration</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl#getInvariantContainerRuleConfiguration()
+ * @generated
+ */
+ EClass INVARIANT_CONTAINER_RULE_CONFIGURATION = eINSTANCE.getInvariantContainerRuleConfiguration();
+
+ /**
+ * The meta object literal for the '<em><b>Permissions</b></em>' containment reference list feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EReference INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS = eINSTANCE.getInvariantContainerRuleConfiguration_Permissions();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl <em>Hierarchy Permission</em>}' class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRulePackageImpl#getHierarchyPermission()
+ * @generated
+ */
+ EClass HIERARCHY_PERMISSION = eINSTANCE.getHierarchyPermission();
+
+ /**
+ * The meta object literal for the '<em><b>Container Type</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HIERARCHY_PERMISSION__CONTAINER_TYPE = eINSTANCE.getHierarchyPermission_ContainerType();
+
+ /**
+ * The meta object literal for the '<em><b>Permitted</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HIERARCHY_PERMISSION__PERMITTED = eINSTANCE.getHierarchyPermission_Permitted();
+
+ /**
+ * The meta object literal for the '<em><b>Strict</b></em>' attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ EAttribute HIERARCHY_PERMISSION__STRICT = eINSTANCE.getHierarchyPermission_Strict();
+
+ }
+
+} //InvariantContainerRulePackage
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/HierarchyPermissionImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/HierarchyPermissionImpl.java
new file mode 100644
index 00000000000..b8e2055e715
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/HierarchyPermissionImpl.java
@@ -0,0 +1,281 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.impl;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.ecore.EClass;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission;
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Hierarchy Permission</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl#getContainerType <em>Container Type</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl#isPermitted <em>Permitted</em>}</li>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.HierarchyPermissionImpl#isStrict <em>Strict</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class HierarchyPermissionImpl extends MinimalEObjectImpl.Container implements HierarchyPermission {
+ /**
+ * The default value of the '{@link #getContainerType() <em>Container Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getContainerType()
+ * @generated
+ * @ordered
+ */
+ protected static final String CONTAINER_TYPE_EDEFAULT = null;
+
+ /**
+ * The cached value of the '{@link #getContainerType() <em>Container Type</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getContainerType()
+ * @generated
+ * @ordered
+ */
+ protected String containerType = CONTAINER_TYPE_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #isPermitted() <em>Permitted</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isPermitted()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean PERMITTED_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isPermitted() <em>Permitted</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isPermitted()
+ * @generated
+ * @ordered
+ */
+ protected boolean permitted = PERMITTED_EDEFAULT;
+
+ /**
+ * The default value of the '{@link #isStrict() <em>Strict</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isStrict()
+ * @generated
+ * @ordered
+ */
+ protected static final boolean STRICT_EDEFAULT = false;
+
+ /**
+ * The cached value of the '{@link #isStrict() <em>Strict</em>}' attribute.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #isStrict()
+ * @generated
+ * @ordered
+ */
+ protected boolean strict = STRICT_EDEFAULT;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HierarchyPermissionImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return InvariantContainerRulePackage.Literals.HIERARCHY_PERMISSION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public String getContainerType() {
+ return containerType;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setContainerType(String newContainerType) {
+ String oldContainerType = containerType;
+ containerType = newContainerType;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE, oldContainerType, containerType));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isPermitted() {
+ return permitted;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setPermitted(boolean newPermitted) {
+ boolean oldPermitted = permitted;
+ permitted = newPermitted;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED, oldPermitted, permitted));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public boolean isStrict() {
+ return strict;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setStrict(boolean newStrict) {
+ boolean oldStrict = strict;
+ strict = newStrict;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT, oldStrict, strict));
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE:
+ return getContainerType();
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED:
+ return isPermitted();
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT:
+ return isStrict();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE:
+ setContainerType((String)newValue);
+ return;
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED:
+ setPermitted((Boolean)newValue);
+ return;
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT:
+ setStrict((Boolean)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE:
+ setContainerType(CONTAINER_TYPE_EDEFAULT);
+ return;
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED:
+ setPermitted(PERMITTED_EDEFAULT);
+ return;
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT:
+ setStrict(STRICT_EDEFAULT);
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE:
+ return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType);
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED:
+ return permitted != PERMITTED_EDEFAULT;
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT:
+ return strict != STRICT_EDEFAULT;
+ }
+ return super.eIsSet(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String toString() {
+ if (eIsProxy()) return super.toString();
+
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (containerType: ");
+ result.append(containerType);
+ result.append(", permitted: ");
+ result.append(permitted);
+ result.append(", strict: ");
+ result.append(strict);
+ result.append(')');
+ return result.toString();
+ }
+
+} //HierarchyPermissionImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleConfigurationImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleConfigurationImpl.java
new file mode 100644
index 00000000000..51524ab7d72
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleConfigurationImpl.java
@@ -0,0 +1,162 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.impl;
+
+import java.util.Collection;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EList;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.util.EObjectContainmentEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission;
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration;
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage;
+
+import org.eclipse.papyrus.infra.types.rulebased.impl.RuleConfigurationImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Configuration</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * </p>
+ * <ul>
+ * <li>{@link org.eclipse.papyrus.infra.emf.types.rules.container.impl.InvariantContainerRuleConfigurationImpl#getPermissions <em>Permissions</em>}</li>
+ * </ul>
+ *
+ * @generated
+ */
+public class InvariantContainerRuleConfigurationImpl extends RuleConfigurationImpl implements InvariantContainerRuleConfiguration {
+ /**
+ * The cached value of the '{@link #getPermissions() <em>Permissions</em>}' containment reference list.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #getPermissions()
+ * @generated
+ * @ordered
+ */
+ protected EList<HierarchyPermission> permissions;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected InvariantContainerRuleConfigurationImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass() {
+ return InvariantContainerRulePackage.Literals.INVARIANT_CONTAINER_RULE_CONFIGURATION;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EList<HierarchyPermission> getPermissions() {
+ if (permissions == null) {
+ permissions = new EObjectContainmentEList<HierarchyPermission>(HierarchyPermission.class, this, InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS);
+ }
+ return permissions;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+ switch (featureID) {
+ case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS:
+ return ((InternalEList<?>)getPermissions()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType) {
+ switch (featureID) {
+ case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS:
+ return getPermissions();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue) {
+ switch (featureID) {
+ case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS:
+ getPermissions().clear();
+ getPermissions().addAll((Collection<? extends HierarchyPermission>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID) {
+ switch (featureID) {
+ case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS:
+ getPermissions().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID) {
+ switch (featureID) {
+ case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS:
+ return permissions != null && !permissions.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
+
+} //InvariantContainerRuleConfigurationImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleFactoryImpl.java
new file mode 100644
index 00000000000..e806ed8cf5a
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRuleFactoryImpl.java
@@ -0,0 +1,116 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.impl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.*;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class InvariantContainerRuleFactoryImpl extends EFactoryImpl implements InvariantContainerRuleFactory {
+ /**
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static InvariantContainerRuleFactory init() {
+ try {
+ InvariantContainerRuleFactory theInvariantContainerRuleFactory = (InvariantContainerRuleFactory)EPackage.Registry.INSTANCE.getEFactory(InvariantContainerRulePackage.eNS_URI);
+ if (theInvariantContainerRuleFactory != null) {
+ return theInvariantContainerRuleFactory;
+ }
+ }
+ catch (Exception exception) {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new InvariantContainerRuleFactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRuleFactoryImpl() {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass) {
+ switch (eClass.getClassifierID()) {
+ case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION: return createInvariantContainerRuleConfiguration();
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION: return createHierarchyPermission();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRuleConfiguration createInvariantContainerRuleConfiguration() {
+ InvariantContainerRuleConfigurationImpl invariantContainerRuleConfiguration = new InvariantContainerRuleConfigurationImpl();
+ return invariantContainerRuleConfiguration;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HierarchyPermission createHierarchyPermission() {
+ HierarchyPermissionImpl hierarchyPermission = new HierarchyPermissionImpl();
+ return hierarchyPermission;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRulePackage getInvariantContainerRulePackage() {
+ return (InvariantContainerRulePackage)getEPackage();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static InvariantContainerRulePackage getPackage() {
+ return InvariantContainerRulePackage.eINSTANCE;
+ }
+
+} //InvariantContainerRuleFactoryImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRulePackageImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRulePackageImpl.java
new file mode 100644
index 00000000000..7ba5cdde554
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/impl/InvariantContainerRulePackageImpl.java
@@ -0,0 +1,253 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.impl;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EcorePackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission;
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration;
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleFactory;
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage;
+
+import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class InvariantContainerRulePackageImpl extends EPackageImpl implements InvariantContainerRulePackage {
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass invariantContainerRuleConfigurationEClass = null;
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private EClass hierarchyPermissionEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with
+ * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+ * package URI value.
+ * <p>Note: the correct way to create the package is via the static
+ * factory method {@link #init init()}, which also performs
+ * initialization of the package, or returns the registered package,
+ * if one already exists.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private InvariantContainerRulePackageImpl() {
+ super(eNS_URI, InvariantContainerRuleFactory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ *
+ * <p>This method is used to initialize {@link InvariantContainerRulePackage#eINSTANCE} when that field is accessed.
+ * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static InvariantContainerRulePackage init() {
+ if (isInited) return (InvariantContainerRulePackage)EPackage.Registry.INSTANCE.getEPackage(InvariantContainerRulePackage.eNS_URI);
+
+ // Obtain or create and register package
+ InvariantContainerRulePackageImpl theInvariantContainerRulePackage = (InvariantContainerRulePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof InvariantContainerRulePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new InvariantContainerRulePackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ RuleBasedPackage.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theInvariantContainerRulePackage.createPackageContents();
+
+ // Initialize created meta-data
+ theInvariantContainerRulePackage.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theInvariantContainerRulePackage.freeze();
+
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(InvariantContainerRulePackage.eNS_URI, theInvariantContainerRulePackage);
+ return theInvariantContainerRulePackage;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getInvariantContainerRuleConfiguration() {
+ return invariantContainerRuleConfigurationEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EReference getInvariantContainerRuleConfiguration_Permissions() {
+ return (EReference)invariantContainerRuleConfigurationEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EClass getHierarchyPermission() {
+ return hierarchyPermissionEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHierarchyPermission_ContainerType() {
+ return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHierarchyPermission_Permitted() {
+ return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public EAttribute getHierarchyPermission_Strict() {
+ return (EAttribute)hierarchyPermissionEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRuleFactory getInvariantContainerRuleFactory() {
+ return (InvariantContainerRuleFactory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is
+ * guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void createPackageContents() {
+ if (isCreated) return;
+ isCreated = true;
+
+ // Create classes and their features
+ invariantContainerRuleConfigurationEClass = createEClass(INVARIANT_CONTAINER_RULE_CONFIGURATION);
+ createEReference(invariantContainerRuleConfigurationEClass, INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS);
+
+ hierarchyPermissionEClass = createEClass(HIERARCHY_PERMISSION);
+ createEAttribute(hierarchyPermissionEClass, HIERARCHY_PERMISSION__CONTAINER_TYPE);
+ createEAttribute(hierarchyPermissionEClass, HIERARCHY_PERMISSION__PERMITTED);
+ createEAttribute(hierarchyPermissionEClass, HIERARCHY_PERMISSION__STRICT);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This
+ * method is guarded to have no affect on any invocation but its first.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void initializePackageContents() {
+ if (isInitialized) return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ RuleBasedPackage theRuleBasedPackage = (RuleBasedPackage)EPackage.Registry.INSTANCE.getEPackage(RuleBasedPackage.eNS_URI);
+ EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ invariantContainerRuleConfigurationEClass.getESuperTypes().add(theRuleBasedPackage.getRuleConfiguration());
+
+ // Initialize classes, features, and operations; add parameters
+ initEClass(invariantContainerRuleConfigurationEClass, InvariantContainerRuleConfiguration.class, "InvariantContainerRuleConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getInvariantContainerRuleConfiguration_Permissions(), this.getHierarchyPermission(), null, "permissions", null, 0, -1, InvariantContainerRuleConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(hierarchyPermissionEClass, HierarchyPermission.class, "HierarchyPermission", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getHierarchyPermission_ContainerType(), theEcorePackage.getEString(), "containerType", null, 1, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getHierarchyPermission_Permitted(), theEcorePackage.getEBoolean(), "permitted", null, 1, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getHierarchyPermission_Strict(), theEcorePackage.getEBoolean(), "strict", null, 1, 1, HierarchyPermission.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} //InvariantContainerRulePackageImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/HierarchyPermissionItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/HierarchyPermissionItemProvider.java
new file mode 100644
index 00000000000..3782ac2db78
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/HierarchyPermissionItemProvider.java
@@ -0,0 +1,216 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ItemProviderAdapter;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission;
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class HierarchyPermissionItemProvider
+ extends ItemProviderAdapter
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public HierarchyPermissionItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ addContainerTypePropertyDescriptor(object);
+ addPermittedPropertyDescriptor(object);
+ addStrictPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Container Type feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addContainerTypePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HierarchyPermission_containerType_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HierarchyPermission_containerType_feature", "_UI_HierarchyPermission_type"),
+ InvariantContainerRulePackage.Literals.HIERARCHY_PERMISSION__CONTAINER_TYPE,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Permitted feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addPermittedPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HierarchyPermission_permitted_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HierarchyPermission_permitted_feature", "_UI_HierarchyPermission_type"),
+ InvariantContainerRulePackage.Literals.HIERARCHY_PERMISSION__PERMITTED,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Strict feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addStrictPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_HierarchyPermission_strict_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_HierarchyPermission_strict_feature", "_UI_HierarchyPermission_type"),
+ InvariantContainerRulePackage.Literals.HIERARCHY_PERMISSION__STRICT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.BOOLEAN_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns HierarchyPermission.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/HierarchyPermission"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((HierarchyPermission)object).getContainerType();
+ return label == null || label.length() == 0 ?
+ getString("_UI_HierarchyPermission_type") :
+ getString("_UI_HierarchyPermission_type") + " " + label;
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(HierarchyPermission.class)) {
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__CONTAINER_TYPE:
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__PERMITTED:
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION__STRICT:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return InvariantContainerRuleEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleConfigurationItemProvider.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleConfigurationItemProvider.java
new file mode 100644
index 00000000000..a6209fc9d28
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleConfigurationItemProvider.java
@@ -0,0 +1,167 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.provider;
+
+
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.AdapterFactory;
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.edit.provider.IItemPropertyDescriptor;
+import org.eclipse.emf.edit.provider.ViewerNotification;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration;
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleFactory;
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage;
+
+import org.eclipse.papyrus.infra.types.rulebased.provider.RuleConfigurationItemProvider;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class InvariantContainerRuleConfigurationItemProvider extends RuleConfigurationItemProvider {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRuleConfigurationItemProvider(AdapterFactory adapterFactory) {
+ super(adapterFactory);
+ }
+
+ /**
+ * This returns the property descriptors for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
+ if (itemPropertyDescriptors == null) {
+ super.getPropertyDescriptors(object);
+
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an
+ * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or
+ * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) {
+ if (childrenFeatures == null) {
+ super.getChildrenFeatures(object);
+ childrenFeatures.add(InvariantContainerRulePackage.Literals.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS);
+ }
+ return childrenFeatures;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected EStructuralFeature getChildFeature(Object object, Object child) {
+ // Check the type of the specified child object and return the proper feature to use for
+ // adding (see {@link AddCommand}) it as a child.
+
+ return super.getChildFeature(object, child);
+ }
+
+ /**
+ * This returns InvariantContainerRuleConfiguration.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/InvariantContainerRuleConfiguration"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_InvariantContainerRuleConfiguration_type");
+ }
+
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+
+ switch (notification.getFeatureID(InvariantContainerRuleConfiguration.class)) {
+ case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false));
+ return;
+ }
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+
+ newChildDescriptors.add
+ (createChildParameter
+ (InvariantContainerRulePackage.Literals.INVARIANT_CONTAINER_RULE_CONFIGURATION__PERMISSIONS,
+ InvariantContainerRuleFactory.eINSTANCE.createHierarchyPermission()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return InvariantContainerRuleEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleEditPlugin.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleEditPlugin.java
new file mode 100644
index 00000000000..88479e4bda8
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleEditPlugin.java
@@ -0,0 +1,108 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.provider.EcoreEditPlugin;
+
+import org.eclipse.papyrus.infra.types.provider.TypesConfigurationsEditPlugin;
+
+import org.eclipse.papyrus.infra.types.rulebased.provider.RuleBasedEditPlugin;
+
+/**
+ * This is the central singleton for the InvariantContainerRule edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class InvariantContainerRuleEditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final InvariantContainerRuleEditPlugin INSTANCE = new InvariantContainerRuleEditPlugin();
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ private static Implementation plugin;
+
+ /**
+ * Create the instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRuleEditPlugin() {
+ super
+ (new ResourceLocator [] {
+ EcoreEditPlugin.INSTANCE,
+ TypesConfigurationsEditPlugin.INSTANCE,
+ RuleBasedEditPlugin.INSTANCE,
+ });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleItemProviderAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleItemProviderAdapterFactory.java
new file mode 100644
index 00000000000..d41f5134c93
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/provider/InvariantContainerRuleItemProviderAdapterFactory.java
@@ -0,0 +1,353 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.provider;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.emf.edit.command.CommandParameter;
+
+import org.eclipse.emf.edit.domain.EditingDomain;
+
+import org.eclipse.emf.edit.provider.ChangeNotifier;
+import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
+import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
+import org.eclipse.emf.edit.provider.IChangeNotifier;
+import org.eclipse.emf.edit.provider.IChildCreationExtender;
+import org.eclipse.emf.edit.provider.IDisposable;
+import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
+import org.eclipse.emf.edit.provider.IItemLabelProvider;
+import org.eclipse.emf.edit.provider.IItemPropertySource;
+import org.eclipse.emf.edit.provider.INotifyChangedListener;
+import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
+import org.eclipse.emf.edit.provider.ITreeItemContentProvider;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleFactory;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.util.InvariantContainerRuleAdapterFactory;
+
+import org.eclipse.papyrus.infra.types.rulebased.CompositeRuleConfiguration;
+import org.eclipse.papyrus.infra.types.rulebased.RuleBasedPackage;
+import org.eclipse.papyrus.infra.types.rulebased.RuleBasedTypeConfiguration;
+
+import org.eclipse.papyrus.infra.types.rulebased.util.RuleBasedSwitch;
+
+/**
+ * This is the factory that is used to provide the interfaces needed to support Viewers.
+ * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
+ * The adapters also support Eclipse property sheets.
+ * Note that most of the adapters are shared among multiple instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class InvariantContainerRuleItemProviderAdapterFactory extends InvariantContainerRuleAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
+ /**
+ * This keeps track of the root adapter factory that delegates to this adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ComposedAdapterFactory parentAdapterFactory;
+
+ /**
+ * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IChangeNotifier changeNotifier = new ChangeNotifier();
+
+ /**
+ * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected Collection<Object> supportedTypes = new ArrayList<Object>();
+
+ /**
+ * This constructs an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRuleItemProviderAdapterFactory() {
+ supportedTypes.add(IEditingDomainItemProvider.class);
+ supportedTypes.add(IStructuredItemContentProvider.class);
+ supportedTypes.add(ITreeItemContentProvider.class);
+ supportedTypes.add(IItemLabelProvider.class);
+ supportedTypes.add(IItemPropertySource.class);
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected InvariantContainerRuleConfigurationItemProvider invariantContainerRuleConfigurationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createInvariantContainerRuleConfigurationAdapter() {
+ if (invariantContainerRuleConfigurationItemProvider == null) {
+ invariantContainerRuleConfigurationItemProvider = new InvariantContainerRuleConfigurationItemProvider(this);
+ }
+
+ return invariantContainerRuleConfigurationItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected HierarchyPermissionItemProvider hierarchyPermissionItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createHierarchyPermissionAdapter() {
+ if (hierarchyPermissionItemProvider == null) {
+ hierarchyPermissionItemProvider = new HierarchyPermissionItemProvider(this);
+ }
+
+ return hierarchyPermissionItemProvider;
+ }
+
+ /**
+ * This returns the root adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ComposeableAdapterFactory getRootAdapterFactory() {
+ return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
+ }
+
+ /**
+ * This sets the composed adapter factory that contains this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
+ this.parentAdapterFactory = parentAdapterFactory;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object type) {
+ return supportedTypes.contains(type) || super.isFactoryForType(type);
+ }
+
+ /**
+ * This implementation substitutes the factory itself as the key for the adapter.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter adapt(Notifier notifier, Object type) {
+ return super.adapt(notifier, this);
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object adapt(Object object, Object type) {
+ if (isFactoryForType(type)) {
+ Object adapter = super.adapt(object, type);
+ if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
+ return adapter;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * This adds a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void addListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.addListener(notifyChangedListener);
+ }
+
+ /**
+ * This removes a listener.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void removeListener(INotifyChangedListener notifyChangedListener) {
+ changeNotifier.removeListener(notifyChangedListener);
+ }
+
+ /**
+ * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void fireNotifyChanged(Notification notification) {
+ changeNotifier.fireNotifyChanged(notification);
+
+ if (parentAdapterFactory != null) {
+ parentAdapterFactory.fireNotifyChanged(notification);
+ }
+ }
+
+ /**
+ * This disposes all of the item providers created by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public void dispose() {
+ if (invariantContainerRuleConfigurationItemProvider != null) invariantContainerRuleConfigurationItemProvider.dispose();
+ if (hierarchyPermissionItemProvider != null) hierarchyPermissionItemProvider.dispose();
+ }
+
+ /**
+ * A child creation extender for the {@link RuleBasedPackage}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class RuleBasedChildCreationExtender implements IChildCreationExtender {
+ /**
+ * The switch for creating child descriptors specific to each extended class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static class CreationSwitch extends RuleBasedSwitch<Object> {
+ /**
+ * The child descriptors being populated.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected List<Object> newChildDescriptors;
+
+ /**
+ * The domain in which to create the children.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected EditingDomain editingDomain;
+
+ /**
+ * Creates the a switch for populating child descriptors in the given domain.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ CreationSwitch(List<Object> newChildDescriptors, EditingDomain editingDomain) {
+ this.newChildDescriptors = newChildDescriptors;
+ this.editingDomain = editingDomain;
+ }
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object caseRuleBasedTypeConfiguration(RuleBasedTypeConfiguration object) {
+ newChildDescriptors.add
+ (createChildParameter
+ (RuleBasedPackage.Literals.RULE_BASED_TYPE_CONFIGURATION__RULE_CONFIGURATION,
+ InvariantContainerRuleFactory.eINSTANCE.createInvariantContainerRuleConfiguration()));
+
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object caseCompositeRuleConfiguration(CompositeRuleConfiguration object) {
+ newChildDescriptors.add
+ (createChildParameter
+ (RuleBasedPackage.Literals.COMPOSITE_RULE_CONFIGURATION__COMPOSED_RULES,
+ InvariantContainerRuleFactory.eINSTANCE.createInvariantContainerRuleConfiguration()));
+
+ return null;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected CommandParameter createChildParameter(Object feature, Object child) {
+ return new CommandParameter(null, feature, child);
+ }
+
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Collection<Object> getNewChildDescriptors(Object object, EditingDomain editingDomain) {
+ ArrayList<Object> result = new ArrayList<Object>();
+ new CreationSwitch(result, editingDomain).doSwitch((EObject)object);
+ return result;
+ }
+
+ /**
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public ResourceLocator getResourceLocator() {
+ return InvariantContainerRuleEditPlugin.INSTANCE;
+ }
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleAdapterFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleAdapterFactory.java
new file mode 100644
index 00000000000..42d74d71e86
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleAdapterFactory.java
@@ -0,0 +1,168 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.util;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EObject;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.*;
+
+import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage
+ * @generated
+ */
+public class InvariantContainerRuleAdapterFactory extends AdapterFactoryImpl {
+ /**
+ * The cached model package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static InvariantContainerRulePackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRuleAdapterFactory() {
+ if (modelPackage == null) {
+ modelPackage = InvariantContainerRulePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ * <!-- begin-user-doc -->
+ * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+ * <!-- end-user-doc -->
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object) {
+ if (object == modelPackage) {
+ return true;
+ }
+ if (object instanceof EObject) {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected InvariantContainerRuleSwitch<Adapter> modelSwitch =
+ new InvariantContainerRuleSwitch<Adapter>() {
+ @Override
+ public Adapter caseInvariantContainerRuleConfiguration(InvariantContainerRuleConfiguration object) {
+ return createInvariantContainerRuleConfigurationAdapter();
+ }
+ @Override
+ public Adapter caseHierarchyPermission(HierarchyPermission object) {
+ return createHierarchyPermissionAdapter();
+ }
+ @Override
+ public Adapter caseRuleConfiguration(RuleConfiguration object) {
+ return createRuleConfigurationAdapter();
+ }
+ @Override
+ public Adapter defaultCase(EObject object) {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param target the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target) {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration <em>Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRuleConfiguration
+ * @generated
+ */
+ public Adapter createInvariantContainerRuleConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission <em>Hierarchy Permission</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.HierarchyPermission
+ * @generated
+ */
+ public Adapter createHierarchyPermissionAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration <em>Rule Configuration</em>}'.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @see org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration
+ * @generated
+ */
+ public Adapter createRuleConfigurationAdapter() {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ * <!-- begin-user-doc -->
+ * This default implementation returns null.
+ * <!-- end-user-doc -->
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter() {
+ return null;
+ }
+
+} //InvariantContainerRuleAdapterFactory
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceFactoryImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceFactoryImpl.java
new file mode 100644
index 00000000000..e0fa0a8c6ea
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceFactoryImpl.java
@@ -0,0 +1,51 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.resource.Resource;
+
+import org.eclipse.emf.ecore.resource.impl.ResourceFactoryImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource Factory</b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.util.InvariantContainerRuleResourceImpl
+ * @generated
+ */
+public class InvariantContainerRuleResourceFactoryImpl extends ResourceFactoryImpl {
+ /**
+ * Creates an instance of the resource factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRuleResourceFactoryImpl() {
+ super();
+ }
+
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Resource createResource(URI uri) {
+ Resource result = new InvariantContainerRuleResourceImpl(uri);
+ return result;
+ }
+
+} //InvariantContainerRuleResourceFactoryImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceImpl.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceImpl.java
new file mode 100644
index 00000000000..5e1deb77e11
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleResourceImpl.java
@@ -0,0 +1,38 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.util;
+
+import org.eclipse.emf.common.util.URI;
+
+import org.eclipse.emf.ecore.xmi.impl.XMIResourceImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Resource </b> associated with the package.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.util.InvariantContainerRuleResourceFactoryImpl
+ * @generated
+ */
+public class InvariantContainerRuleResourceImpl extends XMIResourceImpl {
+ /**
+ * Creates an instance of the resource.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param uri the URI of the new resource.
+ * @generated
+ */
+ public InvariantContainerRuleResourceImpl(URI uri) {
+ super(uri);
+ }
+
+} //InvariantContainerRuleResourceImpl
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleSwitch.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleSwitch.java
new file mode 100644
index 00000000000..23df2e584ba
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src-gen/org/eclipse/papyrus/infra/emf/types/rules/container/util/InvariantContainerRuleSwitch.java
@@ -0,0 +1,159 @@
+/**
+ * Copyright (c) 2014 CEA LIST.
+ *
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ */
+package org.eclipse.papyrus.infra.emf.types.rules.container.util;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+
+import org.eclipse.emf.ecore.util.Switch;
+
+import org.eclipse.papyrus.infra.emf.types.rules.container.*;
+
+import org.eclipse.papyrus.infra.types.rulebased.RuleConfiguration;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.eclipse.papyrus.infra.emf.types.rules.container.InvariantContainerRulePackage
+ * @generated
+ */
+public class InvariantContainerRuleSwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected static InvariantContainerRulePackage modelPackage;
+
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public InvariantContainerRuleSwitch() {
+ if (modelPackage == null) {
+ modelPackage = InvariantContainerRulePackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @param ePackage the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
+
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ @Override
+ protected T doSwitch(int classifierID, EObject theEObject) {
+ switch (classifierID) {
+ case InvariantContainerRulePackage.INVARIANT_CONTAINER_RULE_CONFIGURATION: {
+ InvariantContainerRuleConfiguration invariantContainerRuleConfiguration = (InvariantContainerRuleConfiguration)theEObject;
+ T result = caseInvariantContainerRuleConfiguration(invariantContainerRuleConfiguration);
+ if (result == null) result = caseRuleConfiguration(invariantContainerRuleConfiguration);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ case InvariantContainerRulePackage.HIERARCHY_PERMISSION: {
+ HierarchyPermission hierarchyPermission = (HierarchyPermission)theEObject;
+ T result = caseHierarchyPermission(hierarchyPermission);
+ if (result == null) result = defaultCase(theEObject);
+ return result;
+ }
+ default: return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseInvariantContainerRuleConfiguration(InvariantContainerRuleConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Hierarchy Permission</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Hierarchy Permission</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseHierarchyPermission(HierarchyPermission object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Rule Configuration</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Rule Configuration</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRuleConfiguration(RuleConfiguration object) {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * <!-- begin-user-doc -->
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ * <!-- end-user-doc -->
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
+
+} //InvariantContainerRuleSwitch
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/Activator.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/Activator.java
new file mode 100644
index 00000000000..62dff127aeb
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/Activator.java
@@ -0,0 +1,63 @@
+/*****************************************************************************
+ * Copyright (c) 2014, 2016 CEA LIST, Christian W. Damus, and others.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ * Christian W. Damus - bug 485220
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types;
+
+import org.eclipse.core.runtime.Plugin;
+import org.eclipse.papyrus.infra.core.log.LogHelper;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.infra.emf.types"; //$NON-NLS-1$
+
+ // The shared instance
+ private static Activator INSTANCE;
+
+ /** Logging helper */
+ public static LogHelper log;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ @Override
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ INSTANCE = this;
+ log = new LogHelper(this);
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ log = null;
+ INSTANCE = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return INSTANCE;
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValueUtils.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValueUtils.java
new file mode 100644
index 00000000000..987121783e5
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/FeatureValueUtils.java
@@ -0,0 +1,133 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.emf.ecore.EClassifier;
+import org.eclipse.emf.ecore.EDataType;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.papyrus.infra.emf.types.Activator;
+import org.eclipse.papyrus.infra.emf.types.advices.values.util.SetValuesAdviceSwitch;
+import org.eclipse.papyrus.infra.emf.types.converter.ConverterNotfoundException;
+import org.eclipse.papyrus.infra.emf.types.converter.ConverterRegistry;
+import org.eclipse.uml2.uml.DataType;
+import org.eclipse.uml2.uml.InstanceValue;
+import org.eclipse.uml2.uml.ValueSpecification;
+
+
+/**
+ * Utility class to get values from a {@link FeatureValue}
+ */
+public class FeatureValueUtils {
+
+ protected FeatureValueUtils() {
+ // no instanciation, helper class
+ }
+
+ /**
+ * Returns the value to set for a given feature of a given element
+ *
+ * @param elementToConfigure
+ * eobject for which feature is set. This must not be <code>null</code>
+ * @param feature
+ * {@link EStructuralFeature} to set. This must not be <code>null</code>
+ * @param valueModel
+ * configuration of the value, stored in the model
+ * @return the real value that will be set to the object or <code>null</code> if none could be computed
+ */
+ public static Object getValue(final EObject elementToConfigure, final EStructuralFeature feature, final FeatureValue featureValue) {
+
+ Object result = new SetValuesAdviceSwitch<Object>() {
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Object caseConstantValue(ConstantValue object) {
+ ValueSpecification valueSpecification = object.getValueInstance();
+
+ if (valueSpecification == null) {
+ return null;
+ }
+
+ try {
+ EClassifier type = feature.getEType();
+ if (type instanceof EEnum) {
+ String value = ((InstanceValue) valueSpecification).getInstance().getName();
+ return ((EEnum) type).getEEnumLiteral(value).getInstance();
+ // return ConverterRegistry.getSingleton().convert(EEnum.class, valueSpecification);
+ } else if (type instanceof EDataType) {
+ final EDataType pType = (EDataType) type;
+ final String name = pType.getName();
+ if ("Boolean".equals(name)) {
+ return ConverterRegistry.getSingleton().convert(boolean.class, valueSpecification);
+ } else if ("Integer".equals(name)) {
+ return ConverterRegistry.getSingleton().convert(int.class, valueSpecification);
+ } else if ("Real".equals(name)) {
+ return ConverterRegistry.getSingleton().convert(double.class, valueSpecification);
+ } else if ("String".equals(name)) {
+ return ConverterRegistry.getSingleton().convert(String.class, valueSpecification);
+ } else if ("UnlimitedNatural".equals(name)) {
+ return ConverterRegistry.getSingleton().convert(int.class, valueSpecification);
+ } else { // custom PrimitiveType
+ return ConverterRegistry.getSingleton().convert(String.class, valueSpecification);
+ }
+ } else if (type instanceof DataType) {// FIXME manage the data type
+ return ConverterRegistry.getSingleton().convert(String.class, valueSpecification);
+ }
+ return ConverterRegistry.getSingleton().convert(feature.getEType().getInstanceClass(), valueSpecification);
+ } catch (ConverterNotfoundException e) {
+ Activator.log.error("Impossible to convert " + valueSpecification + " to fit feature type :" + feature, e);
+ }
+ return super.caseConstantValue(object);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Object caseQueryExecutionValue(QueryExecutionValue object) {
+ throw new UnsupportedOperationException("Query execution values resolution has not been implemented yet");
+ };
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Object caseDynamicValue(DynamicValue object) {
+ throw new UnsupportedOperationException("Dynamic values resolution has not been implemented yet");
+ };
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Object caseListValue(ListValue object) {
+ // resolve one by one all features in the values list of this listvalue
+ List<Object> results = new ArrayList<Object>();
+ for (FeatureValue value : object.getValues()) {
+ Object singleResult = getValue(elementToConfigure, feature, value);
+ results.add(singleResult);
+ }
+ return results;
+ };
+
+ }.doSwitch(featureValue);
+ return result;
+ }
+
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdvice.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdvice.java
new file mode 100644
index 00000000000..e092aaeb03e
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdvice.java
@@ -0,0 +1,175 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import java.util.HashMap;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.gmf.runtime.common.core.command.ICommand;
+import org.eclipse.gmf.runtime.emf.type.core.edithelper.AbstractEditHelperAdvice;
+import org.eclipse.gmf.runtime.emf.type.core.requests.ConfigureRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
+import org.eclipse.papyrus.infra.emf.types.Activator;
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureToSet;
+import org.eclipse.papyrus.infra.emf.types.advices.values.FeatureValue;
+import org.eclipse.papyrus.infra.emf.types.advices.values.SetValuesAdviceConfiguration;
+import org.eclipse.papyrus.infra.services.edit.service.ElementEditServiceUtils;
+import org.eclipse.papyrus.infra.services.edit.service.IElementEditService;
+
+/**
+ * advice for the {@link SetValuesAdviceConfiguration}
+ */
+public class SetValuesAdviceEditHelperAdvice extends AbstractEditHelperAdvice {
+
+ /** list of the features to set */
+ // protected Map<String, FeatureValue> featuresToValues = null;
+ /** list of runtime defined features */
+ // protected Map<String, FeatureValue> featuresToRuntimeDefinitions = null;
+
+ /** list of static defined features */
+ protected Map<String, FeatureValue> featuresToStaticDefinitions = null;
+
+
+ /**
+ * Default Constructor
+ */
+ public SetValuesAdviceEditHelperAdvice(SetValuesAdviceConfiguration configuration) {
+ // featuresToRuntimeDefinitions = new HashMap<String, FeatureValue>();
+ featuresToStaticDefinitions = new HashMap<String, FeatureValue>();
+ if (configuration == null) {
+ return;
+ }
+ for (FeatureToSet featureToSet : configuration.getFeaturesToSet()) {
+ featuresToStaticDefinitions.put(featureToSet.getFeatureName(), featureToSet.getValue());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public boolean approveRequest(IEditCommandRequest request) {
+ return super.approveRequest(request);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected ICommand getBeforeCreateCommand(CreateElementRequest request) {
+ return super.getBeforeCreateCommand(request);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected ICommand getAfterCreateCommand(CreateElementRequest request) {
+ return super.getAfterCreateCommand(request);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected ICommand getBeforeConfigureCommand(ConfigureRequest request) {
+ return super.getBeforeConfigureCommand(request);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ protected ICommand getAfterConfigureCommand(ConfigureRequest request) {
+ ICommand resultCommand = null;
+
+ // retrieve eobject
+ EObject elementToConfigure = request.getElementToConfigure();
+ if (elementToConfigure == null) {
+ return null;
+ }
+ // retrieve edit service to get features from configure command
+ IElementEditService service = ElementEditServiceUtils.getCommandProvider(elementToConfigure);
+ if (service == null) {
+ Activator.log.error("Impossible to get edit service from element: " + elementToConfigure, null);
+ return null;
+ }
+
+ for (Entry<String, FeatureValue> featureEntry : featuresToStaticDefinitions.entrySet()) {
+ // retrieve feature value
+ ICommand command = getSetFeatureValueCommand(elementToConfigure, featureEntry.getKey(), featureEntry.getValue(), service, request);
+ if (command != null) {
+ if (resultCommand == null) {
+ resultCommand = command;
+ } else {
+ resultCommand = resultCommand.compose(command);
+ }
+ }
+ }
+
+ // if(!featuresToRuntimeDefinitions.isEmpty()) {
+ // ICommand command = getDynamicSetFeatureValueCommand(elementToConfigure, featuresToRuntimeDefinitions, service, request);
+ // if(command !=null) {
+ // if(resultCommand == null) {
+ // resultCommand = command;
+ // } else {
+ // resultCommand = resultCommand.compose(command);
+ // }
+ // }
+ // }
+
+
+ if (resultCommand != null) {
+ return resultCommand.reduce();
+ }
+
+
+ return super.getAfterConfigureCommand(request);
+ }
+
+
+ /**
+ * @param elementToConfigure
+ * the eobject to configure
+ * @param name
+ * the name of the feature to set
+ * @param value
+ * the new value of the feature
+ */
+ protected ICommand getSetFeatureValueCommand(EObject elementToConfigure, String name, FeatureValue featureValue, IElementEditService service, ConfigureRequest configureRequest) {
+ if (name == null) {
+ Activator.log.debug("No feature name has been set.");
+ return null;
+ }
+ if (elementToConfigure.eClass() == null) {
+ Activator.log.error("Impossible to find EClass from EObject: " + elementToConfigure, null);
+ return null;
+ }
+ // retrieve structural feature for the element to configure
+ EStructuralFeature feature = elementToConfigure.eClass().getEStructuralFeature(name);
+ if (feature == null) {
+ Activator.log.error("Impossible to find feature " + name + " for eobject " + elementToConfigure, null);
+ return null;
+ }
+ Object value = FeatureValueUtils.getValue(elementToConfigure, feature, featureValue);
+ SetRequest request = new SetRequest(elementToConfigure, feature, value);
+ // duplicate parameters from configure request?
+ request.addParameters(configureRequest.getParameters());
+ return service.getEditCommand(request);
+ }
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdviceFactory.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdviceFactory.java
new file mode 100644
index 00000000000..7b3b8f70fce
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/advices/values/SetValuesAdviceEditHelperAdviceFactory.java
@@ -0,0 +1,31 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.advices.values;
+
+import org.eclipse.gmf.runtime.emf.type.core.edithelper.IEditHelperAdvice;
+import org.eclipse.papyrus.infra.types.AbstractAdviceBindingConfiguration;
+import org.eclipse.papyrus.infra.types.core.factories.impl.AbstractAdviceBindingFactory;
+import org.eclipse.papyrus.infra.types.core.impl.NullEditHelperAdvice;
+
+public class SetValuesAdviceEditHelperAdviceFactory extends AbstractAdviceBindingFactory<AbstractAdviceBindingConfiguration> {
+
+ @Override
+ protected IEditHelperAdvice getEditHelperAdvice(AbstractAdviceBindingConfiguration adviceConfiguration) {
+ if (adviceConfiguration instanceof SetValuesAdviceConfiguration) {
+ IEditHelperAdvice editHelperAdvice = new SetValuesAdviceEditHelperAdvice((SetValuesAdviceConfiguration) adviceConfiguration);
+ return editHelperAdvice;
+ }
+ return NullEditHelperAdvice.getInstance();
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterNotfoundException.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterNotfoundException.java
new file mode 100644
index 00000000000..38ab545e7c2
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterNotfoundException.java
@@ -0,0 +1,71 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.converter;
+
+import org.eclipse.uml2.uml.ValueSpecification;
+
+
+/**
+ * Exception thrown when no converter was found
+ */
+public class ConverterNotfoundException extends Exception {
+
+ /** serialization id */
+ private static final long serialVersionUID = -8863603362830475612L;
+
+ /** target parameter type */
+ private final Class<?> parameterType;
+
+ /** source value instance */
+ private final ValueSpecification valueInstance;
+
+ /**
+ * Creates a new {@link ConverterNotfoundException}.
+ *
+ * @param parameterType
+ * the target type of the value
+ * @param valueInstance
+ * the value specification defining the entering value and type
+ */
+ public ConverterNotfoundException(Class<?> parameterType, ValueSpecification valueInstance) {
+ this.parameterType = parameterType;
+ this.valueInstance = valueInstance;
+ }
+
+ /**
+ * Returns the target parameter type
+ *
+ * @return the target parameter type
+ */
+ public Class<?> getParameterType() {
+ return parameterType;
+ }
+
+ /**
+ * Returns the value specification defining the entering value and type
+ *
+ * @return the value specification defining the entering value and type
+ */
+ public ValueSpecification getValueInstance() {
+ return valueInstance;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public String getMessage() {
+ return "Converter not found for target type: " + getParameterType() + " and for initial value: " + getValueInstance();
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterRegistry.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterRegistry.java
new file mode 100644
index 00000000000..774f98cf2e9
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ConverterRegistry.java
@@ -0,0 +1,154 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.converter;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.core.databinding.conversion.IConverter;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.uml2.uml.Enumeration;
+import org.eclipse.uml2.uml.ValueSpecification;
+
+/**
+ * Registry to store onverters.
+ */
+public class ConverterRegistry {
+
+ /** singleton instance */
+ private static ConverterRegistry instance;
+
+ /** map to store converters, identified by their class */
+ private Map<Class<?>, IConverter> converterMaps = new HashMap<Class<?>, IConverter>();
+
+ /**
+ * Constructor (not visible: singleton pattern)
+ */
+ private ConverterRegistry() {
+ }
+
+ /**
+ * Returns the single instance of this registry
+ *
+ * @return the single instance of this registry
+ */
+ public static synchronized ConverterRegistry getSingleton() {
+ if(instance == null) {
+ instance = new ConverterRegistry();
+ instance.initializeRegistry();
+ }
+ return instance;
+ }
+
+ /**
+ * Initialize the registry
+ */
+ protected void initializeRegistry() {
+ converterMaps.put(String.class, new ValueSpecificationToStringConverter());
+ converterMaps.put(int.class, new ValueSpecificationToIntegerConverter());
+ converterMaps.put(boolean.class, new ValueSpecificationToBooleanConverter());
+ converterMaps.put(Enumeration.class, new ValueSpecificationToEnumerationConverter());
+ converterMaps.put(EEnum.class, new ValueSpecificationToEENumConverter());
+ }
+
+ /**
+ * Returns the converter for the convenient type, from an {@link Object}
+ *
+ * @param toType
+ * the class into which the element should be transformed
+ *
+ * @return the converter for the convenient type
+ */
+ public IConverter getConverter(Class<?> toType) {
+ return converterMaps.get(toType);
+ }
+
+ public Object convert(Class<?> parameterType, ValueSpecification valueInstance) throws ConverterNotfoundException {
+ // retrieve the converter
+ IConverter converter = getConverter(parameterType);
+
+ if(converter != null) {
+ return converter.convert(valueInstance);
+ } else {
+ throw new ConverterNotfoundException(parameterType, valueInstance);
+ }
+ }
+
+// /**
+// * Converts a parameter value into a list of values
+// *
+// * @param context
+// * the context of the evaluation of the query
+// * @param parameterType
+// * the type of the list
+// * @param parameterValue
+// * the parameter value to transform into a list
+// * @return the list of values contained by the parameter value
+// */
+// public List<?> convertToList(final EObject context, final Class<?> parameterType, final ParameterValue parameterValue) {
+// return new ConfigurationSwitch<List<?>>() {
+//
+// /**
+// * {@inheritDoc}
+// */
+// @Override
+// public java.util.List<?> caseConstantParameterValue(ConstantParameterValue constantParameterValue) {
+// IConverter converter = getConverter(parameterType);
+//
+// if(converter != null) {
+// return Arrays.asList(converter.convert(constantParameterValue.getValueInstance()));
+// } else {
+// Activator.log.error("Impossible to find a converter for type: " + parameterType, null);
+// return Collections.emptyList();
+// }
+// };
+//
+// /**
+// * {@inheritDoc}
+// */
+// @Override
+// public java.util.List<?> caseQueryExecutionValue(QueryExecutionValue queryExecutionValue) {
+// // if query returns a list, returns it, else creates an array of one element
+// QueryConfiguration queryConfiguration = queryExecutionValue.getConfiguration();
+// if(!(queryConfiguration instanceof ModiscoQueryConfiguration)) {
+// throw new RuntimeException("List conversion not implemented for this type of configuration. " + queryConfiguration.eClass().getName());
+// }
+// Object executionResult = null;
+// try {
+// executionResult = QueryUtil.evaluateBooleanQuery(context, queryConfiguration);
+// } catch (Exception e) {
+// Activator.log.error(e);
+// }
+// int upperBound = ((ModiscoQueryConfiguration)queryConfiguration).getQuery().getUpperBound();
+// if(upperBound == 1) {
+// return Arrays.asList(executionResult);
+// } else {
+// return (List<?>)executionResult;
+// }
+// };
+//
+// /**
+// * {@inheritDoc}
+// */
+// @Override
+// public java.util.List<?> caseListParameterValue(ListParameterValue listParameterValue) {
+// List<Object> values = new ArrayList<Object>();
+// for(ParameterValue parameterValue : listParameterValue.getValues()) {
+// values.addAll(convertToList(context, parameterType, parameterValue));
+// }
+// return values;
+// };
+//
+// }.doSwitch(parameterValue);
+// }
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToBooleanConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToBooleanConverter.java
new file mode 100644
index 00000000000..774a9014785
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToBooleanConverter.java
@@ -0,0 +1,51 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.converter;
+
+import org.eclipse.core.databinding.conversion.Converter;
+import org.eclipse.core.databinding.conversion.IConverter;
+
+
+/**
+ * Converter for Objects to Boolean value
+ */
+public class ObjectToBooleanConverter extends Converter implements IConverter {
+
+ /**
+ * Creates a new ObjectToBooleanConverter
+ */
+ public ObjectToBooleanConverter() {
+ super(Object.class, Boolean.class);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Boolean convert(Object fromObject) {
+ if(fromObject == null) {
+ return null;
+ }
+
+ if(fromObject instanceof Boolean) {
+ return ((Boolean)fromObject);
+ }
+
+ if(fromObject instanceof String) {
+ return Boolean.valueOf((String)fromObject);
+ }
+
+ return null;
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToIntegerConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToIntegerConverter.java
new file mode 100644
index 00000000000..2f0c6261b16
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ObjectToIntegerConverter.java
@@ -0,0 +1,50 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.converter;
+
+import org.eclipse.core.databinding.conversion.Converter;
+import org.eclipse.core.databinding.conversion.IConverter;
+
+/**
+ * Converter from an object to an integer
+ */
+public class ObjectToIntegerConverter extends Converter implements IConverter {
+
+ /**
+ * Default constructor.
+ */
+ public ObjectToIntegerConverter() {
+ super(Object.class, Integer.class);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Integer convert(Object fromObject) {
+ if(fromObject == null) {
+ return null;
+ }
+
+ if(fromObject instanceof Integer) {
+ return (Integer)fromObject;
+ }
+
+ if(fromObject instanceof String) {
+ return Integer.parseInt((String)fromObject);
+ }
+
+ return null;
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToBooleanConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToBooleanConverter.java
new file mode 100644
index 00000000000..2ef9413ddcf
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToBooleanConverter.java
@@ -0,0 +1,39 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.converter;
+
+import org.eclipse.core.databinding.conversion.Converter;
+import org.eclipse.core.databinding.conversion.IConverter;
+import org.eclipse.uml2.uml.ValueSpecification;
+
+/**
+ * Converter from a {@link ValueSpecification} to a {@link Boolean} value
+ */
+public class ValueSpecificationToBooleanConverter extends Converter implements IConverter {
+
+ /**
+ * Creates a new ValueSpecificationToBooleanConverter.
+ */
+ public ValueSpecificationToBooleanConverter() {
+ super(ValueSpecification.class, boolean.class);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Object convert(Object fromObject) {
+ return ((ValueSpecification)fromObject).booleanValue();
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEENumConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEENumConverter.java
new file mode 100644
index 00000000000..99fc4eabdca
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEENumConverter.java
@@ -0,0 +1,61 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.converter;
+
+import org.eclipse.core.databinding.conversion.Converter;
+import org.eclipse.core.databinding.conversion.IConverter;
+import org.eclipse.emf.ecore.EEnum;
+import org.eclipse.uml2.uml.EnumerationLiteral;
+import org.eclipse.uml2.uml.InstanceSpecification;
+import org.eclipse.uml2.uml.InstanceValue;
+import org.eclipse.uml2.uml.ValueSpecification;
+
+
+
+public class ValueSpecificationToEENumConverter extends Converter implements IConverter {
+
+ /**
+ * @param fromType
+ * @param toType
+ */
+ public ValueSpecificationToEENumConverter() {
+ super(ValueSpecification.class, EEnum.class);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Object convert(Object fromObject) {
+ if (fromObject instanceof InstanceValue) {
+ InstanceSpecification instanceSpecification = ((InstanceValue) fromObject).getInstance();
+ if (instanceSpecification instanceof EnumerationLiteral) {
+
+
+// Class<?> eclass = ((EnumerationLiteral) instanceSpecification).getEnumeration().eClass().getInstanceClass();
+
+
+ // final EEnumLiteral literal = eenum.getEEnumLiteral(umlLiteral.getName());
+ // if(literal != null) {
+ // return literal.getInstance();
+ // }
+ // return null;
+ //
+
+ // return ((EnumerationLiteral)instanceSpecification).;
+ }
+ }
+
+ return fromObject;
+ }
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEnumerationConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEnumerationConverter.java
new file mode 100644
index 00000000000..c3b05bce503
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToEnumerationConverter.java
@@ -0,0 +1,51 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.converter;
+
+import org.eclipse.core.databinding.conversion.Converter;
+import org.eclipse.core.databinding.conversion.IConverter;
+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.ValueSpecification;
+
+
+/**
+ * Converter for enumeration values
+ */
+public class ValueSpecificationToEnumerationConverter extends Converter implements IConverter {
+
+ /**
+ * @param fromType
+ * @param toType
+ */
+ public ValueSpecificationToEnumerationConverter() {
+ super(ValueSpecification.class, Enumeration.class);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Object convert(Object fromObject) {
+ if(fromObject instanceof InstanceValue) {
+ InstanceSpecification instanceSpecification = ((InstanceValue)fromObject).getInstance();
+ if(instanceSpecification instanceof EnumerationLiteral) {
+ return (instanceSpecification);
+ }
+ }
+
+ return fromObject;
+ }
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToIntegerConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToIntegerConverter.java
new file mode 100644
index 00000000000..1c312b72a4d
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToIntegerConverter.java
@@ -0,0 +1,38 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.converter;
+
+import org.eclipse.core.databinding.conversion.Converter;
+import org.eclipse.core.databinding.conversion.IConverter;
+import org.eclipse.uml2.uml.ValueSpecification;
+
+/**
+ * Converter from a {@link ValueSpecification} to an {@link Integer}.
+ */
+public class ValueSpecificationToIntegerConverter extends Converter implements IConverter {
+
+ /**
+ * Creates a new {@link ValueSpecificationToIntegerConverter}.
+ */
+ public ValueSpecificationToIntegerConverter() {
+ super(ValueSpecification.class, int.class);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Object convert(Object fromObject) {
+ return ((ValueSpecification)fromObject).integerValue();
+ }
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToStringConverter.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToStringConverter.java
new file mode 100644
index 00000000000..651508a1f45
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/converter/ValueSpecificationToStringConverter.java
@@ -0,0 +1,39 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.converter;
+
+import org.eclipse.core.databinding.conversion.Converter;
+import org.eclipse.core.databinding.conversion.IConverter;
+import org.eclipse.uml2.uml.ValueSpecification;
+
+/**
+ * Converter from a {@link ValueSpecification} to an {@link String}.
+ */
+public class ValueSpecificationToStringConverter extends Converter implements IConverter {
+
+ /**
+ * Creates a new {@link ValueSpecificationToStringConverter}.
+ */
+ public ValueSpecificationToStringConverter() {
+ super(ValueSpecification.class, String.class);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public Object convert(Object fromObject) {
+ return ((ValueSpecification)fromObject).stringValue();
+ }
+
+}
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRule.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRule.java
new file mode 100644
index 00000000000..337222bbc6a
--- /dev/null
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.types/src/org/eclipse/papyrus/infra/emf/types/rules/container/InvariantContainerRule.java
@@ -0,0 +1,124 @@
+/*****************************************************************************
+ * Copyright (c) 2014 CEA LIST.
+ *
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * CEA LIST - Initial API and implementation
+ *
+ *****************************************************************************/
+package org.eclipse.papyrus.infra.emf.types.rules.container;
+
+import java.util.Arrays;
+
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.gmf.runtime.emf.type.core.ElementTypeRegistry;
+import org.eclipse.gmf.runtime.emf.type.core.IElementMatcher;
+import org.eclipse.gmf.runtime.emf.type.core.IElementType;
+import org.eclipse.gmf.runtime.emf.type.core.IMetamodelType;
+import org.eclipse.gmf.runtime.emf.type.core.ISpecializationType;
+import org.eclipse.gmf.runtime.emf.type.core.requests.CreateElementRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.MoveRequest;
+import org.eclipse.gmf.runtime.emf.type.core.requests.SetRequest;
+import org.eclipse.papyrus.infra.core.services.ServiceException;
+import org.eclipse.papyrus.infra.emf.types.Activator;
+import org.eclipse.papyrus.infra.services.edit.internal.context.TypeContext;
+import org.eclipse.papyrus.infra.types.core.impl.ConfiguredHintedSpecializationElementType;
+import org.eclipse.papyrus.infra.types.rulebased.core.AbstractRule;
+
+@SuppressWarnings("restriction")
+public class InvariantContainerRule extends AbstractRule<InvariantContainerRuleConfiguration> {
+
+ protected boolean approveCreationRequest(ConfiguredHintedSpecializationElementType typeToCreate, CreateElementRequest request) {
+ EObject newContainer = request.getContainer();
+ return canContain(newContainer);
+ }
+
+ protected boolean approveSetRequest(ConfiguredHintedSpecializationElementType typeToMove, SetRequest request) {
+ EObject newContainer = request.getElementToEdit();
+ return canContain(newContainer);
+ }
+
+ protected boolean approveMoveRequest(ConfiguredHintedSpecializationElementType typeToMove, MoveRequest request) {
+ EObject newContainer = request.getTargetContainer();
+ return canContain(newContainer);
+ }
+
+ protected boolean canContain(EObject container) {
+ if (container == null) {
+ return false;
+ }
+ boolean isValid = false;
+ try {
+ IElementType newContainerElementType = ElementTypeRegistry.getInstance().getElementType(container, TypeContext.getContext());
+
+ for (HierarchyPermission permission : invariantRuleConfiguration.getPermissions()) { // for each permission, get the matcher and matches directly
+ boolean isPermitted = permission.isPermitted();
+ String permissionContainerTypeID = permission.getContainerType();
+ boolean isStrict = permission.isStrict();
+ IElementType permissionContainerType = ElementTypeRegistry.getInstance().getType(permissionContainerTypeID);
+
+ // check is the permission type is a specialization type or a metamodel type, to enhance performances
+ // if this is a metamodel type and strict, a simple equals can match or not if it is permitted or not
+ // if this is a metamodel type and not strict, we only compare the list of supertypes of the eObject type with the permission Type
+ if (permissionContainerType instanceof IMetamodelType) {
+ if (isStrict) {
+ isValid = permissionContainerType.equals(newContainerElementType) ? isPermitted : !isPermitted;
+ } else {
+ // this is not strict
+ // so any super metamodeltype of permission type that matches newContainerElementType is OK
+ // the type itself can also match...
+ if (newContainerElementType.equals(permissionContainerType)) {
+ isValid = isPermitted;
+ } else {
+ isValid = Arrays.asList(newContainerElementType.getAllSuperTypes()).contains(permissionContainerType) ? isPermitted : !isPermitted;
+ }
+
+ }
+ } else if (permissionContainerType instanceof ISpecializationType) {
+ IElementMatcher matcher = ((ISpecializationType) permissionContainerType).getMatcher();
+ if (matcher != null) {
+ boolean matchesSpecialization = matcher.matches(container) && newContainerElementType.equals(((ISpecializationType) permissionContainerType).getMetamodelType()); // the eObject matches the specializations type that is permitted.
+ if (matchesSpecialization) {
+ // test the isStrict now... It will be false if it matches one of the sub-specialization type
+ if (isStrict) {
+ ISpecializationType[] subtypes = ElementTypeRegistry.getInstance().getSpecializationsOf(permissionContainerTypeID);
+ if (subtypes != null && subtypes.length > 0) {
+ for (ISpecializationType subType : subtypes) {
+ isValid = subType.getMatcher().matches(container) ? isPermitted : !isPermitted; // the isStrict is not verified (one of the subtypes is matched whereas it should not)
+ }
+ } else { // there are no further sub specialization types.
+ isValid = isPermitted;
+ }
+ } else {
+ // not strict
+ isValid = isPermitted;
+ }
+ } else { // eObject type does not match the permission type
+ isValid = !isPermitted;
+
+ }
+ }
+ }
+ }
+
+ } catch (ServiceException e) {
+ Activator.log.error(e);
+ }
+
+ return isValid;
+ }
+
+
+ @Override
+ public boolean matches(EObject eObject) {
+ EObject container = eObject.eContainer();
+
+ return canContain(container);
+ }
+
+
+}

Back to the top