| Summary: | [extract local] selects complete line after applied | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Hans Meier <eclipseBugs> |
| Component: | UI | Assignee: | JDT-UI-Inbox <jdt-ui-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | martinae |
| Version: | 3.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | stalebug | ||
|
Description
Hans Meier
Currently, the refactoring just restores the selection to what was selected before. I also don't see what's the benefit of that. The last point is a good one too: Assign to local/field should add a semicolon if it is missing. I filed bug 200362 for this. Your example is less a 'extract' than an 'assign'. So I just fixed the 'assign to local' quick fix (bug 200362) and I believe that solves your problem. I'm not sure if we can find a better end selection for 'extract local' except for the example you gave, which I think is not so typical. You're right, my usecase is more "assign" than "extract" so the missing semicolon will "fix" my problem (though I would still like to see an option of automatically inserting a new line after this quick fix...) However you are wrong with the selection of the refactoring. As I wrote in the steps to reproduce, I only type "System.getProperties()" before hitting the refactoring shortcut. I don't select what I just typed in. Thus nothing is selected when applying the refactoring. After the refactoring however the whole line is selected which is not what was selected before. Anyway thx for fixing the missing semicolon. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |