launchConfigurationTypes

     <!--添加自己的javascript 调试启动-->
  <extension
        point="org.eclipse.debug.core.launchConfigurationTypes">
     <launchConfigurationType
           delegate="org.jtang.synergy.launchConfiguration.JsLaunchConfigurationType"
           delegateDescription="This is JavaScript Laucher"
           delegateName="JavaScript  Laucher"
           id="org.jtang.synergy.JsLaunchConfiguration"
           modes="run,debug,profile"
           name="JavaScript Laucher">
     </launchConfigurationType>
  </extension> 
  <!--javascript 调试 图片-->
  <extension
         point="org.eclipse.debug.ui.launchConfigurationTypeImages">
      <launchConfigurationTypeImage
            configTypeID="org.jtang.synergy.JsLaunchConfiguration"
            icon="icons/sample.gif"
            id="com.tibco.cdc.liugang.launcher.ui.type.icon">
      </launchConfigurationTypeImage>
   </extension> 
   <!--class实现完成tab页的类-->
  <extension
        point="org.eclipse.debug.ui.launchConfigurationTabGroups">
     <launchConfigurationTabGroup
           class="org.jtang.synergy.launchConfiguration.ui.tabs.LaunchConfigurationTabGroup"
           id="org.jtang.synergy.lauchConfiguration.ui.tabGroup"
           type="org.jtang.synergy.JsLaunchConfiguration">
     </launchConfigurationTabGroup>
  </extension>
  <extension
        point="org.eclipse.debug.ui.launchShortcuts">
     <shortcut
           class="org.jtang.synergy.launchConfiguration.ui.shortcut.LaunchShortcut"
           icon = "icons/sample.gif"
           id="org.jtang.synergy.launchConfiguration.ui.shortcut"
           label="JavaScript Application"
           modes="run,debug">
           <configurationType
                 id="org.jtang.synergy.JsLaunchConfiguration">
           </configurationType>
           <perspective
                 id="JTangSynergyDesigner.perspective">
           </perspective>
           <perspective id="org.eclipse.jdt.ui.JavaPerspective"/>  
           <perspective id="org.eclipse.jdt.ui.JavaHierarchyPerspective"/>  
           <perspective id="org.eclipse.jdt.ui.JavaBrowsingPerspective"/>  
           <perspective id="org.eclipse.debug.ui.DebugPerspective"/>
           <contextualLaunch>
           <enablement>
           	   <with variable="selection">
           	      <count value="1"/>
           	      <iterate>
           	      	  <instanceof value="org.eclipse.core.resources.IFile"/>
           	      	  <test
           	      	  		value="*.js"
           	      	  		property="org.eclipse.debug.ui.matchesPattern"/>-->
           	      	  		<or>
                     <instanceof value="org.eclipse.core.resources.IResource" />-->
                      <!-- 这里设置文件类型为xml和html的才有run as/debug as上下文菜单 -->
                         <test property="org.eclipse.debug.ui.matchesPattern" value="*.js" />
                        <test property="org.eclipse.debug.ui.matchesPattern" value="*.xml" />
                   </or>
           	      </iterate>
           	     </with>
           </enablement> 
         </contextualLaunch>
     </shortcut>
  </extension>

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值