Package org.eclipse.jdt.launching
Interface ILibraryLocationResolver
-
public interface ILibraryLocationResolverThis resolver allows contributors to provideLibraryLocationinformation for non-standard JRE / JDK libraries.
For example this resolver could be used to provide Javadoc and source locations for jars in the/extlocation 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 URLgetIndexLocation(IPath libraryPath)Returns theURLof the index for the given library ornull.URLgetJavadocLocation(IPath libraryPath)Returns theURLof the Javadoc for this library ornullIPathgetPackageRoot(IPath libraryPath)Returns the path inside thesourcezip file where packages names begin, must not benull- usePath.EMPTY
For example, if the source forjava.lang.Objectsource is found atsrc/java/lang/Object.javain the zip file, the package root would besrc.IPathgetSourcePath(IPath libraryPath)
-
-
-
Method Detail
-
getPackageRoot
IPath getPackageRoot(IPath libraryPath)
Returns the path inside thesourcezip file where packages names begin, must not benull- usePath.EMPTY
For example, if the source forjava.lang.Objectsource is found atsrc/java/lang/Object.javain the zip file, the package root would besrc.- Parameters:
libraryPath- the path to the library- Returns:
- the
IPathto the root of the source or the empty path, nevernull
-
getSourcePath
IPath getSourcePath(IPath libraryPath)
Returns theIPathof theziporjarfile containing the sources forlibrary.
Must not benull- usePath.EMPTY- Parameters:
libraryPath- the path to the library, must not benull- Returns:
- the
IPathto the source or the empty path, nevernull
-
getJavadocLocation
URL getJavadocLocation(IPath libraryPath)
Returns theURLof the Javadoc for this library ornull- Parameters:
libraryPath- the path to the library, must not benull- Returns:
- the Javadoc
URLornull
-
-