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 theURL
of the index for the given library ornull
.getJavadocLocation
(org.eclipse.core.runtime.IPath libraryPath) Returns theURL
of the Javadoc for this library ornull
org.eclipse.core.runtime.IPath
getPackageRoot
(org.eclipse.core.runtime.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
.org.eclipse.core.runtime.IPath
getSourcePath
(org.eclipse.core.runtime.IPath libraryPath) Returns theIPath
of thezip
orjar
file containing the sources forlibrary
.
-
Method Details
-
getPackageRoot
org.eclipse.core.runtime.IPath getPackageRoot(org.eclipse.core.runtime.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
org.eclipse.core.runtime.IPath getSourcePath(org.eclipse.core.runtime.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
Returns theURL
of the Javadoc for this library ornull
- Parameters:
libraryPath
- the path to the library, must not benull
- Returns:
- the Javadoc
URL
ornull
-
getIndexLocation
Returns theURL
of the index for the given library ornull
.- Parameters:
libraryPath
- the path to the library, must not benull
- Returns:
- the index
URL
ornull
-