|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.core.UserLibraryClasspathContainer
public class UserLibraryClasspathContainer
Field Summary |
---|
Fields inherited from interface org.eclipse.jdt.core.IClasspathContainer |
---|
K_APPLICATION, K_DEFAULT_SYSTEM, K_SYSTEM |
Constructor Summary | |
---|---|
UserLibraryClasspathContainer(java.lang.String name)
|
Method Summary | |
---|---|
IClasspathEntry[] |
getClasspathEntries()
Answers the set of classpath entries this container is mapping to. |
java.lang.String |
getDescription()
Answers a readable description of this container |
int |
getKind()
Answers the kind of this container. |
org.eclipse.core.runtime.IPath |
getPath()
Answers the container path identifying this container. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserLibraryClasspathContainer(java.lang.String name)
Method Detail |
---|
public IClasspathEntry[] getClasspathEntries()
IClasspathContainer
The set of entries associated with a classpath container may contain any of the following:
CPE_LIBRARY
) CPE_PROJECT
) This method is called by the Java model when it needs to resolve this classpath container entry into a list of library and project entries. The method is typically called exactly once for a given Java project, and the resulting list of entries cached internally by the Java model. This method must not be called by other clients.
There are a wide variety of conditions under which this method may be invoked. To ensure that the implementation does not interfere with correct functioning of the Java model, the implementation should use only the following Java model APIs:
JavaCore.newLibraryEntry(IPath, IPath, IPath, boolean)
and variantsJavaCore.newProjectEntry(IPath, boolean)
and variantsJavaCore.create(org.eclipse.core.resources.IWorkspaceRoot)
JavaCore.create(org.eclipse.core.resources.IProject)
IJavaModel.getJavaProjects()
IJavaProject.getRawClasspath()
IJavaProject.readRawClasspath()
IJavaProject.getOutputLocation()
IJavaProject.readOutputLocation()
getClasspathEntries
in interface IClasspathContainer
IClasspathEntry
public java.lang.String getDescription()
IClasspathContainer
getDescription
in interface IClasspathContainer
public int getKind()
IClasspathContainer
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).
getKind
in interface IClasspathContainer
public org.eclipse.core.runtime.IPath getPath()
IClasspathContainer
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.
getPath
in interface IClasspathContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |