<?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:pde="http://www.eclipse.org/oomph/setup/pde/1.0"
    xmlns:predicates="http://www.eclipse.org/oomph/predicates/1.0"
    xmlns:projects="http://www.eclipse.org/oomph/setup/projects/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.workingsets="http://www.eclipse.org/oomph/setup/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/setup/jdt/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/JDT.ecore http://www.eclipse.org/oomph/setup/pde/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/PDE.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/projects/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/Projects.ecore http://www.eclipse.org/oomph/setup/workingsets/1.0 https://raw.githubusercontent.com/eclipse-oomph/oomph/master/setups/models/SetupWorkingSets.ecore"
    name="tracecompass"
    label="Trace Compass">
  <annotation/>
  <setupTask
      xsi:type="setup.p2:P2Task"
      label="Trace Compass Tools">
    <requirement
        name="org.eclipse.platform.feature.group"/>
    <requirement
        name="org.eclipse.rcp.feature.group"/>
    <requirement
        name="org.eclipse.jdt.feature.group"/>
    <requirement
        name="org.eclipse.pde.feature.group"/>
    <requirement
        name="org.eclipse.swtbot.ide.feature.group"/>
    <requirement
        name="org.eclipse.swtbot.generator.feature.feature.group"/>
    <repository
        url="http://download.eclipse.org/technology/swtbot/releases/latest"/>
    <description>Install the tools needed in the IDE to work with the source code for ${scope.project.label}</description>
  </setupTask>
  <setupTask
      xsi:type="setup:EclipseIniTask"
      option="-Xmx"
      value="1g"
      vm="true">
    <description>Set the heap space needed to work with the projects of ${scope.project.label}</description>
  </setupTask>
  <setupTask
      xsi:type="setup:EclipseIniTask"
      option="-Doomph.redirection.tracecompass="
      value="https://raw.githubusercontent.com/eclipse-tracecompass/org.eclipse.tracecompass/master/TraceCompass.setup->${git.clone.tracecompass.location|uri}/TraceCompass.setup"
      vm="true"/>
  <setupTask
      xsi:type="setup:ResourceCreationTask"
      excludedTriggers="STARTUP MANUAL"
      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>
    <content>
      &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
      &lt;section name=&quot;Workbench&quot;>
      	&lt;section name=&quot;org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart&quot;>
      		&lt;item value=&quot;true&quot; key=&quot;group_libraries&quot;/>
      		&lt;item value=&quot;false&quot; key=&quot;linkWithEditor&quot;/>
      		&lt;item value=&quot;2&quot; key=&quot;layout&quot;/>
      		&lt;item value=&quot;2&quot; key=&quot;rootMode&quot;/>
      		&lt;item value=&quot;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;packageExplorer configured=&amp;quot;true&amp;quot; group_libraries=&amp;quot;1&amp;quot; layout=&amp;quot;2&amp;quot; linkWithEditor=&amp;quot;0&amp;quot; rootMode=&amp;quot;2&amp;quot; sortWorkingSets=&amp;quot;false&amp;quot; workingSetName=&amp;quot;&amp;quot;&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;workingSet editPageId=&amp;quot;org.eclipse.jdt.internal.ui.OthersWorkingSet&amp;quot; factoryID=&amp;quot;org.eclipse.ui.internal.WorkingSetFactory&amp;quot; id=&amp;quot;1382792884467_1&amp;quot; label=&amp;quot;Other Projects&amp;quot; name=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/localWorkingSetManager&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;activeWorkingSet workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;allWorkingSets workingSetName=&amp;quot;Other Projects&amp;quot;/&amp;gt;&amp;#x0D;&amp;#x0A;&amp;lt;/packageExplorer&amp;gt;&quot; key=&quot;memento&quot;/>
      	&lt;/section>
      &lt;/section>

    </content>
  </setupTask>
  <setupTask
      xsi:type="jdt:JRETask"
      version="JavaSE-17"
      location="${jre.location-17}">
    <description>Define the JRE needed to compile and run the Java projects of ${scope.project.label}</description>
  </setupTask>
  <setupTask
      xsi:type="setup:VariableTask"
      name="eclipse.target.platform"
      defaultValue="tracecompass-e4.38"
      storageURI="scope://Workspace"
      label="Target Platform">
    <choice
        value="tracecompass-e4.20"
        label="Trace Compass Eclipse 2021-06 - 4.20"/>
    <choice
        value="tracecompass-e4.21"
        label="Trace Compass Eclipse 2021-09 - 4.21"/>
    <choice
        value="tracecompass-e4.22"
        label="Trace Compass Eclipse 2021-12 - 4.22"/>
    <choice
        value="tracecompass-e4.23"
        label="Trace Compass Eclipse 2022-03 - 4.23"/>
    <choice
        value="tracecompass-e4.24"
        label="Trace Compass Eclipse 2022-06 - 4.24"/>
    <choice
        value="tracecompass-e4.25"
        label="Trace Compass Eclipse 2022-09 - 4.25"/>
    <choice
        value="tracecompass-e4.26"
        label="Trace Compass Eclipse 2022-12 - 4.26"/>
    <choice
        value="tracecompass-e4.27"
        label="Trace Compass Eclipse 2023-03 - 4.27"/>
    <choice
        value="tracecompass-e4.28"
        label="Trace Compass Eclipse 2023-06 - 4.28"/>
    <choice
        value="tracecompass-e4.29"
        label="Trace Compass Eclipse 2023-09 - 4.29"/>
    <choice
        value="tracecompass-e4.30"
        label="Trace Compass Eclipse 2023-12 - 4.30"/>
    <choice
        value="tracecompass-e4.31"
        label="Trace Compass Eclipse 2024-03 - 4.31"/>
    <choice
        value="tracecompass-e4.32"
        label="Trace Compass Eclipse 2024-06 - 4.32"/>
    <choice
        value="tracecompass-e4.33"
        label="Trace Compass Eclipse 2024-09 - 4.33"/>
    <choice
        value="tracecompass-e4.34"
        label="Trace Compass Eclipse 2024-12 - 4.34"/>
    <choice
        value="tracecompass-e4.35"
        label="Trace Compass Eclipse 2025-03 - 4.35"/>
    <choice
        value="tracecompass-e4.36"
        label="Trace Compass Eclipse 2025-06 - 4.36"/>
    <choice
        value="tracecompass-e4.37"
        label="Trace Compass Eclipse 2025-09 - 4.37"/>
    <choice
        value="tracecompass-e4.38"
        label="Trace Compass Eclipse 2025-12 - 4.38"/>
    <choice
        value="tracecompass-eStaging"
        label="Trace Compass Eclipse Latest"/>
    <description>Choose the compatibly level of the target platform</description>
  </setupTask>
  <stream name="master">
    <setupTask
        xsi:type="git:GitCloneTask"
        id="git.clone.tracecompass"
        remoteURI="eclipse-tracecompass/org.eclipse.tracecompass"
        checkoutBranch="master">
      <annotation
          source="http://www.eclipse.org/oomph/setup/InducedChoices">
        <detail
            key="inherit">
          <value>github.remoteURIs</value>
        </detail>
        <detail
            key="label">
          <value>${scope.project.label} GitHub Repository</value>
        </detail>
        <detail
            key="target">
          <value>remoteURI</value>
        </detail>
      </annotation>
      <description>Trace Compass</description>
    </setupTask>
    <setupTask
        xsi:type="projects:ProjectsImportTask">
      <sourceLocator
          rootFolder="${git.clone.tracecompass.location}"
          locateNestedProjects="true"/>
    </setupTask>
    <setupTask
        xsi:type="pde:TargetPlatformTask"
        id="tracecompass-baseline-resolve"
        name="tracecompass-baseline-11.2.0"
        activate="false">
      <description>Trace Compass Baseline</description>
    </setupTask>
    <setupTask
        xsi:type="pde:APIBaselineFromTargetTask"
        id="tracecompass-baseline-11.2.0"
        name="Trace Compass Baseline"
        targetName="tracecompass-baseline-11.2.0">
      <description>Trace Compass Baseline</description>
    </setupTask>
    <setupTask
        xsi:type="pde:TargetPlatformTask"
        id="tracecompass-target"
        name="${eclipse.target.platform}">
      <description></description>
    </setupTask>
    <setupTask
        xsi:type="setup.workingsets:WorkingSetTask">
      <workingSet
          name="TraceCompass">
        <predicate
            xsi:type="predicates:RepositoryPredicate"
            project="org.eclipse.tracecompass.tmf.core"/>
      </workingSet>
      <description>The dynamic working sets for ${scope.project.label}</description>
    </setupTask>
  </stream>
  <logicalProjectContainer
      xsi:type="setup:ProjectCatalog"
      href="index:/org.eclipse.setup#//@projectCatalogs[name='org.eclipse']"/>
  <description>Trace Compass is a Java tool for viewing and analyzing logs or traces of any type.</description>
</setup:Project>
