public interface IClasspathManager
Modifier and Type | Field and Description |
---|---|
static String |
ARTIFACT_ID_ATTRIBUTE
Name of IClasspathEntry attribute that keeps artifactId of corresponding Maven artifact.
|
static String |
CLASSIFIER_ATTRIBUTE
Name of IClasspathEntry attribute that keeps classified corresponding Maven artifact.
|
static int |
CLASSPATH_DEFAULT
Maven dependency resolution scope constant indicating default scope.
|
static int |
CLASSPATH_RUNTIME
Maven dependency resolution scope constant indicating runtime scope.
|
static int |
CLASSPATH_TEST
Maven dependency resolution scope constant indicating test scope.
|
static String |
CONTAINER_ID
Maven Dependencies classpath container id
|
static String |
GROUP_ID_ATTRIBUTE
Name of IClasspathEntry attribute that keeps groupId of corresponding Maven artifact.
|
static String |
OPTIONALDEPENDENCY_ATTRIBUTE
Name of IClasspathEntry attribute that is set to
true for entries that correspond to optional Maven
dependency. |
static String |
POMDERIVED_ATTRIBUTE |
static String |
SCOPE_ATTRIBUTE
Name of IClasspathEntry attribute that keeps scope corresponding Maven artifact.
|
static String |
VERSION_ATTRIBUTE
Name of IClasspathEntry attribute that keeps version of corresponding Maven artifact.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.jdt.core.IClasspathEntry[] |
getClasspath(org.eclipse.core.resources.IProject project,
int scope,
boolean uniquePaths,
org.eclipse.core.runtime.IProgressMonitor monitor)
Calculates and returns Maven classpath of the project.
|
void |
scheduleDownload(org.eclipse.jdt.core.IPackageFragmentRoot fragment,
boolean downloadSources,
boolean downloadJavadoc)
Request download of sources and/or javadoc from Maven repositories by a background job (asynchronous execution).
|
void |
scheduleDownload(org.eclipse.core.resources.IProject project,
boolean downloadSources,
boolean downloadJavadoc)
Request download of sources and/or javadoc from Maven repositories by a background job for all classpath entries of
the project (asynchronous execution).
|
void |
updateClasspath(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
Calculates Maven classpath of the project using default dependency resolution scope and updates contents of Maven
Dependencies classpath container.
|
static final String CONTAINER_ID
static final String GROUP_ID_ATTRIBUTE
static final String ARTIFACT_ID_ATTRIBUTE
static final String VERSION_ATTRIBUTE
static final String CLASSIFIER_ATTRIBUTE
static final String SCOPE_ATTRIBUTE
static final String POMDERIVED_ATTRIBUTE
IClasspathEntryDescriptor.setPomDerived(boolean)
,
Constant Field Valuesstatic final String OPTIONALDEPENDENCY_ATTRIBUTE
true
for entries that correspond to optional Maven
dependency.static final int CLASSPATH_TEST
static final int CLASSPATH_RUNTIME
static final int CLASSPATH_DEFAULT
void scheduleDownload(org.eclipse.jdt.core.IPackageFragmentRoot fragment, boolean downloadSources, boolean downloadJavadoc)
void scheduleDownload(org.eclipse.core.resources.IProject project, boolean downloadSources, boolean downloadJavadoc)
org.eclipse.jdt.core.IClasspathEntry[] getClasspath(org.eclipse.core.resources.IProject project, int scope, boolean uniquePaths, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
project
- the project to calculate classpath forscope
- one of CLASPATH_* constants, that specifies Maven dependency resolution scope for the classpathuniquePaths
- enforce (true) or not to enforce (false) uniqueness of classpath entries paths.monitor
- progress monitororg.eclipse.core.runtime.CoreException
void updateClasspath(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor)
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.