|
|||||||||||
| 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.
Provisional API: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| 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. |
org.eclipse.jdt.core.IClasspathEntry[] |
getDelegateClasspathEntries(IRuntime runtime,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns the classpath entries that correspond to the given runtime. |
void |
removeRuntimeTarget(org.eclipse.core.resources.IProject project,
IRuntime runtime,
org.eclipse.core.runtime.IProgressMonitor monitor)
(non-Javadoc) |
void |
requestClasspathContainerUpdate(IRuntime runtime,
java.lang.String id,
org.eclipse.jdt.core.IClasspathEntry[] entries)
Request that the classpath container for the given runtime and id be updated with the given classpath container entries. |
abstract org.eclipse.jdt.core.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()). |
org.eclipse.jdt.core.IClasspathEntry[] |
resolveClasspathContainerImpl(IRuntime runtime,
java.lang.String id)
Resolve the classpath container. |
void |
setRuntimeTarget(org.eclipse.core.resources.IProject project,
IRuntime runtime,
org.eclipse.core.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(org.eclipse.core.resources.IProject project,
IRuntime runtime,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionRuntimeTargetHandlerDelegate#setRuntimeTarget(IProject, IRuntime, IProgressMonitor)
public void removeRuntimeTarget(org.eclipse.core.resources.IProject project,
IRuntime runtime,
org.eclipse.core.runtime.IProgressMonitor monitor)
RuntimeTargetHandlerDelegate#removeRuntimeTarget(IProject, IRuntime, IProgressMonitor)
public org.eclipse.jdt.core.IClasspathEntry[] getDelegateClasspathEntries(IRuntime runtime,
org.eclipse.core.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,
org.eclipse.jdt.core.IClasspathEntry[] entries)
runtime - a runtimeid - an identries - an array of classpath entries
public 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 org.eclipse.jdt.core.IClasspathEntry[] resolveClasspathContainerImpl(IRuntime runtime,
java.lang.String id)
runtime - a runtimeid - a container id
public abstract org.eclipse.jdt.core.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 | ||||||||||