本文整理汇总了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);
}
示例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);
}
示例3: revalidateTree
import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
private void revalidateTree() {
FilteringTreeBuilder.revalidateTree(myTree);
}
示例4: getBuilder
import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
public FilteringTreeBuilder getBuilder() {
return getPopup().getTreeBuilder();
}
示例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;
}
示例6: getTreeBuilder
import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
public FilteringTreeBuilder getTreeBuilder() {
return myAbstractTreeBuilder;
}
示例7: getBuilder
import com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder; //导入依赖的package包/类
protected FilteringTreeBuilder getBuilder() {
return myPopup.getTreeBuilder();
}