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 8444 - Exception is thrown when I want to delete a text file
Summary: Exception is thrown when I want to delete a text file
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 normal (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-16 11:07 UTC by Marek Grummich
Modified: 2003-07-01 15:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (1.56 KB, text/plain)
2000-11-16 11:21 UTC, Marek Grummich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Grummich 2000-11-16 11:07:47 UTC
[Build 8]
How to reproduce.
1. Open some text file in the Source Editor.
2. Make some changes on the file (Don't save!)
3. Use Explorer popup menu for deleting the file
Comment 1 Marek Grummich 2000-11-16 11:21:59 UTC
Created attachment 319 [details]
Exception
Comment 2 Jesse Glick 2000-11-20 16:35:59 UTC
Either the delete action should be disabled while the file is modified, or it
should be enabled as now but the deletion should somehow cancel the file lock
and delete it anyway.
Comment 3 Peter Zavadsky 2000-12-08 12:30:59 UTC
Moved to text module + fixed in [release31]. It will be fixed in [main-trunk]
soon.

Problem: There was locked FileObject in text editor support directly.
Fix: The lock have to be taken via its FileEntry.
Comment 4 Peter Zavadsky 2000-12-08 13:13:59 UTC
Fixed in [main-trunk] too.
Comment 5 Marek Grummich 2002-10-14 11:29:36 UTC
Verified
Comment 6 Quality Engineering 2003-07-01 15:17:04 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.