|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.dialogs.FileSystemElement
de.cau.cs.kieler.core.ui.wizards.ExtendedFileSystemElement
public class ExtendedFileSystemElement
A FileSystemElement
representing File
s and carrying extended states.
Most importantly, this element tracks whether it has already been visited or not.
"Visited" in this context means that someone has already added all subdirectories
and subfolders to it. This class is used by FileSystemResourcesPage
.
TODO Document the input element stuff.
Constructor Summary | |
---|---|
ExtendedFileSystemElement(File file,
boolean inputElement)
Constructs a new instance. |
|
ExtendedFileSystemElement(File file,
FileSystemElement parent)
Constructs a new instance. |
Method Summary | |
---|---|
File |
getFile()
Returns the file this object represents. |
boolean |
isInputElement()
Returns whether or not this element was flagged as being used as a viewer's input element. |
boolean |
isVisited()
Checks if the element has already been visited. |
void |
setFileSystemObject(Object value)
|
void |
visit()
Indicates that this object has now been visited. |
Methods inherited from class org.eclipse.ui.dialogs.FileSystemElement |
---|
addChild, getAdapter, getFileNameExtension, getFiles, getFileSystemObject, getFolders, getParent, isDirectory, removeFolder, setParent, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExtendedFileSystemElement(File file, FileSystemElement parent)
file
- the file represented by this object..parent
- the parent, if any.public ExtendedFileSystemElement(File file, boolean inputElement)
file
- the file represented by this object..inputElement
- true
if this element is being used as the input element
for a viewer.Method Detail |
---|
public boolean isInputElement()
true
if this element is being used as a viewer's input element.public boolean isVisited()
getFiles()
and getFolders()
.
true
if the element has already been visited, false
otherwise.public void visit()
public File getFile()
public void setFileSystemObject(Object value)
setFileSystemObject
in class FileSystemElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |