|
||||||||||
| 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.PackageElement
Element representing a Java package. Classes are organized by package to help organize the display of class information.
This class uses lazy loading to populate its children only when it is visually expanded.
| Field Summary | |
static java.lang.String |
DEFAULT_PKG_LABEL
|
| Fields inherited from interface classpathhelper.eclipse.ui.IDecorable |
BLOCKED, BLOCKED_DIFF, IGNORED, UNREFERENCED, UNRESOLVED, WONTLOAD |
| Constructor Summary | |
PackageElement(Package thePackage,
CGClassLoader theClassLoader)
|
|
| Method Summary | |
protected void |
determineDecoration(Package pkg)
Internal method that determines if this package needs decorations (has blocked, blocked-diff, unresolved, etc). |
void |
determineInitialDecorations()
Wrapper over determineDecoration(Package) that determines the
decorations for the package associated with this tree element. |
ITree[] |
getChildren()
Getter for this nodes children. |
Image |
getIconName()
The associated Icon. |
boolean |
hasChildren()
Does this node have children. |
boolean |
hasUnresolved()
Does this element have unresolved references. |
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()
Is this element is ignored. |
boolean |
isUnreferenced()
Is this element referred to by anyone? |
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 |
| Field Detail |
public static final java.lang.String DEFAULT_PKG_LABEL
| Constructor Detail |
public PackageElement(Package thePackage,
CGClassLoader theClassLoader)
theClassLoader - The classloader loading this location.| Method Detail |
public void determineInitialDecorations()
determineDecoration(Package) that determines the
decorations for the package associated with this tree element.
protected void determineDecoration(Package pkg)
pkg - public boolean isBlocked()
IDecorable
isBlocked in interface IDecorabletrue If this element is blocked,
false if this element isn't or cannot be blocked.public boolean isBlockedDiffVersion()
IDecorable
isBlockedDiffVersion in interface IDecorabletrue If this element is blocked,
false if this element isn't or cannot be blocked.public boolean isIgnored()
IDecorable
isIgnored in interface IDecorabletrue If this element is ignored,
false if this element isn't or cannot be ignored.public boolean hasUnresolved()
IDecorable
hasUnresolved in interface IDecorabletrue If this element has unresolved,
false if this element isn't or cannot have unresolved.public boolean isUnreferenced()
IDecorable
isUnreferenced in interface IDecorabletrue if this element has no references
to it (other than possibly itself), otherwise false.public boolean supportingDecorations()
IDecorableMethod 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 IDecorabletrue if this node is currently supporting
decorations, otherwise falsepublic boolean hasWontLoad()
IDecorable
hasWontLoad in interface IDecorabletrue if this node has elements that won't load
(possibly itself), otherwise falsepublic 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 | |||||||||