Bug 5005 - Deleting methods corrupts file
Summary: Deleting methods corrupts file
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-15 18:17 EDT by Knut Radloff CLA
Modified: 2001-11-01 06:59 EST (History)
1 user (show)

See Also:


Attachments
Test case StyledText.java (214.48 KB, text/plain)
2001-10-15 18:18 EDT, Knut Radloff CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2001-10-15 18:17:35 EDT
-import the attached StyledText.java
-select the methods doBidiSelectionCursorNext and doBidiSelectionCursorPrevious 
in the outline view and delete them using the context menu
->the delete operation affects text that is nowhere near the deleted methods!
One of the print methods has a / removed and a few lines are no longer indented 
(e.g., "boolean bidiColoring = false").
Comment 1 Knut Radloff CLA 2001-10-15 18:18:45 EDT
Created attachment 6 [details]
Test case StyledText.java
Comment 2 Kai-Uwe Maetzel CLA 2001-10-26 06:32:46 EDT
Don't see this behavior in build 20011025.

The description probably indicates a JavaModel problem.
The delete action in the outliner only executes ISourceManipulation.delete. The 
delete of a method in a compilation unit's working copy causes a 
BufferChangeEvent which is a replace of the whole buffer content. Thus, even if 
the action would call delete on the wrong ISourceManipulation, the described 
corruptions must not occur.
Comment 3 Knut Radloff CLA 2001-10-26 10:52:04 EDT
Appears to be fixed in 20011025.
Comment 4 Kai-Uwe Maetzel CLA 2001-11-01 06:59:51 EST
See previous comment.