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.
Drag & Drop a folder will cause the GUI to lock up (gray screen) until the copying of the folder/files has been completed. This is confusing for users for when a folder contains 1000 items or more, the GUI may be locked up for more than 10 minutes and so the user ends up killing the application thinking it has crashed. I would expect the same functionality as when you do a copy & paste which still leaves the GUI responsive while the copy & paste is occurring in the background. What can happen too is that the GUI will forever remain locked. Checking via Windows Explorer will show that no files at all have been copied to the dropped target. The GUI then has to be killed. I think this has happened when you have 1500 or more items in the folder. I've reproduced this in 3.6, 4.0 and 4.1.
This is not nice.
PasteType implementation in datasystems performs paste synchronously. It doesn't block UI for Paste (Ctrl+V) because PasteAction is asynchronous and thus runs in a request processor. I'll add replanning to RP into the datasystems PasteType in case it is called from inside AWT.
Fixed. openide/loaders/src/org/openide/loaders/DataTransferSupport.java,v
cvs ci -m "#56854: Reverting fix for issue 55160 - e.g. drop is done synchronously. Bad, but better than broken refactoring. I'll find a different way to move the drop out of AWT event thread"
But I do not think I'll make it for 4.1. Sorry.
Delaying for next version, I've been told not to change UI (e.g. introduce the progress indicator, which is needed).
Created attachment 28353 [details] Patch returning back revision 1.6 plus adding use of Progress API
I want to make the org.openide.loaders module depend on progress API. Any objections from reviewers?
No comments so far, I am going to add the dependency.
"#55160: Using progress API for Dnd to not block AWT" Checking in openide/loaders/nbproject/project.xml; /cvs/openide/loaders/nbproject/project.xml,v <-- project.xml new revision: 1.12; previous revision: 1.11 done Checking in openide/loaders/src/org/openide/loaders/DataTransferSupport.java; /cvs/openide/loaders/src/org/openide/loaders/DataTransferSupport.java,v <-- DataTransferSupport.java new revision: 1.9; previous revision: 1.8 done Checking in ide/golden/deps.txt; /cvs/ide/golden/deps.txt,v <-- deps.txt new revision: 1.275; previous revision: 1.274
*** Issue 27744 has been marked as a duplicate of this issue. ***
*** Issue 81334 has been marked as a duplicate of this issue. ***