| Summary: | Missing Quick assist "convert to switch expression" | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Sarika Sinha <sarika.sinha> |
| Component: | UI | Assignee: | Jeff Johnston <jjohnstn> |
| Status: | VERIFIED FIXED | QA Contact: | Jeff Johnston <jjohnstn> |
| Severity: | normal | ||
| Priority: | P3 | CC: | noopur_gupta |
| Version: | 4.17 | ||
| Target Milestone: | 4.18 M3 | ||
| Hardware: | All | ||
| OS: | Mac OS X | ||
| See Also: |
https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/170524 https://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=3c566615c90fac5d8c1a73b83246724438b68470 |
||
| Whiteboard: | 4.18M2 | ||
| Bug Depends on: | |||
| Bug Blocks: | 545342 | ||
|
Description
Sarika Sinha
Problem is due to the covering node being passed to the quick assist being the Block rather than the SwitchStatement itself. Additional code is required to find the Block statement being referenced by the context start position. This scenario occurs if the white-space on the line of the switch statement is included in the selection. New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/170524 Gerrit change https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/170524 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=3c566615c90fac5d8c1a73b83246724438b68470 Released for 4.18M2 Verified for 4.18M3 using I20201117-0600 build |