From ec630c64fb0db52db815ea6bdf8ba57168837b92 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Sun, 3 Nov 2013 19:40:58 +0400 Subject: [PATCH] [log] "Revert" and other actions above the changes browser Just use RepositoryChangesBrowser instead of the simple ChangesBrowser. --- .../impl/src/com/intellij/vcs/log/ui/frame/ActiveSurface.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/ActiveSurface.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/ActiveSurface.java index ebbe543da928..ff68984b8c64 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/ActiveSurface.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/frame/ActiveSurface.java @@ -8,6 +8,7 @@ import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.Splitter; import com.intellij.openapi.vcs.VcsDataKeys; import com.intellij.openapi.vcs.changes.Change; +import com.intellij.openapi.vcs.changes.committed.RepositoryChangesBrowser; import com.intellij.openapi.vcs.changes.ui.ChangesBrowser; import com.intellij.ui.ScrollPaneFactory; import com.intellij.ui.components.JBLoadingPanel; @@ -51,8 +52,7 @@ public class ActiveSurface extends JPanel implements TypeSafeDataProvider { myDetailsPanel = new DetailsPanel(logDataHolder, myGraphTable, vcsLogUI.getColorManager()); - final ChangesBrowser changesBrowser = new ChangesBrowser(project, null, Collections.emptyList(), null, false, false, null, - ChangesBrowser.MyUseCase.COMMITTED_CHANGES, null); + final ChangesBrowser changesBrowser = new RepositoryChangesBrowser(project, null, Collections.emptyList(), null); changesBrowser.getDiffAction().registerCustomShortcutSet(CommonShortcuts.getDiff(), myGraphTable); setDefaultEmptyText(changesBrowser);