|
||||||||||
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.locationsview.ClassPathElement
Visual Tree node representing a location on the classpath.
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 | |
protected void |
determineFinalDecorations()
Method called to determine the decorations that require most of the classpath to be resolved. |
protected void |
determineInitialDecorations()
Method that determines how this classpath element should be decorated. |
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()
Is this element blocked (or does it contain blocked elements). |
boolean |
isBlockedDiffVersion()
Is this element blocked (or does it contain blocked elements), that have a different version. |
boolean |
isIgnored()
Getter for the ignored flag on the underlying location. |
boolean |
isUnreferenced()
Is this element referred to by anyone? |
protected void |
loadDependentLocations()
Loads the dependent locations. |
protected void |
loadNotFoundDependentClassNames()
Loads the not found classes. |
protected void |
loadReferencedBy()
Internal method for loading up all the locations that refer to this location. |
protected void |
setUnreferenced(boolean unreferenced)
Setter for flag indicating whether or not this jar/folder contains class that are unreferenced by classes from any other jar/folder. |
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 |
protected void determineInitialDecorations()
protected void determineFinalDecorations()
Method called to determine the decorations that require most of the classpath to be resolved. This method is called after all locations have been traversed meaning that most classes have already been loaded.
This method is seperated out from determineInitialDecorations()
to provide a better UI experience. Since the decorations
determined in this method require all classes loaded, determining
them in advanced would keep reported progress at 0% while 99% of
the work gets done.
protected void loadReferencedBy()
protected void loadNotFoundDependentClassNames()
protected void loadDependentLocations()
public boolean isBlocked()
IDecorable
isBlocked
in interface IDecorable
true
If this element is blocked,
false
if this element isn't or cannot be blocked.public boolean isBlockedDiffVersion()
IDecorable
isBlockedDiffVersion
in interface IDecorable
true
If this element is blocked,
false
if this element isn't or cannot be blocked.public boolean isIgnored()
isIgnored
in interface IDecorable
true
If this location is ignored on the
classpath, otherwise false
.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.protected 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 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 |