From e6bb99199d28200a568639d71f8e8e2529502034 Mon Sep 17 00:00:00 2001 From: rschnekenbu Date: Fri, 29 Apr 2011 09:18:08 +0000 Subject: --- .../.classpath | 7 + .../.project | 28 ++ .../META-INF/MANIFEST.MF | 25 ++ .../build.properties | 14 + .../CreateConstantValue_valueInstance_Duration.gif | Bin 0 -> 223 bytes ...onstantValue_valueInstance_DurationInterval.gif | Bin 0 -> 223 bytes ...reateConstantValue_valueInstance_Expression.gif | Bin 0 -> 223 bytes ...teConstantValue_valueInstance_InstanceValue.gif | Bin 0 -> 223 bytes .../CreateConstantValue_valueInstance_Interval.gif | Bin 0 -> 223 bytes ...eConstantValue_valueInstance_LiteralBoolean.gif | Bin 0 -> 223 bytes ...eConstantValue_valueInstance_LiteralInteger.gif | Bin 0 -> 223 bytes ...eateConstantValue_valueInstance_LiteralNull.gif | Bin 0 -> 223 bytes ...teConstantValue_valueInstance_LiteralString.gif | Bin 0 -> 223 bytes ...Value_valueInstance_LiteralUnlimitedNatural.gif | Bin 0 -> 223 bytes ...onstantValue_valueInstance_OpaqueExpression.gif | Bin 0 -> 223 bytes ...onstantValue_valueInstance_StringExpression.gif | Bin 0 -> 223 bytes ...eConstantValue_valueInstance_TimeExpression.gif | Bin 0 -> 223 bytes ...ateConstantValue_valueInstance_TimeInterval.gif | Bin 0 -> 223 bytes .../CreateFeatureToSet_value_ConstantValue.gif | Bin 0 -> 223 bytes .../CreateFeatureToSet_value_DynamicValue.gif | Bin 0 -> 223 bytes .../ctool16/CreateFeatureToSet_value_ListValue.gif | Bin 0 -> 223 bytes ...reateFeatureToSet_value_QueryExecutionValue.gif | Bin 0 -> 223 bytes ...ionConfiguration_featuresToSet_FeatureToSet.gif | Bin 0 -> 223 bytes .../icons/full/obj16/ConstantValue.gif | Bin 0 -> 129 bytes .../icons/full/obj16/DynamicValue.gif | Bin 0 -> 129 bytes .../icons/full/obj16/FeatureToSet.gif | Bin 0 -> 129 bytes .../icons/full/obj16/ListValue.gif | Bin 0 -> 129 bytes .../ModifySemanticValuesActionConfiguration.gif | Bin 0 -> 129 bytes .../icons/full/obj16/QueryExecutionValue.gif | Bin 0 -> 129 bytes .../plugin.properties | 37 +++ .../plugin.xml | 25 ++ .../provider/ConstantValueItemProvider.java | 223 ++++++++++++++ .../provider/DynamicValueItemProvider.java | 109 +++++++ .../provider/FeatureToSetItemProvider.java | 217 ++++++++++++++ .../provider/FeatureValueItemProvider.java | 112 +++++++ .../provider/ListValueItemProvider.java | 135 +++++++++ ...emanticValuesActionConfigurationEditPlugin.java | 108 +++++++ ...anticValuesActionConfigurationItemProvider.java | 175 +++++++++++ ...ionConfigurationItemProviderAdapterFactory.java | 323 +++++++++++++++++++++ .../provider/QueryExecutionValueItemProvider.java | 135 +++++++++ 40 files changed, 1673 insertions(+) create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/.classpath create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/.project create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/META-INF/MANIFEST.MF create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/build.properties create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_DynamicValue.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateModifySemanticValuesActionConfiguration_featuresToSet_FeatureToSet.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ConstantValue.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/DynamicValue.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/FeatureToSet.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ListValue.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ModifySemanticValuesActionConfiguration.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/QueryExecutionValue.gif create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/plugin.properties create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/plugin.xml create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ConstantValueItemProvider.java create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/DynamicValueItemProvider.java create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/FeatureToSetItemProvider.java create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/FeatureValueItemProvider.java create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ListValueItemProvider.java create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationEditPlugin.java create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationItemProvider.java create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationItemProviderAdapterFactory.java create mode 100644 tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/QueryExecutionValueItemProvider.java (limited to 'tests/debug/plugins') diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/.classpath b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/.classpath new file mode 100644 index 00000000000..cedf0d0d0b5 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/.project b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/.project new file mode 100644 index 00000000000..c3ca55c33be --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/.project @@ -0,0 +1,28 @@ + + + org.eclipse.papyrus.extendedtypes.emf.edit + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.jdt.core.javanature + org.eclipse.pde.PluginNature + + diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/META-INF/MANIFEST.MF b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..3de94b81a9e --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/META-INF/MANIFEST.MF @@ -0,0 +1,25 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: %pluginName +Bundle-SymbolicName: org.eclipse.papyrus.extendedtypes.emf.edit;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-ClassPath: . +Bundle-Activator: org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.provider.ModifySemanticValuesActionConfigurationEditPlugin$Implementation +Bundle-Vendor: %providerName +Bundle-Localization: plugin +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Export-Package: org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.provider +Require-Bundle: org.eclipse.core.runtime, + org.eclipse.papyrus.extendedtypes.emf;visibility:=reexport, + org.eclipse.emf.edit;visibility:=reexport, + org.eclipse.papyrus.core.queries.configuration;visibility:=reexport, + org.eclipse.papyrus.core.queries.configuration.edit;visibility:=reexport, + org.eclipse.emf.ecore;visibility:=reexport, + org.eclipse.emf.ecore.edit;visibility:=reexport, + org.eclipse.papyrus.extendedtypes;visibility:=reexport, + org.eclipse.papyrus.extendedtypes.edit;visibility:=reexport, + org.eclipse.emf.facet.infra.query;visibility:=reexport, + org.eclipse.emf.facet.infra.query.edit;visibility:=reexport, + org.eclipse.uml2.uml;visibility:=reexport, + org.eclipse.uml2.uml.edit;visibility:=reexport +Bundle-ActivationPolicy: lazy diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/build.properties b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/build.properties new file mode 100644 index 00000000000..ec2e13c4729 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/build.properties @@ -0,0 +1,14 @@ + +# +# +# +# $Id$ + +bin.includes = .,\ + icons/,\ + META-INF/,\ + plugin.xml,\ + plugin.properties +jars.compile.order = . +source.. = src-gen/ +output.. = bin/ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif new file mode 100644 index 00000000000..dac4138ca01 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif new file mode 100644 index 00000000000..755e4ca7a46 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif new file mode 100644 index 00000000000..8ce82e3f6c7 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif new file mode 100644 index 00000000000..fe708946d58 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif new file mode 100644 index 00000000000..4aaad5a4cd7 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif new file mode 100644 index 00000000000..44afafd55da Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif new file mode 100644 index 00000000000..f93c92d061a Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif new file mode 100644 index 00000000000..5ef9a94e8da Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif new file mode 100644 index 00000000000..f08356ef9bb Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif new file mode 100644 index 00000000000..37dad615792 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif new file mode 100644 index 00000000000..8ce82e3f6c7 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif new file mode 100644 index 00000000000..4aaad5a4cd7 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif new file mode 100644 index 00000000000..33e07420851 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif new file mode 100644 index 00000000000..e180c4cf7ca Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif new file mode 100644 index 00000000000..03366e35d0f Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_DynamicValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_DynamicValue.gif new file mode 100644 index 00000000000..c048169804a Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_DynamicValue.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif new file mode 100644 index 00000000000..8997497557c Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif new file mode 100644 index 00000000000..c048169804a Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateModifySemanticValuesActionConfiguration_featuresToSet_FeatureToSet.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateModifySemanticValuesActionConfiguration_featuresToSet_FeatureToSet.gif new file mode 100644 index 00000000000..d1876aa3c50 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/ctool16/CreateModifySemanticValuesActionConfiguration_featuresToSet_FeatureToSet.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ConstantValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ConstantValue.gif new file mode 100644 index 00000000000..e4bc22dd17e Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ConstantValue.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/DynamicValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/DynamicValue.gif new file mode 100644 index 00000000000..ed874747401 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/DynamicValue.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/FeatureToSet.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/FeatureToSet.gif new file mode 100644 index 00000000000..5a9bc7514fa Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/FeatureToSet.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ListValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ListValue.gif new file mode 100644 index 00000000000..c3370c7ddd5 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ListValue.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ModifySemanticValuesActionConfiguration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ModifySemanticValuesActionConfiguration.gif new file mode 100644 index 00000000000..ed874747401 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/ModifySemanticValuesActionConfiguration.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/QueryExecutionValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/QueryExecutionValue.gif new file mode 100644 index 00000000000..ed874747401 Binary files /dev/null and b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/icons/full/obj16/QueryExecutionValue.gif differ diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/plugin.properties b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/plugin.properties new file mode 100644 index 00000000000..360f2156de1 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/plugin.properties @@ -0,0 +1,37 @@ + +# +# +# +# $Id$ + +pluginName = ModifySemanticValuesActionConfiguration Edit Support +providerName = www.example.org + +_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_ModifySemanticValuesActionConfiguration_type = Modify Semantic Values Action 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_Unknown_type = Object + +_UI_Unknown_datatype= Value + +_UI_ModifySemanticValuesActionConfiguration_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_QueryExecutionValue_configuration_feature = Configuration +_UI_Unknown_feature = Unspecified + diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/plugin.xml b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/plugin.xml new file mode 100644 index 00000000000..b6208baa710 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/plugin.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ConstantValueItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ConstantValueItemProvider.java new file mode 100644 index 00000000000..6aa727c1196 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ConstantValueItemProvider.java @@ -0,0 +1,223 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.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.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.ViewerNotification; + +import org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ConstantValue; +import org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfigurationPackage; + +import org.eclipse.uml2.uml.UMLFactory; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ConstantValue} object. + * + * + * @generated + */ +public class ConstantValueItemProvider + extends FeatureValueItemProvider + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ConstantValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List 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}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE); + } + return childrenFeatures; + } + + /** + * + * + * @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. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ConstantValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @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}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ConstantValue.class)) { + case ModifySemanticValuesActionConfigurationPackage.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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createOpaqueExpression())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createExpression())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createStringExpression())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralInteger())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralString())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralBoolean())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralNull())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createInstanceValue())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createLiteralUnlimitedNatural())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createTimeExpression())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createDuration())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createInterval())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createDurationInterval())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.CONSTANT_VALUE__VALUE_INSTANCE, + UMLFactory.eINSTANCE.createTimeInterval())); + } + +} diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/DynamicValueItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/DynamicValueItemProvider.java new file mode 100644 index 00000000000..030278b3aa0 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/DynamicValueItemProvider.java @@ -0,0 +1,109 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.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.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; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.DynamicValue} object. + * + * + * @generated + */ +public class DynamicValueItemProvider + extends FeatureValueItemProvider + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public DynamicValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns DynamicValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/DynamicValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @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}. + * + * + * @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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/FeatureToSetItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/FeatureToSetItemProvider.java new file mode 100644 index 00000000000..57a91c67592 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/FeatureToSetItemProvider.java @@ -0,0 +1,217 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.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.extendedtypes.emf.modifysemanticvaluesactionconfiguration.FeatureToSet; +import org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfigurationFactory; +import org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfigurationPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.FeatureToSet} object. + * + * + * @generated + */ +public class FeatureToSetItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public FeatureToSetItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addFeatureNamePropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Feature Name feature. + * + * + * @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"), + ModifySemanticValuesActionConfigurationPackage.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}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ModifySemanticValuesActionConfigurationPackage.Literals.FEATURE_TO_SET__VALUE); + } + return childrenFeatures; + } + + /** + * + * + * @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. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/FeatureToSet")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @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}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(FeatureToSet.class)) { + case ModifySemanticValuesActionConfigurationPackage.FEATURE_TO_SET__FEATURE_NAME: + fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); + return; + case ModifySemanticValuesActionConfigurationPackage.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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, + ModifySemanticValuesActionConfigurationFactory.eINSTANCE.createDynamicValue())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, + ModifySemanticValuesActionConfigurationFactory.eINSTANCE.createConstantValue())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, + ModifySemanticValuesActionConfigurationFactory.eINSTANCE.createListValue())); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.FEATURE_TO_SET__VALUE, + ModifySemanticValuesActionConfigurationFactory.eINSTANCE.createQueryExecutionValue())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ModifySemanticValuesActionConfigurationEditPlugin.INSTANCE; + } + +} diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/FeatureValueItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/FeatureValueItemProvider.java new file mode 100644 index 00000000000..c0699ba4b9b --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/FeatureValueItemProvider.java @@ -0,0 +1,112 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.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.extendedtypes.emf.modifysemanticvaluesactionconfiguration.FeatureValue} object. + * + * + * @generated + */ +public class FeatureValueItemProvider + extends ItemProviderAdapter + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public FeatureValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + } + return itemPropertyDescriptors; + } + + /** + * This returns the label text for the adapted class. + * + * + * @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}. + * + * + * @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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ModifySemanticValuesActionConfigurationEditPlugin.INSTANCE; + } + +} diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ListValueItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ListValueItemProvider.java new file mode 100644 index 00000000000..c70cc6d76a9 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ListValueItemProvider.java @@ -0,0 +1,135 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.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.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.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfigurationPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ListValue} object. + * + * + * @generated + */ +public class ListValueItemProvider + extends FeatureValueItemProvider + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ListValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addValuesPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Values feature. + * + * + * @generated + */ + protected void addValuesPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_ListValue_values_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_ListValue_values_feature", "_UI_ListValue_type"), + ModifySemanticValuesActionConfigurationPackage.Literals.LIST_VALUE__VALUES, + true, + false, + true, + null, + null, + null)); + } + + /** + * This returns ListValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ListValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @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}. + * + * + * @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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationEditPlugin.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationEditPlugin.java new file mode 100644 index 00000000000..fa24e8684f2 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationEditPlugin.java @@ -0,0 +1,108 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.provider; + +import org.eclipse.emf.common.EMFPlugin; + +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.provider.EcoreEditPlugin; + +import org.eclipse.emf.facet.infra.query.edit.provider.QueryEditPlugin; + +import org.eclipse.papyrus.core.queries.configuration.provider.ConfigurationEditPlugin; + +import org.eclipse.papyrus.extendedtypes.provider.ExtendedTypesEditPlugin; + +import org.eclipse.uml2.uml.edit.UMLEditPlugin; + +/** + * This is the central singleton for the ModifySemanticValuesActionConfiguration edit plugin. + * + * + * @generated + */ +public final class ModifySemanticValuesActionConfigurationEditPlugin extends EMFPlugin { + /** + * Keep track of the singleton. + * + * + * @generated + */ + public static final ModifySemanticValuesActionConfigurationEditPlugin INSTANCE = new ModifySemanticValuesActionConfigurationEditPlugin(); + + /** + * Keep track of the singleton. + * + * + * @generated + */ + private static Implementation plugin; + + /** + * Create the instance. + * + * + * @generated + */ + public ModifySemanticValuesActionConfigurationEditPlugin() { + super + (new ResourceLocator [] { + ConfigurationEditPlugin.INSTANCE, + EcoreEditPlugin.INSTANCE, + ExtendedTypesEditPlugin.INSTANCE, + QueryEditPlugin.INSTANCE, + UMLEditPlugin.INSTANCE, + }); + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + @Override + public ResourceLocator getPluginResourceLocator() { + return plugin; + } + + /** + * Returns the singleton instance of the Eclipse plugin. + * + * + * @return the singleton instance. + * @generated + */ + public static Implementation getPlugin() { + return plugin; + } + + /** + * The actual implementation of the Eclipse Plugin. + * + * + * @generated + */ + public static class Implementation extends EclipsePlugin { + /** + * Creates an instance. + * + * + * @generated + */ + public Implementation() { + super(); + + // Remember the static instance. + // + plugin = this; + } + } + +} diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationItemProvider.java new file mode 100644 index 00000000000..4eca3df08e3 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationItemProvider.java @@ -0,0 +1,175 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.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.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.ViewerNotification; + +import org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfiguration; +import org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfigurationFactory; +import org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfigurationPackage; + +import org.eclipse.papyrus.extendedtypes.provider.PostActionConfigurationItemProvider; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfiguration} object. + * + * + * @generated + */ +public class ModifySemanticValuesActionConfigurationItemProvider + extends PostActionConfigurationItemProvider + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public ModifySemanticValuesActionConfigurationItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List 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}. + * + * + * @generated + */ + @Override + public Collection getChildrenFeatures(Object object) { + if (childrenFeatures == null) { + super.getChildrenFeatures(object); + childrenFeatures.add(ModifySemanticValuesActionConfigurationPackage.Literals.MODIFY_SEMANTIC_VALUES_ACTION_CONFIGURATION__FEATURES_TO_SET); + } + return childrenFeatures; + } + + /** + * + * + * @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 ModifySemanticValuesActionConfiguration.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/ModifySemanticValuesActionConfiguration")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @generated + */ + @Override + public String getText(Object object) { + String label = ((ModifySemanticValuesActionConfiguration)object).getId(); + return label == null || label.length() == 0 ? + getString("_UI_ModifySemanticValuesActionConfiguration_type") : + getString("_UI_ModifySemanticValuesActionConfiguration_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}. + * + * + * @generated + */ + @Override + public void notifyChanged(Notification notification) { + updateChildren(notification); + + switch (notification.getFeatureID(ModifySemanticValuesActionConfiguration.class)) { + case ModifySemanticValuesActionConfigurationPackage.MODIFY_SEMANTIC_VALUES_ACTION_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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + + newChildDescriptors.add + (createChildParameter + (ModifySemanticValuesActionConfigurationPackage.Literals.MODIFY_SEMANTIC_VALUES_ACTION_CONFIGURATION__FEATURES_TO_SET, + ModifySemanticValuesActionConfigurationFactory.eINSTANCE.createFeatureToSet())); + } + + /** + * Return the resource locator for this item provider's resources. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() { + return ModifySemanticValuesActionConfigurationEditPlugin.INSTANCE; + } + +} diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationItemProviderAdapterFactory.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationItemProviderAdapterFactory.java new file mode 100644 index 00000000000..6d001bda02e --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/ModifySemanticValuesActionConfigurationItemProviderAdapterFactory.java @@ -0,0 +1,323 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.provider; + +import java.util.ArrayList; +import java.util.Collection; + +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.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.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.extendedtypes.emf.modifysemanticvaluesactionconfiguration.util.ModifySemanticValuesActionConfigurationAdapterFactory; + +/** + * 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. + * + * + * @generated + */ +public class ModifySemanticValuesActionConfigurationItemProviderAdapterFactory extends ModifySemanticValuesActionConfigurationAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable { + /** + * This keeps track of the root adapter factory that delegates to this adapter factory. + * + * + * @generated + */ + protected ComposedAdapterFactory parentAdapterFactory; + + /** + * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}. + * + * + * @generated + */ + protected IChangeNotifier changeNotifier = new ChangeNotifier(); + + /** + * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}. + * + * + * @generated + */ + protected Collection supportedTypes = new ArrayList(); + + /** + * This constructs an instance. + * + * + * @generated + */ + public ModifySemanticValuesActionConfigurationItemProviderAdapterFactory() { + 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.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfiguration} instances. + * + * + * @generated + */ + protected ModifySemanticValuesActionConfigurationItemProvider modifySemanticValuesActionConfigurationItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfiguration}. + * + * + * @generated + */ + @Override + public Adapter createModifySemanticValuesActionConfigurationAdapter() { + if (modifySemanticValuesActionConfigurationItemProvider == null) { + modifySemanticValuesActionConfigurationItemProvider = new ModifySemanticValuesActionConfigurationItemProvider(this); + } + + return modifySemanticValuesActionConfigurationItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.FeatureToSet} instances. + * + * + * @generated + */ + protected FeatureToSetItemProvider featureToSetItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.FeatureToSet}. + * + * + * @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.extendedtypes.emf.modifysemanticvaluesactionconfiguration.DynamicValue} instances. + * + * + * @generated + */ + protected DynamicValueItemProvider dynamicValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.DynamicValue}. + * + * + * @generated + */ + @Override + public Adapter createDynamicValueAdapter() { + if (dynamicValueItemProvider == null) { + dynamicValueItemProvider = new DynamicValueItemProvider(this); + } + + return dynamicValueItemProvider; + } + + /** + * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ConstantValue} instances. + * + * + * @generated + */ + protected ConstantValueItemProvider constantValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ConstantValue}. + * + * + * @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.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ListValue} instances. + * + * + * @generated + */ + protected ListValueItemProvider listValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ListValue}. + * + * + * @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.extendedtypes.emf.modifysemanticvaluesactionconfiguration.QueryExecutionValue} instances. + * + * + * @generated + */ + protected QueryExecutionValueItemProvider queryExecutionValueItemProvider; + + /** + * This creates an adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.QueryExecutionValue}. + * + * + * @generated + */ + @Override + public Adapter createQueryExecutionValueAdapter() { + if (queryExecutionValueItemProvider == null) { + queryExecutionValueItemProvider = new QueryExecutionValueItemProvider(this); + } + + return queryExecutionValueItemProvider; + } + + /** + * This returns the root adapter factory that contains this factory. + * + * + * @generated + */ + public ComposeableAdapterFactory getRootAdapterFactory() { + return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory(); + } + + /** + * This sets the composed adapter factory that contains this factory. + * + * + * @generated + */ + public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) { + this.parentAdapterFactory = parentAdapterFactory; + } + + /** + * + * + * @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. + * + * + * @generated + */ + @Override + public Adapter adapt(Notifier notifier, Object type) { + return super.adapt(notifier, this); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void addListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.addListener(notifyChangedListener); + } + + /** + * This removes a listener. + * + * + * @generated + */ + public void removeListener(INotifyChangedListener notifyChangedListener) { + changeNotifier.removeListener(notifyChangedListener); + } + + /** + * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. + * + * + * @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. + * + * + * @generated + */ + public void dispose() { + if (modifySemanticValuesActionConfigurationItemProvider != null) modifySemanticValuesActionConfigurationItemProvider.dispose(); + if (featureToSetItemProvider != null) featureToSetItemProvider.dispose(); + if (dynamicValueItemProvider != null) dynamicValueItemProvider.dispose(); + if (constantValueItemProvider != null) constantValueItemProvider.dispose(); + if (listValueItemProvider != null) listValueItemProvider.dispose(); + if (queryExecutionValueItemProvider != null) queryExecutionValueItemProvider.dispose(); + } + +} diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/QueryExecutionValueItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/QueryExecutionValueItemProvider.java new file mode 100644 index 00000000000..a8b8f6ad91e --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.emf.edit/src-gen/org/eclipse/papyrus/extendedtypes/emf/modifysemanticvaluesactionconfiguration/provider/QueryExecutionValueItemProvider.java @@ -0,0 +1,135 @@ +/** + * + * + * + * $Id$ + */ +package org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.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.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.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.ModifySemanticValuesActionConfigurationPackage; + +/** + * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.emf.modifysemanticvaluesactionconfiguration.QueryExecutionValue} object. + * + * + * @generated + */ +public class QueryExecutionValueItemProvider + extends FeatureValueItemProvider + implements + IEditingDomainItemProvider, + IStructuredItemContentProvider, + ITreeItemContentProvider, + IItemLabelProvider, + IItemPropertySource { + /** + * This constructs an instance from a factory and a notifier. + * + * + * @generated + */ + public QueryExecutionValueItemProvider(AdapterFactory adapterFactory) { + super(adapterFactory); + } + + /** + * This returns the property descriptors for the adapted class. + * + * + * @generated + */ + @Override + public List getPropertyDescriptors(Object object) { + if (itemPropertyDescriptors == null) { + super.getPropertyDescriptors(object); + + addConfigurationPropertyDescriptor(object); + } + return itemPropertyDescriptors; + } + + /** + * This adds a property descriptor for the Configuration feature. + * + * + * @generated + */ + protected void addConfigurationPropertyDescriptor(Object object) { + itemPropertyDescriptors.add + (createItemPropertyDescriptor + (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), + getResourceLocator(), + getString("_UI_QueryExecutionValue_configuration_feature"), + getString("_UI_PropertyDescriptor_description", "_UI_QueryExecutionValue_configuration_feature", "_UI_QueryExecutionValue_type"), + ModifySemanticValuesActionConfigurationPackage.Literals.QUERY_EXECUTION_VALUE__CONFIGURATION, + true, + false, + true, + null, + null, + null)); + } + + /** + * This returns QueryExecutionValue.gif. + * + * + * @generated + */ + @Override + public Object getImage(Object object) { + return overlayImage(object, getResourceLocator().getImage("full/obj16/QueryExecutionValue")); + } + + /** + * This returns the label text for the adapted class. + * + * + * @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}. + * + * + * @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. + * + * + * @generated + */ + @Override + protected void collectNewChildDescriptors(Collection newChildDescriptors, Object object) { + super.collectNewChildDescriptors(newChildDescriptors, object); + } + +} -- cgit v1.2.3