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

   <extension
         point="org.eclipse.ui.editors">
      <editor
            class="org.nodeclipse.ui.editors.NodeEditor"
            contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
            default="true"
            extensions="ajs"
            icon="icons/java_16x16.png"
            id="org.nodeclipse.java.avatarjs.editors.JJSEditor"
            name="Avatar.js Editor">
      </editor>
    </extension>

	<extension 
          point="org.eclipse.debug.core.launchConfigurationTypes"> 
        <launchConfigurationType 
            delegate="org.nodeclipse.java.avatarjs.launch.LaunchConfigurationDelegate" 
            id="org.nodeclipse.java.avatarjs.launch.LaunchConfigurationType" 
            modes="run, debug" 
            name="Avatar.js Application">
        </launchConfigurationType> 
    </extension>
    <extension
          point= "org.eclipse.debug.ui.launchConfigurationTypeImages" >   
       <launchConfigurationTypeImage   
             configTypeID= "org.nodeclipse.java.avatarjs.launch.LaunchConfigurationType"   
             icon= "icons/java_16x16_bottom_right_corner_run_half_size.png"   
             id= "org.nodeclipse.java.avatarjs.launch.LaunchConfigurationTypeImage" >   
       </launchConfigurationTypeImage>   
    </extension>
    <!-- avatar.js run/debug -->  
    <extension   
          point= "org.eclipse.debug.ui.launchShortcuts" >   
       <shortcut   
             class= "org.nodeclipse.java.avatarjs.launch.LaunchShortcut"   
             icon= "icons/nashorn_16x16_bottom_right_corner_run_half_size.png"
             id= "org.nodeclipse.debug.launch.LaunchShortcut"   
             label= "Avatar.js Application"   
             modes= "run, debug" >   
          <configurationType
                id= "org.nodeclipse.java.avatarjs.launch.LaunchConfigurationType" >
          </configurationType>   
           <contextualLaunch>   
              <enablement>   
                 <with   
                       variable= "selection" >   
                    <count   
                          value= "1" >   
                    </count>   
                    <iterate>   
                       <or>   
                          <test   
                                property= "org.eclipse.debug.ui.matchesPattern"   
                                value= "*.js" >   
                          </test>   
                          <test   
                                property= "org.eclipse.debug.ui.matchesPattern"   
                                value= "*.jjs" >   
                          </test>   
                       </or>   
                    </iterate>   
                 </with>   
              </enablement>   
           </contextualLaunch>   
       </shortcut>   
   </extension>
   

   <extension
        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
        <launchConfigurationTabGroup   
       		class= "org.nodeclipse.java.avatarjs.launch.LaunchConfigurationTabGroup"   
      		id= "org.nodeclipse.java.avatarjs.launch.LaunchConfigurationTabGroup"   
        	type= "org.nodeclipse.java.avatarjs.launch.LaunchConfigurationType" >   
		</launchConfigurationTabGroup>
   </extension>

   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            category="org.nodeclipse.ui.preferences.NodePreferencePage"
            class="org.nodeclipse.java.avatarjs.preferences.AvatarjsPreferencePage"
            id="org.nodeclipse.java.avatarjs.preferences.AvatarjsPreferencePage"
            name="Avatar.js">
      </page>
   </extension>

</plugin>
