mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Merge branch 'tree-ui'
This commit is contained in:
+9
-1
@@ -11,6 +11,7 @@ import com.intellij.openapi.fileChooser.FileElement;
|
||||
import com.intellij.openapi.fileChooser.ex.RootFileElement;
|
||||
import com.intellij.openapi.progress.ProgressIndicator;
|
||||
import com.intellij.openapi.progress.util.StatusBarProgress;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.vfs.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
@@ -87,7 +88,14 @@ public class FileTreeBuilder extends AbstractTreeBuilder {
|
||||
}
|
||||
|
||||
protected boolean isAutoExpandNode(NodeDescriptor nodeDescriptor) {
|
||||
return nodeDescriptor.getElement() instanceof RootFileElement;
|
||||
if (nodeDescriptor.getElement() instanceof RootFileElement) {
|
||||
return true;
|
||||
} else if (!SystemInfo.isWindows) {
|
||||
NodeDescriptor parent = nodeDescriptor.getParentDescriptor();
|
||||
return parent != null && parent.getElement() instanceof RootFileElement;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user