|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclasspathhelper.util.AbstractTree
classpathhelper.eclipse.ui.packageview.ClassElement
Visual tree node representing a ClassDetail representing
a class or interface.
| Field Summary |
| Fields inherited from interface classpathhelper.eclipse.ui.IDecorable |
BLOCKED, BLOCKED_DIFF, IGNORED, UNREFERENCED, UNRESOLVED, WONTLOAD |
| Constructor Summary | |
ClassElement(ClassDescription description,
CGClassLoader theClassLoader,
boolean theDisplayContents)
|
|
| Method Summary | |
protected void |
determineDecorations()
Internal method that determines the values of this class with respect to decorations (unresolved, blocked, etc). |
ITree[] |
getChildren()
Getter for this nodes children. |
java.lang.String |
getClassName()
|
Image |
getIconName()
The associated Icon. |
boolean |
hasChildren()
Does this node have children. |
boolean |
hasUnresolved()
Getter for unresolved flag. |
boolean |
hasWontLoad()
Will this not load or does this element contain elements that won't load. |
boolean |
isBlocked()
Getter method indicating whether this class is blocked. |
boolean |
isBlockedDiffVersion()
Getter method indicating whether this class is blocked by a different version. |
boolean |
isIgnored()
method required by IDecorable, always returns false. |
boolean |
isUnreferenced()
Is this element referred to by anyone? |
protected void |
loadBlockedLocations()
Internal method for loading blocked locations. |
protected void |
loadChildren()
Method called to load the visual children of this node. |
protected void |
loadDependentLocations()
Internal method for loading dependent locations. |
protected void |
loadLocation()
Loads the location for this class. |
protected void |
loadReferredToByClasses()
Creates child nodes for the classes that refer to the class associated with this element. |
protected void |
loadUnresolvedClasses()
Internal method for loading unresolved classes. |
void |
setBlocked(boolean blocked)
Setter method, indicating whether this class is blocked. |
void |
setBlockedDiffVersion(boolean blocked)
Setter method, indicating whether this class is blocked by a class with a different version. |
void |
setHasUnresolved(boolean unresolved)
Setter method to indicate whether this class has unresolved references. |
void |
setUnreferenced(boolean unreferenced)
Setter method for the flag indicating whether or not this class is unreferenced. |
void |
setWontLoad(boolean theWontLoad)
Sets whether this class wont load or not. |
boolean |
supportingDecorations()
Flag indicating whether or not this node should display decorations |
java.lang.String |
toString()
|
| Methods inherited from class classpathhelper.util.AbstractTree |
addChild, addChildren, getParent, getRoot, removeAllChildren, removeChild, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ClassElement(ClassDescription description,
CGClassLoader theClassLoader,
boolean theDisplayContents)
theClassLoader - The ClassLoader to load the detail information
from.theDisplayContents - boolean indicating whether or not the class should
have children to display its contents.| Method Detail |
public java.lang.String getClassName()
public void setBlocked(boolean blocked)
blocked - flag indicating whether or not this class element
is blocked by another location on the classpath.public boolean isBlocked()
isBlocked in interface IDecorabletrue if this class is blocked, otherwise
falsepublic void setUnreferenced(boolean unreferenced)
unreferenced - The new value.public boolean isUnreferenced()
IDecorable
isUnreferenced in interface IDecorabletrue if this element has no references
to it (other than possibly itself), otherwise false.public boolean isIgnored()
IDecorable, always returns false.
isIgnored in interface IDecorablefalsepublic void setBlockedDiffVersion(boolean blocked)
Setter method, indicating whether this class is blocked by a class with a different version.
This property is subtly different from setBlocked(boolean)
in that this property also indicates that the blocking class is different
from the class at this location.
blocked - flag indicating whether or not this class element
is blocked by another location on the classpath.public boolean isBlockedDiffVersion()
isBlockedDiffVersion in interface IDecorabletrue if this class is blocked, otherwise
falsepublic void setHasUnresolved(boolean unresolved)
unresolved - The unresolved flag.public boolean hasUnresolved()
hasUnresolved in interface IDecorabletrue if this class has unresolved references
otherwise, false.public boolean supportingDecorations()
supportingDecorations in interface IDecorabletrue If decorations should be shown
otherwise falsepublic boolean hasWontLoad()
IDecorable
hasWontLoad in interface IDecorabletrue if this node has elements that won't load
(possibly itself), otherwise falsepublic void setWontLoad(boolean theWontLoad)
theWontLoad - protected void determineDecorations()
protected void loadChildren()
protected void loadBlockedLocations()
protected void loadDependentLocations()
protected void loadUnresolvedClasses()
protected void loadReferredToByClasses()
protected void loadLocation()
public Image getIconName()
ITree
getIconName in interface ITreepublic boolean hasChildren()
ITree
hasChildren in interface ITreehasChildren in class AbstractTreepublic ITree[] getChildren()
ITree
getChildren in interface ITreegetChildren in class AbstractTreepublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||