mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restore compatibility: rogue plugin sneaked in and started using deprecated methods
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user