Package org.eclipse.jdt.launching
Interface ILibraryLocationResolver
-
public interface ILibraryLocationResolver
This resolver allows contributors to provideLibraryLocation
information for non-standard JRE / JDK libraries.
For example this resolver could be used to provide Javadoc and source locations for jars in the/ext
location of a JRE / JDK- Since:
- 3.7
- See Also:
JavaRuntime.EXTENSION_POINT_LIBRARY_LOCATION_RESOLVERS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description URL
getIndexLocation(IPath libraryPath)
Returns theURL
of the index for the given library ornull
.URL
getJavadocLocation(IPath libraryPath)
Returns theURL
of the Javadoc for this library ornull
IPath
getPackageRoot(IPath libraryPath)
Returns the path inside thesource
zip file where packages names begin, must not benull
- usePath.EMPTY
For example, if the source forjava.lang.Object
source is found atsrc/java/lang/Object.java
in the zip file, the package root would besrc
.IPath
getSourcePath(IPath libraryPath)
-
-
-
Method Detail
-
getPackageRoot
IPath getPackageRoot(IPath libraryPath)
Returns the path inside thesource
zip file where packages names begin, must not benull
- usePath.EMPTY
For example, if the source forjava.lang.Object
source is found atsrc/java/lang/Object.java
in the zip file, the package root would besrc
.- Parameters:
libraryPath
- the path to the library- Returns:
- the
IPath
to the root of the source or the empty path, nevernull
-
getSourcePath
IPath getSourcePath(IPath libraryPath)
Returns theIPath
of thezip
orjar
file containing the sources forlibrary
.
Must not benull
- usePath.EMPTY
- Parameters:
libraryPath
- the path to the library, must not benull
- Returns:
- the
IPath
to the source or the empty path, nevernull
-
getJavadocLocation
URL getJavadocLocation(IPath libraryPath)
Returns theURL
of the Javadoc for this library ornull
- Parameters:
libraryPath
- the path to the library, must not benull
- Returns:
- the Javadoc
URL
ornull
-
-