[533244] Provide an Oomph setup model for GMF Notation development
Change-Id: I0f06ca55222f0133c8c9f7759591374a696e5e52
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=533244
Signed-off-by: Eike Stepper <stepper@esc-net.de>
diff --git a/org.eclipse.gmf.runtime.notation/GMFNotation.setup b/org.eclipse.gmf.runtime.notation/GMFNotation.setup
new file mode 100644
index 0000000..989c5f1
--- /dev/null
+++ b/org.eclipse.gmf.runtime.notation/GMFNotation.setup
@@ -0,0 +1,216 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<setup:Project
+ xmi:version="2.0"
+ xmlns:xmi="http://www.omg.org/XMI"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:git="http://www.eclipse.org/oomph/setup/git/1.0"
+ xmlns:jdt="http://www.eclipse.org/oomph/setup/jdt/1.0"
+ xmlns:mylyn="http://www.eclipse.org/oomph/setup/mylyn/1.0"
+ xmlns:predicates="http://www.eclipse.org/oomph/predicates/1.0"
+ xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
+ xmlns:setup.p2="http://www.eclipse.org/oomph/setup/p2/1.0"
+ xmlns:setup.targlets="http://www.eclipse.org/oomph/setup/targlets/1.0"
+ xmlns:setup.workingsets="http://www.eclipse.org/oomph/setup/workingsets/1.0"
+ xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Git.ecore http://www.eclipse.org/oomph/setup/jdt/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/mylyn/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Mylyn.ecore http://www.eclipse.org/oomph/predicates/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/Predicates.ecore http://www.eclipse.org/oomph/setup/targlets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupTarglets.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/models/SetupWorkingSets.ecore"
+ name="gmf.notation"
+ label="GMF Notation">
+ <setupTask
+ xsi:type="jdt:JRETask"
+ version="JavaSE-1.8"
+ location="${jre.location-1.8}">
+ <description>Define the JRE needed to compile and run the Java projects of ${scope.project.label}</description>
+ </setupTask>
+ <setupTask
+ xsi:type="setup:EclipseIniTask"
+ option="-Xmx"
+ value="1024m"
+ vm="true">
+ <description>Set the heap space needed to work with the projects of ${scope.project.label}</description>
+ </setupTask>
+ <setupTask
+ xsi:type="setup:ResourceCreationTask"
+ excludedTriggers="STARTUP MANUAL"
+ content="<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
	<section name="org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart">
		<item value="true" key="group_libraries"/>
		<item value="false" key="linkWithEditor"/>
		<item value="2" key="layout"/>
		<item value="2" key="rootMode"/>
		<item value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#x0D;&#x0A;&lt;packageExplorer configured=&quot;true&quot; group_libraries=&quot;1&quot; layout=&quot;2&quot; linkWithEditor=&quot;0&quot; rootMode=&quot;2&quot; sortWorkingSets=&quot;false&quot; workingSetName=&quot;&quot;&gt;&#x0D;&#x0A;&lt;localWorkingSetManager&gt;&#x0D;&#x0A;&lt;workingSet editPageId=&quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&quot; factoryID=&quot;org.eclipse.ui.internal.WorkingSetFactory&quot; id=&quot;1382792884467_1&quot; label=&quot;Other Projects&quot; name=&quot;Other Projects&quot;/&gt;&#x0D;&#x0A;&lt;/localWorkingSetManager&gt;&#x0D;&#x0A;&lt;activeWorkingSet workingSetName=&quot;Other Projects&quot;/&gt;&#x0D;&#x0A;&lt;allWorkingSets workingSetName=&quot;Other Projects&quot;/&gt;&#x0D;&#x0A;&lt;/packageExplorer&gt;" key="memento"/>
	</section>
