| Revision | 152 (tree) |
|---|---|
| Time | 2015-12-02 20:12:32 |
| Author | t_nakayama1971 |
(empty log message)
| @@ -1,94 +1,132 @@ | ||
| 1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | 2 | <plugin> |
| 3 | + <extension point="org.eclipse.ui.commands"> | |
| 4 | + <category | |
| 5 | + name="Tomcat" | |
| 6 | + id="com.sysdeo.eclipse.tomcat.actionSet" | |
| 7 | + /> | |
| 8 | + <command | |
| 9 | + name="Tomcat Start" | |
| 10 | + id="com.sysdeo.eclipse.tomcat.start" | |
| 11 | + categoryId="com.sysdeo.eclipse.tomcat.actionSet" | |
| 12 | + /> | |
| 13 | + <command | |
| 14 | + name="Tomcat Stop" | |
| 15 | + id="com.sysdeo.eclipse.tomcat.stop" | |
| 16 | + categoryId="com.sysdeo.eclipse.tomcat.actionSet" | |
| 17 | + /> | |
| 18 | + <command | |
| 19 | + name="Tomcat Restart" | |
| 20 | + id="com.sysdeo.eclipse.tomcat.restart" | |
| 21 | + categoryId="com.sysdeo.eclipse.tomcat.actionSet" | |
| 22 | + /> | |
| 23 | + </extension> | |
| 3 | 24 | |
| 4 | - <extension | |
| 5 | - point="org.eclipse.ui.actionSets"> | |
| 6 | - <actionSet | |
| 7 | - label="Tomcat" | |
| 8 | - visible="true" | |
| 9 | - id="com_sysdeo_eclipse_tomcat_actionSet"> | |
| 25 | + <extension point="org.eclipse.ui.handlers"> | |
| 26 | + <handler | |
| 27 | + commandId="com.sysdeo.eclipse.tomcat.start" | |
| 28 | + class="com.sysdeo.eclipse.tomcat.actions.StartActionDelegate" | |
| 29 | + /> | |
| 30 | + <handler | |
| 31 | + commandId="com.sysdeo.eclipse.tomcat.stop" | |
| 32 | + class="com.sysdeo.eclipse.tomcat.actions.StopActionDelegate" | |
| 33 | + /> | |
| 34 | + <handler | |
| 35 | + commandId="com.sysdeo.eclipse.tomcat.restart" | |
| 36 | + class="com.sysdeo.eclipse.tomcat.actions.RestartActionDelegate" | |
| 37 | + /> | |
| 38 | + </extension> | |
| 39 | + | |
| 40 | + <extension point="org.eclipse.ui.menus"> | |
| 41 | + <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=additions"> | |
| 10 | 42 | <menu |
| 11 | 43 | label="%menu.label" |
| 12 | 44 | id="com.sysdeo.eclipse.tomcat.menu"> |
| 13 | - <separator | |
| 14 | - name="group"> | |
| 15 | - </separator> | |
| 45 | + <command | |
| 46 | + icon="icons/start.gif" | |
| 47 | + label="%menu.start.label" | |
| 48 | + id="com.sysdeo.eclipse.tomcat.menu.start" | |
| 49 | + commandId="com.sysdeo.eclipse.tomcat.start" | |
| 50 | + /> | |
| 51 | + <command | |
| 52 | + icon="icons/stop.gif" | |
| 53 | + label="%menu.stop.label" | |
| 54 | + id="com.sysdeo.eclipse.tomcat.menu.stop" | |
| 55 | + commandId="com.sysdeo.eclipse.tomcat.stop" | |
| 56 | + /> | |
| 57 | + <command | |
| 58 | + icon="icons/restart.gif" | |
| 59 | + label="%menu.restart.label" | |
| 60 | + id="com.sysdeo.eclipse.tomcat.menu.restart" | |
| 61 | + commandId="com.sysdeo.eclipse.tomcat.restart" | |
| 62 | + /> | |
| 16 | 63 | </menu> |
| 17 | - <action | |
| 18 | - label="%menu.restart.label" | |
| 19 | - icon="icons/restart.gif" | |
| 20 | - tooltip="%menu.restart.label" | |
| 21 | - class="com.sysdeo.eclipse.tomcat.actions.RestartActionDelegate" | |
| 22 | - menubarPath="com.sysdeo.eclipse.tomcat.menu/group" | |
| 23 | - toolbarPath="Normal/additions" | |
| 24 | - id="com.sysdeo.eclipse.tomcat.restart"> | |
| 25 | - </action> | |
| 26 | - <action | |
| 27 | - label="%menu.stop.label" | |
| 28 | - icon="icons/stop.gif" | |
| 29 | - tooltip="%menu.stop.label" | |
| 30 | - class="com.sysdeo.eclipse.tomcat.actions.StopActionDelegate" | |
| 31 | - menubarPath="com.sysdeo.eclipse.tomcat.menu/group" | |
| 32 | - toolbarPath="Normal/additions" | |
| 33 | - id="com.sysdeo.eclipse.tomcat.stop"> | |
| 34 | - </action> | |
| 35 | - <action | |
| 36 | - label="%menu.start.label" | |
| 37 | - icon="icons/start.gif" | |
| 38 | - tooltip="%menu.start.label" | |
| 39 | - class="com.sysdeo.eclipse.tomcat.actions.StartActionDelegate" | |
| 40 | - menubarPath="com.sysdeo.eclipse.tomcat.menu/group" | |
| 41 | - toolbarPath="Normal/additions" | |
| 42 | - id="com.sysdeo.eclipse.tomcat.start"> | |
| 43 | - </action> | |
| 44 | - </actionSet> | |
| 64 | + </menuContribution> | |
| 65 | + <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions"> | |
| 66 | + <toolbar id="com.sysdeo.eclipse.tomcat.toolbar"> | |
| 67 | + <command | |
| 68 | + icon="icons/start.gif" | |
| 69 | + tooltip="%menu.start.label" | |
| 70 | + id="com.sysdeo.eclipse.tomcat.toolbar.start" | |
| 71 | + commandId="com.sysdeo.eclipse.tomcat.start" | |
| 72 | + /> | |
| 73 | + <command | |
| 74 | + icon="icons/stop.gif" | |
| 75 | + tooltip="%menu.stop.label" | |
| 76 | + id="com.sysdeo.eclipse.tomcat.toolbar.stop" | |
| 77 | + commandId="com.sysdeo.eclipse.tomcat.stop" | |
| 78 | + /> | |
| 79 | + <command | |
| 80 | + icon="icons/restart.gif" | |
| 81 | + tooltip="%menu.restart.label" | |
| 82 | + id="com.sysdeo.eclipse.tomcat.toolbar.restart" | |
| 83 | + commandId="com.sysdeo.eclipse.tomcat.restart" | |
| 84 | + /> | |
| 85 | + </toolbar> | |
| 86 | + </menuContribution> | |
| 45 | 87 | </extension> |
| 46 | - <extension | |
| 47 | - point="org.eclipse.ui.preferencePages"> | |
| 88 | + | |
| 89 | + <extension point="org.eclipse.ui.preferencePages"> | |
| 48 | 90 | <page |
| 49 | 91 | name="Tomcat" |
| 50 | 92 | class="com.sysdeo.eclipse.tomcat.TomcatPreferencePage" |
| 51 | - id="com.sysdeo.eclipse.tomcat.Page1"> | |
| 52 | - </page> | |
| 93 | + id="com.sysdeo.eclipse.tomcat.Page1" | |
| 94 | + /> | |
| 53 | 95 | </extension> |
| 54 | - <extension | |
| 55 | - point="org.eclipse.ui.preferencePages"> | |
| 96 | + <extension point="org.eclipse.ui.preferencePages"> | |
| 56 | 97 | <page |
| 57 | 98 | name="%pref.menu.jvmSettings.label" |
| 58 | 99 | category="com.sysdeo.eclipse.tomcat.Page1" |
| 59 | 100 | class="com.sysdeo.eclipse.tomcat.TomcatJVMPreferencePage" |
| 60 | - id="com.sysdeo.eclipse.tomcat.Page2"> | |
| 61 | - </page> | |
| 101 | + id="com.sysdeo.eclipse.tomcat.Page2" | |
| 102 | + /> | |
| 62 | 103 | </extension> |
| 63 | - <extension | |
| 64 | - point="org.eclipse.ui.preferencePages"> | |
| 104 | + <extension point="org.eclipse.ui.preferencePages"> | |
| 65 | 105 | <page |
| 66 | 106 | name="%pref.menu.sourcepath.label" |
| 67 | 107 | category="com.sysdeo.eclipse.tomcat.Page1" |
| 68 | 108 | class="com.sysdeo.eclipse.tomcat.TomcatSourcePathPreferencePage" |
| 69 | - id="com.sysdeo.eclipse.tomcat.Page3"> | |
| 70 | - </page> | |
| 109 | + id="com.sysdeo.eclipse.tomcat.Page3" | |
| 110 | + /> | |
| 71 | 111 | </extension> |
| 72 | - <extension | |
| 73 | - point="org.eclipse.ui.preferencePages"> | |
| 112 | + <extension point="org.eclipse.ui.preferencePages"> | |
| 74 | 113 | <page |
| 75 | 114 | name="%pref.menu.managerapp.label" |
| 76 | 115 | category="com.sysdeo.eclipse.tomcat.Page1" |
| 77 | 116 | class="com.sysdeo.eclipse.tomcat.TomcatManagerAppPreferencePage" |
| 78 | - id="com.sysdeo.eclipse.tomcat.Page4"> | |
| 79 | - </page> | |
| 117 | + id="com.sysdeo.eclipse.tomcat.Page4" | |
| 118 | + /> | |
| 80 | 119 | </extension> |
| 81 | - <extension | |
| 82 | - point="org.eclipse.ui.preferencePages"> | |
| 120 | + <extension point="org.eclipse.ui.preferencePages"> | |
| 83 | 121 | <page |
| 84 | 122 | name="%pref.menu.advanced.label" |
| 85 | 123 | category="com.sysdeo.eclipse.tomcat.Page1" |
| 86 | 124 | class="com.sysdeo.eclipse.tomcat.AdvancedPreferencePage" |
| 87 | - id="com.sysdeo.eclipse.tomcat.Page5"> | |
| 88 | - </page> | |
| 125 | + id="com.sysdeo.eclipse.tomcat.Page5" | |
| 126 | + /> | |
| 89 | 127 | </extension> |
| 90 | - <extension | |
| 91 | - point="org.eclipse.ui.newWizards"> | |
| 128 | + | |
| 129 | + <extension point="org.eclipse.ui.newWizards"> | |
| 92 | 130 | <wizard |
| 93 | 131 | name="%wizard.newTomcatProject.label" |
| 94 | 132 | icon="icons/newwar_wiz.gif" |
| @@ -102,20 +140,23 @@ | ||
| 102 | 140 | </description> |
| 103 | 141 | </wizard> |
| 104 | 142 | </extension> |
| 105 | - <extension | |
| 106 | - point="org.eclipse.ui.propertyPages"> | |
| 143 | + | |
| 144 | + <extension point="org.eclipse.ui.propertyPages"> | |
| 107 | 145 | <page |
| 108 | - objectClass="org.eclipse.core.resources.IProject" | |
| 109 | - adaptable="true" | |
| 110 | 146 | name="Tomcat" |
| 111 | 147 | class="com.sysdeo.eclipse.tomcat.TomcatProjectPropertyPage" |
| 112 | 148 | id="com.sysdeo.eclipse.tomcat.TomcatProjectPropertyPage"> |
| 113 | - <filter | |
| 114 | - name="nature" | |
| 115 | - value="org.eclipse.jdt.core.javanature"> | |
| 116 | - </filter> | |
| 149 | + <enabledWhen> | |
| 150 | + <adapt type="org.eclipse.core.resources.IProject"> | |
| 151 | + <test | |
| 152 | + property="org.eclipse.core.resources.projectNature" | |
| 153 | + value="org.eclipse.jdt.core.javanature" | |
| 154 | + /> | |
| 155 | + </adapt> | |
| 156 | + </enabledWhen> | |
| 117 | 157 | </page> |
| 118 | 158 | </extension> |
| 159 | + | |
| 119 | 160 | <extension |
| 120 | 161 | point="org.eclipse.ui.popupMenus"> |
| 121 | 162 | <objectContribution |
| @@ -172,8 +213,9 @@ | ||
| 172 | 213 | </action> |
| 173 | 214 | </objectContribution> |
| 174 | 215 | </extension> |
| 216 | + | |
| 175 | 217 | <!-- =========================================================================== --> |
| 176 | -<!-- Tomcat Nature --> | |
| 218 | +<!-- Tomcat Nature --> | |
| 177 | 219 | <!-- =========================================================================== --> |
| 178 | 220 | <extension |
| 179 | 221 | id="tomcatnature" |
| @@ -181,58 +223,57 @@ | ||
| 181 | 223 | point="org.eclipse.core.resources.natures"> |
| 182 | 224 | <runtime> |
| 183 | 225 | <run |
| 184 | - class="com.sysdeo.eclipse.tomcat.TomcatProject"> | |
| 185 | - </run> | |
| 226 | + class="com.sysdeo.eclipse.tomcat.TomcatProject" | |
| 227 | + /> | |
| 186 | 228 | </runtime> |
| 187 | 229 | </extension> |
| 188 | - <extension | |
| 189 | - point="org.eclipse.core.runtime.preferences"> | |
| 230 | + <extension point="org.eclipse.core.runtime.preferences"> | |
| 190 | 231 | <initializer class="com.sysdeo.eclipse.tomcat.PreferenceInitializer"/> |
| 191 | 232 | </extension> |
| 192 | 233 | |
| 193 | -<!-- shortcut keys --> | |
| 194 | -<extension point="org.eclipse.ui.commands"> | |
| 234 | + <!-- shortcut keys --> | |
| 235 | + <extension point="org.eclipse.ui.commands"> | |
| 195 | 236 | <category |
| 196 | 237 | name="Tomcat keys" |
| 197 | - id="pl.szpinda.plugin.tomcat.commands.category.key"> | |
| 198 | - </category> | |
| 238 | + id="pl.szpinda.plugin.tomcat.commands.category.key" | |
| 239 | + /> | |
| 199 | 240 | <command |
| 200 | 241 | name="Tomcat quick restart" |
| 201 | 242 | categoryId="pl.szpinda.plugin.tomcat.commands.category.key" |
| 202 | - id="pl.szpinda.plugin.tomcat.commands.tomcatQuickRestart"> | |
| 203 | - </command> | |
| 204 | - | |
| 243 | + id="pl.szpinda.plugin.tomcat.commands.tomcatQuickRestart" | |
| 244 | + /> | |
| 205 | 245 | <command |
| 206 | 246 | name="Tomcat start,stop" |
| 207 | 247 | categoryId="pl.szpinda.plugin.tomcat.commands.category.key" |
| 208 | - id="pl.szpinda.plugin.tomcat.commands.tomcatStartStop"> | |
| 209 | - </command> | |
| 248 | + id="pl.szpinda.plugin.tomcat.commands.tomcatStartStop" | |
| 249 | + /> | |
| 210 | 250 | </extension> |
| 211 | 251 | |
| 212 | 252 | <extension point="org.eclipse.ui.handlers"> |
| 213 | 253 | <handler |
| 214 | 254 | commandId="pl.szpinda.plugin.tomcat.commands.tomcatQuickRestart" |
| 215 | - class="com.sysdeo.eclipse.tomcat.actions.TomcatKeyHandler"> | |
| 216 | - </handler> | |
| 255 | + class="com.sysdeo.eclipse.tomcat.actions.TomcatKeyHandler" | |
| 256 | + /> | |
| 217 | 257 | <handler |
| 218 | 258 | commandId="pl.szpinda.plugin.tomcat.commands.tomcatStartStop" |
| 219 | - class="com.sysdeo.eclipse.tomcat.actions.TomcatKeyHandler"> | |
| 220 | - </handler> | |
| 259 | + class="com.sysdeo.eclipse.tomcat.actions.TomcatKeyHandler" | |
| 260 | + /> | |
| 221 | 261 | </extension> |
| 262 | + | |
| 222 | 263 | <extension point="org.eclipse.ui.bindings"> |
| 223 | - <!-- M1 - CTRL, M2 - Shift, M3 - Alt--> | |
| 264 | + <!-- M1 - CTRL, M2 - Shift, M3 - Alt--> | |
| 224 | 265 | <key |
| 225 | 266 | commandId="pl.szpinda.plugin.tomcat.commands.tomcatQuickRestart" |
| 226 | 267 | contextId="org.eclipse.ui.contexts.window" |
| 227 | 268 | sequence="M3+T" |
| 228 | - schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"> | |
| 229 | - </key> | |
| 269 | + schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" | |
| 270 | + /> | |
| 230 | 271 | <key |
| 231 | 272 | commandId="pl.szpinda.plugin.tomcat.commands.tomcatStartStop" |
| 232 | 273 | contextId="org.eclipse.ui.contexts.window" |
| 233 | 274 | sequence="M1+M3+T" |
| 234 | - schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"> | |
| 235 | - </key> | |
| 275 | + schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" | |
| 276 | + /> | |
| 236 | 277 | </extension> |
| 237 | 278 | |
| 238 | 279 | </plugin> |