Examples of canExpand()


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

  protected abstract TreeExpander getExpander(DataContext dataContext);

  public final void actionPerformed(AnActionEvent e) {
    TreeExpander expander = getExpander(e.getDataContext());
    if (expander == null) return;
    if (!expander.canExpand()) return;
    expander.expandAll();
  }

  public final void update(AnActionEvent event) {
    Presentation presentation = event.getPresentation();
View Full Code Here

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

  }

  public final void update(AnActionEvent event) {
    Presentation presentation = event.getPresentation();
    TreeExpander expander = getExpander(event.getDataContext());
    presentation.setEnabled(expander != null && expander.canExpand());
  }
}
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.