From: Kirill Kalishev Date: Mon, 15 Feb 2010 16:19:34 +0000 (+0300) Subject: optional show/hide vcs console tool window (via rehistry) X-Git-Tag: review-1~16 X-Git-Url: https://repo.or.cz/w/fedora-idea.git/commitdiff_plain/712b4d4e259c860b4808228a7945475697ca3e22 optional show/hide vcs console tool window (via rehistry) --- 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.