Examples of canCollapse()


Examples of com.google.javascript.jscomp.GlobalNamespace.Name.canCollapse()

          key.getString() : String.valueOf(++arbitraryNameCounter);

      // If the name cannot be collapsed, skip it.
      String qName = objlitName.getFullName() + '.' + propName;
      Name p = nameMap.get(qName);
      if (p != null && !p.canCollapse()) {
        continue;
      }

      String propAlias = appendPropForAlias(alias, propName);
      Node refNode = null;
View Full Code Here

Examples of com.google.javascript.jscomp.GlobalNamespace.Name.canCollapse()

          key.getString() : String.valueOf(++arbitraryNameCounter);

      // If the name cannot be collapsed, skip it.
      String qName = objlitName.getFullName() + '.' + propName;
      Name p = nameMap.get(qName);
      if (p != null && !p.canCollapse()) {
        continue;
      }

      String propAlias = appendPropForAlias(alias, propName);
      Node refNode = null;
View Full Code Here

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

*/
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);

View Full Code Here

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

  protected abstract TreeExpander getExpander(DataContext dataContext);

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