本文整理汇总了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);
}
}
示例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 */);
}
}
示例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);
}
}
}
示例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()));
}
}
示例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();
}
});
}
示例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));
}
});
}
示例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) {
}
示例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);
}
}
示例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);
示例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);
}
示例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) {
}
示例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);
}
示例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);
}
示例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);
示例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);
}