|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRuntimeTargetHandlerDelegate
org.eclipse.jst.server.core.ClasspathRuntimeTargetHandler
A runtime target handler that supports changing the classpath of the project by adding one or more classpath containers. Runtime providers can extend this class and implement the abstract methods to provide the correct build path for their runtime type.
Constructor Summary | |
---|---|
ClasspathRuntimeTargetHandler()
|
Method Summary | |
---|---|
abstract java.lang.String |
getClasspathContainerLabel(IRuntime runtime,
java.lang.String id)
Returns the classpath container label for the given runtime and the given classpath container id (returned from getClasspathEntryIds()). |
java.lang.String[] |
getClasspathEntryIds()
Returns the classpath entry ids for this runtime target handler. |
IClasspathEntry[] |
getDelegateClasspathEntries(IRuntime runtime,
IProgressMonitor monitor)
Returns the classpath entries that correspond to the given runtime. |
void |
removeRuntimeTarget(IProject project,
IRuntime runtime,
IProgressMonitor monitor)
(non-Javadoc) |
void |
requestClasspathContainerUpdate(IRuntime runtime,
java.lang.String id,
IClasspathEntry[] entries)
Request that the classpath container for the given runtime and id be updated with the given classpath container entries. |
abstract IClasspathEntry[] |
resolveClasspathContainer(IRuntime runtime,
java.lang.String id)
Resolves (creates the classpath entries for) the classpath container with the given runtime and the given classpath container id (returned from getClasspathEntryIds()). |
IClasspathEntry[] |
resolveClasspathContainerImpl(IRuntime runtime,
java.lang.String id)
Resolve the classpath container. |
void |
setRuntimeTarget(IProject project,
IRuntime runtime,
IProgressMonitor monitor)
(non-Javadoc) |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClasspathRuntimeTargetHandler()
Method Detail |
public void setRuntimeTarget(IProject project, IRuntime runtime, IProgressMonitor monitor) throws CoreException
CoreException
RuntimeTargetHandlerDelegate#setRuntimeTarget(IProject, IRuntime, IProgressMonitor)
public void removeRuntimeTarget(IProject project, IRuntime runtime, IProgressMonitor monitor)
RuntimeTargetHandlerDelegate#removeRuntimeTarget(IProject, IRuntime, IProgressMonitor)
public IClasspathEntry[] getDelegateClasspathEntries(IRuntime runtime, IProgressMonitor monitor)
runtime
- a runtimemonitor
- a progress monitor, or null
if progress
reporting and cancellation are not desired
public java.lang.String[] getClasspathEntryIds()
By default, there is a single classpath entry for the runtime, with no
extra id (new String[1]
). To create multiple ids, just
return a string array containing the ids. For instance, to have two
classpath containers with ids "id1" and "id2", use
new String[] { "id1", "id2" }
public void requestClasspathContainerUpdate(IRuntime runtime, java.lang.String id, IClasspathEntry[] entries)
runtime
- a runtimeid
- an identries
- an array of classpath entriespublic abstract java.lang.String getClasspathContainerLabel(IRuntime runtime, java.lang.String id)
runtime
- the runtime to resolve the container label forid
- the classpath entry id
public IClasspathEntry[] resolveClasspathContainerImpl(IRuntime runtime, java.lang.String id)
runtime
- a runtimeid
- a container id
public abstract IClasspathEntry[] resolveClasspathContainer(IRuntime runtime, java.lang.String id)
runtime
- the runtime to resolve the container forid
- the classpath entry id
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |