File tree Expand file tree Collapse file tree 2 files changed +17
-8
lines changed
edu.cuny.hunter.streamrefactoring.ui Expand file tree Collapse file tree 2 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Properties file for edu.cuny.hunter.streamrefactoring.ui
2
2
Bundle-Vendor = Hunter College, City University of New York
3
3
Bundle-Name = Eclipse Optimize Stream Refactoring UI Plugin
4
- OptimizeStreamLabel = Optimize Stream ...
4
+ OptimizeStreamLabel = Optimize Streams ...
5
5
OptimizeStreamDescription = Optimize Java 8 Streams for increased parallelism and efficiency.
6
6
command.mnemonic = S
Original file line number Diff line number Diff line change 9
9
id =" edu.cuny.hunter.optimize.stream.command"
10
10
name =" %OptimizeStreamLabel" ></command >
11
11
</extension >
12
+ <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 >
20
+ </extension >
12
21
<extension point =" org.eclipse.ui.handlers" >
13
22
<handler class =" edu.cuny.hunter.streamrefactoring.ui.handlers.OptimizeStreamHandler" commandId =" edu.cuny.hunter.optimize.stream.command" >
14
23
<activeWhen >
15
- <with variable =" selection" >
16
- <iterate ifEmpty =" false" operator =" or" >
17
- <instanceof value =" org.eclipse.jdt.core.IJavaProject" />
18
- </iterate >
19
- </with >
24
+ <reference definitionId =" edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" />
20
25
</activeWhen >
21
26
</handler >
22
27
</extension >
23
28
<extension point =" org.eclipse.ui.menus" >
24
29
<menuContribution locationURI =" menu:org.eclipse.jdt.ui.refactoring.menu?after=additions" >
25
30
<!-- [rk] Doesn't seem to be working -->
26
31
<command commandId =" edu.cuny.hunter.optimize.stream.command" mnemonic =" %command.mnemonic" id =" edu.cuny.hunter.optimize.stream.menus.command" >
27
- <visibleWhen checkEnabled =" true" ></visibleWhen >
32
+ <visibleWhen >
33
+ <reference definitionId =" edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" />
34
+ </visibleWhen >
28
35
</command >
29
36
</menuContribution >
30
37
<menuContribution locationURI =" popup:org.eclipse.jdt.ui.refactoring.menu?after=additions" >
31
38
<command commandId =" edu.cuny.hunter.optimize.stream.command" style =" push" >
32
- <visibleWhen checkEnabled =" true" ></visibleWhen >
39
+ <visibleWhen >
40
+ <reference definitionId =" edu.cuny.hunter.streamrefactoring.ui.definitions.actionSet" />
41
+ </visibleWhen >
33
42
</command >
34
43
</menuContribution >
35
44
</extension >
You can’t perform that action at this time.
0 commit comments