public class ClasspathDescriptor extends Object implements IClasspathDescriptor
IClasspathDescriptor.EntryFilter| Constructor and Description |
|---|
ClasspathDescriptor(boolean uniquePaths) |
ClasspathDescriptor(org.eclipse.jdt.core.IJavaProject javaProject) |
| Modifier and Type | Method and Description |
|---|---|
ClasspathEntryDescriptor |
addEntry(org.eclipse.jdt.core.IClasspathEntry cpe)
Adds fully populated IClasspathEntry instance to the classpath.
|
ClasspathEntryDescriptor |
addLibraryEntry(org.apache.maven.artifact.Artifact artifact,
org.eclipse.core.runtime.IPath srcPath,
org.eclipse.core.runtime.IPath srcRoot,
String javaDocUrl)
Adds Maven artifact with corresponding sources and javadoc paths to the classpath.
|
ClasspathEntryDescriptor |
addLibraryEntry(org.eclipse.core.runtime.IPath entryPath)
Adds and returns new library entry to the classpath
|
ClasspathEntryDescriptor |
addProjectEntry(org.apache.maven.artifact.Artifact a,
IMavenProjectFacade projectFacade)
Adds worksapce Maven project dependency to the classpath
|
ClasspathEntryDescriptor |
addProjectEntry(org.eclipse.core.runtime.IPath entryPath)
Adds and returns new project classpath entry.
|
ClasspathEntryDescriptor |
addSourceEntry(org.eclipse.core.runtime.IPath sourcePath,
org.eclipse.core.runtime.IPath outputLocation,
boolean generated)
Convenience method, equivalent to
addSourceEntry(sourcePath, outputLocation, new IPath[0], new IPath[0], generated) |
ClasspathEntryDescriptor |
addSourceEntry(org.eclipse.core.runtime.IPath sourcePath,
org.eclipse.core.runtime.IPath outputLocation,
org.eclipse.core.runtime.IPath[] inclusion,
org.eclipse.core.runtime.IPath[] exclusion,
boolean generated)
Adds project source folder to the classpath.
|
boolean |
containsPath(org.eclipse.core.runtime.IPath path) |
org.eclipse.jdt.core.IClasspathEntry[] |
getEntries()
Renders classpath as IClasspathEntry[] array
|
List<IClasspathEntryDescriptor> |
getEntryDescriptors()
Returns underlying "live" list of IClasspathEntryDescriptor instances.
|
List<IClasspathEntryDescriptor> |
removeEntry(IClasspathDescriptor.EntryFilter filter)
Removes entries that match EntryFilter (i.e.
|
List<IClasspathEntryDescriptor> |
removeEntry(org.eclipse.core.runtime.IPath path)
Removes entry with specified path from the classpath.
|
IClasspathEntryDescriptor |
replaceEntry(IClasspathDescriptor.EntryFilter filter,
org.eclipse.jdt.core.IClasspathEntry cpe)
Replaces a single ClasspathEntry instance matched by filter.
|
void |
touchEntry(org.eclipse.core.runtime.IPath sourcePath)
Removes entry from stale entries list.
|
public ClasspathDescriptor(boolean uniquePaths)
public ClasspathDescriptor(org.eclipse.jdt.core.IJavaProject javaProject)
throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelExceptionpublic boolean containsPath(org.eclipse.core.runtime.IPath path)
containsPath in interface IClasspathDescriptorpublic ClasspathEntryDescriptor addSourceEntry(org.eclipse.core.runtime.IPath sourcePath, org.eclipse.core.runtime.IPath outputLocation, boolean generated)
IClasspathDescriptoraddSourceEntry(sourcePath, outputLocation, new IPath[0], new IPath[0], generated)addSourceEntry in interface IClasspathDescriptorpublic List<IClasspathEntryDescriptor> removeEntry(org.eclipse.core.runtime.IPath path)
IClasspathDescriptorremoveEntry in interface IClasspathDescriptorpublic List<IClasspathEntryDescriptor> removeEntry(IClasspathDescriptor.EntryFilter filter)
IClasspathDescriptorremoveEntry in interface IClasspathDescriptorpublic ClasspathEntryDescriptor addSourceEntry(org.eclipse.core.runtime.IPath sourcePath, org.eclipse.core.runtime.IPath outputLocation, org.eclipse.core.runtime.IPath[] inclusion, org.eclipse.core.runtime.IPath[] exclusion, boolean generated)
IClasspathDescriptoraddSourceEntry in interface IClasspathDescriptorpublic void touchEntry(org.eclipse.core.runtime.IPath sourcePath)
IClasspathDescriptortouchEntry in interface IClasspathDescriptorpublic org.eclipse.jdt.core.IClasspathEntry[] getEntries()
IClasspathDescriptorgetEntries in interface IClasspathDescriptorpublic List<IClasspathEntryDescriptor> getEntryDescriptors()
IClasspathDescriptorgetEntryDescriptors in interface IClasspathDescriptorpublic ClasspathEntryDescriptor addEntry(org.eclipse.jdt.core.IClasspathEntry cpe)
IClasspathDescriptoraddEntry in interface IClasspathDescriptorpublic IClasspathEntryDescriptor replaceEntry(IClasspathDescriptor.EntryFilter filter, org.eclipse.jdt.core.IClasspathEntry cpe)
IClasspathDescriptorreplaceEntry in interface IClasspathDescriptorpublic ClasspathEntryDescriptor addProjectEntry(org.apache.maven.artifact.Artifact a, IMavenProjectFacade projectFacade)
IClasspathDescriptoraddProjectEntry in interface IClasspathDescriptorpublic ClasspathEntryDescriptor addProjectEntry(org.eclipse.core.runtime.IPath entryPath)
IClasspathDescriptoraddProjectEntry in interface IClasspathDescriptorpublic ClasspathEntryDescriptor addLibraryEntry(org.apache.maven.artifact.Artifact artifact, org.eclipse.core.runtime.IPath srcPath, org.eclipse.core.runtime.IPath srcRoot, String javaDocUrl)
IClasspathDescriptoraddLibraryEntry in interface IClasspathDescriptorpublic ClasspathEntryDescriptor addLibraryEntry(org.eclipse.core.runtime.IPath entryPath)
IClasspathDescriptoraddLibraryEntry in interface IClasspathDescriptorCopyright © 2005–2021 Eclipse Foundation. All rights reserved.