Package editor
Class FileTree
java.lang.Object
editor.FileTree
- All Implemented Interfaces:
IFileWatcherListener,MutableTreeNode,TreeNode
- Direct Known Subclasses:
ExternalFileTree
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Experimentprivate Pathprivate Iconprivate longprivate Stringprivate FileTree -
Constructor Summary
ConstructorsModifierConstructorDescriptionFileTree(Experiment experiment) protectedFileTree(Path fileOrDir, FileTree parent, Experiment experiment) -
Method Summary
Modifier and TypeMethodDescriptionprivate String_makeDotPath(FileTree sourcePathRoot) private voidaddSourcePaths(Experiment experiment) booleanchildren()voiddelete()private IconfindIcon()voidfireCreate(String dir, String file) voidfireDelete(String dir, String file) voidfireModify(String dir, String file) booleanvoidgetAllTypeNames(Set<String> typeNames) getChildAt(int childIndex) intprivate ExperimentViewgetIcon()intgetName()getPath()private intgetSortedIndex(List<FileTree> children, FileTree insert) intgetType()private voidhandleDeletedFileTree(FileTree fileTree) private voidhandleNewFile(FileTree fileTree) private voidhandleNewFileTree(FileTree fileTree) private booleanhandlePossibleDeletedType(FileTree fileTree) voidinsert(MutableTreeNode child, int index) booleanbooleanisFile()private booleanisInSourcePath(Path path) booleanisLeaf()booleanprivate booleanisTypeFile(FileTree fileTree) private Stringprivate StringmakeDotPath(FileTree sourcePathRoot) makeFqn()private voidprivate voidmakeSourcePathChildren(Path fileOrDir) private voidvoidremove(int index) voidremove(MutableTreeNode node) voidvoidselect()voidprivate voidvoidsetParent(MutableTreeNode newParent) voidsetUserObject(Object object) toString()boolean
-
Field Details
-
_name
-
_fileOrDir
-
_parent
-
_children
-
_experiment
-
_icon
-
_lastModified
private long _lastModified
-
-
Constructor Details
-
FileTree
-
FileTree
-
-
Method Details
-
getName
-
setName
-
addSourcePaths
-
makeSourcePathChildren
private void makeSourcePathChildren() -
makeSourcePathChildren
-
getSortedIndex
-
isInSourcePath
-
find
-
find
-
getAllTypeNames
-
getFileOrDir
-
isDirectory
public boolean isDirectory() -
isFile
public boolean isFile() -
getChildren
-
insert
- Specified by:
insertin interfaceMutableTreeNode
-
remove
public void remove(int index) - Specified by:
removein interfaceMutableTreeNode
-
remove
- Specified by:
removein interfaceMutableTreeNode
-
setUserObject
- Specified by:
setUserObjectin interfaceMutableTreeNode
-
removeFromParent
public void removeFromParent()- Specified by:
removeFromParentin interfaceMutableTreeNode
-
setParent
- Specified by:
setParentin interfaceMutableTreeNode
-
getChildAt
- Specified by:
getChildAtin interfaceTreeNode
-
getChildCount
public int getChildCount()- Specified by:
getChildCountin interfaceTreeNode
-
getParent
-
getIndex
-
getAllowsChildren
public boolean getAllowsChildren()- Specified by:
getAllowsChildrenin interfaceTreeNode
-
isLeaf
public boolean isLeaf() -
children
-
toString
-
fireCreate
- Specified by:
fireCreatein interfaceIFileWatcherListener
-
handleNewFileTree
-
handleNewFile
-
openFile
-
isTypeFile
-
fireModify
- Specified by:
fireModifyin interfaceIFileWatcherListener
-
fireDelete
- Specified by:
fireDeletein interfaceIFileWatcherListener
-
handleDeletedFileTree
-
handlePossibleDeletedType
-
setLastModified
public void setLastModified()- Specified by:
setLastModifiedin interfaceIFileWatcherListener
-
select
public void select() -
getPath
-
makePath
-
getExperimentView
-
getExperiment
-
isSourcePathRoot
public boolean isSourcePathRoot() -
getSourcePathRoot
-
getType
-
makeFqn
-
makeDotPath
-
makeDotPath
-
_makeDotPath
-
canDelete
public boolean canDelete() -
delete
public void delete() -
getIcon
-
findIcon
-
getTotalFiles
public int getTotalFiles() -
traverse
-