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 134716

Summary: [Safe Delete] Cannot delete files during scanning
Product: java Reporter: loki <loki>
Component: RefactoringAssignee: Jan Pokorsky <jpokorsky>
Status: RESOLVED FIXED    
Severity: blocker CC: matthies, nleck
Priority: P3 Keywords: PERFORMANCE
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 159189    

Description loki 2008-05-08 08:05:34 UTC
Based on a hint of the IDE i create a new class. Realizing directly afterwards that this class is neither needed nor
wanted i try to delete it. The netbeans installation then waits until the scanning of the classpath returns. It never
returns (waiting for 10 minutes or so). Since the only way to delete is safe delete (Why is that anyway? it seems so un
American not to allow for choice ;-) would it not make more sense to have a delete and a refactor delete the second
being the safe one )  I can not delete the offending file. I had to move to the filesystems and delete it by hand.
Comment 1 Jan Pokorsky 2009-03-26 15:32:30 UTC
*** Issue 153956 has been marked as a duplicate of this issue. ***
Comment 2 Tomas Pavek 2009-05-19 10:09:35 UTC
The Safe Delete refactoring should not do anything before the Delete dialog is shown and the user chooses to actually 
use safe delete. That's regardless if scanning is in progress or not. See also issue 164650.
Comment 3 Jan Pokorsky 2009-07-29 13:20:50 UTC
*** Issue 168267 has been marked as a duplicate of this issue. ***
Comment 4 Pavel Flaska 2009-08-14 07:44:46 UTC
For the time being, I removed safe delete for multi-selection from default Delete action. Safe Delete is still available from refactoring menu, of course.
Comment 5 Quality Engineering 2009-08-15 06:31:32 UTC
Integrated into 'main-golden', will be available in build *200908150201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b01fda2e1ef8
User: Pavel Flaska <pflaska@netbeans.org>
Log: #134716: Do not invoke Safe Delete for multiselection. Even if scan is not in progress, it takes ages for large projects. Correct solution still not available.
Comment 6 Pavel Flaska 2009-09-14 16:04:18 UTC
f