当前位置: 首页>>代码示例>>Java>>正文


Java MavenProjectChanges类代码示例

本文整理汇总了Java中org.jetbrains.idea.maven.project.MavenProjectChanges的典型用法代码示例。如果您正苦于以下问题:Java MavenProjectChanges类的具体用法?Java MavenProjectChanges怎么用?Java MavenProjectChanges使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


MavenProjectChanges类属于org.jetbrains.idea.maven.project包,在下文中一共展示了MavenProjectChanges类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: process

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void process(IdeModifiableModelsProvider modifiableModelsProvider,
                    Module module,
                    MavenRootModelAdapter rootModel,
                    MavenProjectsTree mavenModel,
                    MavenProject mavenProject,
                    MavenProjectChanges changes,
                    Map<MavenProject, String> mavenProjectToModuleName,
                    List<MavenProjectsProcessorTask> postTasks) {
  FACET_TYPE f = findFacet(modifiableModelsProvider.getModifiableFacetModel(module));
  if (f == null) return; // facet may has been removed between preProcess and process calls

  if (!isFacetDetectionDisabled(module.getProject())) {
    reimportFacet(modifiableModelsProvider, module, rootModel, f, mavenModel, mavenProject, changes, mavenProjectToModuleName, postTasks);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:FacetImporter.java

示例2: reimportFacet

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
protected void reimportFacet(
    IdeModifiableModelsProvider modelsProvider,
    Module module,
    MavenRootModelAdapter rootModel,
    AppEngineStandardFacet facet,
    MavenProjectsTree mavenTree,
    MavenProject mavenProject,
    MavenProjectChanges changes,
    Map<MavenProject, String> mavenProjectToModuleName,
    List<MavenProjectsProcessorTask> postTasks) {
  String version = getVersion(mavenProject);
  if (version != null) {
    AppEngineStandardWebIntegration.getInstance().setupDevServer();
    final String artifactName = module.getName() + ":war exploded";
    final Artifact webArtifact =
        modelsProvider.getModifiableArtifactModel().findArtifact(artifactName);
    AppEngineStandardWebIntegration.getInstance()
        .setupRunConfigurations(webArtifact, module, null /* existingConfiguration */);
  }
}
 
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-intellij,代码行数:22,代码来源:AppEngineFacetImporter.java

示例3: process

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void process(MavenModifiableModelsProvider mavenModifiableModelsProvider,
		Module module,
		MavenRootModelAdapter mavenRootModelAdapter,
		MavenProjectsTree mavenProjectsTree,
		MavenProject mavenProject,
		MavenProjectChanges mavenProjectChanges,
		Map<MavenProject, String> map,
		List<MavenProjectsProcessorTask> list)
{
	GoogleGuiceMutableModuleExtension extension = (GoogleGuiceMutableModuleExtension) enableModuleExtension(module, mavenModifiableModelsProvider, GoogleGuiceModuleExtension.class);

	List<MavenArtifact> artifactList = mavenProject.findDependencies("com.google.inject", "guice");
	for(MavenArtifact mavenArtifact : artifactList)
	{
		String version = mavenArtifact.getVersion();
		if(VersionComparatorUtil.compare(version, "3.0") >= 0)
		{
			extension.setUseJSR330(true);
		}
	}
}
 
开发者ID:consulo,项目名称:consulo-google-guice,代码行数:23,代码来源:GoogleGuiceMavenImporter.java

示例4: process

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@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()));
  }
}
 
开发者ID:1tontech,项目名称:intellij-spring-assistant,代码行数:15,代码来源:MavenImporter.java

