Bug 44084 - No refresh when deleting edited unit
Summary: No refresh when deleting edited unit
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-02 11:42 EDT by Philipe Mulet CLA
Modified: 2003-10-13 06:40 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-10-02 11:42:28 EDT
Build 20030930 in working copy owner mode

If the file being edited is deleted from the package explorer, then the view 
doesn't update. If the file isn't updated, then it correctly disappears.

The difference is that an edited file is in primary working mode for which no 
delta is broadcasted (virtual file system notion). However, the editor closes 
itself and discard the working copy which should then notify a removal delta.
Comment 1 Jerome Lanneluc CLA 2003-10-02 12:28:30 EDT
Changed DiscardWorkingCopyOperation to generate a REMOVED delta if the primary 
working copy doesn't have a corresponding resource on disk.

Added regression tests WorkingCopyOwnerTests.testDeltaDiscardPrimaryWorkingCopy3
() and testDiscardWorkingCopy5()
Comment 2 David Audel CLA 2003-10-13 06:40:43 EDT
Verified.