ILibrary
are directed to the headers associated with the relevant bundle.
In particular, the Bundle-Classpath
header contains all available information
about the classpath of a plug-in. Having retrieved the header, the ManifestElement
helper class can be used to parse the value and discover the individual
class path entries. The various header attributes are defined in Constants
.
For example,
String header = bundle.getHeaders().get(Constants.BUNDLE_CLASSPATH); ManifestElement[] elements = ManifestElement.parseHeader( Constants.BUNDLE_CLASSPATH, header); if (elements == null) return; elements[0].getValue(); // the jar/dir containing the code ...
Note that this new structure does not include information on which packages are exported or present in the listed classpath entries. This information is no longer relevant.
See IPluginDescriptor
for information on the relationship between plug-in
descriptors and bundles.
This interface must only be used by plug-ins which explicitly require the org.eclipse.core.runtime.compatibility plug-in.
@Deprecated public interface ILibrary
Libraries are typed. The type is used to determine to which search path the library's
contribution should be added. The valid types are: CODE
and
RESOURCE
.
IPluginDescriptor.getRuntimeLibraries()
Modifier and Type | Field and Description |
---|---|
static String |
CODE
Deprecated.
As of Eclipse 3.0 library types are obsolete.
There is no replacement.
|
static String |
RESOURCE
Deprecated.
As of Eclipse 3.0 library types are obsolete.
There is no replacement.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getContentFilters()
Deprecated.
As of Eclipse 3.0 content filters are obsolete.
There is no replacement.
|
String[] |
getPackagePrefixes()
Deprecated.
As of Eclipse 3.0 package prefix filtering is obsolete.
There is no replacement.
|
IPath |
getPath()
Deprecated.
Given a manifest element corresponding to a classpath entry, the path
for the entry can be accessed by getting the value of the manifest element.
For example,
element.getValue(); // the jar/dir containing the code |
String |
getType()
Deprecated.
As of Eclipse 3.0 library types are obsolete.
There is no replacement.
|
boolean |
isExported()
Deprecated.
As of Eclipse 3.0 exporting an individual library is obsolete.
There is no replacement.
|
boolean |
isFullyExported()
Deprecated.
As of Eclipse 3.0 exporting an individual library is obsolete.
There is no replacement.
|
@Deprecated static final String CODE
@Deprecated static final String RESOURCE
@Deprecated String[] getContentFilters()
null
.
Each content filter identifies a specific class, or
a group of classes, using a notation and matching rules
equivalent to Java import
declarations
(e.g., "java.io.File", or "java.io.*"). Returns null
if the library is not exported, or it is fully exported
(no filtering).null
if none@Deprecated IPath getPath()
element.getValue(); // the jar/dir containing the code
IPluginDescriptor.getInstallURL()
@Deprecated String getType()
@Deprecated boolean isExported()
true
if the library is exported, false
if it is private@Deprecated boolean isFullyExported()
true
if the library is fully exported, and
false
if it is private or has filtered content@Deprecated String[] getPackagePrefixes()
null
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.