• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java MavenProjectChanges类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: 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) {
    FacetManager facetManager = FacetManager.getInstance(module);
    ModifiableFacetModel facetModel = modifiableModelsProvider.getModifiableFacetModel(module);
    Set<String> targetTypes = new HashSet<>();
    for (MavenPlugin mavenPlugin : mavenProject.getPlugins()) {
        if (mavenPlugin.getGroupId().equals(myPluginGroupID)
                && mavenPlugin.getArtifactId().equals(myPluginArtifactID)) {
            updateConfiguration(mavenPlugin, facetModel, facetManager, targetTypes);
        }
    }
}
 
开发者ID:konsoletyper,项目名称:teavm,代码行数:16,代码来源:TeaVMMavenImporter.java


示例17: preProcess

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

}
 
开发者ID:consulo,项目名称:consulo-javaee,代码行数:10,代码来源:WarMavenImporter.java


示例18: process

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


	ArtifactTemplate.NewArtifactConfiguration explodedArtifactConfiguration = ExplodedWarArtifactTemplate.doCreateArtifactTemplate(module,
			mavenModifiableModelsProvider.getPackagingElementResolvingContext());

	ModifiableArtifactModel artifactModel = mavenModifiableModelsProvider.getArtifactModel();

	Artifact artifact = artifactModel.findArtifact(explodedArtifactConfiguration.getArtifactName());
	if(artifact != null)
	{
		artifactModel.removeArtifact(artifact);
	}

	artifact = artifactModel.addArtifact(explodedArtifactConfiguration.getArtifactName(), explodedArtifactConfiguration.getArtifactType(),
			explodedArtifactConfiguration.getRootElement());

	ArtifactTemplate.NewArtifactConfiguration warArtifactConfiguration = WarArtifactTemplate.doCreateArtifactTemplate(artifact,
			mavenModifiableModelsProvider.getPackagingElementResolvingContext());

	Artifact warArtifact = artifactModel.findArtifact(warArtifactConfiguration.getArtifactName());
	if(warArtifact != null)
	{
		artifactModel.removeArtifact(warArtifact);
	}

	artifactModel.addArtifact(warArtifactConfiguration.getArtifactName(), warArtifactConfiguration.getArtifactType(),
			warArtifactConfiguration.getRootElement());
}
 
开发者ID:consulo,项目名称:consulo-javaee,代码行数:41,代码来源:WarMavenImporter.java


示例19: preProcess

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

}
 
开发者ID:1tontech,项目名称:intellij-spring-assistant,代码行数:7,代码来源:MavenImporter.java


示例20: projectsUpdated

import org.jetbrains.idea.maven.project.MavenProjectChanges; //导入依赖的package包/类
@Override
public void projectsUpdated(List<Pair<MavenProject, MavenProjectChanges>> updated, List<MavenProject> deleted) {
  scheduleKeymapUpdate(MavenUtil.collectFirsts(updated), true);
  scheduleKeymapUpdate(deleted, false);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:MavenShortcutsManager.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Query类代码示例发布时间:2022-05-22
下一篇:
Java StorageComponent类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap