public interface IClasspathContributor
IClasspathEntry
to a plug-in project as the classpath is computed. The contributor is consulted
when the initial classpath for a plug-in project is calculated as well as whenever
a new bundle dependency is created.
A classpath contributor is declared as an extension (org.eclipse.pde.core.pluginClasspathContributors
).
The added classpath entries are only stored as long as the project classpath is and will not be considered during plug-in or feature export.
Modifier and Type | Method and Description |
---|---|
List<IClasspathEntry> |
getEntriesForDependency(BundleDescription project,
BundleDescription addedDependency)
Get any additional classpath entries to add to a project when a new bundle
is being added to the project classpath as a dependency.
|
List<IClasspathEntry> |
getInitialEntries(BundleDescription project)
Get any additional classpath entries to add to a project when its classpath is
first computed.
|
List<IClasspathEntry> getInitialEntries(BundleDescription project)
BundleDescription
describes the plug-in
project that the classpath is being computed for. Additional PDE model information
can be obtained using PluginRegistry.findModel(BundleDescription)
.project
- the bundle descriptor for the plug-in project having its classpath computednull
List<IClasspathEntry> getEntriesForDependency(BundleDescription project, BundleDescription addedDependency)
BundleDescription
is provided for both the plug-in that the classpath is being calculated for and
the dependency being added. The dependency may be a project in the workspace or an
external bundle from the target platform.project
- the bundle descriptor for the plug-in project having its classpath computedaddedDependency
- the bundle descriptor for the bundle being added to the classpath as a dependencynull
Copyright (c) 2000, 2017 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.