public interface IRuntimeClasspathProvider
org.eclipse.jdt.launching.classpathProviders
.
A provider is registered with an identifier that can be referenced by a launch configuration. A classpath provider is consulted to compute a classpath or source lookup path when a launch configuration references a provider in one or both of the following attributes:
ATTR_CLASSPATH_PROVIDER
ATTR_SOURCE_PATH_PROVIDER
plugin.xml
.
Following is an example definition of a runtime classpath provider
extension.
<extension point="org.eclipse.jdt.launching.classpathProviders"> <classpathProvider> id="com.example.ExampleClasspathProvider" class="com.example.ExampleClasspathProviderImpl" </classpathProvider> </extension>The attributes are specified as follows:
id
specifies a unique identifier for this extension. This
identifier may be used to reference a provider on one of the launch
configuration attributes mentioned above.class
specifies the fully qualified name of the Java class
that implements IRuntimeClasspathProvider
.Clients may implement this interface.
Modifier and Type | Method and Description |
---|---|
IRuntimeClasspathEntry[] |
computeUnresolvedClasspath(ILaunchConfiguration configuration)
Computes and returns an unresolved classpath for the given launch configuration.
|
IRuntimeClasspathEntry[] |
resolveClasspath(IRuntimeClasspathEntry[] entries,
ILaunchConfiguration configuration)
Returns the resolved path corresponding to the given path, in the context of the
given launch configuration.
|
IRuntimeClasspathEntry[] computeUnresolvedClasspath(ILaunchConfiguration configuration) throws CoreException
configuration
- launch configurationCoreException
- if unable to compute a pathIRuntimeClasspathEntry[] resolveClasspath(IRuntimeClasspathEntry[] entries, ILaunchConfiguration configuration) throws CoreException
entries
- entries to resolveconfiguration
- launch configuration context to resolve inCoreException
- if unable to resolve a path
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.