diff options
Diffstat (limited to 'tests')
56 files changed, 1642 insertions, 0 deletions
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/.classpath b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/.classpath new file mode 100644 index 00000000000..cedf0d0d0b5 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/.classpath @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src-gen"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/.project b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/.project new file mode 100644 index 00000000000..d18cbd51b3f --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/.project @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.extendedtypes.edit</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/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/META-INF/MANIFEST.MF b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/META-INF/MANIFEST.MF new file mode 100644 index 00000000000..3b63b9db220 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/META-INF/MANIFEST.MF @@ -0,0 +1,23 @@ +Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.papyrus.extendedtypes.edit;singleton:=true
+Bundle-Version: 0.8.0.qualifier
+Bundle-ClassPath: .
+Bundle-Activator: org.eclipse.papyrus.extendedtypes.provider.ExtendedTypesEditPlugin$Implementation
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.eclipse.papyrus.extendedtypes.provider
+Require-Bundle: org.eclipse.core.runtime;bundle-version="3.7.0",
+ org.eclipse.papyrus.extendedtypes;bundle-version="0.8.0";visibility:=reexport,
+ org.eclipse.emf.edit;bundle-version="2.7.0";visibility:=reexport,
+ org.eclipse.papyrus.core.queries.configuration;bundle-version="0.8.0";visibility:=reexport,
+ org.eclipse.papyrus.core.queries.configuration.edit;bundle-version="0.8.0";visibility:=reexport,
+ org.eclipse.emf.ecore;bundle-version="2.7.0";visibility:=reexport,
+ org.eclipse.emf.ecore.edit;bundle-version="2.7.0";visibility:=reexport,
+ org.eclipse.emf.facet.infra.query;bundle-version="0.1.0";visibility:=reexport,
+ org.eclipse.emf.facet.infra.query.edit;bundle-version="0.1.0";visibility:=reexport,
+ org.eclipse.uml2.uml;bundle-version="3.2.0";visibility:=reexport,
+ org.eclipse.uml2.uml.edit;bundle-version="3.1.100";visibility:=reexport
+Bundle-ActivationPolicy: lazy
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/about.html b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/about.html new file mode 100644 index 00000000000..82d49bf5f81 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/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 ("Content"). Unless otherwise
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/build.properties b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/build.properties new file mode 100644 index 00000000000..349c54c9d8e --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/build.properties @@ -0,0 +1,15 @@ +
+# <copyright>
+# </copyright>
+#
+# $Id$
+
+bin.includes = .,\
+ icons/,\
+ META-INF/,\
+ plugin.xml,\
+ plugin.properties,\
+ about.html
+jars.compile.order = .
+source.. = src-gen/
+output.. = bin/
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif Binary files differnew file mode 100644 index 00000000000..dac4138ca01 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Duration.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif Binary files differnew file mode 100644 index 00000000000..755e4ca7a46 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_DurationInterval.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif Binary files differnew file mode 100644 index 00000000000..8ce82e3f6c7 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Expression.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif Binary files differnew file mode 100644 index 00000000000..fe708946d58 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_InstanceValue.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif Binary files differnew file mode 100644 index 00000000000..4aaad5a4cd7 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_Interval.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif Binary files differnew file mode 100644 index 00000000000..44afafd55da --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralBoolean.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif Binary files differnew file mode 100644 index 00000000000..f93c92d061a --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralInteger.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif Binary files differnew file mode 100644 index 00000000000..5ef9a94e8da --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralNull.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif Binary files differnew file mode 100644 index 00000000000..f08356ef9bb --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralString.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif Binary files differnew file mode 100644 index 00000000000..37dad615792 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_LiteralUnlimitedNatural.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif Binary files differnew file mode 100644 index 00000000000..8ce82e3f6c7 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_OpaqueExpression.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif Binary files differnew file mode 100644 index 00000000000..4aaad5a4cd7 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_StringExpression.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif Binary files differnew file mode 100644 index 00000000000..33e07420851 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeExpression.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif Binary files differnew file mode 100644 index 00000000000..e180c4cf7ca --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateConstantValue_valueInstance_TimeInterval.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_iconEntry_IconEntry.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_iconEntry_IconEntry.gif Binary files differnew file mode 100644 index 00000000000..e8bebbfd88d --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_iconEntry_IconEntry.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ApplyStereotypeAction.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ApplyStereotypeAction.gif Binary files differnew file mode 100644 index 00000000000..b80902bd122 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ApplyStereotypeAction.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ApplyStereotypeActionConfiguration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ApplyStereotypeActionConfiguration.gif Binary files differnew file mode 100644 index 00000000000..d415ad7a8c9 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ApplyStereotypeActionConfiguration.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ElementPropertiesValueAction.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ElementPropertiesValueAction.gif Binary files differnew file mode 100644 index 00000000000..12ec17b7cf2 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ElementPropertiesValueAction.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ElementPropertiesValueActionConfiguration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ElementPropertiesValueActionConfiguration.gif Binary files differnew file mode 100644 index 00000000000..d677d34703f --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_postAction_ElementPropertiesValueActionConfiguration.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_preAction_ApplyStereotypeAction.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_preAction_ApplyStereotypeAction.gif Binary files differnew file mode 100644 index 00000000000..b80902bd122 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_preAction_ApplyStereotypeAction.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_preAction_ElementPropertiesValueAction.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_preAction_ElementPropertiesValueAction.gif Binary files differnew file mode 100644 index 00000000000..12ec17b7cf2 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeConfiguration_preAction_ElementPropertiesValueAction.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeSet_elementType_ExtendedElementTypeConfiguration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeSet_elementType_ExtendedElementTypeConfiguration.gif Binary files differnew file mode 100644 index 00000000000..083f29cfd45 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateExtendedElementTypeSet_elementType_ExtendedElementTypeConfiguration.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif Binary files differnew file mode 100644 index 00000000000..03366e35d0f --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_ConstantValue.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_DynamicValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_DynamicValue.gif Binary files differnew file mode 100644 index 00000000000..c048169804a --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_DynamicValue.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif Binary files differnew file mode 100644 index 00000000000..8997497557c --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_ListValue.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif Binary files differnew file mode 100644 index 00000000000..c048169804a --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateFeatureToSet_value_QueryExecutionValue.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateModifySemanticValuesActionConfiguration_featuresToSet_FeatureToSet.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateModifySemanticValuesActionConfiguration_featuresToSet_FeatureToSet.gif Binary files differnew file mode 100644 index 00000000000..d1876aa3c50 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/ctool16/CreateModifySemanticValuesActionConfiguration_featuresToSet_FeatureToSet.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ApplyStereotypeAction.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ApplyStereotypeAction.gif Binary files differnew file mode 100644 index 00000000000..136e3b27269 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ApplyStereotypeAction.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ApplyStereotypeActionConfiguration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ApplyStereotypeActionConfiguration.gif Binary files differnew file mode 100644 index 00000000000..35ef84e20e2 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ApplyStereotypeActionConfiguration.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ConstantValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ConstantValue.gif Binary files differnew file mode 100644 index 00000000000..e4bc22dd17e --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ConstantValue.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/DynamicValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/DynamicValue.gif Binary files differnew file mode 100644 index 00000000000..ed874747401 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/DynamicValue.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ElementPropertiesValueAction.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ElementPropertiesValueAction.gif Binary files differnew file mode 100644 index 00000000000..7b7c428c715 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ElementPropertiesValueAction.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ElementPropertiesValueActionConfiguration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ElementPropertiesValueActionConfiguration.gif Binary files differnew file mode 100644 index 00000000000..89ad5da38ab --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ElementPropertiesValueActionConfiguration.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ExtendedElementTypeConfiguration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ExtendedElementTypeConfiguration.gif Binary files differnew file mode 100644 index 00000000000..cdd3b76e3c0 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ExtendedElementTypeConfiguration.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ExtendedElementTypeSet.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ExtendedElementTypeSet.gif Binary files differnew file mode 100644 index 00000000000..e4bc22dd17e --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ExtendedElementTypeSet.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/FeatureToSet.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/FeatureToSet.gif Binary files differnew file mode 100644 index 00000000000..5a9bc7514fa --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/FeatureToSet.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/IconEntry.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/IconEntry.gif Binary files differnew file mode 100644 index 00000000000..caf2804510d --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/IconEntry.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ListValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ListValue.gif Binary files differnew file mode 100644 index 00000000000..c3370c7ddd5 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ListValue.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ModifySemanticValuesActionConfiguration.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ModifySemanticValuesActionConfiguration.gif Binary files differnew file mode 100644 index 00000000000..ed874747401 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/ModifySemanticValuesActionConfiguration.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/QueryExecutionValue.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/QueryExecutionValue.gif Binary files differnew file mode 100644 index 00000000000..ed874747401 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/QueryExecutionValue.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/StereotypeToApply.gif b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/StereotypeToApply.gif Binary files differnew file mode 100644 index 00000000000..caf2804510d --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/icons/full/obj16/StereotypeToApply.gif diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/plugin.properties b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/plugin.properties new file mode 100644 index 00000000000..bc1dd29cc18 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/plugin.properties @@ -0,0 +1,70 @@ +#################################################################################
+# Copyright (c) 2010 CEA LIST.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Remi Schnekenburger remi.schnekenburger@cea.fr - Initial API and implementation
+##################################################################################
+pluginName=Papryus ExtendedTypes Edit Support (Incubation)
+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_ExtendedElementTypeSet_type = Extended Element Type Set
+_UI_ExtendedElementTypeConfiguration_type = Extended Element Type Configuration
+_UI_IconEntry_type = Icon Entry
+_UI_ActionConfiguration_type = Action Configuration
+_UI_ApplyStereotypeAction_type = Apply Stereotype Action
+_UI_ElementPropertiesValueAction_type = Element Properties Value Action
+_UI_Unknown_type = Object
+
+_UI_Unknown_datatype= Value
+
+_UI_ExtendedElementTypeSet_elementType_feature = Element Type
+_UI_ExtendedElementTypeSet_id_feature = Id
+_UI_ExtendedElementTypeConfiguration_id_feature = Id
+_UI_ExtendedElementTypeConfiguration_iconEntry_feature = Icon Entry
+_UI_ExtendedElementTypeConfiguration_name_feature = Name
+_UI_ExtendedElementTypeConfiguration_hint_feature = Hint
+_UI_ExtendedElementTypeConfiguration_kindName_feature = Kind Name
+_UI_ExtendedElementTypeConfiguration_specializedTypesID_feature = Specialized Types ID
+_UI_ExtendedElementTypeConfiguration_preValidation_feature = Pre Validation
+_UI_ExtendedElementTypeConfiguration_preAction_feature = Pre Action
+_UI_ExtendedElementTypeConfiguration_postAction_feature = Post Action
+_UI_IconEntry_iconPath_feature = Icon Path
+_UI_IconEntry_bundleId_feature = Bundle Id
+_UI_Unknown_feature = Unspecified
+
+_UI_ApplyStereotypeActionConfiguration_type = Apply Stereotype Action Configuration
+_UI_ElementPropertiesValueActionConfiguration_type = Element Properties Value Action Configuration
+_UI_PreActionConfiguration_type = Pre Action Configuration
+_UI_PostActionConfiguration_type = Post Action Configuration
+_UI_ActionConfiguration_label_feature = Label
+_UI_ActionConfiguration_id_feature = Id
+_UI_StereotypeToApply_type = Stereotype To Apply
+_UI_ApplyStereotypeActionConfiguration_stereotypesToApply_feature = Stereotypes To Apply
+_UI_StereotypeToApply_stereotypeQualifiedName_feature = Stereotype Qualified Name
+_UI_StereotypeToApply_updateName_feature = Update Name
+_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_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
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/plugin.xml b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/plugin.xml new file mode 100644 index 00000000000..6eaab836a84 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/plugin.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+
+<!--
+ <copyright>
+ </copyright>
+
+ $Id$
+-->
+
+<plugin>
+
+ <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
+ <factory
+ uri="http://www.eclipse.org/papyrus/diagram/types/extendedtypes/0.7"
+ class="org.eclipse.papyrus.extendedtypes.provider.ExtendedtypesItemProviderAdapterFactory"
+ 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>
+</plugin>
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ActionConfigurationItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ActionConfigurationItemProvider.java new file mode 100644 index 00000000000..fe84516c13d --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ActionConfigurationItemProvider.java @@ -0,0 +1,174 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.extendedtypes.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.extendedtypes.ActionConfiguration;
+import org.eclipse.papyrus.extendedtypes.ExtendedtypesPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.ActionConfiguration} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ActionConfigurationItemProvider
+ 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 ActionConfigurationItemProvider(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);
+
+ addLabelPropertyDescriptor(object);
+ addIdPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Label feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addLabelPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ActionConfiguration_label_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActionConfiguration_label_feature", "_UI_ActionConfiguration_type"),
+ ExtendedtypesPackage.Literals.ACTION_CONFIGURATION__LABEL,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Id feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ActionConfiguration_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ActionConfiguration_id_feature", "_UI_ActionConfiguration_type"),
+ ExtendedtypesPackage.Literals.ACTION_CONFIGURATION__ID,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ActionConfiguration)object).getId();
+ return label == null || label.length() == 0 ?
+ getString("_UI_ActionConfiguration_type") :
+ getString("_UI_ActionConfiguration_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(ActionConfiguration.class)) {
+ case ExtendedtypesPackage.ACTION_CONFIGURATION__LABEL:
+ case ExtendedtypesPackage.ACTION_CONFIGURATION__ID:
+ 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 ExtendedTypesEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedElementTypeConfigurationItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedElementTypeConfigurationItemProvider.java new file mode 100644 index 00000000000..12089d140d7 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedElementTypeConfigurationItemProvider.java @@ -0,0 +1,325 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.extendedtypes.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.ExtendedElementTypeConfiguration;
+import org.eclipse.papyrus.extendedtypes.ExtendedtypesFactory;
+import org.eclipse.papyrus.extendedtypes.ExtendedtypesPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.ExtendedElementTypeConfiguration} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ExtendedElementTypeConfigurationItemProvider
+ 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 ExtendedElementTypeConfigurationItemProvider(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);
+
+ addNamePropertyDescriptor(object);
+ addIdPropertyDescriptor(object);
+ addHintPropertyDescriptor(object);
+ addKindNamePropertyDescriptor(object);
+ addSpecializedTypesIDPropertyDescriptor(object);
+ addPreValidationPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ExtendedElementTypeConfiguration_name_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ExtendedElementTypeConfiguration_name_feature", "_UI_ExtendedElementTypeConfiguration_type"),
+ ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Id feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ExtendedElementTypeConfiguration_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ExtendedElementTypeConfiguration_id_feature", "_UI_ExtendedElementTypeConfiguration_type"),
+ ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__ID,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Hint feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addHintPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ExtendedElementTypeConfiguration_hint_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ExtendedElementTypeConfiguration_hint_feature", "_UI_ExtendedElementTypeConfiguration_type"),
+ ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__HINT,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Kind Name feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addKindNamePropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ExtendedElementTypeConfiguration_kindName_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ExtendedElementTypeConfiguration_kindName_feature", "_UI_ExtendedElementTypeConfiguration_type"),
+ ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__KIND_NAME,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Specialized Types ID feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSpecializedTypesIDPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ExtendedElementTypeConfiguration_specializedTypesID_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ExtendedElementTypeConfiguration_specializedTypesID_feature", "_UI_ExtendedElementTypeConfiguration_type"),
+ ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Pre Validation feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addPreValidationPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ExtendedElementTypeConfiguration_preValidation_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ExtendedElementTypeConfiguration_preValidation_feature", "_UI_ExtendedElementTypeConfiguration_type"),
+ ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__PRE_VALIDATION,
+ true,
+ false,
+ true,
+ null,
+ 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(ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY);
+ childrenFeatures.add(ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__PRE_ACTION);
+ childrenFeatures.add(ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__POST_ACTION);
+ }
+ 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 ExtendedElementTypeConfiguration.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ExtendedElementTypeConfiguration"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ExtendedElementTypeConfiguration)object).getName();
+ return label == null || label.length() == 0 ?
+ getString("_UI_ExtendedElementTypeConfiguration_type") :
+ getString("_UI_ExtendedElementTypeConfiguration_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(ExtendedElementTypeConfiguration.class)) {
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_CONFIGURATION__NAME:
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_CONFIGURATION__ID:
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_CONFIGURATION__HINT:
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_CONFIGURATION__KIND_NAME:
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_CONFIGURATION__SPECIALIZED_TYPES_ID:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY:
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_CONFIGURATION__PRE_ACTION:
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_CONFIGURATION__POST_ACTION:
+ 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
+ (ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_CONFIGURATION__ICON_ENTRY,
+ ExtendedtypesFactory.eINSTANCE.createIconEntry()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return ExtendedTypesEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedElementTypeSetItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedElementTypeSetItemProvider.java new file mode 100644 index 00000000000..19e8deeedce --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedElementTypeSetItemProvider.java @@ -0,0 +1,202 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.extendedtypes.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.ExtendedElementTypeSet;
+import org.eclipse.papyrus.extendedtypes.ExtendedtypesFactory;
+import org.eclipse.papyrus.extendedtypes.ExtendedtypesPackage;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.ExtendedElementTypeSet} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ExtendedElementTypeSetItemProvider
+ 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 ExtendedElementTypeSetItemProvider(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);
+
+ addIdPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Id feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ExtendedElementTypeSet_id_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_ExtendedElementTypeSet_id_feature", "_UI_ExtendedElementTypeSet_type"),
+ ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_SET__ID,
+ 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(ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_SET__ELEMENT_TYPE);
+ }
+ 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 ExtendedElementTypeSet.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ExtendedElementTypeSet"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ExtendedElementTypeSet)object).getId();
+ return label == null || label.length() == 0 ?
+ getString("_UI_ExtendedElementTypeSet_type") :
+ getString("_UI_ExtendedElementTypeSet_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(ExtendedElementTypeSet.class)) {
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__ID:
+ fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true));
+ return;
+ case ExtendedtypesPackage.EXTENDED_ELEMENT_TYPE_SET__ELEMENT_TYPE:
+ 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
+ (ExtendedtypesPackage.Literals.EXTENDED_ELEMENT_TYPE_SET__ELEMENT_TYPE,
+ ExtendedtypesFactory.eINSTANCE.createExtendedElementTypeConfiguration()));
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return ExtendedTypesEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedTypesEditPlugin.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedTypesEditPlugin.java new file mode 100644 index 00000000000..4843b68d08e --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedTypesEditPlugin.java @@ -0,0 +1,104 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.extendedtypes.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.uml2.uml.edit.UMLEditPlugin;
+
+/**
+ * This is the central singleton for the ModifySemanticValuesActionConfiguration edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+public final class ExtendedTypesEditPlugin extends EMFPlugin {
+
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final ExtendedTypesEditPlugin INSTANCE = new ExtendedTypesEditPlugin();
+
+ /**
+ * 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 ExtendedTypesEditPlugin() {
+ super(new ResourceLocator[]{ ConfigurationEditPlugin.INSTANCE, EcoreEditPlugin.INSTANCE, ExtendedTypesEditPlugin.INSTANCE, QueryEditPlugin.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/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedtypesItemProviderAdapterFactory.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedtypesItemProviderAdapterFactory.java new file mode 100644 index 00000000000..e0700d79e01 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/ExtendedtypesItemProviderAdapterFactory.java @@ -0,0 +1,251 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.extendedtypes.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.util.ExtendedtypesAdapterFactory;
+
+/**
+ * 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 ExtendedtypesItemProviderAdapterFactory extends ExtendedtypesAdapterFactory 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 ExtendedtypesItemProviderAdapterFactory() {
+ 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.ExtendedElementTypeSet} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExtendedElementTypeSetItemProvider extendedElementTypeSetItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.extendedtypes.ExtendedElementTypeSet}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createExtendedElementTypeSetAdapter() {
+ if (extendedElementTypeSetItemProvider == null) {
+ extendedElementTypeSetItemProvider = new ExtendedElementTypeSetItemProvider(this);
+ }
+
+ return extendedElementTypeSetItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.extendedtypes.ExtendedElementTypeConfiguration} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ExtendedElementTypeConfigurationItemProvider extendedElementTypeConfigurationItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.extendedtypes.ExtendedElementTypeConfiguration}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createExtendedElementTypeConfigurationAdapter() {
+ if (extendedElementTypeConfigurationItemProvider == null) {
+ extendedElementTypeConfigurationItemProvider = new ExtendedElementTypeConfigurationItemProvider(this);
+ }
+
+ return extendedElementTypeConfigurationItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.papyrus.extendedtypes.IconEntry} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected IconEntryItemProvider iconEntryItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.papyrus.extendedtypes.IconEntry}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createIconEntryAdapter() {
+ if (iconEntryItemProvider == null) {
+ iconEntryItemProvider = new IconEntryItemProvider(this);
+ }
+
+ return iconEntryItemProvider;
+ }
+
+ /**
+ * 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 (extendedElementTypeSetItemProvider != null) extendedElementTypeSetItemProvider.dispose();
+ if (extendedElementTypeConfigurationItemProvider != null) extendedElementTypeConfigurationItemProvider.dispose();
+ if (iconEntryItemProvider != null) iconEntryItemProvider.dispose();
+ }
+
+}
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/IconEntryItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/IconEntryItemProvider.java new file mode 100644 index 00000000000..d73fb1077a2 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/IconEntryItemProvider.java @@ -0,0 +1,185 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.extendedtypes.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.extendedtypes.ExtendedtypesPackage;
+import org.eclipse.papyrus.extendedtypes.IconEntry;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.IconEntry} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class IconEntryItemProvider
+ 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 IconEntryItemProvider(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);
+
+ addIconPathPropertyDescriptor(object);
+ addBundleIdPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Icon Path feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addIconPathPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_IconEntry_iconPath_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_IconEntry_iconPath_feature", "_UI_IconEntry_type"),
+ ExtendedtypesPackage.Literals.ICON_ENTRY__ICON_PATH,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This adds a property descriptor for the Bundle Id feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addBundleIdPropertyDescriptor(Object object) {
+ itemPropertyDescriptors.add
+ (createItemPropertyDescriptor
+ (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_IconEntry_bundleId_feature"),
+ getString("_UI_PropertyDescriptor_description", "_UI_IconEntry_bundleId_feature", "_UI_IconEntry_type"),
+ ExtendedtypesPackage.Literals.ICON_ENTRY__BUNDLE_ID,
+ true,
+ false,
+ false,
+ ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,
+ null,
+ null));
+ }
+
+ /**
+ * This returns IconEntry.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/IconEntry"));
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((IconEntry)object).getIconPath();
+ return label == null || label.length() == 0 ?
+ getString("_UI_IconEntry_type") :
+ getString("_UI_IconEntry_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(IconEntry.class)) {
+ case ExtendedtypesPackage.ICON_ENTRY__ICON_PATH:
+ case ExtendedtypesPackage.ICON_ENTRY__BUNDLE_ID:
+ 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 ExtendedTypesEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/PostActionConfigurationItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/PostActionConfigurationItemProvider.java new file mode 100644 index 00000000000..2d4660bcfdb --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/PostActionConfigurationItemProvider.java @@ -0,0 +1,103 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.extendedtypes.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;
+
+import org.eclipse.papyrus.extendedtypes.PostActionConfiguration;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.PostActionConfiguration} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class PostActionConfigurationItemProvider
+ extends ActionConfigurationItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PostActionConfigurationItemProvider(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) {
+ String label = ((PostActionConfiguration)object).getId();
+ return label == null || label.length() == 0 ?
+ getString("_UI_PostActionConfiguration_type") :
+ getString("_UI_PostActionConfiguration_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);
+ 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/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/PreActionConfigurationItemProvider.java b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/PreActionConfigurationItemProvider.java new file mode 100644 index 00000000000..16577ff6e56 --- /dev/null +++ b/tests/debug/plugins/core/org.eclipse.papyrus.extendedtypes.edit/src-gen/org/eclipse/papyrus/extendedtypes/provider/PreActionConfigurationItemProvider.java @@ -0,0 +1,103 @@ +/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.eclipse.papyrus.extendedtypes.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;
+
+import org.eclipse.papyrus.extendedtypes.PreActionConfiguration;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.papyrus.extendedtypes.PreActionConfiguration} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class PreActionConfigurationItemProvider
+ extends ActionConfigurationItemProvider
+ implements
+ IEditingDomainItemProvider,
+ IStructuredItemContentProvider,
+ ITreeItemContentProvider,
+ IItemLabelProvider,
+ IItemPropertySource {
+ /**
+ * This constructs an instance from a factory and a notifier.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public PreActionConfigurationItemProvider(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) {
+ String label = ((PreActionConfiguration)object).getId();
+ return label == null || label.length() == 0 ?
+ getString("_UI_PreActionConfiguration_type") :
+ getString("_UI_PreActionConfiguration_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);
+ 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);
+ }
+
+}
|