Bug 7053

Summary: Delete method shifts following bracket
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: UIAssignee: Adam Kiezun <akiezun>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Martin Aeschlimann CLA 2001-12-18 11:39:52 EST
smoke 11218
JUnit: TestRunner.java

1. Add a new Method at the end of the file
	private void foo() {
	}
} < closing bracket of the class
2. Without saving delete the method in the outliner
3. closing bracket of the class is shifted
	}
Comment 1 Erich Gamma CLA 2001-12-19 08:06:50 EST
adam is the new delete pls check, could also be an interaction with auto indent.
Comment 2 Adam Kiezun CLA 2001-12-19 09:00:02 EST
don't know how to solve this nicely - i delete the method source range 
(+ the trailing semicolon and everything until the line break)

will have to consume the leading tabs as well, i think
Comment 3 Martin Aeschlimann CLA 2001-12-19 09:20:37 EST
i guess the tabs leading the methods have to be removed as well. 
Comment 4 Adam Kiezun CLA 2001-12-19 09:52:01 EST
have a fix - won't release now 
(editor is extremally sensitive to deletion ranges - off by one and it's toast)
needs more testsing
Comment 5 Adam Kiezun CLA 2001-12-20 05:15:43 EST
fixed >= 20011220