<!--添加自己的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>