| Revision | 155 (tree) |
|---|---|
| Time | 2015-12-02 22:07:53 |
| Author | t_nakayama1971 |
clear warning
| @@ -3,22 +3,22 @@ | ||
| 3 | 3 | <extension point="org.eclipse.ui.commands"> |
| 4 | 4 | <category |
| 5 | 5 | name="Tomcat" |
| 6 | - id="com.sysdeo.eclipse.tomcat.actionSet" | |
| 6 | + id="com.sysdeo.eclipse.tomcat.action.menu" | |
| 7 | 7 | /> |
| 8 | 8 | <command |
| 9 | 9 | name="Tomcat Start" |
| 10 | 10 | id="com.sysdeo.eclipse.tomcat.start" |
| 11 | - categoryId="com.sysdeo.eclipse.tomcat.actionSet" | |
| 11 | + categoryId="com.sysdeo.eclipse.tomcat.action.menu" | |
| 12 | 12 | /> |
| 13 | 13 | <command |
| 14 | 14 | name="Tomcat Stop" |
| 15 | 15 | id="com.sysdeo.eclipse.tomcat.stop" |
| 16 | - categoryId="com.sysdeo.eclipse.tomcat.actionSet" | |
| 16 | + categoryId="com.sysdeo.eclipse.tomcat.action.menu" | |
| 17 | 17 | /> |
| 18 | 18 | <command |
| 19 | 19 | name="Tomcat Restart" |
| 20 | 20 | id="com.sysdeo.eclipse.tomcat.restart" |
| 21 | - categoryId="com.sysdeo.eclipse.tomcat.actionSet" | |
| 21 | + categoryId="com.sysdeo.eclipse.tomcat.action.menu" | |
| 22 | 22 | /> |
| 23 | 23 | </extension> |
| 24 | 24 |
| @@ -157,61 +157,119 @@ | ||
| 157 | 157 | </page> |
| 158 | 158 | </extension> |
| 159 | 159 | |
| 160 | - <extension | |
| 161 | - point="org.eclipse.ui.popupMenus"> | |
| 162 | - <objectContribution | |
| 163 | - objectClass="org.eclipse.core.resources.IProject" | |
| 164 | - adaptable="true" | |
| 165 | - id="com.sysdeo.eclipse.tomcat.action.popup.javaProject"> | |
| 166 | - <filter | |
| 167 | - name="projectNature" | |
| 168 | - value="com.sysdeo.eclipse.tomcat.tomcatnature"> | |
| 169 | - </filter> | |
| 160 | + <extension point="org.eclipse.ui.commands"> | |
| 161 | + <category | |
| 162 | + name="Tomcat Popup" | |
| 163 | + id="com.sysdeo.eclipse.tomcat.action.popup" | |
| 164 | + /> | |
| 165 | + <command | |
| 166 | + name="Tomcat Create Work" | |
| 167 | + id="com.sysdeo.eclipse.tomcat.createWork" | |
| 168 | + categoryId="com.sysdeo.eclipse.tomcat.action.popup" | |
| 169 | + /> | |
| 170 | + <command | |
| 171 | + name="Tomcat Add Jar" | |
| 172 | + id="com.sysdeo.eclipse.tomcat.addTomcatJar" | |
| 173 | + categoryId="com.sysdeo.eclipse.tomcat.action.popup" | |
| 174 | + /> | |
| 175 | + <command | |
| 176 | + name="Tomcat Update Context" | |
| 177 | + id="com.sysdeo.eclipse.tomcat.updateContext" | |
| 178 | + categoryId="com.sysdeo.eclipse.tomcat.action.popup" | |
| 179 | + /> | |
| 180 | + <command | |
| 181 | + name="Tomcat Remove Context" | |
| 182 | + id="com.sysdeo.eclipse.tomcat.removeContext" | |
| 183 | + categoryId="com.sysdeo.eclipse.tomcat.action.popup" | |
| 184 | + /> | |
| 185 | + <command | |
| 186 | + name="Tomcat Export War" | |
| 187 | + id="com.sysdeo.eclipse.tomcat.exportToWar" | |
| 188 | + categoryId="com.sysdeo.eclipse.tomcat.action.popup" | |
| 189 | + /> | |
| 190 | + <command | |
| 191 | + name="Tomcat Restart Context" | |
| 192 | + id="com.sysdeo.eclipse.tomcat.restartContext" | |
| 193 | + categoryId="com.sysdeo.eclipse.tomcat.action.popup" | |
| 194 | + /> | |
| 195 | + </extension> | |
| 196 | + | |
| 197 | + <extension point="org.eclipse.ui.handlers"> | |
| 198 | + <handler | |
| 199 | + commandId="com.sysdeo.eclipse.tomcat.createWork" | |
| 200 | + class="com.sysdeo.eclipse.tomcat.actions.CreateJSPWorkDirectoryActionDelegate" | |
| 201 | + /> | |
| 202 | + <handler | |
| 203 | + commandId="com.sysdeo.eclipse.tomcat.addTomcatJar" | |
| 204 | + class="com.sysdeo.eclipse.tomcat.actions.AddTomcatJarActionDelegate" | |
| 205 | + /> | |
| 206 | + <handler | |
| 207 | + commandId="com.sysdeo.eclipse.tomcat.updateContext" | |
| 208 | + class="com.sysdeo.eclipse.tomcat.actions.UpdateTomcatContextActionDelegate" | |
| 209 | + /> | |
| 210 | + <handler | |
| 211 | + commandId="com.sysdeo.eclipse.tomcat.removeContext" | |
| 212 | + class="com.sysdeo.eclipse.tomcat.actions.RemoveTomcatContextActionDelegate" | |
| 213 | + /> | |
| 214 | + <handler | |
| 215 | + commandId="com.sysdeo.eclipse.tomcat.exportToWar" | |
| 216 | + class="com.sysdeo.eclipse.tomcat.actions.ExportToWarActionDelegate" | |
| 217 | + /> | |
| 218 | + <handler | |
| 219 | + commandId="com.sysdeo.eclipse.tomcat.restartContext" | |
| 220 | + class="com.sysdeo.eclipse.tomcat.actions.RestartContextActionDelegate" | |
| 221 | + /> | |
| 222 | + </extension> | |
| 223 | + | |
| 224 | + <extension point="org.eclipse.ui.menus"> | |
| 225 | + <menuContribution locationURI="popup:org.eclipse.ui.popup.any?after=additions"> | |
| 170 | 226 | <menu |
| 171 | 227 | label="%menu.nature.label" |
| 172 | - path="additions" | |
| 173 | 228 | id="com.sysdeo.eclipse.tomcat.action.popup.javaProject.menu"> |
| 174 | - <separator | |
| 175 | - name="group"> | |
| 176 | - </separator> | |
| 229 | + <visibleWhen> | |
| 230 | + <with variable="selection"> | |
| 231 | + <iterate> | |
| 232 | + <adapt type="org.eclipse.core.resources.IProject"> | |
| 233 | + <test | |
| 234 | + property="org.eclipse.core.resources.projectNature" | |
| 235 | + value="com.sysdeo.eclipse.tomcat.tomcatnature" | |
| 236 | + /> | |
| 237 | + </adapt> | |
| 238 | + </iterate> | |
| 239 | + </with> | |
| 240 | + </visibleWhen> | |
| 241 | + <command | |
| 242 | + label="%menu.nature.createWork.label" | |
| 243 | + commandId="com.sysdeo.eclipse.tomcat.createWork" | |
| 244 | + id="com.sysdeo.eclipse.tomcat.actions.createJspWorkDirectory" | |
| 245 | + /> | |
| 246 | + <command | |
| 247 | + label="%menu.nature.addTomcatJar.label" | |
| 248 | + commandId="com.sysdeo.eclipse.tomcat.addTomcatJar" | |
| 249 | + id="com.sysdeo.eclipse.tomcat.addTomcatJarToProject" | |
| 250 | + /> | |
| 251 | + <command | |
| 252 | + label="%menu.nature.updateContext.label" | |
| 253 | + commandId="com.sysdeo.eclipse.tomcat.updateContext" | |
| 254 | + id="com.sysdeo.eclipse.tomcat.updateContextToServerXml" | |
| 255 | + /> | |
| 256 | + <command | |
| 257 | + label="%menu.nature.removeContext.label" | |
| 258 | + commandId="com.sysdeo.eclipse.tomcat.removeContext" | |
| 259 | + id="com.sysdeo.eclipse.tomcat.removeContextToServerXml" | |
| 260 | + /> | |
| 261 | + <command | |
| 262 | + label="%menu.nature.exportToWar.label" | |
| 263 | + commandId="com.sysdeo.eclipse.tomcat.exportToWar" | |
| 264 | + id="com.sysdeo.eclipse.tomcat.exportToWar" | |
| 265 | + /> | |
| 266 | + <command | |
| 267 | + label="%menu.nature.restartContext.label" | |
| 268 | + commandId="com.sysdeo.eclipse.tomcat.restartContext" | |
| 269 | + id="com.sysdeo.eclipse.tomcat.actions.restartContext" | |
| 270 | + /> | |
| 177 | 271 | </menu> |
| 178 | - <action | |
| 179 | - label="%menu.nature.createWork.label" | |
| 180 | - class="com.sysdeo.eclipse.tomcat.actions.CreateJSPWorkDirectoryActionDelegate" | |
| 181 | - menubarPath="com.sysdeo.eclipse.tomcat.action.popup.javaProject.menu/group" | |
| 182 | - id="com.sysdeo.eclipse.tomcat.actions.createJspWorkDirectory"> | |
| 183 | - </action> | |
| 184 | - <action | |
| 185 | - label="%menu.nature.addTomcatJar.label" | |
| 186 | - class="com.sysdeo.eclipse.tomcat.actions.AddTomcatJarActionDelegate" | |
| 187 | - menubarPath="com.sysdeo.eclipse.tomcat.action.popup.javaProject.menu/group" | |
| 188 | - id="com.sysdeo.eclipse.tomcat.addTomcatJarToProject"> | |
| 189 | - </action> | |
| 190 | - <action | |
| 191 | - label="%menu.nature.updateContext.label" | |
| 192 | - class="com.sysdeo.eclipse.tomcat.actions.UpdateTomcatContextActionDelegate" | |
| 193 | - menubarPath="com.sysdeo.eclipse.tomcat.action.popup.javaProject.menu/group" | |
| 194 | - id="com.sysdeo.eclipse.tomcat.updateContextToServerXml"> | |
| 195 | - </action> | |
| 196 | - <action | |
| 197 | - label="%menu.nature.removeContext.label" | |
| 198 | - class="com.sysdeo.eclipse.tomcat.actions.RemoveTomcatContextActionDelegate" | |
| 199 | - menubarPath="com.sysdeo.eclipse.tomcat.action.popup.javaProject.menu/group" | |
| 200 | - id="com.sysdeo.eclipse.tomcat.removeContextToServerXml"> | |
| 201 | - </action> | |
| 202 | - <action | |
| 203 | - label="%menu.nature.exportToWar.label" | |
| 204 | - class="com.sysdeo.eclipse.tomcat.actions.ExportToWarActionDelegate" | |
| 205 | - menubarPath="com.sysdeo.eclipse.tomcat.action.popup.javaProject.menu/group" | |
| 206 | - id="com.sysdeo.eclipse.tomcat.exportToWar"> | |
| 207 | - </action> | |
| 208 | - <action | |
| 209 | - label="%menu.nature.restartContext.label" | |
| 210 | - class="com.sysdeo.eclipse.tomcat.actions.RestartContextActionDelegate" | |
| 211 | - menubarPath="com.sysdeo.eclipse.tomcat.action.popup.javaProject.menu/group" | |
| 212 | - id="com.sysdeo.eclipse.tomcat.actions.restartContext"> | |
| 213 | - </action> | |
| 214 | - </objectContribution> | |
| 272 | + </menuContribution> | |
| 215 | 273 | </extension> |
| 216 | 274 | |
| 217 | 275 | <!-- =========================================================================== --> |