|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<?eclipse version="3.4"?> |
| 3 | +<plugin> |
| 4 | + <extension |
| 5 | + point="org.eclipse.debug.core.launchConfigurationTypes"> |
| 6 | + <launchConfigurationType |
| 7 | + delegate="org.nodeclipse.ui.npm.LaunchConfigurationDelegate" |
| 8 | + id="org.nodeclipse.ui.npm.LaunchConfigurationType" |
| 9 | + modes="run, debug" |
| 10 | + name="NPM"> |
| 11 | + </launchConfigurationType> |
| 12 | + </extension> |
| 13 | + <extension |
| 14 | + point= "org.eclipse.debug.ui.launchConfigurationTypeImages" > |
| 15 | + <launchConfigurationTypeImage |
| 16 | + configTypeID= "org.nodeclipse.ui.npm.LaunchConfigurationType" |
| 17 | + icon= "icons/npm/npm_bottom_right_corner_run_half_size.png" |
| 18 | + id= "org.nodeclipse.ui.npm.LaunchConfigurationTypeImage" > |
| 19 | + </launchConfigurationTypeImage> |
| 20 | + </extension> |
| 21 | + <extension |
| 22 | + point= "org.eclipse.debug.ui.launchShortcuts" > |
| 23 | + <shortcut |
| 24 | + class= "org.nodeclipse.ui.npm.InstallLaunchShortcut" |
| 25 | + icon= "icons/npm/npm_bottom_right_corner_run_half_size.png" |
| 26 | + id= "org.nodeclipse.ui.npm.InstallLaunchShortcut" |
| 27 | + label= "npm install" |
| 28 | + modes= "run" > |
| 29 | + <configurationType |
| 30 | + id= "org.nodeclipse.ui.npm.LaunchConfigurationType" > |
| 31 | + </configurationType> |
| 32 | + <contextualLaunch> |
| 33 | + <enablement> |
| 34 | + <with |
| 35 | + variable= "selection" > |
| 36 | + <count |
| 37 | + value= "1" > |
| 38 | + </count> |
| 39 | + <iterate> |
| 40 | + <and> |
| 41 | + <instanceof value="org.eclipse.core.resources.IFile"/> |
| 42 | + <test |
| 43 | + property= "org.eclipse.debug.ui.matchesPattern" |
| 44 | + value= "package.json" > |
| 45 | + </test> |
| 46 | + </and> |
| 47 | + </iterate> |
| 48 | + </with> |
| 49 | + </enablement> |
| 50 | + </contextualLaunch> |
| 51 | + </shortcut> |
| 52 | + </extension> |
| 53 | + <extension |
| 54 | + point= "org.eclipse.debug.ui.launchShortcuts" > |
| 55 | + <shortcut |
| 56 | + class= "org.nodeclipse.ui.npm.LaunchShortcut" |
| 57 | + icon= "icons/npm/npm_bottom_right_corner_run_half_size.png" |
| 58 | + id= "org.nodeclipse.ui.npm.LaunchShortcut" |
| 59 | + label= "npm ..." |
| 60 | + modes= "run" > |
| 61 | + <configurationType |
| 62 | + id= "org.nodeclipse.ui.npm.LaunchConfigurationType" > |
| 63 | + </configurationType> |
| 64 | + <contextualLaunch> |
| 65 | + <enablement> |
| 66 | + <with |
| 67 | + variable= "selection" > |
| 68 | + <count |
| 69 | + value= "1" > |
| 70 | + </count> |
| 71 | + <iterate> |
| 72 | + <and> |
| 73 | + <instanceof value="org.eclipse.core.resources.IFile"/> |
| 74 | + <test |
| 75 | + property= "org.eclipse.debug.ui.matchesPattern" |
| 76 | + value= "package.json" > |
| 77 | + </test> |
| 78 | + </and> |
| 79 | + </iterate> |
| 80 | + </with> |
| 81 | + </enablement> |
| 82 | + </contextualLaunch> |
| 83 | + </shortcut> |
| 84 | + </extension> |
| 85 | + <extension |
| 86 | + point="org.eclipse.debug.ui.launchConfigurationTabGroups"> |
| 87 | + <launchConfigurationTabGroup |
| 88 | + class= "org.nodeclipse.ui.npm.LaunchConfigurationTabGroup" |
| 89 | + id= "org.nodeclipse.ui.npm.LaunchConfigurationTabGroup" |
| 90 | + type= "org.nodeclipse.ui.npm.LaunchConfigurationType" > |
| 91 | + </launchConfigurationTabGroup> |
| 92 | + </extension> |
| 93 | + <!-- |
| 94 | + <extension |
| 95 | + point="org.eclipse.core.runtime.preferences"> |
| 96 | + <initializer |
| 97 | + class="org.nodeclipse.ui.preferences.PreferenceInitializer"> |
| 98 | + </initializer> |
| 99 | + </extension> |
| 100 | + <extension |
| 101 | + point="org.eclipse.ui.preferencePages"> |
| 102 | + <page |
| 103 | + class="org.nodeclipse.ui.preferences.NodePreferencePage" |
| 104 | + id="org.nodeclipse.ui.preferences.NodePreferencePage" |
| 105 | + name="Nodeclipse"> |
| 106 | + </page> |
| 107 | + </extension> |
| 108 | + --> |
| 109 | +</plugin> |
0 commit comments