Skip to content

Commit e3f4c75

Browse files
committed
Format.
1 parent bd71b65 commit e3f4c75

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

edu.cuny.hunter.streamrefactoring.ui/plugin.xml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,37 @@
22
<?eclipse version="3.4"?>
33
<plugin>
44
<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" />
116
</extension>
127
<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>
2015
</extension>
2116
<extension point="org.eclipse.ui.handlers">
2217
<handler class="edu.cuny.hunter.streamrefactoring.ui.handlers.OptimizeStreamHandler" commandId="edu.cuny.hunter.optimize.stream.command">
2318
<activeWhen>
24-
<reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" />
19+
<reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" />
2520
</activeWhen>
2621
</handler>
2722
</extension>
2823
<extension point="org.eclipse.ui.menus">
2924
<menuContribution locationURI="menu:org.eclipse.jdt.ui.refactoring.menu?after=additions">
3025
<!-- [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">
3627
<visibleWhen>
37-
<reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" />
28+
<reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" />
3829
</visibleWhen>
3930
</command>
4031
</menuContribution>
4132
<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">
4634
<visibleWhen>
47-
<reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" />
35+
<reference definitionId="edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" />
4836
</visibleWhen>
4937
</command>
5038
</menuContribution>

0 commit comments

Comments
 (0)