restore compatibility: rogue plugin sneaked in and started using deprecated methods

This commit is contained in:
Alexey Kudravtsev
2018-08-10 13:35:08 +03:00
parent d4a571d731
commit 88b2cdb77f
2 changed files with 20 additions and 0 deletions
@@ -22,12 +22,24 @@ public abstract class CommonActionsManager {
public abstract AnAction createNextOccurenceAction(OccurenceNavigator navigator);
/**
* @deprecated use {@link #createCollapseAllAction(TreeExpander, JComponent)} instead
*/
@Deprecated
public abstract AnAction createExpandAllAction(TreeExpander expander);
public abstract AnAction createExpandAllAction(TreeExpander expander, JComponent component);
public abstract AnAction createExpandAllHeaderAction(TreeExpander expander, JComponent component);
public abstract AnAction createExpandAllHeaderAction(JTree tree);
/**
* @deprecated use {@link #createCollapseAllAction(TreeExpander, JComponent)} instead
*/
@Deprecated
public abstract AnAction createCollapseAllAction(TreeExpander expander);
public abstract AnAction createCollapseAllAction(TreeExpander expander, JComponent component);
public abstract AnAction createCollapseAllHeaderAction(TreeExpander expander, JComponent component);
@@ -25,6 +25,10 @@ public class CommonActionsManagerImpl extends CommonActionsManager {
return new NextOccurenceToolbarAction(navigator);
}
public AnAction createExpandAllAction(TreeExpander expander) {
return new ExpandAllToolbarAction(expander);
}
@Override
public AnAction createExpandAllAction(TreeExpander expander, JComponent component) {
final ExpandAllToolbarAction expandAllToolbarAction = new ExpandAllToolbarAction(expander);
@@ -45,6 +49,10 @@ public class CommonActionsManagerImpl extends CommonActionsManager {
return createExpandAllHeaderAction(new DefaultTreeExpander(tree), tree);
}
public AnAction createCollapseAllAction(TreeExpander expander) {
return new CollapseAllToolbarAction(expander);
}
@Override
public AnAction createCollapseAllAction(TreeExpander expander, JComponent component) {
final CollapseAllToolbarAction collapseAllToolbarAction = new CollapseAllToolbarAction(expander);