org.jetbrains.idea.maven.project.MavenProjectChanges Java Examples

The following examples show how to use org.jetbrains.idea.maven.project.MavenProjectChanges. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MavenMonitor.java    From spring-javaformat with Apache License 2.0 6 votes vote down vote up
private void attachListener(MavenProjectsManager mavenProjectsManager) {
	mavenProjectsManager.addProjectsTreeListener(new Listener() {

		@Override
		public void projectsUpdated(List<Pair<MavenProject, MavenProjectChanges>> updated,
				List<MavenProject> deleted) {
			check();
		}

		@Override
		public void projectResolved(Pair<MavenProject, MavenProjectChanges> projectWithChanges,
				NativeMavenProjectHolder nativeMavenProject) {
			check();
		}

		@Override
		public void pluginsResolved(MavenProject project) {
			check();
		}

	});
}
 
Example #2
Source File: MavenImporter.java    From intellij-spring-assistant with MIT License 5 votes vote down vote up
@Override
public void process(IdeModifiableModelsProvider ideModifiableModelsProvider, Module module,
    MavenRootModelAdapter mavenRootModelAdapter, MavenProjectsTree mavenProjectsTree,
    MavenProject mavenProject, MavenProjectChanges mavenProjectChanges,
    Map<MavenProject, String> map, List<MavenProjectsProcessorTask> processorTasks) {
  String skip = this.findConfigValue(mavenProject, "skip");
  if (!"true".equals(skip)) {
    processorTasks.add(new MavenProcessorTask(module));
  } else {
    debug(() -> log.debug(
        "Skipping index check for project " + module.getProject().getName() + " & module "
            + module.getName()));
  }
}
 
Example #3
Source File: QuarkusMavenLibraryImporter.java    From intellij-quarkus with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void preProcess(Module module, MavenProject mavenProject, MavenProjectChanges changes, IdeModifiableModelsProvider modifiableModelsProvider) {
}
 
Example #4
Source File: QuarkusMavenLibraryImporter.java    From intellij-quarkus with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void process(IdeModifiableModelsProvider modifiableModelsProvider, Module module, MavenRootModelAdapter rootModel, MavenProjectsTree mavenModel, MavenProject mavenProject, MavenProjectChanges changes, Map<MavenProject, String> mavenProjectToModuleName, List<MavenProjectsProcessorTask> postTasks) {
    postTasks.add(new QuarkusMavenProjectsProcessTask(module));
}
 
Example #5
Source File: MavenImporter.java    From intellij-spring-assistant with MIT License 4 votes vote down vote up
@Override
public void preProcess(Module module, MavenProject mavenProject,
    MavenProjectChanges mavenProjectChanges,
    IdeModifiableModelsProvider ideModifiableModelsProvider) {

}
 
Example #6
Source File: QuarkusFacetMavenImporter.java    From intellij-quarkus with Eclipse Public License 2.0 2 votes vote down vote up
@Override
protected void reimportFacet(IdeModifiableModelsProvider ideModifiableModelsProvider, Module module, MavenRootModelAdapter mavenRootModelAdapter, QuarkusFacet quarkusFacet, MavenProjectsTree mavenProjectsTree, MavenProject mavenProject, MavenProjectChanges mavenProjectChanges, Map<MavenProject, String> map, List<MavenProjectsProcessorTask> list) {

}
 
Example #7
Source File: MyProjectService.java    From MavenHelper with Apache License 2.0 votes vote down vote up
void projectResolved(@NotNull Pair<MavenProject, MavenProjectChanges> projectWithChanges, @Nullable NativeMavenProjectHolder nativeMavenProject);