Package com.intellij.ide

Examples of com.intellij.ide.TreeExpander.collapseAll()


public abstract class TreeCollapseAllActionBase extends AnAction {
  public void actionPerformed(AnActionEvent e) {
    TreeExpander expander = getExpander(e.getDataContext());
    if (expander == null) return;
    if (!expander.canCollapse()) return;
    expander.collapseAll();
  }

  protected abstract TreeExpander getExpander(DataContext dataContext);

  public void update(AnActionEvent event) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.