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.
This bug was originally marked as duplicate of bug 234459, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201308290001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15 OS: Mac OS X User Comments: ytn01: Opened the Options dialog via Command+, Switched to "Miscellaneous" tab Clicked on the right arrow to navigate to next set of preference tabs,... slowness detected. Maximum slowness yet reported was 11549 ms, average is 11549
Created attachment 139517 [details] nps snapshot
Javadoc for update method says: Component should load its data here. You should not do any time-consuming operations inside the constructor, because it blocks initialization of OptionsDialog. Initialization should be implemented in update method. So I do time-consuming operations in update method - but it is still called in AWT EQ. Please evaluate.
(In reply to Jan Becicka from comment #2) > Javadoc for update method says: > Component should load its data here. You should not do any time-consuming > operations inside the constructor, because it blocks initialization of > OptionsDialog. Initialization should be implemented in update method. > > So I do time-consuming operations in update method - but it is still called > in AWT EQ. Please evaluate. You should load your data in the update method but you should make sure that this is done off EDT. update() in options.api just calls each controller's update method. You know what needs to be loaded, what UI components need to be shown and how to sync the whole process. re-assigning back so that the loding of required data is done off EDT and the UI is then appropriately updated. Thank you
Changeset: 8d05c8d1b9cf Author: Jan Becicka <jbecicka@netbeans.org> Date: 2013-09-02 12:42 Message:
Integrated into 'main-silver', will be available in build *201309030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8d05c8d1b9cf User: Jan Becicka <jbecicka@netbeans.org> Log: Issue #235335 - org.netbeans.modules.cordova.platforms.api.ProcessUtilities.callProcess: LowPerformance took 11549 ms.