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.
Steps to reproduce: - create C/C++ application - Debug->Debug Core File - type in field "Core File" "/net/qq" - press Browse button Expected behavior: - File chooser dialog is appeared in one second. Actual behavior: - Dialog is appeared after 10-30 seconds. User can click browse several times and dialog will be shown several times.
we use FileChooserBuilder and it calls file.exists on chooser create, it causes huge slowness before dialog even appears
From what I found the problem is not only in the FileChooser. The first problem I see is in validation of values in DebugCorePanel
3 fixes: 1. DebugCorePanel: validation worker introduced which will validate all values in one separate request processor and will be re-scheduled and canceled when needed see http://hg.netbeans.org/cnd-main/rev/60aa696596c6 2. dlight.remote: FileChooserUI copied from DirectoryChooserUI (no way to re-use) to get files list in separate request processor and update UI when prepared see http://hg.netbeans.org/cnd-main/rev/a10ba91b7bfe 3. dlight.api: RemoteFileUtil createFileChooser and createProjectChooser should both user dlight.remote.FileChooserBuilder see http://hg.netbeans.org/cnd-main/rev/d6052ae7f57f
additional fix: show Loading... in tree http://hg.netbeans.org/cnd-main/rev/b9d161c51abe
*** Bug 222441 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201305170640* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/60aa696596c6 User: Maria Tishkova <mromashova@netbeans.org> Log: fix for bz#224221 - FileChooser calls file.exists in constructor first part: introduced validation worker in DebugCorePanel