示例5: doInit

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
public void doInit() {
  if (ApplicationManager.getApplication().isUnitTestMode()) {
    scheduleUpdateIndicesList();
  }

  getMavenProjectManager().addManagerListener(new MavenProjectsManager.Listener() {
    public void activated() {
      scheduleUpdateIndicesList();
    }

    public void projectsScheduled() {
    }

    @Override
    public void importAndResolveScheduled() {
    }
  });

  getMavenProjectManager().addProjectsTreeListener(new MavenProjectsTree.ListenerAdapter() {
    @Override
    public void projectsUpdated(List<Pair<MavenProject, MavenProjectChanges>> updated, List<MavenProject> deleted) {
      scheduleUpdateIndicesList();
    }

    @Override
    public void projectResolved(Pair<MavenProject, MavenProjectChanges> projectWithChanges,
                                NativeMavenProjectHolder nativeMavenProject) {
      scheduleUpdateIndicesList();
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:32,代码来源:MavenProjectIndicesManager.java

示例6: initComponent

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void initComponent() {
  if (!isNormalProject()) return;

  MavenProjectsManager.getInstance(myProject).addProjectsTreeListener(new MavenProjectsTree.ListenerAdapter() {
    @Override
    public void projectsUpdated(List<Pair<MavenProject, MavenProjectChanges>> updated, List<MavenProject> deleted) {
      updateTabName(MavenUtil.collectFirsts(updated));
    }
  });
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:12,代码来源:MavenEditorTabTitleUpdater.java

示例7: process

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void process(IdeModifiableModelsProvider modifiableModelsProvider, Module module, MavenRootModelAdapter rootModel,
                    MavenProjectsTree mavenModel,
                    MavenProject mavenProject,
                    MavenProjectChanges changes,
                    Map<MavenProject, String> mavenProjectToModuleName,
                    List<MavenProjectsProcessorTask> postTasks) {
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:GroovyImporter.java

示例8: preProcess

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void preProcess(Module module,
                       MavenProject mavenProject,
                       MavenProjectChanges changes,
                       IdeModifiableModelsProvider modifiableModelsProvider) {
  prepareImporter(mavenProject);

  if (!isFacetDetectionDisabled(module.getProject())) {
    disableFacetAutodetection(module, modifiableModelsProvider);
    ensureFacetExists(module, mavenProject, modifiableModelsProvider);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:13,代码来源:FacetImporter.java

示例9: reimportFacet

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
protected abstract void reimportFacet(IdeModifiableModelsProvider modelsProvider,
Module module,
MavenRootModelAdapter rootModel,
FACET_TYPE facet,
MavenProjectsTree mavenTree,
MavenProject mavenProject,
MavenProjectChanges changes,
Map<MavenProject, String> mavenProjectToModuleName,
List<MavenProjectsProcessorTask> postTasks);
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:10,代码来源:FacetImporter.java

示例10: reimportFacet

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
protected void reimportFacet(MavenModifiableModelsProvider modelsProvider,
                             Module module,
                             MavenRootModelAdapter rootModel,
                             XmlBeansFacet facet,
                             MavenProjectsTree mavenTree,
                             MavenProject mavenProject,
                             MavenProjectChanges changes,
                             Map<MavenProject, String> mavenProjectToModuleName,
                             List<MavenProjectsProcessorTask> postTasks) {
  configureXmlBeansFacet(facet, mavenProject, module);
}
 
开发者ID:bsblabs,项目名称:intellij-xmlbeans-plugin,代码行数:13,代码来源:XmlBeansMavenImporter.java

示例11: process

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void process(MavenModifiableModelsProvider modifiableModelsProvider, Module module, MavenRootModelAdapter rootModel,
                    MavenProjectsTree mavenModel,
                    MavenProject mavenProject,
                    MavenProjectChanges changes,
                    Map<MavenProject, String> mavenProjectToModuleName,
                    List<MavenProjectsProcessorTask> postTasks) {
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:GroovyImporter.java

示例12: preProcess

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void preProcess(Module module,
                       MavenProject mavenProject,
                       MavenProjectChanges changes,
                       MavenModifiableModelsProvider modifiableModelsProvider) {
  prepareImporter(mavenProject);
  disableFacetAutodetection(module, modifiableModelsProvider);
  ensureFacetExists(module, mavenProject, modifiableModelsProvider);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:10,代码来源:FacetImporter.java

示例13: process

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void process(MavenModifiableModelsProvider modifiableModelsProvider,
                    Module module,
                    MavenRootModelAdapter rootModel,
                    MavenProjectsTree mavenModel,
                    MavenProject mavenProject,
                    MavenProjectChanges changes,
                    Map<MavenProject, String> mavenProjectToModuleName,
                    List<MavenProjectsProcessorTask> postTasks) {
  FACET_TYPE f = findFacet(modifiableModelsProvider.getFacetModel(module));
  if (f == null) return; // facet may has been removed between preProcess and process calls

  reimportFacet(modifiableModelsProvider, module, rootModel, f, mavenModel, mavenProject, changes, mavenProjectToModuleName, postTasks);
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:15,代码来源:FacetImporter.java

示例14: reimportFacet

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
protected abstract void reimportFacet(MavenModifiableModelsProvider modelsProvider,
Module module,
MavenRootModelAdapter rootModel,
FACET_TYPE facet,
MavenProjectsTree mavenTree,
MavenProject mavenProject,
MavenProjectChanges changes,
Map<MavenProject, String> mavenProjectToModuleName,
List<MavenProjectsProcessorTask> postTasks);
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:10,代码来源:FacetImporter.java

示例15: process

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void process(IdeModifiableModelsProvider modelsProvider,
                    Module module,
                    MavenRootModelAdapter mavenRootModelAdapter,
                    MavenProjectsTree mavenProjectsTree,
                    MavenProject mavenProject,
                    MavenProjectChanges mavenProjectChanges,
                    Map<MavenProject, String> mavenProjectStringMap,
                    List<MavenProjectsProcessorTask> mavenProjectsProcessorTasks) {

  // Remove all entries with groupIds starting from com.jetbrains.intellij.
  // They should be provided through IntelliJ SDK
  ModifiableRootModel rootModel = mavenRootModelAdapter.getRootModel();
  List<Library> libraries = new ArrayList<Library>();

  for (OrderEntry entry : rootModel.getOrderEntries()) {
    if (entry instanceof LibraryOrderEntry) {
      LibraryOrderEntry loe = (LibraryOrderEntry) entry;
      String libraryName = loe.getLibraryName();
      if (libraryName != null && libraryName.startsWith("Maven: " + IDEA_SDK_PREFIX)) {
        rootModel.removeOrderEntry(entry);
        libraries.add(loe.getLibrary());
      }
    }
  }

  updateManifestLocation(module, mavenProject);

  // Workaround for Maven plugin bug which does not allow newly created unused libraries to be properly removed
  // We schedule our own post-processing task that will clean out unused libraries
  scheduleAnalyzeLibraryTask(mavenProjectsProcessorTasks, libraries);
}
 
开发者ID:Guidewire,项目名称:devkit-maven-support,代码行数:33,代码来源:PluginModuleImporter.java


注:本文中的org.jetbrains.idea.maven.project.MavenProjectChanges类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。