From 8dcd32b71fe7dc333d3c4d782d18d7de1655807c Mon Sep 17 00:00:00 2001 From: nik Date: Mon, 11 Mar 2019 12:22:57 +0300 Subject: [PATCH] java: make JavaIdePlugin.xml consistent with PlatformLangPlugin.xml Move registration of extensions and services which are present in PlatformLangPlugin.xml (and therefore included in all small IDEs) to the beginning of JavaIdePlugin.xml. Those which have special implementation in IntelliJ IDEA are now explicitly override the default implementation. This is a preliminary step to reuse PlatformLangPlugin.xml in IntelliJ IDEA as well to make all IDEs consistent and avoid duplication. This is also needed to properly extract Java support to a separate plugin (IDEA-195719). --- java/java-impl/src/META-INF/JavaPlugin.xml | 2 +- resources/src/META-INF/JavaIdePlugin.xml | 113 ++++++++++++++------- 2 files changed, 76 insertions(+), 39 deletions(-) diff --git a/java/java-impl/src/META-INF/JavaPlugin.xml b/java/java-impl/src/META-INF/JavaPlugin.xml index 2922441f3eee..5ba3a37debd2 100644 --- a/java/java-impl/src/META-INF/JavaPlugin.xml +++ b/java/java-impl/src/META-INF/JavaPlugin.xml @@ -380,7 +380,7 @@ - + diff --git a/resources/src/META-INF/JavaIdePlugin.xml b/resources/src/META-INF/JavaIdePlugin.xml index 30bfbad410f3..7b11781c2b8d 100644 --- a/resources/src/META-INF/JavaIdePlugin.xml +++ b/resources/src/META-INF/JavaIdePlugin.xml @@ -41,6 +41,59 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -339,7 +392,8 @@ + serviceImplementation="com.intellij.ide.RecentProjectsManagerBase" + overrides="true"/> @@ -364,9 +418,8 @@ serviceImplementation="com.intellij.facet.impl.ui.FacetEditorsFactoryImpl"/> - - + serviceImplementation="com.intellij.openapi.projectRoots.impl.JavaAwareProjectJdkTableImpl" + overrides="true"/> @@ -390,9 +443,6 @@ serviceImplementation="com.intellij.packaging.impl.artifacts.ArtifactBySourceFileFinderImpl"/> - - - - + serviceImplementation="com.intellij.openapi.vcs.impl.ModuleVcsPathPresenter" + overrides="true"/> @@ -428,7 +475,6 @@ - @@ -441,11 +487,6 @@ - - - - - - @@ -552,7 +590,6 @@ order="after compileBeforeRunNoErrorCheck"/> - @@ -572,7 +609,8 @@ serviceImplementation="com.intellij.openapi.file.exclude.ProjectPlainTextFileTypeManager"/> + serviceImplementation="com.intellij.openapi.roots.IdeaModifiableModelsProvider" + overrides="true"/> - - - - @@ -774,7 +807,8 @@ + serviceImplementation="com.intellij.openapi.roots.ui.configuration.IdeaProjectSettingsService" + overrides="true"/> @@ -789,9 +823,6 @@ implementationClass="com.intellij.compiler.chainsSearch.completion.MethodChainWeigher"/> - - @@ -815,7 +846,8 @@ + serviceImplementation="com.intellij.profile.codeInspection.JavaAwareInspectionProfileManager" + overrides="true"/> @@ -823,15 +855,20 @@ serviceImplementation="com.intellij.openapi.module.impl.JavaAwareModuleTypeManagerImpl" overrides="true"/> + serviceImplementation="com.intellij.ide.projectView.impl.JavaProjectViewDirectoryHelper" + overrides="true"/> + serviceImplementation="com.intellij.usages.impl.rules.PackageGroupingRule" + overrides="true"/> + serviceImplementation="com.intellij.psi.impl.file.PsiJavaDirectoryFactory" + overrides="true"/> + serviceImplementation="com.intellij.refactoring.openapi.impl.JavaRefactoringFactoryImpl" + overrides="true"/> + serviceImplementation="com.intellij.ide.todo.nodes.TodoJavaTreeHelper" + overrides="true"/>