public class ProjectConfigurationManager extends Object implements IProjectConfigurationManager, IMavenProjectChangedListener, org.eclipse.core.resources.IResourceChangeListener
| Constructor and Description |
|---|
ProjectConfigurationManager(IMaven maven,
ProjectRegistryManager projectManager,
MavenModelManager mavenModelManager,
IMavenMarkerManager mavenMarkerManager,
IMavenConfiguration mavenConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMavenBuilder(org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IProjectDescription description,
org.eclipse.core.runtime.IProgressMonitor monitor)
Adds the maven builder to the specified project.
|
Set<MavenProjectInfo> |
collectProjects(Collection<MavenProjectInfo> projects) |
void |
createArchetypeProject(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath location,
org.apache.maven.archetype.catalog.Archetype archetype,
String groupId,
String artifactId,
String version,
String javaPackage,
Properties properties,
ProjectImportConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
List<org.eclipse.core.resources.IProject> |
createArchetypeProjects(org.eclipse.core.runtime.IPath location,
org.apache.maven.archetype.catalog.Archetype archetype,
String groupId,
String artifactId,
String version,
String javaPackage,
Properties properties,
ProjectImportConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates project structure using Archetype and then imports created project(s)
|
List<org.eclipse.core.resources.IProject> |
createArchetypeProjects(org.eclipse.core.runtime.IPath location,
org.apache.maven.archetype.catalog.Archetype archetype,
String groupId,
String artifactId,
String version,
String javaPackage,
Properties properties,
ProjectImportConfiguration configuration,
IProjectCreationListener listener,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates project structure using Archetype and then imports created project(s)
|
static void |
createFolder(org.eclipse.core.resources.IFolder folder,
boolean derived)
Helper method which creates a folder and, recursively, all its parent folders.
|
void |
createSimpleProject(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath location,
org.apache.maven.model.Model model,
String[] directories,
ProjectImportConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
createSimpleProject(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath location,
org.apache.maven.model.Model model,
String[] directories,
ProjectImportConfiguration configuration,
IProjectCreationListener listener,
org.eclipse.core.runtime.IProgressMonitor monitor)
Creates simple Maven project
|
void |
disableMavenNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
enableMavenNature(org.eclipse.core.resources.IProject project,
ResolverConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor) |
ILifecycleMapping |
getLifecycleMapping(IMavenProjectFacade projectFacade) |
ResolverConfiguration |
getResolverConfiguration(org.eclipse.core.resources.IProject project)
PROVISIONAL
|
org.eclipse.core.runtime.jobs.ISchedulingRule |
getRule() |
List<IMavenProjectImportResult> |
importProjects(Collection<MavenProjectInfo> projectInfos,
ProjectImportConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor) |
List<IMavenProjectImportResult> |
importProjects(Collection<MavenProjectInfo> projectInfos,
ProjectImportConfiguration configuration,
IProjectCreationListener listener,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
mavenProjectChanged(MavenProjectChangedEvent[] events,
org.eclipse.core.runtime.IProgressMonitor monitor)
This method is called while holding workspace lock.
|
boolean |
removeMavenBuilder(org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IProjectDescription description,
org.eclipse.core.runtime.IProgressMonitor monitor)
Removes the maven builder from the specified project.
|
void |
resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event) |
boolean |
setResolverConfiguration(org.eclipse.core.resources.IProject project,
ResolverConfiguration configuration)
PROVISIONAL
|
void |
sortProjects(List<IMavenProjectFacade> facades,
org.eclipse.core.runtime.IProgressMonitor monitor) |
void |
updateProjectConfiguration(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor) |
Map<String,org.eclipse.core.runtime.IStatus> |
updateProjectConfiguration(MavenUpdateRequest request,
boolean updateConfiguration,
boolean cleanProjects,
boolean refreshFromLocal,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns project name to update status map.
|
Map<String,org.eclipse.core.runtime.IStatus> |
updateProjectConfiguration(MavenUpdateRequest request,
boolean updateConfiguration,
boolean cleanProjects,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns project name to update status map.
|
void |
updateProjectConfiguration(MavenUpdateRequest request,
org.eclipse.core.runtime.IProgressMonitor monitor) |
public ProjectConfigurationManager(IMaven maven, ProjectRegistryManager projectManager, MavenModelManager mavenModelManager, IMavenMarkerManager mavenMarkerManager, IMavenConfiguration mavenConfiguration)
public List<IMavenProjectImportResult> importProjects(Collection<MavenProjectInfo> projectInfos, ProjectImportConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
importProjects in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic List<IMavenProjectImportResult> importProjects(Collection<MavenProjectInfo> projectInfos, ProjectImportConfiguration configuration, IProjectCreationListener listener, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
importProjects in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic void sortProjects(List<IMavenProjectFacade> facades, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionpublic void updateProjectConfiguration(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
updateProjectConfiguration in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic void updateProjectConfiguration(MavenUpdateRequest request, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
updateProjectConfiguration in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic Map<String,org.eclipse.core.runtime.IStatus> updateProjectConfiguration(MavenUpdateRequest request, boolean updateConfiguration, boolean cleanProjects, org.eclipse.core.runtime.IProgressMonitor monitor)
public Map<String,org.eclipse.core.runtime.IStatus> updateProjectConfiguration(MavenUpdateRequest request, boolean updateConfiguration, boolean cleanProjects, boolean refreshFromLocal, org.eclipse.core.runtime.IProgressMonitor monitor)
public void enableMavenNature(org.eclipse.core.resources.IProject project,
ResolverConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
enableMavenNature in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic void disableMavenNature(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
disableMavenNature in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic boolean addMavenBuilder(org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IProjectDescription description,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
IProjectConfigurationManageraddMavenBuilder in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic boolean removeMavenBuilder(org.eclipse.core.resources.IProject project,
org.eclipse.core.resources.IProjectDescription description,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
IProjectConfigurationManagerremoveMavenBuilder in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic void createSimpleProject(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath location,
org.apache.maven.model.Model model,
String[] directories,
ProjectImportConfiguration configuration,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
createSimpleProject in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic void createSimpleProject(org.eclipse.core.resources.IProject project,
org.eclipse.core.runtime.IPath location,
org.apache.maven.model.Model model,
String[] directories,
ProjectImportConfiguration configuration,
IProjectCreationListener listener,
org.eclipse.core.runtime.IProgressMonitor monitor)
throws org.eclipse.core.runtime.CoreException
The following steps are executed in the given order:
createSimpleProject in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic static void createFolder(org.eclipse.core.resources.IFolder folder,
boolean derived)
throws org.eclipse.core.runtime.CoreException
folder - The folder to create.derived - true if folder should be marked as derivedorg.eclipse.core.runtime.CoreException - if creating the given folder or any of its parents fails.@Deprecated public void createArchetypeProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath location, org.apache.maven.archetype.catalog.Archetype archetype, String groupId, String artifactId, String version, String javaPackage, Properties properties, ProjectImportConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
createArchetypeProjects(IPath, Archetype, String, String, String, String, Properties, ProjectImportConfiguration, IProgressMonitor)createArchetypeProject in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic List<org.eclipse.core.resources.IProject> createArchetypeProjects(org.eclipse.core.runtime.IPath location, org.apache.maven.archetype.catalog.Archetype archetype, String groupId, String artifactId, String version, String javaPackage, Properties properties, ProjectImportConfiguration configuration, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
createArchetypeProjects in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic List<org.eclipse.core.resources.IProject> createArchetypeProjects(org.eclipse.core.runtime.IPath location, org.apache.maven.archetype.catalog.Archetype archetype, String groupId, String artifactId, String version, String javaPackage, Properties properties, ProjectImportConfiguration configuration, IProjectCreationListener listener, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
createArchetypeProjects in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic Set<MavenProjectInfo> collectProjects(Collection<MavenProjectInfo> projects)
collectProjects in interface IProjectConfigurationManagerpublic org.eclipse.core.runtime.jobs.ISchedulingRule getRule()
getRule in interface IProjectConfigurationManagerpublic void mavenProjectChanged(MavenProjectChangedEvent[] events, org.eclipse.core.runtime.IProgressMonitor monitor)
IMavenProjectChangedListenermavenProjectChanged in interface IMavenProjectChangedListenerpublic ILifecycleMapping getLifecycleMapping(IMavenProjectFacade projectFacade) throws org.eclipse.core.runtime.CoreException
getLifecycleMapping in interface IProjectConfigurationManagerorg.eclipse.core.runtime.CoreExceptionpublic void resourceChanged(org.eclipse.core.resources.IResourceChangeEvent event)
resourceChanged in interface org.eclipse.core.resources.IResourceChangeListenerpublic ResolverConfiguration getResolverConfiguration(org.eclipse.core.resources.IProject project)
IProjectConfigurationManagergetResolverConfiguration in interface IProjectConfigurationManagerpublic boolean setResolverConfiguration(org.eclipse.core.resources.IProject project,
ResolverConfiguration configuration)
IProjectConfigurationManagersetResolverConfiguration in interface IProjectConfigurationManagerCopyright © 2005–2021 Eclipse Foundation. All rights reserved.