From 0f7ed20fb0943fe0e55d7cac80eaf0ed4bbbf687 Mon Sep 17 00:00:00 2001 From: Konstantin Kolosovsky Date: Tue, 1 Dec 2015 17:31:25 +0300 Subject: [PATCH] vcs: Refactored "ChangesTreeList" - removed unused methods --- .../vcs/changes/ui/ChangesTreeList.java | 35 ------------------- 1 file changed, 35 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTreeList.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTreeList.java index 569824a5065b..c9884e03773a 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTreeList.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesTreeList.java @@ -531,14 +531,6 @@ public abstract class ChangesTreeList extends JPanel implements TypeSafeDataP } } - public int getSelectionCount() { - if (myShowFlatten) { - return myList.getSelectedIndices().length; - } else { - return myTree.getSelectionCount(); - } - } - @NotNull public List getSelectedChanges() { if (myShowFlatten) { @@ -907,28 +899,6 @@ public abstract class ChangesTreeList extends JPanel implements TypeSafeDataP } } - private class SelectAllAction extends AnAction { - private SelectAllAction() { - super("Select All", "Select all items", AllIcons.Actions.Selectall); - } - - @Override - public void actionPerformed(final AnActionEvent e) { - if (myShowFlatten) { - final int count = myList.getModel().getSize(); - if (count > 0) { - myList.setSelectionInterval(0, count-1); - } - } - else { - final int countTree = myTree.getRowCount(); - if (countTree > 0) { - myTree.setSelectionInterval(0, countTree-1); - } - } - } - } - public void select(final List changes) { final DefaultTreeModel treeModel = (DefaultTreeModel) myTree.getModel(); final TreeNode root = (TreeNode) treeModel.getRoot(); @@ -972,11 +942,6 @@ public abstract class ChangesTreeList extends JPanel implements TypeSafeDataP return toPass; } - public void enableSelection(final boolean value) { - myTree.setEnabled(value); - myList.setEnabled(value); - } - public void setAlwaysExpandList(boolean alwaysExpandList) { myAlwaysExpandList = alwaysExpandList; }