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)
Removed entries that match EntryFilter (i.e.
|
List<IClasspathEntryDescriptor> |
removeEntry(org.eclipse.core.runtime.IPath path)
Removes entry with specified path from the classpath.
|
public ClasspathDescriptor(boolean uniquePaths)
public ClasspathDescriptor(org.eclipse.jdt.core.IJavaProject javaProject) throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelException
public boolean containsPath(org.eclipse.core.runtime.IPath path)
containsPath
in interface IClasspathDescriptor
public ClasspathEntryDescriptor addSourceEntry(org.eclipse.core.runtime.IPath sourcePath, org.eclipse.core.runtime.IPath outputLocation, boolean generated)
IClasspathDescriptor
addSourceEntry(sourcePath, outputLocation, new IPath[0], new IPath[0], generated)
addSourceEntry
in interface IClasspathDescriptor
public List<IClasspathEntryDescriptor> removeEntry(org.eclipse.core.runtime.IPath path)
IClasspathDescriptor
removeEntry
in interface IClasspathDescriptor
public List<IClasspathEntryDescriptor> removeEntry(IClasspathDescriptor.EntryFilter filter)
IClasspathDescriptor
removeEntry
in interface IClasspathDescriptor
public 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)
IClasspathDescriptor
addSourceEntry
in interface IClasspathDescriptor
public org.eclipse.jdt.core.IClasspathEntry[] getEntries()
IClasspathDescriptor
getEntries
in interface IClasspathDescriptor
public List<IClasspathEntryDescriptor> getEntryDescriptors()
IClasspathDescriptor
getEntryDescriptors
in interface IClasspathDescriptor
public ClasspathEntryDescriptor addEntry(org.eclipse.jdt.core.IClasspathEntry cpe)
IClasspathDescriptor
addEntry
in interface IClasspathDescriptor
public ClasspathEntryDescriptor addProjectEntry(org.apache.maven.artifact.Artifact a, IMavenProjectFacade projectFacade)
IClasspathDescriptor
addProjectEntry
in interface IClasspathDescriptor
public ClasspathEntryDescriptor addProjectEntry(org.eclipse.core.runtime.IPath entryPath)
IClasspathDescriptor
addProjectEntry
in interface IClasspathDescriptor
public ClasspathEntryDescriptor addLibraryEntry(org.apache.maven.artifact.Artifact artifact, org.eclipse.core.runtime.IPath srcPath, org.eclipse.core.runtime.IPath srcRoot, String javaDocUrl)
IClasspathDescriptor
addLibraryEntry
in interface IClasspathDescriptor
public ClasspathEntryDescriptor addLibraryEntry(org.eclipse.core.runtime.IPath entryPath)
IClasspathDescriptor
addLibraryEntry
in interface IClasspathDescriptor
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.