Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2011-02-08 08:00:49 -0500
committerptessier2011-02-08 08:00:49 -0500
commit2a98d0b19bb1a1533cdef7acfa5ebd995701b2ab (patch)
tree1e8380e1ab440c269c2bac82d800c79b74899cd3 /tests/recipes
parentd62424ea8ed39e51aaa091e47f9c20216daf5452 (diff)
downloadorg.eclipse.papyrus-2a98d0b19bb1a1533cdef7acfa5ebd995701b2ab.tar.gz
org.eclipse.papyrus-2a98d0b19bb1a1533cdef7acfa5ebd995701b2ab.tar.xz
org.eclipse.papyrus-2a98d0b19bb1a1533cdef7acfa5ebd995701b2ab.zip
336371: [Model Explorer] add element to do recipe test
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336371
Diffstat (limited to 'tests/recipes')
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/build.properties3
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/plugin.xml9
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlay.gifbin0 -> 827 bytes
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlayFacet.uiCustom13
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/src/org/eclipse/papyrus/uml/modelexplorer/recipetest/GetAllPorts.java8
5 files changed, 23 insertions, 10 deletions
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/build.properties b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/build.properties
index aee52b8c26f..0c29fad614b 100644
--- a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/build.properties
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/build.properties
@@ -8,5 +8,6 @@ bin.includes = META-INF/,\
resource/umlModelExplorerRecipe.querySet,\
resource/umlModelExplorerRecipe.facetSet,\
resource/LoadRecipeFacet.uiCustom,\
- resource/LoadRecipeFacet2.uiCustom
+ resource/LoadRecipeFacet2.uiCustom,\
+ resource/overlayFacet.uiCustom
source.. = src/
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/plugin.xml b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/plugin.xml
index cc8a5e8761f..03fc52c8271 100644
--- a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/plugin.xml
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/plugin.xml
@@ -20,10 +20,11 @@
<extension point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
<browserCustomization file="resource/LoadRecipeFacet.uiCustom"/>
</extension>
- <extension
- point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
- <browserCustomization
- file="resource/LoadRecipeFacet2.uiCustom">
+ <extension point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
+ <browserCustomization file="resource/LoadRecipeFacet2.uiCustom">
</browserCustomization>
</extension>
+ <extension point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
+ <browserCustomization file="resource/overlayFacet.uiCustom"/>
+ </extension>
</plugin>
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlay.gif b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlay.gif
new file mode 100644
index 00000000000..b27c69ded5c
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlay.gif
Binary files differ
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlayFacet.uiCustom b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlayFacet.uiCustom
new file mode 100644
index 00000000000..ff624da12b1
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlayFacet.uiCustom
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="ASCII"?>
+<uicustom:MetamodelView xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="umlModelExplorerRecipe">
+ <types metaclassName="umlModelExplorerRecipe.NewClassifier">
+ <customizedFeatures customizedFeature="facetOverlayIcon">
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlay.gif:BottomLeft"/>
+ </customizedFeatures>
+ </types>
+ <types metaclassName="umlModelExplorerRecipe.NewPackage">
+ <customizedFeatures customizedFeature="facetOverlayIcon">
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/overlay.gif:BottomLeft"/>
+ </customizedFeatures>
+ </types>
+</uicustom:MetamodelView>
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/src/org/eclipse/papyrus/uml/modelexplorer/recipetest/GetAllPorts.java b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/src/org/eclipse/papyrus/uml/modelexplorer/recipetest/GetAllPorts.java
index 449e5512750..d1dd0d285e5 100644
--- a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/src/org/eclipse/papyrus/uml/modelexplorer/recipetest/GetAllPorts.java
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/src/org/eclipse/papyrus/uml/modelexplorer/recipetest/GetAllPorts.java
@@ -3,14 +3,12 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
-import org.eclipse.uml2.uml.Dependency;
-import org.eclipse.uml2.uml.PackageableElement;
-import org.eclipse.uml2.uml.Port;
-import org.eclipse.uml2.uml.Property;
-import org.eclipse.uml2.uml.Classifier;
import org.eclipse.emf.facet.infra.query.core.exception.ModelQueryExecutionException;
import org.eclipse.emf.facet.infra.query.core.java.IJavaModelQuery;
import org.eclipse.emf.facet.infra.query.core.java.ParameterValueList;
+import org.eclipse.uml2.uml.Classifier;
+import org.eclipse.uml2.uml.Port;
+import org.eclipse.uml2.uml.Property;
/** get all ports from a classifier */
public class GetAllPorts implements IJavaModelQuery<Classifier, Collection<Property>> {

Back to the top