| Summary: | [extract local] Refactor -> Extract local variable doesn't ignore whitespace in selection [refactoring] | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Alex Blewitt <alex.blewitt> | ||||||
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | minor | ||||||||
| Priority: | P3 | CC: | bugzilla, daniel_megert | ||||||
| Version: | 3.0 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Alex Blewitt
Move to JDT/UI We should indeed try to me a little bit smarter here. [does not seem to be Mac specific. Setting Hardware & OS to "All"] no plans for this at the moment. As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you. Any plans to fix this issue? BTW: in some cases "Extract local variable" works even with selecteded the leading whitespace: [ getPattern()] works (even though Eclipse correctly reports a compile error on that line due to the missing ';') [ getPattern();] selecting everything including the ';' work [ getPattern();] selecting everything but not the ';' does NOT work (Tested with Eclipse 4.2.0) (In reply to comment #6) > Any plans to fix this issue? > > BTW: in some cases "Extract local variable" works even with selecteded the > leading whitespace: > > [ getPattern()] works (even though Eclipse correctly reports a compile error > on that line due to the missing ';') > [ getPattern();] selecting everything including the ';' work > [ getPattern();] selecting everything but not the ';' does NOT work > > > (Tested with Eclipse 4.2.0) I think you got it wrong. If the ';' is also selected then the refactoring is not available which is expected. The whitespace bug got fixed a while go. Created attachment 225384 [details]
Refactoring works with selected semicolon
Created attachment 225385 [details]
Refactoring does not work without selected semicolon
Please see the two screenshot that shows the behaviour in my Java editor (Eclipse 4.2.0) (In reply to comment #10) > Please see the two screenshot that shows the behaviour in my Java editor > (Eclipse 4.2.0) I see. But still, the white psace itself is no longer a problem. |