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.
In JDEV, there is a requirement to provide 'standard' user phased feedback processing for a long lasting tasks: - Show a wait cursor when a task runs more than 1s, - show a dialog when a task runs more than 3s. This could be achievable with current ProgressUtils.runOffEventDispatchThread method in the ProgressUtils class, but in JDEV we need a custom panel in a dialog. Proposal: Extend the ProgressUtils class: - add method runOffEventThreadWithProgressDialog() - it displays progress component in a dialog. - add method runOffEventThreadWithCustomDialogContent() - it displays provided panel in a dialog.
Created attachment 112703 [details] Extension to ProgressUtils class
Y01 Find more project neutral name than JdevProgressExt Y02 At least a sign of test would be nice
[JG01] Missing <class> in apichanges.xml. [JG02] Use {@link ...} on Cancelable, which would be a good way to find out you spelled it differently than the actual type name. (British and American spelling conventions differ a bit.) [JG03, following Y01] Rename JdevProgressExt to Progress2.
Created attachment 123644 [details] Updated patch New patch with requested changes
I am going to integrate on Friday.
Integrated into 'main-golden', will be available in build *201209040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/a6a34b314d4b User: Pavel Flaska <pflaska@netbeans.org> Log: #204553: Extending the user feedback utility methods.