public class RuntimeClasspathEntryResolver extends java.lang.Object implements IRuntimeClasspathEntryResolver2
| Constructor and Description |
|---|
RuntimeClasspathEntryResolver(IConfigurationElement element)
Constructs a new resolver on the given configuration element
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContainerId()
Returns the container id this resolver is registered for, or
null |
protected IRuntimeClasspathEntryResolver |
getResolver()
Returns the resolver delegate (and creates if required)
|
java.lang.String |
getRuntimeClasspathEntryId()
Returns the runtime classpath entry id this resolver is registered
for,or
null if none. |
java.lang.String |
getVariableName()
Returns the variable name this resolver is registered for, or
null |
boolean |
isVMInstallReference(IClasspathEntry entry)
Returns whether the given classpath entry references a VM install.
|
IRuntimeClasspathEntry[] |
resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry,
IJavaProject project)
Returns resolved runtime classpath entries for the given runtime classpath entry,
in the context of the given launch configuration.
|
IRuntimeClasspathEntry[] |
resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry,
ILaunchConfiguration configuration)
Returns resolved runtime classpath entries for the given runtime classpath entry,
in the context of the given launch configuration.
|
IVMInstall |
resolveVMInstall(IClasspathEntry entry)
Returns a VM install associated with the given classpath entry,
or
null if none. |
public RuntimeClasspathEntryResolver(IConfigurationElement element)
element - the elementpublic IRuntimeClasspathEntry[] resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry, ILaunchConfiguration configuration) throws CoreException
IRuntimeClasspathEntryResolverresolveRuntimeClasspathEntry in interface IRuntimeClasspathEntryResolverentry - runtime classpath entry to resolve, of type
VARIABLE or CONTAINTERconfiguration - the context in which the runtime classpath entry
needs to be resolvedCoreException - if unable to resolve the entryIRuntimeClasspathEntryResolver.resolveRuntimeClasspathEntry(IRuntimeClasspathEntry, ILaunchConfiguration)protected IRuntimeClasspathEntryResolver getResolver() throws CoreException
CoreException - if an error occurspublic java.lang.String getVariableName()
nullnullpublic java.lang.String getContainerId()
nullnullpublic java.lang.String getRuntimeClasspathEntryId()
null if none.nullpublic IVMInstall resolveVMInstall(IClasspathEntry entry) throws CoreException
IRuntimeClasspathEntryResolvernull if none.resolveVMInstall in interface IRuntimeClasspathEntryResolverentry - classpath entrynull if noneCoreException - if unable to resolve a VMIRuntimeClasspathEntryResolver.resolveVMInstall(IClasspathEntry)public IRuntimeClasspathEntry[] resolveRuntimeClasspathEntry(IRuntimeClasspathEntry entry, IJavaProject project) throws CoreException
IRuntimeClasspathEntryResolverresolveRuntimeClasspathEntry in interface IRuntimeClasspathEntryResolverentry - runtime classpath entry to resolve, of type
VARIABLE or CONTAINTERproject - the context in which the runtime classpath entry
needs to be resolvedCoreException - if unable to resolve the entryIRuntimeClasspathEntryResolver.resolveRuntimeClasspathEntry(IRuntimeClasspathEntry, IJavaProject)public boolean isVMInstallReference(IClasspathEntry entry)
IRuntimeClasspathEntryResolver2isVMInstallReference in interface IRuntimeClasspathEntryResolver2entry - classpath entry