本文整理汇总了Java中com.intellij.openapi.fileChooser.ex.RootFileElement类的典型用法代码示例。如果您正苦于以下问题:Java RootFileElement类的具体用法?Java RootFileElement怎么用?Java RootFileElement使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RootFileElement类属于com.intellij.openapi.fileChooser.ex包,在下文中一共展示了RootFileElement类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: FileTreeStructure
import com.intellij.openapi.fileChooser.ex.RootFileElement; //导入依赖的package包/类
public FileTreeStructure(Project project, FileChooserDescriptor chooserDescriptor) {
myProject = project;
final VirtualFile[] rootFiles = VfsUtilCore.toVirtualFileArray(chooserDescriptor.getRoots());
final String name = rootFiles.length == 1 && rootFiles[0] != null ? rootFiles[0].getPresentableUrl() : chooserDescriptor.getTitle();
myRootElement = new RootFileElement(rootFiles, name, chooserDescriptor.isShowFileSystemRoots());
myChooserDescriptor = chooserDescriptor;
myShowHidden = myChooserDescriptor.isShowHiddenFiles();
}
示例2: isAutoExpandNode
import com.intellij.openapi.fileChooser.ex.RootFileElement; //导入依赖的package包/类
@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;
}
示例3: FileTreeStructure
import com.intellij.openapi.fileChooser.ex.RootFileElement; //导入依赖的package包/类
public FileTreeStructure(Project project, FileChooserDescriptor chooserDescriptor) {
myProject = project;
final VirtualFile[] rootFiles = VfsUtilCore.toVirtualFileArray(chooserDescriptor.getRoots());
final String name = rootFiles.length == 1 && rootFiles[0] != null ? rootFiles[0].getPresentableUrl() : chooserDescriptor.getTitle();
myRootElement = new RootFileElement(rootFiles, name, chooserDescriptor.isShowFileSystemRoots());
myChooserDescriptor = chooserDescriptor;
myShowHidden = PropertiesComponent.getInstance().getBoolean("FileChooser.showHiddens", false);
}
示例4: isAutoExpandNode
import com.intellij.openapi.fileChooser.ex.RootFileElement; //导入依赖的package包/类
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;
}