Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2006-04-17 11:45:45 -0400
committerDarin Wright2006-04-17 11:45:45 -0400
commit425f800685afd9d29ea40eb5f65d7bfd136ce241 (patch)
tree14eba0d87f3e513e7ec1627622b99173ed41ac94 /org.eclipse.ui.console
parent332358cf52448f4a531ff11ce99686cdeeced81f (diff)
downloadeclipse.platform.debug-425f800685afd9d29ea40eb5f65d7bfd136ce241.tar.gz
eclipse.platform.debug-425f800685afd9d29ea40eb5f65d7bfd136ce241.tar.xz
eclipse.platform.debug-425f800685afd9d29ea40eb5f65d7bfd136ce241.zip
Bug 136917 - Console view doesn't get opened in the current window
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java
index cb2b630e2..071164d78 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/internal/console/ConsoleManager.java
@@ -285,14 +285,16 @@ public class ConsoleManager implements IConsoleManager {
synchronized (fConsoleViews) {
for (Iterator iter = fConsoleViews.iterator(); iter.hasNext();) {
ConsoleView consoleView = (ConsoleView) iter.next();
- boolean consoleVisible = page.isPartVisible(consoleView);
- if (consoleVisible) {
- consoleFound = true;
- boolean bringToTop = shouldBringToTop(console, consoleView);
- if (bringToTop) {
- page.bringToTop(consoleView);
- }
- consoleView.display(console);
+ if (consoleView.getSite().getPage().equals(page)) {
+ boolean consoleVisible = page.isPartVisible(consoleView);
+ if (consoleVisible) {
+ consoleFound = true;
+ boolean bringToTop = shouldBringToTop(console, consoleView);
+ if (bringToTop) {
+ page.bringToTop(consoleView);
+ }
+ consoleView.display(console);
+ }
}
}
}

Back to the top