Package org.eclipse.jdt.launching
Interface ILibraryLocationResolver
public interface ILibraryLocationResolver
This resolver allows contributors to provide
For example this resolver could be used to provide Javadoc and source locations for jars in the
LibraryLocation 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:
-
Method Summary
Modifier and TypeMethodDescriptiongetIndexLocation(org.eclipse.core.runtime.IPath libraryPath) Returns theURLof the index for the given library ornull.getJavadocLocation(org.eclipse.core.runtime.IPath libraryPath) Returns theURLof the Javadoc for this library ornullorg.eclipse.core.runtime.IPathgetPackageRoot(org.eclipse.core.runtime.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.org.eclipse.core.runtime.IPathgetSourcePath(org.eclipse.core.runtime.IPath libraryPath) Returns theIPathof theziporjarfile containing the sources forlibrary.
-
Method Details
-
getPackageRoot
org.eclipse.core.runtime.IPath getPackageRoot(org.eclipse.core.runtime.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
org.eclipse.core.runtime.IPath getSourcePath(org.eclipse.core.runtime.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
Returns theURLof the Javadoc for this library ornull- Parameters:
libraryPath- the path to the library, must not benull- Returns:
- the Javadoc
URLornull
-
getIndexLocation
Returns theURLof the index for the given library ornull.- Parameters:
libraryPath- the path to the library, must not benull- Returns:
- the index
URLornull
-