|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclasspathhelper.util.AbstractTree
classpathhelper.eclipse.ui.classloaderview.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(java.lang.String thePackageName,
Location theLocation,
CGClassLoader theClassLoader)
|
Method Summary | |
void |
addContent(ContentDescription content)
Method called during initialization to add a class to this package. |
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(java.lang.String thePackageName, Location theLocation, CGClassLoader theClassLoader)
thePackageName
- The name of the package.theLocation
- The location where the package is contained.theClassLoader
- The classloader loading this location.Method Detail |
public void addContent(ContentDescription content)
content
- The fully qualified class name from this package.
java.lang.IllegalArgumentException
- if class name does not belong
to this package.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()
IDecorable
isIgnored
in interface IDecorable
true
If this element is ignored,
false
if this element isn't or cannot be ignored.public boolean hasUnresolved()
IDecorable
hasUnresolved
in interface IDecorable
true
If this element has unresolved,
false
if this element isn't or cannot have unresolved.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 |