Examples of TreeExpander


Examples of com.intellij.ide.TreeExpander

*/
public abstract class TreeExpandAllActionBase extends AnAction {
  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();
  }
View Full Code Here

Examples of com.intellij.ide.TreeExpander

    expander.expandAll();
  }

  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

Examples of com.intellij.ide.TreeExpander

* Time: 7:38:56 PM
* To change this template use File | Settings | File Templates.
*/
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();
  }
View Full Code Here

Examples of com.intellij.ide.TreeExpander

  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

Examples of com.intellij.ide.TreeExpander

        if (ApplicationManager.getApplication() != null) {
            actionResultGroup.add(new ExecuteQuery(this));
            actionResultGroup.add(new OpenFindAction(this));
            actionResultGroup.add(new CopyResultAction(resultPanel));
        }
        final TreeExpander treeExpander = new TreeExpander() {
            @Override
            public void expandAll() {
                resultPanel.expandAll();
            }
View Full Code Here

Examples of com.intellij.ide.TreeExpander

        return !configuration.getCollectionsToIgnore().contains(collection.getName());
    }

    public void installActions() {

        final TreeExpander treeExpander = new TreeExpander() {
            @Override
            public void expandAll() {
                MongoExplorerPanel.this.expandAll();
            }
View Full Code Here

Examples of nu.fw.jeti.util.TreeExpander

    createPopupMenu();
    createGroupPopupMenu();
    if (UIManager.getLookAndFeel().isNativeLookAndFeel()) {
      setCellRenderer(new MacRenderer());
            if (onlineTree) {
                treeExpander = new TreeExpander(this, model);
            }
     }
    else setCellRenderer(new MyRenderer());

    addMouseListener(new MouseAdapter()
View Full Code Here

Examples of org.openbp.swing.components.tree.TreeExpander

   */
  public ItemTree()
  {
    itemComparator = new ItemComparator();

    treeExpander = new TreeExpander(this);

    ToolTipManager.sharedInstance().registerComponent(this);

    setRootVisible(true);
    setToggleClickCount(2);
View Full Code Here

Examples of org.openbp.swing.components.tree.TreeExpander

    tree.setModel(model);
    dialog.getContentPane().add(new JScrollPane(tree));
    dialog.setSize(new Dimension(300, height));
    dialog.setVisible(true);

    TreeExpander treeExpander = new TreeExpander(tree);
    if (intelli)
      treeExpander.intelliExpand(level);
    else
      treeExpander.expandLevel(level);

    try
    {
      Thread.sleep(time);
    }
View Full Code Here

Examples of org.openbp.swing.components.tree.TreeExpander

    // Initialize the tree
    strategy = new RefStrategy();
    model = new GenericModel(strategy, true);
    tree = new JTree();
    treeExpander = new TreeExpander(tree);
    tree.setToggleClickCount(2);
    tree.setRootVisible(false);
    tree.setModel(model);
    tree.setCellRenderer(new FinderResultRenderer());
    tree.addMouseListener(new MouseAdapter()
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.