Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2004-05-11 20:53:34 +0000
committerMichael Valenta2004-05-11 20:53:34 +0000
commita08a47977c404c59827cb7c6d9e903a27e62ab46 (patch)
tree9c5e92c1e37a4853296e6c299b1aa07bc9d2f17c
parent73a079a57b58903b3e74df26b786d3198133839a (diff)
downloadeclipse.platform.team-a08a47977c404c59827cb7c6d9e903a27e62ab46.tar.gz
eclipse.platform.team-a08a47977c404c59827cb7c6d9e903a27e62ab46.tar.xz
eclipse.platform.team-a08a47977c404c59827cb7c6d9e903a27e62ab46.zip
Bug 61504: Console appears grey and unwanted at startup if CVS output option on
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSOutputConsole.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSOutputConsole.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSOutputConsole.java
index 925c7fbac..df2748534 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSOutputConsole.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSOutputConsole.java
@@ -91,7 +91,7 @@ public class CVSOutputConsole extends MessageConsole implements IConsoleListener
document = new ConsoleDocument();
CVSProviderPlugin.getPlugin().setConsoleListener(CVSOutputConsole.this);
CVSUIPlugin.getPlugin().getPreferenceStore().addPropertyChangeListener(CVSOutputConsole.this);
- showConsole();
+ showConsole(false);
}
/* (non-Javadoc)
@@ -166,13 +166,15 @@ public class CVSOutputConsole extends MessageConsole implements IConsoleListener
}
}
- private void showConsole() {
+ private void showConsole(boolean show) {
if(showOnMessage) {
IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
if(! visible) {
manager.addConsoles(new IConsole[] {this});
}
- manager.showConsoleView(this);
+ if (show) {
+ manager.showConsoleView(this);
+ }
}
}
@@ -310,7 +312,7 @@ public class CVSOutputConsole extends MessageConsole implements IConsoleListener
showOnMessage = ((Boolean)value).booleanValue();
}
if(showOnMessage) {
- showConsole();
+ showConsole(true);
} else {
IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
manager.removeConsoles(new IConsole[] {this});

Back to the top