mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
RUBY-7331 autotest shouldn't popup run toolwindow
This commit is contained in:
@@ -252,9 +252,6 @@ public class RunContentManagerImpl implements RunContentManager, Disposable {
|
||||
public void showRunContent(@NotNull final Executor executor, final RunContentDescriptor descriptor) {
|
||||
if(ApplicationManager.getApplication().isUnitTestMode()) return;
|
||||
|
||||
final ToolWindow toolWindow = ToolWindowManager.getInstance(myProject).getToolWindow(executor.getToolWindowId());
|
||||
final boolean wasInActiveWindow = toolWindow != null && toolWindow.isActive();
|
||||
|
||||
final ContentManager contentManager = getContentManagerForRunner(executor);
|
||||
RunContentDescriptor oldDescriptor = chooseReuseContentForDescriptor(contentManager, descriptor);
|
||||
|
||||
@@ -311,17 +308,13 @@ public class RunContentManagerImpl implements RunContentManager, Disposable {
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
public void run() {
|
||||
ToolWindow window = ToolWindowManager.getInstance(myProject).getToolWindow(executor.getToolWindowId());
|
||||
if (wasInActiveWindow) {
|
||||
window.activate(null, true, false);
|
||||
} else {
|
||||
// let's activate tool window, but don't move focus
|
||||
//
|
||||
// window.show() isn't valid here, because it will not
|
||||
// mark the window as "last activated" windows and thus
|
||||
// some action like navigation up/down in stactrace wont
|
||||
// work correctly
|
||||
window.activate(null, false, false);
|
||||
}
|
||||
// let's activate tool window, but don't move focus
|
||||
//
|
||||
// window.show() isn't valid here, because it will not
|
||||
// mark the window as "last activated" windows and thus
|
||||
// some action like navigation up/down in stactrace wont
|
||||
// work correctly
|
||||
window.activate(null, false, false);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user