| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <plugin> |
| <extension |
| point="org.eclipse.ui.navigator.viewer"> |
| <viewerContentBinding |
| viewerId="org.eclipse.ui.navigator.ProjectExplorer"> |
| <includes> |
| <contentExtension pattern="org.eclipse.wst.jsdt.js.grunt.internal.ui.gruntFileContent" /> |
| </includes> |
| </viewerContentBinding> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.navigator.navigatorContent"> |
| <navigatorContent |
| id="org.eclipse.wst.jsdt.js.grunt.internal.ui.gruntFileContent" |
| name="Grunt Task Content Provider" |
| contentProvider="org.eclipse.wst.jsdt.js.grunt.internal.ui.GruntFileContentProvider" |
| labelProvider="org.eclipse.wst.jsdt.js.grunt.internal.ui.GruntLabelProvider" |
| activeByDefault="true" |
| icon="icons/grunt_16.png" |
| priority="highest" > |
| <triggerPoints> |
| <and> |
| <instanceof value="org.eclipse.core.resources.IResource"/> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.core.resources.name" |
| value="gruntfile.js"/> |
| </and> |
| </triggerPoints> |
| </navigatorContent> |
| </extension> |
| |
| <extension |
| point="org.eclipse.debug.ui.launchShortcuts"> |
| <shortcut |
| class="org.eclipse.wst.jsdt.js.grunt.internal.launch.shortcut.GruntLaunch" |
| description="Grunt Task" |
| helpContextId="org.eclipse.ui.externaltools.launchShortcutHelpContext.gruntShortcut" |
| icon="icons/grunt_16.png" |
| id="org.eclipse.wst.jsdt.js.grunt.internal.launch.shortcut.gruntLaunch" |
| label="Grunt Task" |
| modes="run"> |
| <contextualLaunch> |
| <enablement> |
| <with variable="selection"> |
| <count value="1"/> |
| <iterate ifEmpty="false"> |
| <or> |
| <instanceof value="org.eclipse.wst.jsdt.js.grunt.internal.GruntTask" /> |
| <adapt type="org.eclipse.core.resources.IResource"> |
| <test property="org.eclipse.core.resources.name" |
| value="gruntfile.js"> |
| </test> |
| </adapt> |
| </or> |
| </iterate> |
| </with> |
| </enablement> |
| <contextLabel |
| mode="run" |
| label="Grunt Task"/> |
| </contextualLaunch> |
| </shortcut> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.wst.jsdt.js.grunt.commands.gruntLaunch" |
| name="%run_as_grunt_task"> |
| </command> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| class="org.eclipse.wst.jsdt.js.grunt.internal.GruntProjectPropertyTester" |
| id="org.eclipse.wst.jsdt.js.grunt.gruntProjectTester" |
| namespace="org.eclipse.wst.jsdt.js.grunt.gruntProjectTester" |
| properties="isGruntProject" |
| type="java.lang.Object"> |
| </propertyTester> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.expressions.definitions"> |
| |
| <definition |
| id="org.eclipse.wst.jsdt.js.grunt.isGruntProject"> |
| <with |
| variable="activeWorkbenchWindow.activePerspective"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.wst.jsdt.js.grunt.gruntProjectTester.isGruntProject"> |
| </test> |
| </with> |
| </definition> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.wst.jsdt.js.grunt.internal.RunGruntTaskCommand" |
| commandId="org.eclipse.wst.jsdt.js.grunt.commands.gruntLaunch"> |
| |
| <enabledWhen> |
| <reference |
| definitionId="org.eclipse.wst.jsdt.js.grunt.isGruntProject"> |
| </reference> |
| </enabledWhen> |
| </handler> |
| </extension> |
| |
| <extension |
| point="org.eclipse.debug.core.launchConfigurationTypes"> |
| <launchConfigurationType |
| id="org.eclipse.wst.jsdt.js.grunt.gruntLaunchConfigurationType" |
| delegate="org.eclipse.wst.jsdt.js.grunt.internal.launch.GruntLaunchConfigurationDelegate" |
| modes="run" |
| name="Grunt"> |
| </launchConfigurationType> |
| </extension> |
| |
| <extension |
| point="org.eclipse.debug.ui.launchConfigurationTypeImages"> |
| <launchConfigurationTypeImage |
| configTypeID="org.eclipse.wst.jsdt.js.grunt.gruntLaunchConfigurationType" |
| icon="icons/grunt_16.png" |
| id="org.eclipse.wst.jsdt.js.gruntLaunchConfigurationTypeImage"> |
| </launchConfigurationTypeImage> |
| </extension> |
| |
| <extension point="org.eclipse.debug.ui.launchConfigurationTabGroups"> |
| <launchConfigurationTabGroup |
| type="org.eclipse.wst.jsdt.js.grunt.gruntLaunchConfigurationType" |
| class="org.eclipse.wst.jsdt.js.grunt.internal.launch.ui.GruntLaunchTabGroup" |
| id="org.eclipse.wst.jsdt.js.grunt.tabgroup"> |
| </launchConfigurationTabGroup> |
| </extension> |
| |
| </plugin> |
| |