|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object classpathhelper.util.AbstractTree classpathhelper.eclipse.ui.classloaderview.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(Location theLocation,
java.lang.String theClassName,
java.lang.String theDisplayName,
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 |
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(Location theLocation, java.lang.String theClassName, java.lang.String theDisplayName, CGClassLoader theClassLoader, boolean theDisplayContents)
theLocation
- The location to load the class details from.theClassName
- The name of the class represented by this object.theDisplayName
- The name to display, often the classname with its
package stripped out.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 IDecorable
true
if this class is blocked, otherwise
false
public void setUnreferenced(boolean unreferenced)
unreferenced
- The new value.public boolean isUnreferenced()
IDecorable
isUnreferenced
in interface IDecorable
true
if this element has no references
to it (other than possibly itself), otherwise false
.public boolean isIgnored()
IDecorable
, always returns false.
isIgnored
in interface IDecorable
false
public 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 IDecorable
true
if this class is blocked, otherwise
false
public void setHasUnresolved(boolean unresolved)
unresolved
- The unresolved flag.public boolean hasUnresolved()
hasUnresolved
in interface IDecorable
true
if this class has unresolved references
otherwise, false
.public boolean supportingDecorations()
supportingDecorations
in interface IDecorable
true
If decorations should be shown
otherwise false
public boolean hasWontLoad()
IDecorable
hasWontLoad
in interface IDecorable
true
if this node has elements that won't load
(possibly itself), otherwise false
public void setWontLoad(boolean theWontLoad)
theWontLoad
- protected void determineDecorations()
protected void loadChildren()
protected void loadBlockedLocations()
protected void loadDependentLocations()
protected void loadUnresolvedClasses()
protected void loadReferredToByClasses()
public Image getIconName()
ITree
getIconName
in interface ITree
public boolean hasChildren()
ITree
hasChildren
in interface ITree
hasChildren
in class AbstractTree
public ITree[] getChildren()
ITree
getChildren
in interface ITree
getChildren
in class AbstractTree
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |