public abstract class AbstractJavaProjectConfigurator extends AbstractProjectConfigurator implements IJavaProjectConfigurator
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPILER_PLUGIN_ARTIFACT_ID |
static String |
COMPILER_PLUGIN_GROUP_ID |
protected static String |
DEFAULT_COMPILER_LEVEL |
protected static LinkedHashMap<String,String> |
ENVIRONMENTS |
protected static List<String> |
RELEASES |
protected static List<String> |
SOURCES |
protected static List<String> |
TARGETS |
ATTR_CLASS, ATTR_ID, ATTR_NAME, markerManager, maven, mavenConfiguration, projectManager| Constructor and Description |
|---|
AbstractJavaProjectConfigurator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCustomClasspathEntries(org.eclipse.jdt.core.IJavaProject javaProject,
IClasspathDescriptor classpath) |
protected void |
addJavaNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected void |
addJavaProjectOptions(Map<String,String> options,
ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected void |
addJREClasspathContainer(IClasspathDescriptor classpath,
String environmentId) |
protected void |
addMavenClasspathContainer(IClasspathDescriptor classpath) |
protected void |
addProjectSourceFolders(IClasspathDescriptor classpath,
ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
configure(ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor)
Configures Eclipse project passed in ProjectConfigurationRequest, using information from Maven project and other
configuration request parameters
|
void |
configureClasspath(IMavenProjectFacade facade,
IClasspathDescriptor classpath,
org.eclipse.core.runtime.IProgressMonitor monitor)
Configures *Maven* project classpath, i.e.
|
void |
configureRawClasspath(ProjectConfigurationRequest request,
IClasspathDescriptor classpath,
org.eclipse.core.runtime.IProgressMonitor monitor)
Configures *JDT* project classpath, i.e.
|
protected List<org.apache.maven.plugin.MojoExecution> |
getCompilerMojoExecutions(ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected String |
getDefaultSourceLevel() |
protected String |
getDefaultTargetLevel(String source) |
protected String |
getExecutionEnvironmentId(Map<String,String> options) |
protected org.eclipse.core.resources.IFolder |
getFolder(org.eclipse.core.resources.IProject project,
String absolutePath) |
protected org.eclipse.core.resources.IContainer |
getOutputLocation(ProjectConfigurationRequest request,
org.eclipse.core.resources.IProject project) |
protected org.eclipse.core.runtime.IPath |
getProjectRelativePath(org.eclipse.core.resources.IProject project,
String absolutePath) |
protected void |
invokeJavaProjectConfigurators(IClasspathDescriptor classpath,
ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected boolean |
isCompileExecution(org.apache.maven.plugin.MojoExecution execution) |
protected boolean |
isTestCompileExecution(org.apache.maven.plugin.MojoExecution execution) |
void |
unconfigure(ProjectConfigurationRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor)
Removes Maven specific configuration from the project passed in ProjectConfigurationRequest
|
addNature, addNature, assertHasNature, equals, getBuildParticipant, getConfiguratorExecutions, getId, getMojoExecutions, getName, getParameterValue, getParameterValue, hasConfigurationChanged, hashCode, mavenProjectChanged, mavenProjectChanged, setInitializationData, setMarkerManager, setMavenConfiguration, setProjectManager, toStringpublic static final String COMPILER_PLUGIN_ARTIFACT_ID
public static final String COMPILER_PLUGIN_GROUP_ID
protected static final LinkedHashMap<String,String> ENVIRONMENTS
protected static final String DEFAULT_COMPILER_LEVEL
public void configure(ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
AbstractProjectConfiguratorShould be implemented by subclass
configure in class AbstractProjectConfiguratorrequest - a project configuration requestmonitor - a progress monitororg.eclipse.core.runtime.CoreExceptionprotected org.eclipse.core.resources.IContainer getOutputLocation(ProjectConfigurationRequest request, org.eclipse.core.resources.IProject project)
protected void addJavaNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionprotected void addCustomClasspathEntries(org.eclipse.jdt.core.IJavaProject javaProject,
IClasspathDescriptor classpath)
throws org.eclipse.jdt.core.JavaModelException
org.eclipse.jdt.core.JavaModelExceptionprotected void invokeJavaProjectConfigurators(IClasspathDescriptor classpath, ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionprotected void addJREClasspathContainer(IClasspathDescriptor classpath, String environmentId)
protected void addMavenClasspathContainer(IClasspathDescriptor classpath)
protected void addProjectSourceFolders(IClasspathDescriptor classpath, ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionprotected boolean isTestCompileExecution(org.apache.maven.plugin.MojoExecution execution)
protected boolean isCompileExecution(org.apache.maven.plugin.MojoExecution execution)
protected void addJavaProjectOptions(Map<String,String> options, ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionprotected String getDefaultSourceLevel()
protected List<org.apache.maven.plugin.MojoExecution> getCompilerMojoExecutions(ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic void unconfigure(ProjectConfigurationRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
AbstractProjectConfiguratorunconfigure in class AbstractProjectConfiguratorrequest - a project un-configuration requestmonitor - a progress monitororg.eclipse.core.runtime.CoreExceptionprotected org.eclipse.core.resources.IFolder getFolder(org.eclipse.core.resources.IProject project,
String absolutePath)
protected org.eclipse.core.runtime.IPath getProjectRelativePath(org.eclipse.core.resources.IProject project,
String absolutePath)
public void configureClasspath(IMavenProjectFacade facade, IClasspathDescriptor classpath, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IJavaProjectConfiguratorconfigureClasspath in interface IJavaProjectConfiguratororg.eclipse.core.runtime.CoreExceptionpublic void configureRawClasspath(ProjectConfigurationRequest request, IClasspathDescriptor classpath, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IJavaProjectConfiguratorconfigureRawClasspath in interface IJavaProjectConfiguratororg.eclipse.core.runtime.CoreExceptionCopyright © 2005–2021 Eclipse Foundation. All rights reserved.