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 102066 - Send deleted project or file to Recycle Bin
Summary: Send deleted project or file to Recycle Bin
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-21 13:15 UTC by unaseer161
Modified: 2016-07-07 08:37 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description unaseer161 2007-04-21 13:15:30 UTC
The IDE doesnt send the deleted project/file in Recycle Bin. It directly 
deletes with a confirmation message, which can be pressed accedentally. This 
results in complete project/file loss. In NTFS it is almost impossible to get 
that file/folder back via commercial undelete software.
Comment 1 Peter Pis 2007-04-22 18:31:48 UTC
IMHO, this is rather a feature. Reassigning to "projects"...
Comment 2 Marian Mirilovic 2007-04-22 21:19:02 UTC
Accidentally ?
When you press Del on project node (or invoke Delete Project action from menu)
ID is asking another question about deleting folder from the disk (you need to
check checkbox and press Ok (at least in current version). So I don't think it
could be deleted "accidentally". So from my point of view - wontfix, but left on
responsible developer's decision. 
Comment 3 unaseer161 2007-04-23 08:19:55 UTC
Friend i have not asked something strange, i just wanted a second level of 
security and that is if some how something is deleted it should go in 
recyclebin atleast on windows operating system, rather then totally 
disappearing. Windows users are fond of Recycle Bin so why are u taking it off 
from them when they use user superb IDE called netbeans!

I hope u realize my point of view.!
Comment 4 Milan Kubec 2007-04-23 08:48:50 UTC
Your use case is completly valid, but I'm afraid that it's not that easy in
Java, there is no support for moving file to recycle bin. There is RFE for JDK
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5080625. Doing that in NB IDE
would require probably JNI calls on windows and special handling of delete on
different platforms. Changing to FEATURE, after there is support in JDK we might
reconsider it.
Comment 5 280Z28 2011-10-11 13:51:50 UTC
This is a major flaw because an expected operation can result in an unexpected and permanent loss of information. It's unfortunate (but possibly expected) that the JRE would overlook such a critical platform flaw, but any serious desktop application must handle this issue properly even if it requires using JNI.
Comment 6 Martin Balin 2016-07-07 08:37:12 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss