Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335757

Summary: Caret doesn't change position after sorting members.
Product: [Eclipse Project] JDT Reporter: Miso <vrto>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, prakash
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

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 ***