|
2 | 2 | <?eclipse version="3.4"?> |
3 | 3 | <plugin> |
4 | 4 | <extension point="org.eclipse.ui.commands"> |
5 | | - <command |
6 | | - categoryId="org.eclipse.jdt.ui.category.refactoring" |
7 | | - defaultHandler="edu.cuny.hunter.streamrefactoring.ui.handlers.OptimizeStreamHandler" |
8 | | - description="%OptimizeStreamDescription" |
9 | | - id="edu.cuny.hunter.optimize.stream.command" |
10 | | - name="%OptimizeStreamLabel" /> |
| 5 | + <command categoryId="org.eclipse.jdt.ui.category.refactoring" defaultHandler="edu.cuny.hunter.streamrefactoring.ui.handlers.OptimizeStreamHandler" description="%OptimizeStreamDescription" id="edu.cuny.hunter.optimize.stream.command" name="%OptimizeStreamLabel" /> |
11 | 6 | </extension> |
12 | 7 | <extension point="org.eclipse.core.expressions.definitions"> |
13 | | - <definition id="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet"> |
14 | | - <with variable="selection"> |
15 | | - <iterate ifEmpty="false" operator="or"> |
16 | | - <instanceof value="org.eclipse.jdt.core.IJavaProject"/> |
17 | | - </iterate> |
18 | | - </with> |
19 | | - </definition> |
| 8 | + <definition id="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet"> |
| 9 | + <with variable="selection"> |
| 10 | + <iterate ifEmpty="false" operator="or"> |
| 11 | + <instanceof value="org.eclipse.jdt.core.IJavaProject" /> |
| 12 | + </iterate> |
| 13 | + </with> |
| 14 | + </definition> |
20 | 15 | </extension> |
21 | 16 | <extension point="org.eclipse.ui.handlers"> |
22 | 17 | <handler class="edu.cuny.hunter.streamrefactoring.ui.handlers.OptimizeStreamHandler" commandId="edu.cuny.hunter.optimize.stream.command"> |
23 | 18 | <activeWhen> |
24 | | - <reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" /> |
| 19 | + <reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" /> |
25 | 20 | </activeWhen> |
26 | 21 | </handler> |
27 | 22 | </extension> |
28 | 23 | <extension point="org.eclipse.ui.menus"> |
29 | 24 | <menuContribution locationURI="menu:org.eclipse.jdt.ui.refactoring.menu?after=additions"> |
30 | 25 | <!-- [rk] Doesn't seem to be working --> |
31 | | - <command |
32 | | - commandId="edu.cuny.hunter.optimize.stream.command" |
33 | | - id="edu.cuny.hunter.optimize.stream.menus.command" |
34 | | - label="%OptimizeStreamLabel" |
35 | | - mnemonic="%command.mnemonic"> |
| 26 | + <command commandId="edu.cuny.hunter.optimize.stream.command" id="edu.cuny.hunter.optimize.stream.menus.command" label="%OptimizeStreamLabel" mnemonic="%command.mnemonic"> |
36 | 27 | <visibleWhen> |
37 | | - <reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" /> |
| 28 | + <reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" /> |
38 | 29 | </visibleWhen> |
39 | 30 | </command> |
40 | 31 | </menuContribution> |
41 | 32 | <menuContribution locationURI="popup:org.eclipse.jdt.ui.refactoring.menu?after=additions"> |
42 | | - <command |
43 | | - commandId="edu.cuny.hunter.optimize.stream.command" |
44 | | - label="%OptimizeStreamLabel" |
45 | | - style="push"> |
| 33 | + <command commandId="edu.cuny.hunter.optimize.stream.command" label="%OptimizeStreamLabel" style="push"> |
46 | 34 | <visibleWhen> |
47 | | - <reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" /> |
| 35 | + <reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" /> |
48 | 36 | </visibleWhen> |
49 | 37 | </command> |
50 | 38 | </menuContribution> |
|
0 commit comments