From 2c3bdeb8253fa6e5b16e95d9785bfca3b67467c6 Mon Sep 17 00:00:00 2001 From: Olesya Smirnova Date: Fri, 18 Mar 2005 21:45:16 +0300 Subject: [PATCH] FileView panel refreshing after single file submitted fixed --- .../intellij/openapi/vcs/actions/VcsContextWrapper.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/com/intellij/openapi/vcs/actions/VcsContextWrapper.java b/source/com/intellij/openapi/vcs/actions/VcsContextWrapper.java index 7408cc5f2042..71fa884e32d2 100644 --- a/source/com/intellij/openapi/vcs/actions/VcsContextWrapper.java +++ b/source/com/intellij/openapi/vcs/actions/VcsContextWrapper.java @@ -156,8 +156,12 @@ public class VcsContextWrapper implements VcsContext { ToolWindowManager toolWindowManager = ToolWindowManager.getInstance(project); if (toolWindowManager == null) return null; ToolWindowEx fileViewToolWindow =(ToolWindowEx) toolWindowManager.getToolWindow(ProjectLevelVcsManager.FILE_VIEW_TOOL_WINDOW_ID); - final JComponent component = fileViewToolWindow.getComponent(); - return ((FileViewPanel) component); + if (fileViewToolWindow.isAvailable()) { + final JComponent component = fileViewToolWindow.getComponent(); + return ((FileViewPanel) component); + } else { + return null; + } } public FilePath[] getSelectedFilePaths() {