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.
Build: NetBeans IDE Dev (Build 201002152000) VM: Java HotSpot(TM) Client VM, 16.0-b13, Java(TM) SE Runtime Environment, 1.6.0_18-b07 OS: Windows XP User Comments: stefan79: While Scanning projects I tried to create a New Class (contextmenu in Project-View on a folder -> New Java Class). After the dialog was shown, the IDE hanged for more than one Minute! GUEST: creating a new class stefan79: Selected two folders an pressed made a right-mouse-click Maximum slowness yet reported was 66078 ms, average is 23783
Created attachment 95024 [details] nps snapshot
The PackageView.findNonExcludedPackages shall be called outside of AWT as it can be quite expensive. Does 66s qualify for P2?
All the time is spent in native IO operations. I agree that those should not be done in AWT thread. I am not sure whether the busy cursor will satisfy Stefan but I don't know any better solution for this.
You can show "Computing..." in the UI, disable the widget, switch the computation to another thread and when done, return to AWT and fill the UI.
http://hg.netbeans.org/jet-main/rev/7452c04e4477
Created attachment 95722 [details] nps snapshot