IDEA-155180 Configuration to not open debugger window automatically appcode/146.1733
authorEgor.Ushakov <egor.ushakov@jetbrains.com>
Thu, 5 May 2016 10:12:49 +0000 (13:12 +0300)
committerEgor.Ushakov <egor.ushakov@jetbrains.com>
Thu, 5 May 2016 10:13:47 +0000 (13:13 +0300)
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/ui/XDebugSessionTab.java

index efb8f7796b6b5c22ec7ce6268cf3039429df7ed7..ad8962d981996b47a2eee62acc4940de43ab34eb 100644 (file)
@@ -93,7 +93,9 @@ public class XDebugSessionTab extends DebuggerSessionTabBase {
         }
       }
     }
-    return new XDebugSessionTab(session, icon, environment);
+    XDebugSessionTab tab = new XDebugSessionTab(session, icon, environment);
+    tab.myRunContentDescriptor.setActivateToolWindowWhenAdded(contentToReuse == null || contentToReuse.isActivateToolWindowWhenAdded());
+    return tab;
   }
 
   @NotNull