當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。