当前位置: 首页>>代码示例>>Java>>正文


Java FilteringTreeBuilder类代码示例

本文整理汇总了Java中com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder的典型用法代码示例。如果您正苦于以下问题:Java FilteringTreeBuilder类的具体用法?Java FilteringTreeBuilder怎么用?Java FilteringTreeBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


FilteringTreeBuilder类属于com.intellij.ui.treeStructure.filtered包,在下文中一共展示了FilteringTreeBuilder类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DisposerTree

import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
private DisposerTree(Disposable parent) {
  myModificationToFilter = -1;

  final DisposerStructure structure = new DisposerStructure(this);
  final DefaultTreeModel model = new DefaultTreeModel(new DefaultMutableTreeNode());
  final Tree tree = new Tree(model);
  tree.setRootVisible(false);
  tree.setShowsRootHandles(true);
  tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
  myTreeBuilder = new FilteringTreeBuilder(tree, DisposerTree.this, structure, AlphaComparator.INSTANCE) {
    @Override
    public boolean isAutoExpandNode(NodeDescriptor nodeDescriptor) {
      return structure.getRootElement() == getOriginalNode(nodeDescriptor);
    }
  };
  myTreeBuilder.setFilteringMerge(200, MergingUpdateQueue.ANY_COMPONENT);
  Disposer.register(this, myTreeBuilder);
  myTree = tree;

  setLayout(new BorderLayout());
  add(ScrollPaneFactory.createScrollPane(myTree), BorderLayout.CENTER);

  Disposer.getTree().addListener(this);

  Disposer.register(parent, this);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:27,代码来源:DisposerDebugger.java

示例2: initBuilder

import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
private void initBuilder() throws Exception {
  myBuilder = new FilteringTreeBuilder(myTree, myFilter, myStructure, AlphaComparator.INSTANCE) {
    @Override
    protected AbstractTreeUpdater createUpdater() {
     return _createUpdater(this);
    }
  };

  showTree();

  Disposer.register(getRootDisposable(), myBuilder);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:FilteringTreeBuilderTest.java

示例3: revalidateTree

import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
private void revalidateTree() {
  FilteringTreeBuilder.revalidateTree(myTree);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:FacetStructureConfigurable.java

示例4: getBuilder

import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
public FilteringTreeBuilder getBuilder() {
  return getPopup().getTreeBuilder();
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:FileStructureTestFixture.java

示例5: processSelected

import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
private ActionCallback processSelected(final Configurable configurable, final Configurable oldConfigurable) {
  if (isShowing(configurable)) return ActionCallback.DONE;

  final ActionCallback result = new ActionCallback();

  if (configurable == null) {
    myOwnDetails.setContent(null);

    myFilter.updateSpotlight(true);
    checkModified(oldConfigurable);

    result.setDone();

  } else {
    getUiFor(configurable).doWhenDone(new EdtRunnable() {
      @Override
      public void runEdt() {
        if (myDisposed) return;

        final Configurable current = getContext().getCurrentConfigurable();
        if (current != configurable) {
          result.setRejected();
          return;
        }

        myHistory.pushQueryPlace();

        updateDetails();

        myOwnDetails.setContent(myContentWrapper);
        myOwnDetails.setBannerMinHeight(mySearchWrapper.getHeight());
        myOwnDetails.setText(getBannerText(configurable));
        if (myTreeView != null) {
          myOwnDetails.forProject(myTreeView.findConfigurableProject(configurable));
        }
        else if (Registry.is("ide.new.settings.dialog")) {
          myOwnDetails.forProject(myTree.getConfigurableProject(configurable));
        }

        final ConfigurableContent content = myConfigurable2Content.get(current);

        content.setText(getBannerText(configurable));
        content.setBannerActions(new Action[] {new ResetAction(configurable)});

        content.updateBannerActions();

        myLoadingDecorator.stopLoading();

        myFilter.updateSpotlight(false);

        checkModified(oldConfigurable);
        checkModified(configurable);

        FilteringTreeBuilder builder = myTreeView != null ? myTreeView.myBuilder : myTree.myBuilder;
        if (builder.getSelectedElements().size() == 0) {
          select(configurable).notify(result);
        } else {
          result.setDone();
        }
      }
    });
  }

  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:66,代码来源:OptionsEditor.java

示例6: getTreeBuilder

import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
public FilteringTreeBuilder getTreeBuilder() {
  return myAbstractTreeBuilder;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:4,代码来源:FileStructurePopup.java

示例7: getBuilder

import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
protected FilteringTreeBuilder getBuilder() {
  return myPopup.getTreeBuilder();
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:4,代码来源:FileStructureTestBase.java


注:本文中的com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。