</section>
"
+ targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml"
+ encoding="UTF-8">
+ <description>Initialize JDT's package explorer to show working sets as its root objects</description>
+ </setupTask>
+ <setupTask
+ xsi:type="setup:VariableTask"
+ name="eclipse.target.platform"
+ defaultValue="Photon"
+ storageURI="scope://Workspace"/>
+ <setupTask
+ xsi:type="setup.p2:P2Task">
+ <requirement
+ name="org.eclipse.emf.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.ide_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.java_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.pde_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.team_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.gerrit.feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.bugzilla_feature.feature.group"/>
+ <requirement
+ name="org.eclipse.mylyn.git.feature.group"/>
+ <requirement
+ name="org.eclipse.egit.feature.group"/>
+ <requirement
+ name="org.eclipse.egit.mylyn.feature.group"/>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/emf/builds/milestone/latest"/>
+ <description>Install the tools needed in the IDE to work with the source code for ${scope.project.label}</description>
+ </setupTask>
+ <setupTask
+ xsi:type="git:GitCloneTask"
+ id="git.clone.gmf.notation"
+ remoteURI="gmf-notation/org.eclipse.gmf.notation">
+ <annotation
+ source="http://www.eclipse.org/oomph/setup/InducedChoices">
+ <detail
+ key="inherit">
+ <value>eclipse.git.gerrit.remoteURIs</value>
+ </detail>
+ <detail
+ key="label">
+ <value>${scope.project.label} Git or Gerrit repository</value>
+ </detail>
+ <detail
+ key="target">
+ <value>remoteURI</value>
+ </detail>
+ </annotation>
+ <description>${scope.project.label}</description>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.targlets:TargletTask">
+ <targlet
+ name="${scope.project.label}"
+ activeRepositoryList="${eclipse.target.platform}">
+ <requirement
+ name="org.eclipse.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.sdk.ide"/>
+ <requirement
+ name="org.eclipse.platform.ide"/>
+ <requirement
+ name="org.eclipse.test.feature.group"/>
+ <requirement
+ name="org.eclipse.sdk.tests.feature.group"/>
+ <requirement
+ name="org.eclipse.emf.sdk.feature.group"/>
+ <requirement
+ name="org.eclipse.emf.edit.feature.group"/>
+ <requirement
+ name="org.eclipse.emf.ecore.edit.feature.group"/>
+ <requirement
+ name="org.eclipse.emf.examples.feature.group"/>
+ <requirement
+ name="org.hamcrest"/>
+ <requirement
+ name="org.hamcrest.text"/>
+ <requirement
+ name="*"/>
+ <sourceLocator
+ rootFolder="${git.clone.gmf.notation.location}"
+ locateNestedProjects="true"/>
+ <repositoryList
+ name="Photon">
+ <repository
+ url="http://download.eclipse.org/releases/photon"/>
+ <repository
+ url="http://download.eclipse.org/cbi/updates/license"/>
+ <repository
+ url="http://download.eclipse.org/eclipse/updates/4.8milestones"/>
+ <repository
+ url="http://download.eclipse.org/modeling/emf/emf/builds/milestone/latest"/>
+ <repository
+ url="http://download.eclipse.org/tools/orbit/downloads/latest-R"/>
+ </repositoryList>
+ <repositoryList
+ name="Oxygen">
+ <repository
+ url="http://download.eclipse.org/releases/oxygen"/>
+ <repository
+ url="http://download.eclipse.org/cbi/updates/license"/>
+ </repositoryList>
+ <repositoryList
+ name="Neon">
+ <repository
+ url="http://download.eclipse.org/releases/neon"/>
+ <repository
+ url="http://download.eclipse.org/cbi/updates/license"/>
+ </repositoryList>
+ <repositoryList
+ name="Mars">
+ <repository
+ url="http://download.eclipse.org/releases/mars"/>
+ <repository
+ url="http://download.eclipse.org/cbi/updates/license"/>
+ </repositoryList>
+ <repositoryList
+ name="Luna">
+ <repository
+ url="http://download.eclipse.org/releases/luna"/>
+ <repository
+ url="http://download.eclipse.org/cbi/updates/license"/>
+ </repositoryList>
+ <repositoryList
+ name="Kepler">
+ <repository
+ url="http://download.eclipse.org/releases/kepler"/>
+ <repository
+ url="http://download.eclipse.org/cbi/updates/license"/>
+ </repositoryList>
+ <repositoryList
+ name="Juno">
+ <repository
+ url="http://download.eclipse.org/releases/juno"/>
+ <repository
+ url="http://download.eclipse.org/cbi/updates/license"/>
+ </repositoryList>
+ </targlet>
+ </setupTask>
+ <setupTask
+ xsi:type="setup.workingsets:WorkingSetTask">
+ <workingSet
+ name="${scope.project.label}">
+ <predicate
+ xsi:type="predicates:AndPredicate">
+ <operand
+ xsi:type="predicates:RepositoryPredicate"
+ project="org.eclipse.gmf.runtime.notation"/>
+ </predicate>
+ </workingSet>
+ <description>The dynamic working sets for ${scope.project.label}</description>
+ </setupTask>
+ <setupTask
+ xsi:type="mylyn:MylynQueriesTask"
+ repositoryURL="https://bugs.eclipse.org/bugs">
+ <query summary="${scope.project.label} Open Bugs"
+ url="/buglist.cgi?classification=Modeling&product=GMF-Notation&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED"/>
+ <query summary="${scope.project.label} Resolved Bugs"
+ url="/buglist.cgi?classification=Modeling&product=GMF-Notation&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED"/>
+ </setupTask>
+ <stream name="master"
+ label="Master">
+ <setupTask
+ xsi:type="setup:EclipseIniTask"
+ option="-Doomph.redirection.gmf.notation"
+ value="=https://git.eclipse.org/c/gmf-notation/org.eclipse.gmf.notation.git/plain/org.eclipse.gmf.runtime.notation/GMFNotation.setup->${git.clone.gmf.notation.location|uri}/org.eclipse.gmf.runtime.notation/GMFNotation.setup"
+ vm="true">
+ <description>Set an Oomph redirection system property to redirect the logical location of this setup to its physical location in the Git clone.</description>
+ </setupTask>
+ </stream>
+ <logicalProjectContainer
+ xsi:type="setup:ProjectCatalog"
+ href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']"/>
+ <description>The Eclipse Graphical Modeling Project (GMP) provides a set of generative components and runtime infrastructures for developing graphical editors based on EMF and GEF. The GMF Notation Project provides a standard EMF notational meta model.</description>
+</setup:Project>
diff --git a/org.eclipse.gmf.runtime.notation/build.properties b/org.eclipse.gmf.runtime.notation/build.properties
index f63591d..0e63bad 100644
--- a/org.eclipse.gmf.runtime.notation/build.properties
+++ b/org.eclipse.gmf.runtime.notation/build.properties
@@ -24,4 +24,5 @@
source.. = src/
output.. = bin/
src.includes = templates/,\
- about.html
+ about.html,\
+ GMFNotation.setup