Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Daussy2014-06-25 10:01:54 -0400
committerMikael Barbero2014-07-07 05:14:43 -0400
commita3ed4c4c7056ebcca9347b4ef3c3b35d40d4fc71 (patch)
tree7fa42dec62f6ba7824fd5d0a10da60d0857d004a /plugins/org.eclipse.emf.compare.uml2.tests
parent705a95454617872c1199ef6f488b1718437c5cf7 (diff)
downloadorg.eclipse.emf.compare-a3ed4c4c7056ebcca9347b4ef3c3b35d40d4fc71.tar.gz
org.eclipse.emf.compare-a3ed4c4c7056ebcca9347b4ef3c3b35d40d4fc71.tar.xz
org.eclipse.emf.compare-a3ed4c4c7056ebcca9347b4ef3c3b35d40d4fc71.zip
Adds custom stereotypes icons.
Adds one icon using Image uml element (see model). Adds one icon using ItemProvider (requires the first generation of the EMF.edit code). Change-Id: I829b5ddf2d5ecfef81f401ee51776d9172bdf507 Signed-off-by: Arthur Daussy <arthur.daussy@obeo.fr>
Diffstat (limited to 'plugins/org.eclipse.emf.compare.uml2.tests')
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF8
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/build.properties3
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche2.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche3.gifbin0 -> 129 bytes
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/eclipse_kepler.gifbin0 -> 1034 bytes
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel7
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/model/icons/eclipse_luna.gifbin0 -> 558 bytes
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml117
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/plugin.properties24
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/plugin.xml13
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/ACliche2ItemProvider.java231
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/ACliche3ItemProvider.java141
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/AClicheItemProvider.java230
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/UML2CompareTestProfileEditPlugin.java99
-rw-r--r--plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/UML2CompareTestProfileItemProviderAdapterFactory.java258
16 files changed, 1096 insertions, 35 deletions
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF
index 017ca9f3d..5e97dc8c1 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/META-INF/MANIFEST.MF
@@ -9,19 +9,23 @@ Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Export-Package: org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile,
org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.impl,
+ org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.provider,
org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.util,
org.eclipse.emf.compare.uml2.tests
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.uml2.uml;bundle-version="5.0.0";visibility:=reexport,
org.eclipse.uml2.types;visibility:=reexport,
+ org.eclipse.emf.edit;visibility:=reexport,
+ org.eclipse.emf.ecore.edit;visibility:=reexport,
org.eclipse.uml2.uml.resources;bundle-version="5.0.0",
org.junit,
org.eclipse.emf.compare,
org.eclipse.emf.compare.uml2,
org.eclipse.emf.compare.tests;bundle-version="2.0.1",
- org.eclipse.uml2.uml.edit;bundle-version="5.0.0"
+ org.eclipse.uml2.uml.edit;bundle-version="5.0.0";visibility:=reexport,
+ org.eclipse.uml2.common.edit;visibility:=reexport
Bundle-ActivationPolicy: lazy
Import-Package: com.google.common.base;version="[11.0.0,16.0.0)",
com.google.common.collect;version="[11.0.0,16.0.0)"
-Bundle-Activator: org.eclipse.emf.compare.uml2.tests.EMFCompareUML2TestsPlugin
+Bundle-Activator: org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.provider.UML2CompareTestProfileEditPlugin$Implementation
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/build.properties b/plugins/org.eclipse.emf.compare.uml2.tests/build.properties
index cdb57b8e8..234779947 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/build.properties
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/build.properties
@@ -13,7 +13,8 @@ bin.includes = .,\
META-INF/,\
plugin.xml,\
plugin.properties,\
- about.html
+ about.html,\
+ icons/
jars.compile.order = .
source.. = profile/,\
src/
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche.gif b/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche.gif
new file mode 100644
index 000000000..30f0c48da
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche.gif
Binary files differ
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche2.gif b/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche2.gif
new file mode 100644
index 000000000..98b351f1c
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche2.gif
Binary files differ
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche3.gif b/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche3.gif
new file mode 100644
index 000000000..33854e98c
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/ACliche3.gif
Binary files differ
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/eclipse_kepler.gif b/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/eclipse_kepler.gif
new file mode 100644
index 000000000..abefafcb6
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/icons/full/obj16/eclipse_kepler.gif
Binary files differ
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel b/plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel
index bbaa1cb54..a2aab5c61 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/model/UML2CompareTestProfile.genmodel
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:genmodel="http://www.eclipse.org/uml2/2.2.0/GenModel"
- modelDirectory="/org.eclipse.emf.compare.uml2.tests/profile" modelPluginID="org.eclipse.emf.compare.uml2.tests"
- modelName="UML2CompareTestProfile" nonNLSMarkers="true" importerID="org.eclipse.uml2.uml.ecore.importer"
- complianceLevel="5.0" copyrightFields="false" usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml platform:/plugin/org.eclipse.uml2.types/model/Types.genmodel#//types">
+ modelDirectory="/org.eclipse.emf.compare.uml2.tests/profile" editDirectory="/org.eclipse.emf.compare.uml2.tests/profile"
+ modelPluginID="org.eclipse.emf.compare.uml2.tests" modelName="UML2CompareTestProfile"
+ nonNLSMarkers="true" importerID="org.eclipse.uml2.uml.ecore.importer" complianceLevel="5.0"
+ copyrightFields="false" usedGenPackages="platform:/plugin/org.eclipse.emf.ecore/model/Ecore.genmodel#//ecore platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel#//uml platform:/plugin/org.eclipse.uml2.types/model/Types.genmodel#//types">
<genAnnotations source="http://www.eclipse.org/emf/2002/GenModel/importer/org.eclipse.uml2.uml.ecore.importer">
<details key="ECORE_TAGGED_VALUES" value="PROCESS"/>
<details key="UNION_PROPERTIES" value="REPORT"/>
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/model/icons/eclipse_luna.gif b/plugins/org.eclipse.emf.compare.uml2.tests/model/icons/eclipse_luna.gif
new file mode 100644
index 000000000..97847d2b7
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/model/icons/eclipse_luna.gif
Binary files differ
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml b/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml
index e3594d930..e74826331 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/model/uml2.compare.testprofile.profile.uml
@@ -1,13 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="20131001" xmlns:xmi="http://www.omg.org/spec/XMI/20131001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:Ecore="http://www.eclipse.org/uml2/schemas/Ecore/5" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:uml="http://www.eclipse.org/uml2/5.0.0/UML" xsi:schemaLocation="http://www.eclipse.org/uml2/schemas/Ecore/5 pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8Rc_NA">
<uml:Profile xmi:id="_hZFTgIwkEeC_FYHMbTTxXw" name="UML2CompareTestProfile" metaclassReference="_gHJYQIwpEeC_FYHMbTTxXw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DL47UCjtEeKqNZFxtZ0S6g" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <eAnnotations xmi:id="_DL47UCjtEeKqNZFxtZ0S6g" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <contents xmi:type="ecore:EPackage" xmi:id="_xLWesPuWEeO1h7Xd81HIXQ" name="uml2comparetestprofile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" nsPrefix="testProfile">
+ <eAnnotations xmi:id="_xLWesfuWEeO1h7Xd81HIXQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details xmi:id="_xLWesvuWEeO1h7Xd81HIXQ" key="originalName" value="UML2CompareTestProfile"/>
+ </eAnnotations>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_xLWes_uWEeO1h7Xd81HIXQ" name="ACliche">
+ <eAnnotations xmi:id="_xLWetPuWEeO1h7Xd81HIXQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_xLWetfuWEeO1h7Xd81HIXQ" name="singleValuedAttribute" ordered="false">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_xLWet_uWEeO1h7Xd81HIXQ" name="manyValuedAttribute" upperBound="-1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_xLWeufuWEeO1h7Xd81HIXQ" name="singleValuedReference" ordered="false">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_xLWeu_uWEeO1h7Xd81HIXQ" name="manyValuedReference" upperBound="-1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_xLWevfuWEeO1h7Xd81HIXQ" name="base_Class" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_xLWev_uWEeO1h7Xd81HIXQ" name="ACliche2">
+ <eAnnotations xmi:id="_xLWewPuWEeO1h7Xd81HIXQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_x0pRAPCBEeKBcNH8cCNzUg"/>
+ <eAnnotations xmi:id="_xLWewfuWEeO1h7Xd81HIXQ" source="duplicates">
+ <contents xmi:type="ecore:EReference" xmi:id="_xLWewvuWEeO1h7Xd81HIXQ" name="base_Class" ordered="false" lowerBound="1">
+ <eAnnotations xmi:id="_xLWew_uWEeO1h7Xd81HIXQ" source="redefines" references="_xLWezfuWEeO1h7Xd81HIXQ"/>
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </contents>
+ </eAnnotations>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_xLWexfuWEeO1h7Xd81HIXQ" name="singleValuedAttribute" ordered="false">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_xLWex_uWEeO1h7Xd81HIXQ" name="manyValuedAttribute" upperBound="-1">
+ <eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_xLWeyfuWEeO1h7Xd81HIXQ" name="singleValuedReference" ordered="false">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_xLWey_uWEeO1h7Xd81HIXQ" name="manyValuedReference" upperBound="-1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_xLWezfuWEeO1h7Xd81HIXQ" name="base_Class" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xmi:type="ecore:EClass" xmi:id="_xLWez_uWEeO1h7Xd81HIXQ" name="ACliche3">
+ <eAnnotations xmi:id="_xLWe0PuWEeO1h7Xd81HIXQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_yS8fYPU0EeOznPU7N6uHbQ"/>
+ <eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_xLWe0fuWEeO1h7Xd81HIXQ" name="base_Class" ordered="false" lowerBound="1">
+ <eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ </contents>
<contents xmi:type="ecore:EPackage" xmi:id="_59tLoPU0EeOznPU7N6uHbQ" name="uml2comparetestprofile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" nsPrefix="testProfile">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tysPU0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
- <details xmi:type="ecore:EStringToStringMapEntry" xmi:id="_59tysfU0EeOznPU7N6uHbQ" key="originalName" value="UML2CompareTestProfile"/>
+ <eAnnotations xmi:id="_59tysPU0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <details xmi:id="_59tysfU0EeOznPU7N6uHbQ" key="originalName" value="UML2CompareTestProfile"/>
</eAnnotations>
<eClassifiers xmi:type="ecore:EClass" xmi:id="_59tysvU0EeOznPU7N6uHbQ" name="ACliche">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tys_U0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
+ <eAnnotations xmi:id="_59tys_U0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_59tytPU0EeOznPU7N6uHbQ" name="singleValuedAttribute" ordered="false">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
</eStructuralFeatures>
@@ -25,10 +78,10 @@
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass" xmi:id="_59tyvvU0EeOznPU7N6uHbQ" name="ACliche2">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tyv_U0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_x0pRAPCBEeKBcNH8cCNzUg"/>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tywPU0EeOznPU7N6uHbQ" source="duplicates">
+ <eAnnotations xmi:id="_59tyv_U0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_x0pRAPCBEeKBcNH8cCNzUg"/>
+ <eAnnotations xmi:id="_59tywPU0EeOznPU7N6uHbQ" source="duplicates">
<contents xmi:type="ecore:EReference" xmi:id="_59tywfU0EeOznPU7N6uHbQ" name="base_Class" ordered="false" lowerBound="1">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tywvU0EeOznPU7N6uHbQ" source="redefines" references="_59tyzPU0EeOznPU7N6uHbQ"/>
+ <eAnnotations xmi:id="_59tywvU0EeOznPU7N6uHbQ" source="redefines" references="_59tyzPU0EeOznPU7N6uHbQ"/>
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</contents>
</eAnnotations>
@@ -49,7 +102,7 @@
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass" xmi:id="_59tyzvU0EeOznPU7N6uHbQ" name="ACliche3">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_59tyz_U0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_yS8fYPU0EeOznPU7N6uHbQ"/>
+ <eAnnotations xmi:id="_59tyz_U0EeOznPU7N6uHbQ" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_yS8fYPU0EeOznPU7N6uHbQ"/>
<eStructuralFeatures xmi:type="ecore:EReference" xmi:id="_59ty0PU0EeOznPU7N6uHbQ" name="base_Class" ordered="false" lowerBound="1">
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</eStructuralFeatures>
@@ -57,7 +110,7 @@
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_OuZDgPCCEeKBcNH8cCNzUg" name="uml2comparetestprofile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" nsPrefix="testProfile">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_OuZDgfCCEeKBcNH8cCNzUg" name="ACliche">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OuZDgvCCEeKBcNH8cCNzUg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
+ <eAnnotations xmi:id="_OuZDgvCCEeKBcNH8cCNzUg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_OuZDg_CCEeKBcNH8cCNzUg" name="singleValuedAttribute" ordered="false">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
</eStructuralFeatures>
@@ -75,10 +128,10 @@
</eStructuralFeatures>
</eClassifiers>
<eClassifiers xmi:type="ecore:EClass" xmi:id="_OuZDjfCCEeKBcNH8cCNzUg" name="ACliche2">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OuZDjvCCEeKBcNH8cCNzUg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_x0pRAPCBEeKBcNH8cCNzUg"/>
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OuZDj_CCEeKBcNH8cCNzUg" source="duplicates">
+ <eAnnotations xmi:id="_OuZDjvCCEeKBcNH8cCNzUg" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_x0pRAPCBEeKBcNH8cCNzUg"/>
+ <eAnnotations xmi:id="_OuZDj_CCEeKBcNH8cCNzUg" source="duplicates">
<contents xmi:type="ecore:EReference" xmi:id="_OuZDkPCCEeKBcNH8cCNzUg" name="base_Class" ordered="false" lowerBound="1">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_OuZDkfCCEeKBcNH8cCNzUg" source="redefines" references="_OuZDm_CCEeKBcNH8cCNzUg"/>
+ <eAnnotations xmi:id="_OuZDkfCCEeKBcNH8cCNzUg" source="redefines" references="_OuZDm_CCEeKBcNH8cCNzUg"/>
<eType xmi:type="ecore:EClass" href="http://www.eclipse.org/uml2/5.0.0/UML#//Class"/>
</contents>
</eAnnotations>
@@ -101,7 +154,7 @@
</contents>
<contents xmi:type="ecore:EPackage" xmi:id="_DL_B8CjtEeKqNZFxtZ0S6g" name="uml2comparetestprofile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" nsPrefix="testProfile">
<eClassifiers xmi:type="ecore:EClass" xmi:id="_DL_B8SjtEeKqNZFxtZ0S6g" name="ACliche">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_DL_B8ijtEeKqNZFxtZ0S6g" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
+ <eAnnotations xmi:id="_DL_B8ijtEeKqNZFxtZ0S6g" source="http://www.eclipse.org/uml2/2.0.0/UML" references="_wQjhQIwoEeC_FYHMbTTxXw"/>
<eStructuralFeatures xmi:type="ecore:EAttribute" xmi:id="_DL_B8yjtEeKqNZFxtZ0S6g" name="singleValuedAttribute" ordered="false">
<eType xmi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/5.0.0/Types#//String"/>
</eStructuralFeatures>
@@ -120,58 +173,64 @@
</eClassifiers>
</contents>
</eAnnotations>
- <elementImport xmi:type="uml:ElementImport" xmi:id="_gHJYQIwpEeC_FYHMbTTxXw">
+ <elementImport xmi:id="_gHJYQIwpEeC_FYHMbTTxXw">
<importedElement xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</elementImport>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_wQjhQIwoEeC_FYHMbTTxXw" name="ACliche">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_2BXCQIwoEeC_FYHMbTTxXw" name="singleValuedAttribute">
+ <ownedAttribute xmi:id="_2BXCQIwoEeC_FYHMbTTxXw" name="singleValuedAttribute">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_5andEIwoEeC_FYHMbTTxXw"/>
</ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_2x68gIwoEeC_FYHMbTTxXw" name="manyValuedAttribute" isOrdered="true">
+ <ownedAttribute xmi:id="_2x68gIwoEeC_FYHMbTTxXw" name="manyValuedAttribute" isOrdered="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_HHFNEIwpEeC_FYHMbTTxXw"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_HelHEIwpEeC_FYHMbTTxXw" value="*"/>
</ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_VpE24IwpEeC_FYHMbTTxXw" name="singleValuedReference">
+ <ownedAttribute xmi:id="_VpE24IwpEeC_FYHMbTTxXw" name="singleValuedReference">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_VpE24YwpEeC_FYHMbTTxXw"/>
</ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_VpGFAIwpEeC_FYHMbTTxXw" name="manyValuedReference" isOrdered="true">
+ <ownedAttribute xmi:id="_VpGFAIwpEeC_FYHMbTTxXw" name="manyValuedReference" isOrdered="true">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_VpGFAowpEeC_FYHMbTTxXw"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_VpGFAYwpEeC_FYHMbTTxXw" value="*"/>
</ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_hQCS8owpEeC_FYHMbTTxXw" name="base_Class" association="_hQCS8IwpEeC_FYHMbTTxXw">
+ <ownedAttribute xmi:id="_hQCS8owpEeC_FYHMbTTxXw" name="base_Class" association="_hQCS8IwpEeC_FYHMbTTxXw">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</ownedAttribute>
+ <icon xmi:id="_roi9cPuWEeO1h7Xd81HIXQ" format="" location="icons/eclipse_luna.gif">
+ <eAnnotations xmi:id="_roi9cfuWEeO1h7Xd81HIXQ" source="image_papyrus">
+ <details xmi:id="_roi9cvuWEeO1h7Xd81HIXQ" key="image_name_key" value="AClicheIcon"/>
+ <details xmi:id="_roi9c_uWEeO1h7Xd81HIXQ" key="image_kind_key" value="shape"/>
+ </eAnnotations>
+ </icon>
</packagedElement>
<packagedElement xmi:type="uml:Extension" xmi:id="_hQCS8IwpEeC_FYHMbTTxXw" name="Class_ACliche" memberEnd="_hQCS8YwpEeC_FYHMbTTxXw _hQCS8owpEeC_FYHMbTTxXw">
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_hQCS8YwpEeC_FYHMbTTxXw" name="extension_ACliche" type="_wQjhQIwoEeC_FYHMbTTxXw" aggregation="composite" association="_hQCS8IwpEeC_FYHMbTTxXw"/>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_x0pRAPCBEeKBcNH8cCNzUg" name="ACliche2">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRAfCBEeKBcNH8cCNzUg" name="singleValuedAttribute">
+ <ownedAttribute xmi:id="_x0pRAfCBEeKBcNH8cCNzUg" name="singleValuedAttribute">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_x0pRAvCBEeKBcNH8cCNzUg"/>
</ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRA_CBEeKBcNH8cCNzUg" name="manyValuedAttribute" isOrdered="true">
+ <ownedAttribute xmi:id="_x0pRA_CBEeKBcNH8cCNzUg" name="manyValuedAttribute" isOrdered="true">
<type xmi:type="uml:PrimitiveType" href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_x0pRBPCBEeKBcNH8cCNzUg"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_x0pRBfCBEeKBcNH8cCNzUg" value="*"/>
</ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRBvCBEeKBcNH8cCNzUg" name="singleValuedReference">
+ <ownedAttribute xmi:id="_x0pRBvCBEeKBcNH8cCNzUg" name="singleValuedReference">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_x0pRB_CBEeKBcNH8cCNzUg"/>
</ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRCPCBEeKBcNH8cCNzUg" name="manyValuedReference" isOrdered="true">
+ <ownedAttribute xmi:id="_x0pRCPCBEeKBcNH8cCNzUg" name="manyValuedReference" isOrdered="true">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_x0pRCfCBEeKBcNH8cCNzUg"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_x0pRCvCBEeKBcNH8cCNzUg" value="*"/>
</ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_x0pRC_CBEeKBcNH8cCNzUg" name="base_Class">
+ <ownedAttribute xmi:id="_x0pRC_CBEeKBcNH8cCNzUg" name="base_Class">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</ownedAttribute>
- <ownedAttribute xmi:type="uml:Property" xmi:id="_J3SKoPCCEeKBcNH8cCNzUg" name="base_Class" association="_J3OgQPCCEeKBcNH8cCNzUg">
+ <ownedAttribute xmi:id="_J3SKoPCCEeKBcNH8cCNzUg" name="base_Class" association="_J3OgQPCCEeKBcNH8cCNzUg">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</ownedAttribute>
</packagedElement>
@@ -179,18 +238,18 @@
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_J3RjkPCCEeKBcNH8cCNzUg" name="extension_ACliche2" type="_x0pRAPCBEeKBcNH8cCNzUg" aggregation="composite" association="_J3OgQPCCEeKBcNH8cCNzUg"/>
</packagedElement>
<packagedElement xmi:type="uml:Stereotype" xmi:id="_yS8fYPU0EeOznPU7N6uHbQ" name="ACliche3">
- <ownedAttribute xmi:type="uml:Property" xmi:id="_32HNAPU0EeOznPU7N6uHbQ" name="base_Class" association="_32IbIPU0EeOznPU7N6uHbQ">
+ <ownedAttribute xmi:id="_32HNAPU0EeOznPU7N6uHbQ" name="base_Class" association="_32IbIPU0EeOznPU7N6uHbQ">
<type xmi:type="uml:Class" href="pathmap://UML_METAMODELS/UML.metamodel.uml#Class"/>
</ownedAttribute>
</packagedElement>
<packagedElement xmi:type="uml:Extension" xmi:id="_32IbIPU0EeOznPU7N6uHbQ" name="E_ACliche3_Class1" memberEnd="_32IbIfU0EeOznPU7N6uHbQ _32HNAPU0EeOznPU7N6uHbQ">
<ownedEnd xmi:type="uml:ExtensionEnd" xmi:id="_32IbIfU0EeOznPU7N6uHbQ" name="extension_ACliche3" type="_yS8fYPU0EeOznPU7N6uHbQ" aggregation="composite" association="_32IbIPU0EeOznPU7N6uHbQ"/>
</packagedElement>
- <profileApplication xmi:type="uml:ProfileApplication" xmi:id="_zXVhcIwnEeC_FYHMbTTxXw">
- <eAnnotations xmi:type="ecore:EAnnotation" xmi:id="_zXXWoIwnEeC_FYHMbTTxXw" source="http://www.eclipse.org/uml2/2.0.0/UML">
+ <profileApplication xmi:id="_zXVhcIwnEeC_FYHMbTTxXw">
+ <eAnnotations xmi:id="_zXXWoIwnEeC_FYHMbTTxXw" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="pathmap://UML_PROFILES/Ecore.profile.uml#_z1OFcHjqEdy8S4Cr8Rc_NA"/>
</eAnnotations>
- <appliedProfile xmi:type="uml:Profile" href="pathmap://UML_PROFILES/Ecore.profile.uml#_0"/>
+ <appliedProfile href="pathmap://UML_PROFILES/Ecore.profile.uml#_0"/>
</profileApplication>
</uml:Profile>
<Ecore:EPackage xmi:id="_1Dh9gIwnEeC_FYHMbTTxXw" base_Package="_hZFTgIwkEeC_FYHMbTTxXw" packageName="uml2comparetestprofile" nsPrefix="testProfile" nsURI="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile" basePackage="org.eclipse.emf.compare.uml2.profile.test" prefix="UML2CompareTestProfile"/>
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/plugin.properties b/plugins/org.eclipse.emf.compare.uml2.tests/plugin.properties
index 7e46dce3e..08a21bc3a 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/plugin.properties
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/plugin.properties
@@ -10,3 +10,27 @@
################################################################################
pluginName = UML2CompareTestProfile Model
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_ACliche_type = ACliche
+_UI_ACliche2_type = ACliche2
+_UI_ACliche3_type = ACliche3
+_UI_Unknown_type = Object
+_UI_Unknown_datatype= Value
+_UI_ACliche_singleValuedAttribute_feature = Single Valued Attribute
+_UI_ACliche_manyValuedAttribute_feature = Many Valued Attribute
+_UI_ACliche_singleValuedReference_feature = Single Valued Reference
+_UI_ACliche_manyValuedReference_feature = Many Valued Reference
+_UI_ACliche_base_Class_feature = Base Class
+_UI_ACliche2_singleValuedAttribute_feature = Single Valued Attribute
+_UI_ACliche2_manyValuedAttribute_feature = Many Valued Attribute
+_UI_ACliche2_singleValuedReference_feature = Single Valued Reference
+_UI_ACliche2_manyValuedReference_feature = Many Valued Reference
+_UI_ACliche2_base_Class_feature = Base Class
+_UI_ACliche3_base_Class_feature = Base Class
+_UI_Unknown_feature = Unspecified
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/plugin.xml b/plugins/org.eclipse.emf.compare.uml2.tests/plugin.xml
index b4ea258e0..bd87640eb 100644
--- a/plugins/org.eclipse.emf.compare.uml2.tests/plugin.xml
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/plugin.xml
@@ -20,6 +20,19 @@ Contributors:
class="org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage"
genModel="model/UML2CompareTestProfile.genmodel"/>
</extension>
+
+ <extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
+ <!-- @generated UML2CompareTestProfile -->
+ <factory
+ uri="http://www.eclipse.org/emf/compare/uml2/1.0.0/testprofile"
+ class="org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.provider.UML2CompareTestProfileItemProviderAdapterFactory"
+ supportedTypes=
+ "org.eclipse.emf.edit.provider.IEditingDomainItemProvider
+ org.eclipse.emf.edit.provider.IStructuredItemContentProvider
+ org.eclipse.emf.edit.provider.ITreeItemContentProvider
+ org.eclipse.emf.edit.provider.IItemLabelProvider
+ org.eclipse.emf.edit.provider.IItemPropertySource"/>
+ </extension>
<extension point="org.eclipse.uml2.uml.generated_package">
<profile
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/ACliche2ItemProvider.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/ACliche2ItemProvider.java
new file mode 100644
index 000000000..2aa61ddfe
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/ACliche2ItemProvider.java
@@ -0,0 +1,231 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.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.compare.uml2.profile.test.uml2comparetestprofile.ACliche2;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
+
+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;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ACliche2ItemProvider 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 ACliche2ItemProvider(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);
+
+ addSingleValuedAttributePropertyDescriptor(object);
+ addManyValuedAttributePropertyDescriptor(object);
+ addSingleValuedReferencePropertyDescriptor(object);
+ addManyValuedReferencePropertyDescriptor(object);
+ addBase_ClassPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Single Valued Attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSingleValuedAttributePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche2_singleValuedAttribute_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche2_singleValuedAttribute_feature", "_UI_ACliche2_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE2__SINGLE_VALUED_ATTRIBUTE, true,
+ false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Many Valued Attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addManyValuedAttributePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche2_manyValuedAttribute_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche2_manyValuedAttribute_feature", "_UI_ACliche2_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE2__MANY_VALUED_ATTRIBUTE, true, false,
+ false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Single Valued Reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSingleValuedReferencePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche2_singleValuedReference_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche2_singleValuedReference_feature", "_UI_ACliche2_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE2__SINGLE_VALUED_REFERENCE, true,
+ false, true, null, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Many Valued Reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addManyValuedReferencePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche2_manyValuedReference_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche2_manyValuedReference_feature", "_UI_ACliche2_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE2__MANY_VALUED_REFERENCE, true, false,
+ true, null, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Base Class feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addBase_ClassPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche2_base_Class_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche2_base_Class_feature", "_UI_ACliche2_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE2__BASE_CLASS, true, false, true, null,
+ null, null));
+ }
+
+ /**
+ * This returns ACliche2.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated not
+ */
+ @Override
+ public Object getImage(Object object) {
+ //Custom icon for test on item providers
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/eclipse_kepler")); //$NON-NLS-1$
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ACliche2)object).getSingleValuedAttribute();
+ return label == null || label.length() == 0 ? getString("_UI_ACliche2_type") : //$NON-NLS-1$
+ getString("_UI_ACliche2_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * 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(ACliche2.class)) {
+ case UML2CompareTestProfilePackage.ACLICHE2__SINGLE_VALUED_ATTRIBUTE:
+ case UML2CompareTestProfilePackage.ACLICHE2__MANY_VALUED_ATTRIBUTE:
+ 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 UML2CompareTestProfileEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/ACliche3ItemProvider.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/ACliche3ItemProvider.java
new file mode 100644
index 000000000..8319cf3cc
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/ACliche3ItemProvider.java
@@ -0,0 +1,141 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.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.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
+
+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.ItemProviderAdapter;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class ACliche3ItemProvider 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 ACliche3ItemProvider(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);
+
+ addBase_ClassPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Base Class feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addBase_ClassPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche3_base_Class_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche3_base_Class_feature", "_UI_ACliche3_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE3__BASE_CLASS, true, false, true, null,
+ null, null));
+ }
+
+ /**
+ * This returns ACliche3.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ACliche3")); //$NON-NLS-1$
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ return getString("_UI_ACliche3_type"); //$NON-NLS-1$
+ }
+
+ /**
+ * This handles model notifications by calling {@link #updateChildren} to update any cached
+ * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public void notifyChanged(Notification notification) {
+ updateChildren(notification);
+ super.notifyChanged(notification);
+ }
+
+ /**
+ * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
+ * that can be created under this object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
+ super.collectNewChildDescriptors(newChildDescriptors, object);
+ }
+
+ /**
+ * Return the resource locator for this item provider's resources.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public ResourceLocator getResourceLocator() {
+ return UML2CompareTestProfileEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/AClicheItemProvider.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/AClicheItemProvider.java
new file mode 100644
index 000000000..2732d6ec3
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/AClicheItemProvider.java
@@ -0,0 +1,230 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.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.compare.uml2.profile.test.uml2comparetestprofile.ACliche;
+import org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.UML2CompareTestProfilePackage;
+
+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;
+
+/**
+ * This is the item provider adapter for a {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche} object.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class AClicheItemProvider 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 AClicheItemProvider(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);
+
+ addSingleValuedAttributePropertyDescriptor(object);
+ addManyValuedAttributePropertyDescriptor(object);
+ addSingleValuedReferencePropertyDescriptor(object);
+ addManyValuedReferencePropertyDescriptor(object);
+ addBase_ClassPropertyDescriptor(object);
+ }
+ return itemPropertyDescriptors;
+ }
+
+ /**
+ * This adds a property descriptor for the Single Valued Attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSingleValuedAttributePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche_singleValuedAttribute_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche_singleValuedAttribute_feature", "_UI_ACliche_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE__SINGLE_VALUED_ATTRIBUTE, true, false,
+ false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Many Valued Attribute feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addManyValuedAttributePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche_manyValuedAttribute_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche_manyValuedAttribute_feature", "_UI_ACliche_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE__MANY_VALUED_ATTRIBUTE, true, false,
+ false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Single Valued Reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addSingleValuedReferencePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche_singleValuedReference_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche_singleValuedReference_feature", "_UI_ACliche_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE__SINGLE_VALUED_REFERENCE, true, false,
+ true, null, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Many Valued Reference feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addManyValuedReferencePropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche_manyValuedReference_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche_manyValuedReference_feature", "_UI_ACliche_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE__MANY_VALUED_REFERENCE, true, false,
+ true, null, null, null));
+ }
+
+ /**
+ * This adds a property descriptor for the Base Class feature.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected void addBase_ClassPropertyDescriptor(Object object) {
+ itemPropertyDescriptors
+ .add(createItemPropertyDescriptor(
+ ((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
+ getResourceLocator(),
+ getString("_UI_ACliche_base_Class_feature"), //$NON-NLS-1$
+ getString(
+ "_UI_PropertyDescriptor_description", "_UI_ACliche_base_Class_feature", "_UI_ACliche_type"), //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ UML2CompareTestProfilePackage.Literals.ACLICHE__BASE_CLASS, true, false, true, null,
+ null, null));
+ }
+
+ /**
+ * This returns ACliche.gif.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Object getImage(Object object) {
+ return overlayImage(object, getResourceLocator().getImage("full/obj16/ACliche")); //$NON-NLS-1$
+ }
+
+ /**
+ * This returns the label text for the adapted class.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public String getText(Object object) {
+ String label = ((ACliche)object).getSingleValuedAttribute();
+ return label == null || label.length() == 0 ? getString("_UI_ACliche_type") : //$NON-NLS-1$
+ getString("_UI_ACliche_type") + " " + label; //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ /**
+ * 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(ACliche.class)) {
+ case UML2CompareTestProfilePackage.ACLICHE__SINGLE_VALUED_ATTRIBUTE:
+ case UML2CompareTestProfilePackage.ACLICHE__MANY_VALUED_ATTRIBUTE:
+ 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 UML2CompareTestProfileEditPlugin.INSTANCE;
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/UML2CompareTestProfileEditPlugin.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/UML2CompareTestProfileEditPlugin.java
new file mode 100644
index 000000000..edb6fa21e
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/UML2CompareTestProfileEditPlugin.java
@@ -0,0 +1,99 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.provider;
+
+import org.eclipse.emf.common.EMFPlugin;
+
+import org.eclipse.emf.common.util.ResourceLocator;
+
+import org.eclipse.emf.ecore.provider.EcoreEditPlugin;
+
+import org.eclipse.uml2.uml.edit.UMLEditPlugin;
+
+/**
+ * This is the central singleton for the UML2CompareTestProfile edit plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public final class UML2CompareTestProfileEditPlugin extends EMFPlugin {
+ /**
+ * Keep track of the singleton.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static final UML2CompareTestProfileEditPlugin INSTANCE = new UML2CompareTestProfileEditPlugin();
+
+ /**
+ * 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 UML2CompareTestProfileEditPlugin() {
+ super(new ResourceLocator[] {EcoreEditPlugin.INSTANCE, UMLEditPlugin.INSTANCE, });
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ @Override
+ public ResourceLocator getPluginResourceLocator() {
+ return plugin;
+ }
+
+ /**
+ * Returns the singleton instance of the Eclipse plugin.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @return the singleton instance.
+ * @generated
+ */
+ public static Implementation getPlugin() {
+ return plugin;
+ }
+
+ /**
+ * The actual implementation of the Eclipse <b>Plugin</b>.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public static class Implementation extends EclipsePlugin {
+ /**
+ * Creates an instance.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ public Implementation() {
+ super();
+
+ // Remember the static instance.
+ //
+ plugin = this;
+ }
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/UML2CompareTestProfileItemProviderAdapterFactory.java b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/UML2CompareTestProfileItemProviderAdapterFactory.java
new file mode 100644
index 000000000..dcba48186
--- /dev/null
+++ b/plugins/org.eclipse.emf.compare.uml2.tests/profile/org/eclipse/emf/compare/uml2/profile/test/uml2comparetestprofile/provider/UML2CompareTestProfileItemProviderAdapterFactory.java
@@ -0,0 +1,258 @@
+/*******************************************************************************
+ * Copyright (c) 2014 Obeo.
+ * 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:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.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.compare.uml2.profile.test.uml2comparetestprofile.util.UML2CompareTestProfileAdapterFactory;
+
+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;
+
+/**
+ * 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 UML2CompareTestProfileItemProviderAdapterFactory extends UML2CompareTestProfileAdapterFactory 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 UML2CompareTestProfileItemProviderAdapterFactory() {
+ 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.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected AClicheItemProvider aClicheItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createAClicheAdapter() {
+ if (aClicheItemProvider == null) {
+ aClicheItemProvider = new AClicheItemProvider(this);
+ }
+
+ return aClicheItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ACliche2ItemProvider aCliche2ItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche2}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createACliche2Adapter() {
+ if (aCliche2ItemProvider == null) {
+ aCliche2ItemProvider = new ACliche2ItemProvider(this);
+ }
+
+ return aCliche2ItemProvider;
+ }
+
+ /**
+ * This keeps track of the one adapter used for all {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3} instances.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ protected ACliche3ItemProvider aCliche3ItemProvider;
+
+ /**
+ * This creates an adapter for a {@link org.eclipse.emf.compare.uml2.profile.test.uml2comparetestprofile.ACliche3}.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ * @generated
+ */
+ @Override
+ public Adapter createACliche3Adapter() {
+ if (aCliche3ItemProvider == null) {
+ aCliche3ItemProvider = new ACliche3ItemProvider(this);
+ }
+
+ return aCliche3ItemProvider;
+ }
+
+ /**
+ * 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 (aClicheItemProvider != null)
+ aClicheItemProvider.dispose();
+ if (aCliche2ItemProvider != null)
+ aCliche2ItemProvider.dispose();
+ if (aCliche3ItemProvider != null)
+ aCliche3ItemProvider.dispose();
+ }
+
+}

Back to the top