Java Code Examples for com.intellij.ide.util.treeView.NodeDescriptor#getParentDescriptor()
The following examples show how to use
com.intellij.ide.util.treeView.NodeDescriptor#getParentDescriptor() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FileTreeBuilder.java From consulo with Apache License 2.0 | 5 votes |
@Override protected boolean isAutoExpandNode(NodeDescriptor nodeDescriptor) { if (nodeDescriptor.getElement() instanceof RootFileElement) { return true; } else if (!SystemInfo.isWindows) { NodeDescriptor parent = nodeDescriptor.getParentDescriptor(); return parent != null && parent.getElement() instanceof RootFileElement; } return false; }
Example 2
Source File: ErrorViewTreeBuilder.java From consulo with Apache License 2.0 | 4 votes |
protected boolean isAutoExpandNode(NodeDescriptor nodeDescriptor) { return nodeDescriptor.getParentDescriptor() == null || nodeDescriptor.getElement() instanceof GroupingElement; }
Example 3
Source File: FavoritesViewTreeBuilder.java From consulo with Apache License 2.0 | 4 votes |
@Override protected boolean isAutoExpandNode(NodeDescriptor nodeDescriptor) { return nodeDescriptor.getParentDescriptor() == null; }