public class FileSystemTreeImpl extends java.lang.Object implements FileSystemTree
FileSystemTree.Listener
Disposable.Parent
DATA_KEY
Constructor and Description |
---|
FileSystemTreeImpl(Project project,
FileChooserDescriptor descriptor) |
FileSystemTreeImpl(Project project,
FileChooserDescriptor descriptor,
Tree tree,
javax.swing.tree.TreeCellRenderer renderer,
java.lang.Runnable onInitialized,
Convertor<? super javax.swing.tree.TreePath,java.lang.String> speedSearchConverter) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(FileSystemTree.Listener listener,
Disposable parent) |
void |
addOkAction(java.lang.Runnable action) |
boolean |
areHiddensShown() |
protected AsyncTreeModel |
createAsyncTreeModel(FileTreeModel fileTreeModel) |
protected FileTreeModel |
createFileTreeModel(FileChooserDescriptor descriptor,
Tree tree) |
java.lang.Exception |
createNewFile(VirtualFile parentDirectory,
java.lang.String newFileName,
FileType fileType,
java.lang.String initialContent) |
java.lang.Exception |
createNewFolder(VirtualFile parentDirectory,
java.lang.String newFolderName) |
protected AbstractTreeBuilder |
createTreeBuilder(javax.swing.JTree tree,
javax.swing.tree.DefaultTreeModel treeModel,
AbstractTreeStructure treeStructure,
java.util.Comparator<NodeDescriptor<?>> comparator,
FileChooserDescriptor descriptor,
java.lang.Runnable onInitialized) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
expand(VirtualFile file,
java.lang.Runnable onDone) |
<T> T |
getData(DataKey<T> key) |
VirtualFile |
getNewFileParent() |
VirtualFile |
getSelectedFile() |
VirtualFile [] |
getSelectedFiles() |
javax.swing.JTree |
getTree() |
AbstractTreeBuilder |
getTreeBuilder() |
boolean |
isUnderRoots(VirtualFile file) |
void |
registerMouseListener(ActionGroup group) |
void |
select(VirtualFile[] file,
java.lang.Runnable onDone) |
void |
select(VirtualFile file,
java.lang.Runnable onDone) |
boolean |
selectionExists() |
void |
showHiddens(boolean showHidden) |
void |
updateTree() |
protected boolean |
useNewAsyncModel()
Deprecated.
|
public FileSystemTreeImpl(Project project, FileChooserDescriptor descriptor)
public FileSystemTreeImpl(Project project, FileChooserDescriptor descriptor, Tree tree, javax.swing.tree.TreeCellRenderer renderer, java.lang.Runnable onInitialized, Convertor<? super javax.swing.tree.TreePath,java.lang.String> speedSearchConverter)
@Deprecated protected boolean useNewAsyncModel()
protected FileTreeModel createFileTreeModel(FileChooserDescriptor descriptor, Tree tree)
protected AsyncTreeModel createAsyncTreeModel(FileTreeModel fileTreeModel)
protected AbstractTreeBuilder createTreeBuilder(javax.swing.JTree tree, javax.swing.tree.DefaultTreeModel treeModel, AbstractTreeStructure treeStructure, java.util.Comparator<NodeDescriptor<?>> comparator, FileChooserDescriptor descriptor, java.lang.Runnable onInitialized)
public void addOkAction(java.lang.Runnable action)
public void registerMouseListener(ActionGroup group)
public boolean areHiddensShown()
areHiddensShown
in interface FileSystemTree
public void showHiddens(boolean showHidden)
showHiddens
in interface FileSystemTree
public void updateTree()
updateTree
in interface FileSystemTree
public void dispose()
Disposable
dispose
in interface Disposable
public AbstractTreeBuilder getTreeBuilder()
public void select(VirtualFile file, java.lang.Runnable onDone)
select
in interface FileSystemTree
public void select(VirtualFile[] file, java.lang.Runnable onDone)
select
in interface FileSystemTree
public void expand(VirtualFile file, java.lang.Runnable onDone)
expand
in interface FileSystemTree
public java.lang.Exception createNewFolder(VirtualFile parentDirectory, java.lang.String newFolderName)
public java.lang.Exception createNewFile(VirtualFile parentDirectory, java.lang.String newFileName, FileType fileType, java.lang.String initialContent)
public javax.swing.JTree getTree()
getTree
in interface FileSystemTree
public VirtualFile getSelectedFile()
getSelectedFile
in interface FileSystemTree
public VirtualFile getNewFileParent()
getNewFileParent
in interface FileSystemTree
public <T> T getData(DataKey<T> key)
getData
in interface FileSystemTree
public VirtualFile [] getSelectedFiles()
getSelectedFiles
in interface FileSystemTree
public boolean selectionExists()
selectionExists
in interface FileSystemTree
public boolean isUnderRoots(VirtualFile file)
isUnderRoots
in interface FileSystemTree
public void addListener(FileSystemTree.Listener listener, Disposable parent)
addListener
in interface FileSystemTree