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

   <extension
         point="org.eclipse.ui.editors">
      <editor
            class="org.eclipse.ui.editors.text.TextEditor"
            contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
            default="true"
            extensions="redis"
            icon="icons/redis-ico-16x16.png"
            id="org.nodeclipse.redis.editors.RedisCommandsEditor"
            name="Redis Commands List Editor">
      </editor>
    </extension>

	<extension 
          point="org.eclipse.debug.core.launchConfigurationTypes"> 
        <launchConfigurationType 
            delegate="org.nodeclipse.redis.launch.LaunchConfigurationDelegate" 
            id="org.nodeclipse.redis.launch.LaunchConfigurationType" 
            modes="run" 
            name="Redis-cli ">
        </launchConfigurationType> 
    </extension>
    <extension
          point= "org.eclipse.debug.ui.launchConfigurationTypeImages" >   
       <launchConfigurationTypeImage   
             configTypeID= "org.nodeclipse.redis.launch.LaunchConfigurationType"   
             icon= "icons/redis-ico-16x16.png"   
             id= "org.nodeclipse.redis.launch.LaunchConfigurationTypeImage" >   
       </launchConfigurationTypeImage>   
    </extension>
    <!-- Redis Commands run -->  
    <extension   
          point= "org.eclipse.debug.ui.launchShortcuts" >   
       <shortcut   
             class= "org.nodeclipse.redis.launch.LaunchShortcut"   
             icon= "icons/redis-ico-16x16.png"
             id= "org.nodeclipse.redis.launch.LaunchShortcut"   
             label= "Redis commands"   
             modes= "run" >   
          <configurationType
                id= "org.nodeclipse.redis.launch.LaunchConfigurationType" >
          </configurationType>   
           <contextualLaunch>   
              <enablement>   
                 <with   
                       variable= "selection" >   
                    <count   
                          value= "1" >   
                    </count>   
                    <iterate>   
                       <or>   
                          <test   
                                property= "org.eclipse.debug.ui.matchesPattern"   
                                value= "*.redis" >   
                          </test>   
                       </or>   
                    </iterate>   
                 </with>   
              </enablement>   
           </contextualLaunch>   
       </shortcut>   
   </extension>
   

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

<!--
   <extension
         point="org.eclipse.help.toc">
      <toc
            file="HelpToc.xml"
            primary="true">
      </toc>
   </extension>
-->

</plugin>
