|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface of a classpath container.
A classpath container provides a way to indirectly reference a set of classpath entries through
a classpath entry of kind CPE_CONTAINER
. Typically, a classpath container can
be used to describe a complex library composed of multiple JARs or projects,
considering also that containers can map to different set of entries on each project, i.e. several
projects can reference the same generic container path, but have each of them actually bound
to a different container object.
The set of entries associated with a classpath container may contain any of the following:
CPE_LIBRARY
) CPE_PROJECT
)
Classpath container values are persisted locally to the workspace, but are not preserved from a
session to another. It is thus highly recommended to register a ClasspathContainerInitializer
for each referenced container (through the extension point "org.eclipse.jdt.core.ClasspathContainerInitializer").
IClasspathEntry
Field Summary | |
static int |
K_APPLICATION
Kind for a container mapping to an application library |
static int |
K_DEFAULT_SYSTEM
Kind for a container mapping to a default system library, implicitly contributed by the runtime |
static int |
K_SYSTEM
Kind for a container mapping to a system library |
Method Summary | |
IClasspathEntry[] |
getClasspathEntries()
Answers the set of classpath entries this container is mapping to. |
String |
getDescription()
Answers a readable description of this container |
int |
getKind()
Answers the kind of this container. |
IPath |
getPath()
Answers the container path identifying this container. |
Field Detail |
public static final int K_APPLICATION
public static final int K_SYSTEM
public static final int K_DEFAULT_SYSTEM
Method Detail |
public IClasspathEntry[] getClasspathEntries()
The set of entries associated with a classpath container may contain any of the following:
CPE_LIBRARY
) CPE_PROJECT
)
IClasspathEntry
public String getDescription()
public int getKind()
K_APPLICATION
if this container maps to an application libraryK_SYSTEM
if this container maps to a system libraryK_DEFAULT_SYSTEM
if this container maps to a default system library (library
implicitly contributed by the runtime).
public IPath getPath()
The container ID is also used to identify aClasspathContainerInitializer
registered on the extension point "org.eclipse.jdt.core.classpathContainerInitializer", which can
be invoked if needing to resolve the container before it is explicitly set.
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |