This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 16905

Summary: (Cloneable)EditorSupport should differenciate between external change and deletion.
Product: platform Reporter: Petr Slegr <pslegr>
Component: TextAssignee: issues@editor <issues>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 21748    

Description Petr Slegr 2001-10-24 12:04:19 UTC
[dev-10/24/01]

Bad behaviour after file external deletion.

1. Open a file into editor and modify it (DO NOT SAVE).
2. Delete it from the OS.
3. Then dialog "File <name> is modified. Save it?" will appear (the same one as 
when editor with modified file is to be closed).
4. If you will choose Save or Discard the editor will be closed. Note that for 
Save data will be saved indeed, fortunately. But the dialog's message is 
misleading. Also afer Save the editor shouldn't be closed.

I suggest better message like "File was externally deleted. Do you want keep 
it?".

See also at: http://www.netbeans.org/issues/show_bug.cgi?id=16901
Comment 1 Peter Zavadsky 2001-10-24 12:57:29 UTC
Changing to enhancement, changing description and decreasing priority.

Reasons:
The current behaviour is already long-term and therefore I think can't
be considered as a bug, i.e. the support was not designed to
differenciate between external change and deletion.

The solution needs to be reconsidered, some design changes will be
probably necessary.
Comment 2 Jan Chalupa 2001-11-27 13:03:06 UTC
Target milestone -> 3.3.1.
Comment 3 Marek Grummich 2002-07-22 11:25:19 UTC
Set target milestone to TBD
Comment 4 Marek Grummich 2002-07-22 11:27:54 UTC
Set target milestone to TBD
Comment 5 Marian Mirilovic 2002-12-06 17:17:56 UTC
reassigne to David K., new owner of editor
Comment 6 Antonin Nebuzelsky 2008-04-17 15:14:28 UTC
Reassigning to new module owner mslama.