Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335757 - Caret doesn't change position after sorting members.
Summary: Caret doesn't change position after sorting members.
Status: CLOSED DUPLICATE of bug 84087
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-29 05:50 EST by Miso CLA
Modified: 2011-01-31 04:40 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miso CLA 2011-01-29 05:50:43 EST
Build Identifier: 20100917-0705

If you add sorting memebers to your on save actions, members and method will sort but caret position will stay on old place.

Reproducible: Always

Steps to Reproduce:
1.Window -> Preferences -> Editor -> Save Actions -> Configure -> Code organizing -> Sort members (on)
2. Create new whatever class with metod zfoo()
3. Create new method afoo() and start typing under zfoo(). Then press CTRL+S. You method is alphabetically ordered, but your caret is now on bad position. It should be placed where new method was moved.
Comment 1 Prakash Rangaraj CLA 2011-01-31 00:24:03 EST
Moving to JDT UI
Comment 2 Dani Megert CLA 2011-01-31 04:40:29 EST

*** This bug has been marked as a duplicate of bug 84087 ***