|
||||||||||
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.ClassPathElement
Visual Tree node representing a location on the classpath. It's children are typicallly
ClassElement
objects.
Field Summary |
Fields inherited from interface classpathhelper.eclipse.ui.IDecorable |
BLOCKED, BLOCKED_DIFF, IGNORED, UNREFERENCED, UNRESOLVED, WONTLOAD |
Constructor Summary | |
ClassPathElement(Location theLocation,
CGClassLoader theClassLoader)
|
Method Summary | |
void |
determineInitialDecorations()
Method called to load enough children to determine what decorations should be applied to this element. |
ITree[] |
getChildren()
Getter for this nodes children. |
Image |
getIconName()
The associated Icon. |
boolean |
hasChildren()
Does this node have children. |
boolean |
hasUnresolved()
Getter method indicating whether or not this location contains unresolved classes. |
boolean |
hasWontLoad()
Will this not load or does this element contain elements that won't load. |
boolean |
isBlocked()
Getter method indicating whether or not this location contains blocked classes. |
boolean |
isBlockedDiffVersion()
Getter method indicating whether or not this location contains blocked classes (some blocked with different versions). |
boolean |
isIgnored()
Getter for the ignored flag on the underlying location. |
boolean |
isUnreferenced()
Is this element referred to by anyone? |
protected void |
setBlocked(boolean blocked)
Setter method for the has blocked property. |
protected void |
setBlockedDiffVersion(boolean blocked)
Setter method for the has blocked (with different versions) property. |
protected void |
setUnresolved(boolean unresolved)
Setter for the flag indicating whether or not this location has classes with unresolved dependencies. |
boolean |
supportingDecorations()
Method added to allow nodes to indicate whether or not they are supporting 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 ClassPathElement(Location theLocation, CGClassLoader theClassLoader)
theLocation
- The location corresponding to this visual tree node.Method Detail |
public void determineInitialDecorations()
public boolean isIgnored()
isIgnored
in interface IDecorable
true
If this location is ignored on the
classpath, otherwise false
.public boolean isBlocked()
isBlocked
in interface IDecorable
true
If this location contains blocked
classes, otherwise false
protected void setBlocked(boolean blocked)
blocked
- The blocked flag.public boolean isBlockedDiffVersion()
isBlockedDiffVersion
in interface IDecorable
true
If this location contains blocked
classes (with different locations), otherwise false
protected void setBlockedDiffVersion(boolean blocked)
blocked
- The blocked flag.public boolean hasUnresolved()
hasUnresolved
in interface IDecorable
true
if this location contains unresolved
classes, otherwise false
protected void setUnresolved(boolean unresolved)
unresolved
- The unresolved flag.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 supportingDecorations()
IDecorable
Method added to allow nodes to indicate whether or not they are supporting decorations. Some node types are used in multiple places and in some contexts don't require decorations. In other cases a node might indicate that they do not support decorations while they are still calculating their details.
supportingDecorations
in interface IDecorable
true
if this node is currently supporting
decorations, 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 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 |