| Summary: | "Rename in File" moves cursor position | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Jared Burns <jared_burns> |
| Component: | Ant | Assignee: | Jared Burns <jared_burns> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, Darin_Swanson, eclipse |
| Version: | 3.1 | ||
| Target Milestone: | 3.1 M7 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
I am not sure that there is much I can do here. The LinkedModeUI on enter goes to the first UI position. It would appear to me that setExitPosition should be resetting the cursor to the correct location...Dani can you comment or ask someome to comment who is familiar? Ahhh..I could try being smarter about the order of the positions as I add them to the group...but I am still interested in the exitPosition question :-) Tom, please answer. LinkedMode stays where it is upon exiting unless you have defined an exit position (setExitPosition). If you *have* defined an exit position, the linked mode jumps there *only* if the mode is terminated regularly (usually by pressing <return>), but not if you cancel the linked mode (usually by pressing <Esc>), in which case the caret is never moved. Note that you can modify the exit behavior a little by setting a custom exit policy - however you can not veto above behavior, you can only add additional cases where the linked mode is left. (In reply to comment #2) > Ahhh..I could try being smarter about the order of the positions as I add them > to the group... The (tab stop) order of the positions defines which position is jumped to first. Local rename in the Java editor orders the position from the location where it is invoked onward, wrapping around at the end of the document. Please verify Jared. Verified. |
1. Place the cursor inside the word "default" in the target node. 2. Press shift+alt+r to Rename in File. 3. The cursor is moved from the target node to the project node. The cursor shouldn't be moved. <project name="project" default="default"> <target name="default" description="--> description"> <sleep seconds="2"/> <echo>Hello, world!</echo> </target> </project>