<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>

	<extension 
          point="org.eclipse.debug.core.launchConfigurationTypes"> 
        <launchConfigurationType 
            delegate="org.nodeclipse.enide.maven.launch.LaunchConfigurationDelegate" 
            id="org.nodeclipse.enide.maven.launch.LaunchConfigurationType" 
            modes="run" 
            name="Maven build">
        </launchConfigurationType> 
    </extension>
    <extension
          point= "org.eclipse.debug.ui.launchConfigurationTypeImages" >   
       <launchConfigurationTypeImage   
             configTypeID= "org.nodeclipse.enide.maven.launch.LaunchConfigurationType"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"   
             id= "org.nodeclipse.enide.maven.launch.LaunchConfigurationTypeImage" >   
       </launchConfigurationTypeImage>   
    </extension>
    <extension
        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
        <launchConfigurationTabGroup   
       		class= "org.nodeclipse.enide.maven.launch.LaunchConfigurationTabGroup"   
      		id= "org.nodeclipse.enide.maven.launch.LaunchConfigurationTabGroup"   
        	type= "org.nodeclipse.enide.maven.launch.LaunchConfigurationType" >   
		</launchConfigurationTabGroup>
   </extension>
    <!-- pom.xml run as maven build -->  
    <extension   
          point= "org.eclipse.debug.ui.launchShortcuts" >   
       <shortcut   
             class= "org.nodeclipse.enide.maven.launch.LaunchShortcut"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"
             id= "org.nodeclipse.enide.maven.launch.LaunchShortcut"   
             label= "mvn package Maven build"   
             modes= "run" >   
          <configurationType
                id= "org.nodeclipse.enide.maven.launch.LaunchConfigurationType" >
          </configurationType>   
           <contextualLaunch>   
              <enablement>   
                 <with   
                       variable= "selection" >   
                    <count   
                          value= "1" >   
                    </count>   
                    <iterate>   
                       <or>   
                          <test   
                                property= "org.eclipse.debug.ui.matchesPattern"   
                                value= "pom*.xml" >   
                          </test>   
                       </or>   
                    </iterate>   
                 </with>   
              </enablement>   
           </contextualLaunch>   
       </shortcut>   
   </extension>
   
   <!-- goal2 -->
 	<extension 
          point="org.eclipse.debug.core.launchConfigurationTypes"> 
        <launchConfigurationType 
            delegate="org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationDelegate" 
            id="org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType" 
            modes="run" 
            name="Maven goal2">
        </launchConfigurationType> 
    </extension>
    <extension
          point= "org.eclipse.debug.ui.launchConfigurationTypeImages" >   
       <launchConfigurationTypeImage   
             configTypeID= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"   
             id= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationTypeImage" >   
       </launchConfigurationTypeImage>   
    </extension>
    <extension
        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
        <launchConfigurationTabGroup   
       		class= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationTabGroup"   
      		id= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationTabGroup"   
        	type= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType" >   
		</launchConfigurationTabGroup>
   </extension>
    <!-- pom.xml run as goal2 -->  
    <extension   
          point= "org.eclipse.debug.ui.launchShortcuts" >   
       <shortcut   
             class= "org.nodeclipse.enide.maven.launch.goal2.LaunchShortcut"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"
             id= "org.nodeclipse.enide.maven.launch.goal2.LaunchShortcut"   
             label= "mvn goal2 Maven goal"   
             modes= "run" >   
          <configurationType
                id= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType" >
          </configurationType>   
           <contextualLaunch>   
              <enablement>   
                 <with   
                       variable= "selection" >   
                    <count   
                          value= "1" >   
                    </count>   
                    <iterate>   
                       <or>   
                          <test   
                                property= "org.eclipse.debug.ui.matchesPattern"   
                                value= "pom*.xml" >   
                          </test>   
                       </or>   
                    </iterate>   
                 </with>   
              </enablement>   
           </contextualLaunch>   
       </shortcut>   
   </extension>
   
   
   <!-- goal2 -->
 	<extension 
          point="org.eclipse.debug.core.launchConfigurationTypes"> 
        <launchConfigurationType 
            delegate="org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationDelegate" 
            id="org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType" 
            modes="run" 
            name="Maven goal2">
        </launchConfigurationType> 
    </extension>
    <extension
          point= "org.eclipse.debug.ui.launchConfigurationTypeImages" >   
       <launchConfigurationTypeImage   
             configTypeID= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"   
             id= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationTypeImage" >   
       </launchConfigurationTypeImage>   
    </extension>
    <extension
        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
        <launchConfigurationTabGroup   
       		class= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationTabGroup"   
      		id= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationTabGroup"   
        	type= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType" >   
		</launchConfigurationTabGroup>
   </extension>
    <!-- pom.xml run as goal2 -->  
    <extension   
          point= "org.eclipse.debug.ui.launchShortcuts" >   
       <shortcut   
             class= "org.nodeclipse.enide.maven.launch.goal2.LaunchShortcut"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"
             id= "org.nodeclipse.enide.maven.launch.goal2.LaunchShortcut"   
             label= "mvn goal2 Maven goal"   
             modes= "run" >   
          <configurationType
                id= "org.nodeclipse.enide.maven.launch.goal2.LaunchConfigurationType" >
          </configurationType>   
           <contextualLaunch>   
              <enablement>   
                 <with   
                       variable= "selection" >   
                    <count   
                          value= "1" >   
                    </count>   
                    <iterate>   
                       <or>   
                          <test   
                                property= "org.eclipse.debug.ui.matchesPattern"   
                                value= "pom*.xml" >   
                          </test>   
                       </or>   
                    </iterate>   
                 </with>   
              </enablement>   
           </contextualLaunch>   
       </shortcut>   
   </extension>
   
   
   <!-- jetty:run -->
 	<extension 
          point="org.eclipse.debug.core.launchConfigurationTypes"> 
        <launchConfigurationType 
            delegate="org.nodeclipse.enide.maven.launch.jetty.LaunchConfigurationDelegate" 
            id="org.nodeclipse.enide.maven.launch.jetty.LaunchConfigurationType" 
            modes="run" 
            name="Maven jetty:run">
        </launchConfigurationType> 
    </extension>
    <extension
          point= "org.eclipse.debug.ui.launchConfigurationTypeImages" >   
       <launchConfigurationTypeImage   
             configTypeID= "org.nodeclipse.enide.maven.launch.jetty.LaunchConfigurationType"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"   
             id= "org.nodeclipse.enide.maven.launch.jetty.LaunchConfigurationTypeImage" >   
       </launchConfigurationTypeImage>   
    </extension>
    <extension
        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
        <launchConfigurationTabGroup   
       		class= "org.nodeclipse.enide.maven.launch.jetty.LaunchConfigurationTabGroup"   
      		id= "org.nodeclipse.enide.maven.launch.jetty.LaunchConfigurationTabGroup"   
        	type= "org.nodeclipse.enide.maven.launch.jetty.LaunchConfigurationType" >   
		</launchConfigurationTabGroup>
   </extension>
    <!-- pom.xml run as jetty:run -->  
    <extension   
          point= "org.eclipse.debug.ui.launchShortcuts" >   
       <shortcut   
             class= "org.nodeclipse.enide.maven.launch.jetty.LaunchShortcut"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"
             id= "org.nodeclipse.enide.maven.launch.jetty.LaunchShortcut"   
             label= "mvn jetty:run Maven start"   
             modes= "run" >   
          <configurationType
                id= "org.nodeclipse.enide.maven.launch.jetty.LaunchConfigurationType" >
          </configurationType>   
           <contextualLaunch>   
              <enablement>   
                 <with   
                       variable= "selection" >   
                    <count   
                          value= "1" >   
                    </count>   
                    <iterate>   
                       <or>   
                          <test   
                                property= "org.eclipse.debug.ui.matchesPattern"   
                                value= "pom*.xml" >   
                          </test>   
                       </or>   
                    </iterate>   
                 </with>   
              </enablement>   
           </contextualLaunch>   
       </shortcut>   
   </extension>
   
     <!-- tomcat6:start -->
 	<extension 
          point="org.eclipse.debug.core.launchConfigurationTypes"> 
        <launchConfigurationType 
            delegate="org.nodeclipse.enide.maven.launch.tomcat.LaunchConfigurationDelegate" 
            id="org.nodeclipse.enide.maven.launch.tomcat.LaunchConfigurationType" 
            modes="run" 
            name="Maven tomcat:start">
        </launchConfigurationType> 
    </extension>
    <extension
          point= "org.eclipse.debug.ui.launchConfigurationTypeImages" >   
       <launchConfigurationTypeImage   
             configTypeID= "org.nodeclipse.enide.maven.launch.tomcat.LaunchConfigurationType"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"   
             id= "org.nodeclipse.enide.maven.launch.tomcat.LaunchConfigurationTypeImage" >   
       </launchConfigurationTypeImage>   
    </extension>
    <extension
        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
        <launchConfigurationTabGroup   
       		class= "org.nodeclipse.enide.maven.launch.tomcat.LaunchConfigurationTabGroup"   
      		id= "org.nodeclipse.enide.maven.launch.tomcat.LaunchConfigurationTabGroup"   
        	type= "org.nodeclipse.enide.maven.launch.tomcat.LaunchConfigurationType" >   
		</launchConfigurationTabGroup>
   </extension>
    <!-- pom.xml run as tomcat6:start -->  
    <extension   
          point= "org.eclipse.debug.ui.launchShortcuts" >   
       <shortcut   
             class= "org.nodeclipse.enide.maven.launch.tomcat.LaunchShortcut"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"
             id= "org.nodeclipse.enide.maven.launch.tomcat.LaunchShortcut"   
             label= "mvn tomcat6:start Maven start"   
             modes= "run" >   
          <configurationType
                id= "org.nodeclipse.enide.maven.launch.tomcat.LaunchConfigurationType" >
          </configurationType>   
           <contextualLaunch>   
              <enablement>   
                 <with   
                       variable= "selection" >   
                    <count   
                          value= "1" >   
                    </count>   
                    <iterate>   
                       <or>   
                          <test   
                                property= "org.eclipse.debug.ui.matchesPattern"   
                                value= "pom*.xml" >   
                          </test>   
                       </or>   
                    </iterate>   
                 </with>   
              </enablement>   
           </contextualLaunch>   
       </shortcut>   
   </extension>
   
    <!-- exec -->
	<extension point="org.eclipse.core.runtime.adapters">
	    <factory
	        adaptableType="org.eclipse.jdt.core.ICompilationUnit"
	        class="org.nodeclipse.enide.jdt.CompilationUnitToFileAdapter">
	        <adapter type="org.eclipse.core.resources.IFile" />
	    </factory>
	</extension>

	<extension 
          point="org.eclipse.debug.core.launchConfigurationTypes"> 
        <launchConfigurationType 
            delegate="org.nodeclipse.enide.maven.launchexec.LaunchConfigurationDelegate" 
            id="org.nodeclipse.enide.maven.launchexec.LaunchConfigurationType" 
            modes="run" 
            name="Maven exec">
        </launchConfigurationType> 
    </extension>
    <extension
          point= "org.eclipse.debug.ui.launchConfigurationTypeImages" >   
       <launchConfigurationTypeImage   
             configTypeID= "org.nodeclipse.enide.maven.launchexec.LaunchConfigurationType"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"   
             id= "org.nodeclipse.enide.maven.launcheexec.LaunchConfigurationTypeImage" >   
       </launchConfigurationTypeImage>   
    </extension>
    <extension
        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
        <launchConfigurationTabGroup   
       		class= "org.nodeclipse.enide.maven.launchexec.LaunchConfigurationTabGroup"   
      		id= "org.nodeclipse.enide.maven.launchexec.LaunchConfigurationTabGroup"   
        	type= "org.nodeclipse.enide.maven.launchexec.LaunchConfigurationType" >   
		</launchConfigurationTabGroup>
   </extension>

    <!-- *.java run as maven compile exec:java -->  
    <extension   
          point= "org.eclipse.debug.ui.launchShortcuts" >   
       <shortcut   
             class= "org.nodeclipse.enide.maven.launchexec.LaunchShortcut"   
             icon= "icons/feather-ma16_bottom_right_corner_run_half_size.png"
             id= "org.nodeclipse.enide.maven.launchexec.LaunchShortcut"   
             label= "mvn compile exec:java Maven execution"   
             modes= "run" >   
          <configurationType
                id= "org.nodeclipse.enide.maven.launchexec.LaunchConfigurationType" >
          </configurationType>   
           <contextualLaunch>   
              <enablement>   
                 <with   
                       variable= "selection" >   
                    <count   
                          value= "1" >   
                    </count>   
                    <iterate>   
                       <or>   
                          <test   
                                property= "org.eclipse.debug.ui.matchesPattern"   
                                value= "*.java" >   
                          </test>   
                       </or>   
                    </iterate>   
                 </with>   
              </enablement>   
           </contextualLaunch>   
       </shortcut>   
   </extension>

   <extension
         point="org.eclipse.help.toc">
      <toc
            file="HelpToc.xml"
            primary="true">
      </toc>
   </extension>
   
  <extension
         point="org.eclipse.core.runtime.preferences">
      <initializer
            class="org.nodeclipse.enide.maven.preferences.MavenPreferenceInitializer">
      </initializer>
  </extension>
  <extension
         point="org.eclipse.ui.preferencePages">
      <page
            class="org.nodeclipse.enide.maven.preferences.MavenPreferencePage"
            id="org.nodeclipse.enide.maven.preferences.MavenPreferencePage"
            name="Maven EnIDE">
      </page>
   </extension>
   
</plugin>
