Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2011-02-07 10:32:16 +0000
committerptessier2011-02-07 10:32:16 +0000
commitf790f662ec7fda2139500fbf9adcb99bce52c710 (patch)
tree5395d2c1fd165dc4e6d994bfa6440636bebee477 /tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest
parent89c32ab6b7fee7bbb51dd391ee0434088639446a (diff)
downloadorg.eclipse.papyrus-f790f662ec7fda2139500fbf9adcb99bce52c710.tar.gz
org.eclipse.papyrus-f790f662ec7fda2139500fbf9adcb99bce52c710.tar.xz
org.eclipse.papyrus-f790f662ec7fda2139500fbf9adcb99bce52c710.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/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest')
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/build.properties4
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/plugin.xml6
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/LoadRecipeFacet.uiCustom2
-rw-r--r--tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/umlModelExplorerRecipe.facetSet18
4 files changed, 29 insertions, 1 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 b39511bd23f..a7e9dee91b3 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
@@ -5,5 +5,7 @@ bin.includes = META-INF/,\
plugin.xml,\
resource/packageableElementItemLinkNotVisible.uiCustom,\
resource/packagedElementsItemLinksWithIcon.uiCustom,\
- resource/umlModelExplorerRecipe.querySet
+ resource/umlModelExplorerRecipe.querySet,\
+ resource/umlModelExplorerRecipe.facetSet,\
+ resource/LoadRecipeFacet.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 51049711ee9..4155c1c2e70 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
@@ -14,4 +14,10 @@
<extension point="org.eclipse.emf.facet.infra.query.registration">
<modelqueryset file="resource/umlModelExplorerRecipe.querySet"/>
</extension>
+ <extension point="org.eclipse.emf.facet.infra.facet.registration">
+ <facetset file="resource/umlModelExplorerRecipe.facetSet"/>
+ </extension>
+ <extension point="org.eclipse.emf.facet.infra.browser.custom.core.registration">
+ <browserCustomization file="resource/LoadRecipeFacet.uiCustom"/>
+ </extension>
</plugin>
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/LoadRecipeFacet.uiCustom b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/LoadRecipeFacet.uiCustom
new file mode 100644
index 00000000000..4cbad95ad7e
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/LoadRecipeFacet.uiCustom
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="ASCII"?>
+<uicustom:MetamodelView xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:uicustom="http://www.eclipse.org/EmfFacet/infra/browser/custom/0.8" metamodelURI="umlModelExplorerRecipe"/>
diff --git a/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/umlModelExplorerRecipe.facetSet b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/umlModelExplorerRecipe.facetSet
new file mode 100644
index 00000000000..5997b8c5aaa
--- /dev/null
+++ b/tests/recipes/plugins/uml/org.eclipse.papyrus.uml.modelexplorer.recipetest/resource/umlModelExplorerRecipe.facetSet
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="ASCII"?>
+<facet:FacetSet 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:facet="http://www.eclipse.org/EmfFacet/infra/facet/0.8.incubation" xmlns:query="http://www.eclipse.org/EmfFacet/infra/query/0.8.incubation" name="umlModelExplorerRecipe" nsURI="umlModelExplorerRecipe" nsPrefix="umlModelExplorerRecipe">
+ <eClassifiers xsi:type="facet:Facet" name="NewPackage" abstract="true">
+ <eSuperTypes href="http://www.eclipse.org/uml2/3.0.0/UML#//Package"/>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="dependencies" upperBound="-1" changeable="false" volatile="true" unsettable="true" derived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Dependency"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/umlModelExplorerRecipe#getAllDependencies"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <eClassifiers xsi:type="facet:Facet" name="NewClassifier" abstract="true">
+ <eSuperTypes href="http://www.eclipse.org/uml2/3.0.0/UML#//Classifier"/>
+ <eStructuralFeatures xsi:type="facet:FacetReference" name="ports" upperBound="-1" changeable="false" volatile="true" unsettable="true" derived="true">
+ <eType xsi:type="ecore:EClass" href="http://www.eclipse.org/uml2/3.0.0/UML#//Property"/>
+ <valueQuery xsi:type="query:JavaModelQuery" href="emffacet:/query/umlModelExplorerRecipe#getAllPorts"/>
+ </eStructuralFeatures>
+ </eClassifiers>
+ <extendedPackage href="http://www.eclipse.org/uml2/3.0.0/UML#/"/>
+</facet:FacetSet>

Back to the top