| Summary: | java editor: undo does not work correctly | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> | ||||||
| Component: | UI | Assignee: | Kai-Uwe Maetzel <kai-uwe_maetzel> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | critical | ||||||||
| Priority: | P1 | ||||||||
| Version: | 2.0 | ||||||||
| Target Milestone: | 2.0 F4 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 2000 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
marked as major but i'm not sure Couldn't reproduce problem using the following steps: - creating class Test is default package - adding method clone useing Override method - using undo/redo/undo works as expected. Adam can you provide a better test case. Lowering priority since it is nor reproducable. seems to be some preference i'm attaching my pref file and increasing severity again :) Created attachment 1390 [details]
preferences
problem only shows up when: spacesForTabs=true Problem if not fixed: inconsistent state after undo - user confusion and potential data loss. Need to investigate in a fix before we can assess the risk. Created attachment 1449 [details]
Patch for CompilationUnitEditor
Reviewed by Daniel Megert & Dirk Baeumer. |
20020612 .create new class .'override methods...' - add clone() .undo .redo .undo the plain text editor does not exhibit this mis-behavior you're left with garbage like (pressing undo/redo more times produces even more garbage): public class Dfg { r.clone(); //<<GARBAGE } //<<GARBAGE }