lahodaj commented on code in PR #9853:
URL: https://github.com/apache/netbeans/pull/9853#discussion_r4799532172
##########
platform/core.execution/src/org/netbeans/core/execution/Install.java:
##########
@@ -226,6 +248,66 @@ private static boolean showPendingTasks() {
return true;
}
+ private static final RequestProcessor RP = new
RequestProcessor(Install.class);
+
+ /** The pending tasks that are still running: a finished progress handle
+ * stays in the model until the progress UI has processed its event. */
+ static Collection<?> runningTasks() {
+ ArrayList<Object> running = new ArrayList<Object>();
+ for (Object t : getPendingTasks()) {
+ if (t instanceof InternalHandle && ((InternalHandle) t).getState()
== InternalHandle.STATE_FINISHED) {
Review Comment:
Does this mean the dialog (which uses `getPendingTasks` directly, I think)
can show tasks that are already finished?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists