Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlorenzo2011-03-16 10:14:22 +0000
committervlorenzo2011-03-16 10:14:22 +0000
commitaac38554a97854b3f178ad7a25aad1f2b11e55c2 (patch)
treeed72aec38a510360a39b55ede90f5bc910741d7e /tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource
parentdad6b4f82d7ae41feab8ad2671ed0c5d0041707c (diff)
downloadorg.eclipse.papyrus-aac38554a97854b3f178ad7a25aad1f2b11e55c2.tar.gz
org.eclipse.papyrus-aac38554a97854b3f178ad7a25aad1f2b11e55c2.tar.xz
org.eclipse.papyrus-aac38554a97854b3f178ad7a25aad1f2b11e55c2.zip
NEW bug 336371: [Model Explorer] add element to do recipe test
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336371 Add the request GetPackageBackgroundColor and backgroundPackage.uiCustom.
Diffstat (limited to 'tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource')
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/backgroundPackage.uiCustom14
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/umlModelExplorerRecipe.querySet4
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/backgroundPackage.uiCustom b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/backgroundPackage.uiCustom
new file mode 100644
index 00000000000..757683952d6
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/backgroundPackage.uiCustom
@@ -0,0 +1,14 @@
+<?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:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="http://www.eclipse.org/uml2/3.0.0/UML" allQuerySetsAvailable="false">
+ <types metaclassName="uml.Package">
+ <customizedFeatures customizedFeature="color">
+ <defaultValue xsi:type="uicustom:StaticFeatureValue" value="(255,0,0)"/>
+ </customizedFeatures>
+ <customizedFeatures customizedFeature="backgroundColor">
+ <defaultValue xsi:type="uicustom:DerivedFeatureValue">
+ <valueCalculator xsi:type="query:JavaModelQuery" href="emffacet:/query/umlModelExplorerRecipe#GetPackageBackgroundColor"/>
+ </defaultValue>
+ </customizedFeatures>
+ </types>
+ <availableQuerySets>umlModelExplorerRecipe</availableQuerySets>
+</uicustom:MetamodelView>
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/umlModelExplorerRecipe.querySet b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/umlModelExplorerRecipe.querySet
index 3f765b509ec..2b8afc9c478 100644
--- a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/umlModelExplorerRecipe.querySet
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/umlModelExplorerRecipe.querySet
@@ -17,4 +17,8 @@
<returnType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
<scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Classifier"/>
</queries>
+ <queries xsi:type="query:JavaModelQuery" name="GetPackageBackgroundColor" description="return Cyan if the package contains memebers and yellow if not" implementationClassName="org.eclipse.papyrus.uml.modelexplorer.recipetest.GetBackgroundPackageColor">
+ <returnType xsi:type="ecore:EDataType" href="http://www.eclipse.org/uml2/3.0.0/UML#//String"/>
+ <scope href="http://www.eclipse.org/uml2/3.0.0/UML#//Package"/>
+ </queries>
</query:ModelQuerySet>

Back to the top