<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
    <extension
         point="org.eclipse.ui.newWizards">
      <category
            name="WPILib Robot Java Development"
            id="edu.wpi.first.wpilib.plugins.java">
      </category>
      <wizard
            category="edu.wpi.first.wpilib.plugins.java"
            class="edu.wpi.first.wpilib.plugins.java.wizards.newproject.NewJavaWizard"
            icon="resources/icons/wpi.ico"
            id="edu.wpi.first.wpilib.plugins.java.wizards.newproject.NewJavaWizard"
            name="Robot Java Project"
            project="true">
      </wizard>
      <wizard
            category="edu.wpi.first.wpilib.plugins.java"
            class="edu.wpi.first.wpilib.plugins.java.wizards.examples.ExampleJavaWizard"
            icon="resources/icons/wpi.ico"
            id="edu.wpi.first.wpilib.plugins.java.wizards.examples.ExampleWizard"
            name="Example Robot Java Project"
            project="true">
      </wizard>
      <wizard
            category="edu.wpi.first.wpilib.plugins.java"
            class="edu.wpi.first.wpilib.plugins.java.wizards.file_template.CommandWizard"
            icon="resources/icons/Command.png"
            id="edu.wpi.first.wpilib.plugins.java.wizards.file_template.CommandWizard"
            name="Command">
      </wizard>
      <wizard
            category="edu.wpi.first.wpilib.plugins.java"
            class="edu.wpi.first.wpilib.plugins.java.wizards.file_template.CommandGroupWizard"
            icon="resources/icons/CommandGroup.png"
            id="edu.wpi.first.wpilib.plugins.java.wizards.file_template.CommandGroupWizard"
            name="CommandGroup">
      </wizard>
      <wizard
            category="edu.wpi.first.wpilib.plugins.java"
            class="edu.wpi.first.wpilib.plugins.java.wizards.file_template.SubsystemWizard"
            icon="resources/icons/Subsystem.png"
            id="edu.wpi.first.wpilib.plugins.java.wizards.file_template.SubsystemWizard"
            name="Subsytem">
      </wizard>
      <wizard
            category="edu.wpi.first.wpilib.plugins.java"
            class="edu.wpi.first.wpilib.plugins.java.wizards.file_template.PIDSubsystemWizard"
            icon="resources/icons/PIDSubsystem.png"
            id="edu.wpi.first.wpilib.plugins.java.wizards.file_template.PIDSubsystemWizard"
            name="PIDSubsystem">
      </wizard>
      <wizard
            category="edu.wpi.first.wpilib.plugins.java"
            class="edu.wpi.first.wpilib.plugins.java.wizards.file_template.TriggerWizard"
            icon="resources/icons/Button.png"
            id="edu.wpi.first.wpilib.plugins.java.wizards.file_template.TriggerWizard"
            name="Trigger">
      </wizard>
   </extension>
   <extension
         point="org.eclipse.ui.navigator.navigatorContent">
      <commonWizard
            menuGroupId="edu.wpi.first.wpilib.plugins.java"
            type="new"
            wizardId="edu.wpi.first.wpilib.plugins.java.wizards.file_template.CommandWizard">
         <enablement>
      	   <with variable="selection"><iterate>
               <test
                    args="edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature"
                    property="org.eclipse.jdt.launching.hasProjectNature">
                </test>
           </iterate></with>
         </enablement>
      </commonWizard>
      <commonWizard
            menuGroupId="edu.wpi.first.wpilib.plugins.java"
            type="new"
            wizardId="edu.wpi.first.wpilib.plugins.java.wizards.file_template.CommandGroupWizard">
         <enablement>
      	   <with variable="selection"><iterate>
               <test
                    args="edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature"
                    property="org.eclipse.jdt.launching.hasProjectNature">
                </test>
           </iterate></with>
         </enablement>
      </commonWizard>
      <commonWizard
            menuGroupId="edu.wpi.first.wpilib.plugins.java"
            type="new"
            wizardId="edu.wpi.first.wpilib.plugins.java.wizards.file_template.SubsystemWizard">
         <enablement>
      	   <with variable="selection"><iterate>
               <test
                    args="edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature"
                    property="org.eclipse.jdt.launching.hasProjectNature">
                </test>
           </iterate></with>
         </enablement>
      </commonWizard>
      <commonWizard
            menuGroupId="edu.wpi.first.wpilib.plugins.java"
            type="new"
            wizardId="edu.wpi.first.wpilib.plugins.java.wizards.file_template.PIDSubsystemWizard">
         <enablement>
      	   <with variable="selection"><iterate>
               <test
                    args="edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature"
                    property="org.eclipse.jdt.launching.hasProjectNature">
                </test>
           </iterate></with>
         </enablement>
      </commonWizard>
      <commonWizard
            menuGroupId="edu.wpi.first.wpilib.plugins.java"
            type="new"
            wizardId="edu.wpi.first.wpilib.plugins.java.wizards.file_template.TriggerWizard">
         <enablement>
      	   <with variable="selection"><iterate>
               <test
                    args="edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature"
                    property="org.eclipse.jdt.launching.hasProjectNature">
                </test>
           </iterate></with>
         </enablement>
      </commonWizard>
   </extension>
   <extension
       point="org.eclipse.ui.preferencePages">
      <page
            category="edu.wpi.first.wpilib.plugins.core.preferences.WPILibPreferencePage"
            class="edu.wpi.first.wpilib.plugins.java.preferences.JavaPreferencePage"
            id="edu.wpi.first.wpilib.plugins.java.preferences.JavaPreferencePage"
            name="Java Preferences">
      </page>
   </extension>
   <extension
         point="org.eclipse.core.runtime.preferences">
      <initializer
            class="edu.wpi.first.wpilib.plugins.java.preferences.PreferenceInitializer">
      </initializer>
   </extension>
   <extension
         point="org.eclipse.debug.ui.launchShortcuts">
      <shortcut
            class="edu.wpi.first.wpilib.plugins.java.launching.DeployLaunchShortcut"
            description="Deploy the WPILib project to the athena board."
            icon="resources/icons/wpi.ico"
            id="edu.wpi.first.wpilib.plugins.java.launching.deploy"
            label="WPILib Deploy"
            modes="run,debug">
            <contextualLaunch>
            <enablement>
               <with
                     variable="selection">
                  <iterate>
                     <and>
                        <test
                            args="edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature"
                            property="org.eclipse.jdt.launching.hasProjectNature">
                        </test>
                        <test
                            args="org.eclipse.jdt.core.javanature"
                            property="org.eclipse.jdt.launching.hasProjectNature">
                        </test>
                     </and>
                  </iterate>
               </with>
            </enablement>
         </contextualLaunch>
         <description
               description="Deploy the WPILib project to the athena board."
               mode="run">
         </description>
         <description
               description="Deploy the WPILib project to the athena board and debug it."
               mode="debug">
         </description>
      </shortcut>
      <shortcut
            class="edu.wpi.first.wpilib.plugins.java.launching.SimulateLaunchShortcut"
            description="Test your WPILib program with the Gazebo simulator."
            icon="resources/icons/Gazebo.png"
            id="edu.wpi.first.wpilib.plugins.java.launching.simulate"
            label="WPILib Simulation"
            modes="run,debug">
            <contextualLaunch>
            <enablement>
               <with
                     variable="selection">
                  <iterate>
                     <and>
                        <test
                            args="edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature"
                            property="org.eclipse.jdt.launching.hasProjectNature">
                        </test>
                        <test
                            args="org.eclipse.jdt.core.javanature"
                            property="org.eclipse.jdt.launching.hasProjectNature">
                        </test>
                     </and>
                  </iterate>
               </with>
            </enablement>
         </contextualLaunch>
         <description
               description="Test your WPILib program with the Gazebo simulator."
               mode="run">
         </description>
         <description
               description="Test your WPILib program with the Gazebo simulator and use the debugger to debug."
               mode="debug">
         </description>
      </shortcut>
   </extension>
   <extension
         point="org.eclipse.ui.startup">
      <startup
            class="edu.wpi.first.wpilib.plugins.java.WPILibJavaPlugin">
      </startup>
   </extension>
</plugin>
