mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
a meaningful toString for ReadTask continuation runnable
This commit is contained in:
+12
-4
@@ -179,10 +179,18 @@ public class ProgressIndicatorUtils {
|
||||
final ReadTask.Continuation continuation = runUnderProgress(progressIndicator, readTask);
|
||||
continued = continuation != null;
|
||||
if (continuation != null) {
|
||||
application.invokeLater(() -> {
|
||||
application.removeApplicationListener(listener);
|
||||
if (!progressIndicator.isCanceled()) {
|
||||
continuation.getAction().run();
|
||||
application.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
application.removeApplicationListener(listener);
|
||||
if (!progressIndicator.isCanceled()) {
|
||||
continuation.getAction().run();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "continuation of " + readTask;
|
||||
}
|
||||
}, continuation.getModalityState());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user