|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
tudresden.ocl.injection.reverseeng.RevengTreeNode
tudresden.ocl.injection.reverseeng.FileTreeNode
A tree node representing a Java Source file.
Nested Class Summary |
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode |
|
Field Summary | |
private AnalysisConsumer |
m_acAnalysisResults
Results of parsing. |
private boolean |
m_fDirty
Flag indicating whether the file needs to be saved. |
private boolean |
m_fHadError
Did parsing yield any errors? |
private boolean |
m_fParsed
Has the associated file already been parsed? |
private boolean |
m_fUseDefaultIcon
If true, use s_iFileWait. |
private RevengGUI |
m_rguiDirtyObserver
If non-null, will be notified whenever m_fDirty changes. |
private String |
m_sErrorMessage
If any errors occurred: error message to be presented to user. |
(package private) static Icon |
s_iFileError
Icon associated with file that could not be parsed. |
(package private) static Icon |
s_iFileWait
Icon associated with file until the correct icon has been computed. |
(package private) static Icon |
s_iFileWithCollections
Icon associated with file that contains completely documented collections only. |
(package private) static Icon |
s_iFileWithCollectionsAndMaps
Icon associated with file that contains completely documented collections and maps. |
(package private) static Icon |
s_iFileWithCollectionsAndMapsInComplete
Icon associated with file that contains collections and maps, which may be incompletely documented. |
(package private) static Icon |
s_iFileWithCollectionsInComplete
Icon associated with file that contains collections only, which may be incompletely documented. |
(package private) static Icon |
s_iFileWithMaps
Icon associated with file that contains completely documented maps only. |
(package private) static Icon |
s_iFileWithMapsInComplete
Icon associated with file that contains maps only, which may be incompletely documented. |
(package private) static Icon |
s_iNormalFile
Icon associated with normal file without any maps or collections. |
(package private) static ThreadPool |
s_tpIconComputers
ThreadPool managing the threads used to calculate the correct icons. |
Fields inherited from class tudresden.ocl.injection.reverseeng.RevengTreeNode |
|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
FileTreeNode(DefaultTreeModel dtmModel)
|
|
FileTreeNode(DefaultTreeModel dtmModel,
File f)
|
Method Summary | |
protected void |
ensureParsed(boolean fUpdateChildren)
Make sure the associated file was parsed, if it is not a directory. |
void |
fill()
Fill in the children of this node. |
File |
getFile()
Get the file associated with this node. |
Icon |
getIcon(boolean fExpanded)
Return the icon associated with the tree node. |
boolean |
isDirty()
Return true if this file has been modified since it has last been saved. |
void |
save()
Save the associated file. |
void |
setFile(File f)
Set the file associated to this node. |
void |
setModified()
Notification that underlying file was modified. |
void |
startDirtyChangeNotification(RevengGUI rguiObserver)
Start to call rguiObserver's onDirtyChanged method whenever the dirty state of this node changes. |
void |
stopDirtyChangeNotification()
Stop calling rguiObserver's onDirtyChanged method whenever the dirty state of this node changes. |
String |
toString()
|
private void |
updateIcon()
|
Methods inherited from class tudresden.ocl.injection.reverseeng.RevengTreeNode |
canRootExplorer, collapsed, createLogicalParent, getModel, getPropertyPages, getToolTip, nodeChanged, nodeStructureChanged, onDescriptorModified |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
static ThreadPool s_tpIconComputers
static Icon s_iNormalFile
static Icon s_iFileWait
static Icon s_iFileError
static Icon s_iFileWithCollections
static Icon s_iFileWithCollectionsInComplete
static Icon s_iFileWithCollectionsAndMaps
static Icon s_iFileWithCollectionsAndMapsInComplete
static Icon s_iFileWithMaps
static Icon s_iFileWithMapsInComplete
private boolean m_fUseDefaultIcon
private boolean m_fParsed
private boolean m_fHadError
private String m_sErrorMessage
private AnalysisConsumer m_acAnalysisResults
private boolean m_fDirty
private RevengGUI m_rguiDirtyObserver
Constructor Detail |
public FileTreeNode(DefaultTreeModel dtmModel)
public FileTreeNode(DefaultTreeModel dtmModel, File f)
Method Detail |
public void setFile(File f)
public File getFile()
protected void ensureParsed(boolean fUpdateChildren)
fUpdateChildren
- if true, reflect the results of parsing in the node's children.public Icon getIcon(boolean fExpanded)
RevengTreeNode
getIcon
in class RevengTreeNode
fExpanded
- if true, the node is currently expanded.public void fill()
RevengTreeNode
fill
in class RevengTreeNode
public String toString()
public void setModified()
setModified
in class RevengTreeNode
private void updateIcon()
public boolean isDirty()
isDirty
in class RevengTreeNode
public void startDirtyChangeNotification(RevengGUI rguiObserver)
startDirtyChangeNotification
in class RevengTreeNode
public void stopDirtyChangeNotification()
stopDirtyChangeNotification
in class RevengTreeNode
public void save() throws IOException
save
in class RevengTreeNode
IOException
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |