mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Backgroundable progress indicator: correctly define isBackgroundable() method [review=kirill.safonov]
(cherry picked from commit 00d46974446fac5869cdfaaefd525eca31c07b9d)
This commit is contained in:
+1
@@ -91,6 +91,7 @@ public class BackgroundableProcessIndicator extends ProgressWindow {
|
||||
final Project nonDefaultProject = project == null || project.isDisposed() ? null : project.isDefault() ? null : project;
|
||||
final IdeFrame frame = ((WindowManagerEx)WindowManager.getInstance()).findFrameFor(nonDefaultProject);
|
||||
myStatusBar = (StatusBarEx)frame.getStatusBar();
|
||||
myBackgrounded = option.shouldStartInBackground();
|
||||
if (option.shouldStartInBackground()) {
|
||||
doBackground();
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ public class ProgressWindow extends BlockingProgressIndicator implements Disposa
|
||||
private boolean myStoppedAlready = false;
|
||||
protected final FocusTrackback myFocusTrackback;
|
||||
private boolean myStarted = false;
|
||||
private boolean myBackgrounded = false;
|
||||
protected boolean myBackgrounded = false;
|
||||
private boolean myWasShown;
|
||||
private String myProcessId = "<unknown>";
|
||||
@Nullable private volatile Runnable myBackgroundHandler;
|
||||
|
||||
Reference in New Issue
Block a user