eirikbakke commented on code in PR #9303:
URL: https://github.com/apache/netbeans/pull/9303#discussion_r3016154954


##########
platform/core.startup/src/org/netbeans/core/startup/Splash.java:
##########
@@ -265,17 +284,91 @@ public void flushCaches(DataOutputStream os) throws 
IOException {
     @Override
     public void cacheReady() {
     }
+    
+    private static void onEDT(Runnable edtAction) {
+        if (SwingUtilities.isEventDispatchThread()) {
+            edtAction.run();
+        } else {
+            SwingUtilities.invokeLater(edtAction);
+        }
+    }
+
+    private static class Progress {

Review Comment:
   Nice to split this out. This class could alternatively be a single immutable 
record value, but I think the current approach is fine. (Only risk is paint() 
getting an inconsistent set of values for the various fields, but it would just 
make the progress bar slightly wrong as you pointed out before.)



-- 
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

Reply via email to