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 11# Properties file for edu.cuny.hunter.streamrefactoring.ui
22Bundle-Vendor = Hunter College, City University of New York
33Bundle-Name = Eclipse Optimize Stream Refactoring UI Plugin
4- OptimizeStreamLabel = Optimize Stream ...
4+ OptimizeStreamLabel = Optimize Streams ...
55OptimizeStreamDescription = Optimize Java 8 Streams for increased parallelism and efficiency.
66command.mnemonic = S
Original file line number Diff line number Diff line change 99 id =" edu.cuny.hunter.optimize.stream.command"
1010 name =" %OptimizeStreamLabel" ></command >
1111 </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 >
1221 <extension point =" org.eclipse.ui.handlers" >
1322 <handler class =" edu.cuny.hunter.streamrefactoring.ui.handlers.OptimizeStreamHandler" commandId =" edu.cuny.hunter.optimize.stream.command" >
1423 <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" />
2025 </activeWhen >
2126 </handler >
2227 </extension >
2328 <extension point =" org.eclipse.ui.menus" >
2429 <menuContribution locationURI =" menu:org.eclipse.jdt.ui.refactoring.menu?after=additions" >
2530 <!-- [rk] Doesn't seem to be working -->
2631 <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 >
2835 </command >
2936 </menuContribution >
3037 <menuContribution locationURI =" popup:org.eclipse.jdt.ui.refactoring.menu?after=additions" >
3138 <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 >
3342 </command >
3443 </menuContribution >
3544 </extension >
You can’t perform that action at this time.
0 commit comments