<?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: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"
    xmlns:workingsets="http://www.eclipse.org/oomph/workingsets/1.0"
    xsi:schemaLocation="http://www.eclipse.org/oomph/setup/git/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/Git.ecore http://www.eclipse.org/oomph/predicates/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/Predicates.ecore http://www.eclipse.org/oomph/setup/targlets/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/SetupTarglets.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/SetupWorkingSets.ecore http://www.eclipse.org/oomph/workingsets/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/WorkingSets.ecore"
    name="ui"
    label="UI">
  <annotation
      source="http://www.eclipse.org/oomph/setup/ConfigurationReference">
    <reference
        href="platformUIConfiguration.setup#/"/>
  </annotation>
  <setupTask
      xsi:type="setup:EclipseIniTask"
      option="-Doomph.redirection.platform.ui"
      value="=https://raw.githubusercontent.com/eclipse-platform/eclipse.platform.ui/master/releng/org.eclipse.ui.releng/platformUi.setup->${github.clone.platform.ui.location|uri}/releng/org.eclipse.ui.releng/platformUi.setup"
      vm="true"/>
  <setupTask
      xsi:type="git:GitCloneTask"
      id="github.clone.platform.ui"
      remoteURI="eclipse-platform/eclipse.platform.ui"
      pushURI="">
    <annotation
        source="http://www.eclipse.org/oomph/setup/InducedChoices">
      <detail
          key="inherit">
        <value>github.remoteURIs</value>
      </detail>
      <detail
          key="label">
        <value>Platform UI GitHub Repository</value>
      </detail>
      <detail
          key="target">
        <value>remoteURI</value>
      </detail>
    </annotation>
    <configSections
        name="branch">
      <properties
          key="autoSetupRebase"
          value="always"/>
    </configSections>
    <description>Platform UI</description>
  </setupTask>
  <setupTask
      xsi:type="setup.targlets:TargletTask">
    <targlet
        name="Platform UI"
        activeRepositoryList="Nebula+EMF+GEF">
      <requirement
          name="*"/>
      <sourceLocator
          rootFolder="${github.clone.platform.ui.location}">
        <predicate
            xsi:type="predicates:OrPredicate">
          <operand
              xsi:type="predicates:NotPredicate">
            <operand
                xsi:type="predicates:NamePredicate"
                pattern=".*(cocoa|gtk|win32)"/>
          </operand>
          <operand
              xsi:type="predicates:NamePredicate"
              pattern=".*\.${osgi.ws}"/>
        </predicate>
      </sourceLocator>
      <repositoryList
          name="Nebula+EMF+GEF">
        <repository
            url="https://download.eclipse.org/nebula/snapshot"/>
        <repository
            url="https://download.eclipse.org/modeling/emf/emf/builds/milestone/latest"/>
        <repository
            url="https://download.eclipse.org/tools/gef/updates/milestones"/>
      </repositoryList>
    </targlet>
  </setupTask>
  <setupTask
      xsi:type="setup.workingsets:WorkingSetTask"
      id="platform.ui.workingsets">
    <workingSet
        name="Platform UI">
      <predicate
          xsi:type="predicates:AndPredicate">
        <operand
            xsi:type="predicates:RepositoryPredicate"
            project="org.eclipse.ui"/>
        <operand
            xsi:type="workingsets:ExclusionPredicate"
            excludedWorkingSet="//'platform.ui.workingsets'/@workingSets[name='Platform%20UI%20Examples'] //'platform.ui.workingsets'/@workingSets[name='Platform%20UI%20Tests']"/>
      </predicate>
    </workingSet>
    <workingSet
        name="Platform UI Tests">
      <predicate
          xsi:type="predicates:AndPredicate">
        <operand
            xsi:type="predicates:RepositoryPredicate"
            project="org.eclipse.ui"/>
        <operand
            xsi:type="predicates:NamePredicate"
            pattern=".*\.test.*|.*\.tests.*|org\.eclipse\.ui\.dynamicCode"/>
      </predicate>
    </workingSet>
    <workingSet
        name="Platform UI Examples">
      <predicate
          xsi:type="predicates:AndPredicate">
        <operand
            xsi:type="predicates:RepositoryPredicate"
            project="org.eclipse.ui"/>
        <operand
            xsi:type="predicates:NamePredicate"
            pattern=".*\.(examples|snippets|demo).*|Widget.*"/>
      </predicate>
    </workingSet>
  </setupTask>
  <setupTask
      xsi:type="setup.p2:P2Task"
      label="EMF Tools">
    <requirement
        name="org.eclipse.emf.ecore.editor.feature.group"/>
    <requirement
        name="org.eclipse.emf.codegen.ecore.ui.feature.group"/>
    <repository
        url="https://download.eclipse.org/modeling/emf/emf/builds/nightly/latest"/>
  </setupTask>
  <setupTask
      xsi:type="setup.p2:P2Task"
      label="E4 Tools">
    <requirement
        name="org.eclipse.e4.core.tools.feature.feature.group"/>
  </setupTask>
  <stream name="master"
      label="Master"/>
  <logicalProjectContainer
      xsi:type="setup:Project"
      href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']/@projects[name='platform']"/>
  <description>The Platform UI support</description>
</setup:Project>
