From 712b4d4e259c860b4808228a7945475697ca3e22 Mon Sep 17 00:00:00 2001 From: Kirill Kalishev Date: Mon, 15 Feb 2010 19:19:34 +0300 Subject: [PATCH] optional show/hide vcs console tool window (via rehistry) --- platform/platform-resources-en/src/misc/registry.properties | 1 + .../com/intellij/openapi/vcs/impl/ProjectLevelVcsManagerImpl.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/platform-resources-en/src/misc/registry.properties b/platform/platform-resources-en/src/misc/registry.properties index 941a0d02e8..ddaed58eb7 100644 --- a/platform/platform-resources-en/src/misc/registry.properties +++ b/platform/platform-resources-en/src/misc/registry.properties @@ -52,4 +52,5 @@ compiler.perform.outputs.refresh.on.start=true compiler.perform.outputs.refresh.on.start.description=Whether to perform initial FS refresh before compilation starts. Need this to detect external changes to output dirs compiler.perform.outputs.refresh.on.start.restartRequired=false vcs.show.colored.annotations=true +vcs.showConsole=true psi.viewer.selection.color=0,153,153 diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/ProjectLevelVcsManagerImpl.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/ProjectLevelVcsManagerImpl.java index dd34b99dfd..8446ab8ed2 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/ProjectLevelVcsManagerImpl.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/impl/ProjectLevelVcsManagerImpl.java @@ -33,6 +33,7 @@ import com.intellij.openapi.project.ex.ProjectEx; import com.intellij.openapi.startup.StartupManager; import com.intellij.openapi.util.*; import com.intellij.openapi.util.io.FileUtil; +import com.intellij.openapi.util.registry.Registry; import com.intellij.openapi.vcs.*; import com.intellij.openapi.vcs.changes.ChangesUtil; import com.intellij.openapi.vcs.checkin.CheckinHandlerFactory; @@ -287,7 +288,9 @@ public class ProjectLevelVcsManagerImpl extends ProjectLevelVcsManagerEx impleme return ! myMappings.isEmpty(); } - public void addMessageToConsoleWindow(final String message, final TextAttributes attributes) { +public void addMessageToConsoleWindow(final String message, final TextAttributes attributes) { + if (!Registry.is("vcs.showConsole")) return; + ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { // for default and disposed projects the ContentManager is not available. -- 2.11.4.GIT