mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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).
This commit is contained in:
@@ -380,7 +380,7 @@
|
||||
<refactoring.moveHandler implementation="com.intellij.refactoring.move.moveInner.MoveInnerToUpperHandler"/>
|
||||
<refactoring.moveHandler implementation="com.intellij.refactoring.move.moveInstanceMethod.MoveInstanceMethodHandlerDelegate"/>
|
||||
<refactoring.moveHandler implementation="com.intellij.refactoring.move.moveMembers.MoveMembersHandler"/>
|
||||
<refactoring.moveHandler implementation="com.intellij.refactoring.move.moveFilesOrDirectories.JavaMoveFilesOrDirectoriesHandler" id="moveJavaFileOrDir"/>
|
||||
<refactoring.moveHandler implementation="com.intellij.refactoring.move.moveFilesOrDirectories.JavaMoveFilesOrDirectoriesHandler" id="moveJavaFileOrDir" order="before moveFileOrDir"/>
|
||||
<refactoring.moveHandler implementation="com.intellij.refactoring.move.moveClassesOrPackages.JavaMoveClassesOrPackagesHandler" order="before moveJavaFileOrDir"/>
|
||||
<refactoring.copyHandler implementation="com.intellij.refactoring.copy.CopyClassesHandler" order="before copyFilesOrDirectories"/>
|
||||
<saveFileAsTemplateHandler implementation="com.intellij.ide.fileTemplates.SaveJavaAsTemplateHandler"/>
|
||||
|
||||
@@ -41,6 +41,59 @@
|
||||
<xi:include href="/META-INF/LangExtensions.xml" xpointer="xpointer(/idea-plugin/extensions/*)"/>
|
||||
<xi:include href="/META-INF/VcsExtensions.xml" xpointer="xpointer(/idea-plugin/extensions/*)"/>
|
||||
<xi:include href="/META-INF/ExternalSystemExtensions.xml" xpointer="xpointer(/idea-plugin/extensions/*)"/>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.ide.RecentProjectsManager"
|
||||
serviceImplementation="com.intellij.ide.AttachedModuleAwareRecentProjectsManager"/>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.openapi.projectRoots.ProjectJdkTable"
|
||||
serviceImplementation="com.intellij.openapi.projectRoots.impl.ProjectJdkTableImpl"/>
|
||||
<applicationService serviceInterface="com.intellij.codeInsight.TargetElementUtil"
|
||||
serviceImplementation="com.intellij.codeInsight.TargetElementUtil"/>
|
||||
<applicationService serviceInterface="com.intellij.profile.codeInspection.InspectionProfileManager"
|
||||
serviceImplementation="com.intellij.codeInspection.ex.ApplicationInspectionProfileManager"/>
|
||||
|
||||
<exportable serviceInterface="com.intellij.openapi.projectRoots.ProjectJdkTable"/>
|
||||
|
||||
<projectService serviceInterface="com.intellij.openapi.roots.FileIndexFacade"
|
||||
serviceImplementation="com.intellij.openapi.roots.impl.ProjectFileIndexFacade"/>
|
||||
<projectService serviceInterface="com.intellij.openapi.vcs.impl.DefaultVcsRootPolicy"
|
||||
serviceImplementation="com.intellij.openapi.vcs.impl.ModuleDefaultVcsRootPolicy"/>
|
||||
|
||||
<projectOpenProcessor implementation="com.intellij.platform.PlatformProjectOpenProcessor" order="last"/>
|
||||
|
||||
<projectService serviceInterface="com.intellij.psi.impl.file.PsiDirectoryFactory"
|
||||
serviceImplementation="com.intellij.psi.impl.file.PsiDirectoryFactoryImpl"/>
|
||||
<projectService serviceInterface="com.intellij.ide.todo.nodes.TodoTreeHelper"
|
||||
serviceImplementation="com.intellij.ide.todo.nodes.TodoTreeHelper"/>
|
||||
<projectService serviceInterface="com.intellij.ide.projectView.impl.nodes.ProjectViewDirectoryHelper"
|
||||
serviceImplementation="com.intellij.ide.projectView.impl.nodes.ProjectViewDirectoryHelper"/>
|
||||
<projectService serviceInterface="com.intellij.openapi.roots.ui.configuration.ProjectSettingsService"
|
||||
serviceImplementation="com.intellij.openapi.roots.ui.configuration.ProjectSettingsService"/>
|
||||
<projectService serviceInterface="com.intellij.usages.impl.rules.DirectoryGroupingRule"
|
||||
serviceImplementation="com.intellij.usages.impl.rules.DirectoryGroupingRule"/>
|
||||
<projectService serviceInterface="com.intellij.refactoring.RefactoringFactory"
|
||||
serviceImplementation="com.intellij.refactoring.openapi.impl.RefactoringFactoryImpl"/>
|
||||
<projectService serviceInterface="com.intellij.openapi.vcs.impl.VcsPathPresenter"
|
||||
serviceImplementation="com.intellij.openapi.vcs.impl.PlatformVcsPathPresenter"/>
|
||||
<projectService serviceInterface="com.intellij.platform.ProjectBaseDirectory"
|
||||
serviceImplementation="com.intellij.platform.ProjectBaseDirectory"/>
|
||||
<projectService serviceImplementation="com.intellij.ide.bookmarks.BookmarkManager"/>
|
||||
|
||||
<moduleRendererFactory implementation="com.intellij.ide.util.PlatformModuleRendererFactory" order="last"/>
|
||||
<projectService serviceInterface="com.intellij.lang.injection.InjectedLanguageManager"
|
||||
serviceImplementation="com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl"/>
|
||||
<applicationService serviceInterface="com.intellij.openapi.roots.ModifiableModelsProvider"
|
||||
serviceImplementation="com.intellij.openapi.roots.PlatformModifiableModelsProvider"/>
|
||||
|
||||
<refactoring.copyHandler implementation="com.intellij.refactoring.copy.CopyFilesOrDirectoriesHandler" id="copyFilesOrDirectories"/>
|
||||
<refactoring.moveHandler implementation="com.intellij.refactoring.move.moveFilesOrDirectories.MoveFilesOrDirectoriesHandler"
|
||||
id="moveFileOrDir"/>
|
||||
|
||||
<programRunner implementation="com.intellij.execution.runners.DefaultRunProgramRunner" order="last"/>
|
||||
|
||||
<projectConfigurable groupId="editor" groupWeight="160" displayName="Inspections" id="Errors" provider="com.intellij.profile.codeInspection.ui.ErrorsConfigurableProviderImpl" order="before preferences.intentionPowerPack"/>
|
||||
<projectConfigurable groupId="appearance" groupWeight="111" instance="com.intellij.ide.util.scopeChooser.ScopeChooserConfigurable"
|
||||
id="project.scopes" key="scopes.display.name" bundle="messages.IdeBundle"/>
|
||||
</extensions>
|
||||
|
||||
<actions>
|
||||
@@ -339,7 +392,8 @@
|
||||
<gotoRelatedProvider implementation="com.intellij.testIntegration.GotoTestRelatedProvider"/>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.ide.RecentProjectsManager"
|
||||
serviceImplementation="com.intellij.ide.RecentProjectsManagerBase"/>
|
||||
serviceImplementation="com.intellij.ide.RecentProjectsManagerBase"
|
||||
overrides="true"/>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.util.descriptors.ConfigFileFactory"
|
||||
serviceImplementation="com.intellij.util.descriptors.impl.ConfigFileFactoryImpl"/>
|
||||
@@ -364,9 +418,8 @@
|
||||
serviceImplementation="com.intellij.facet.impl.ui.FacetEditorsFactoryImpl"/>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.openapi.projectRoots.ProjectJdkTable"
|
||||
serviceImplementation="com.intellij.openapi.projectRoots.impl.JavaAwareProjectJdkTableImpl"/>
|
||||
<exportable serviceInterface="com.intellij.openapi.projectRoots.ProjectJdkTable"/>
|
||||
|
||||
serviceImplementation="com.intellij.openapi.projectRoots.impl.JavaAwareProjectJdkTableImpl"
|
||||
overrides="true"/>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.execution.runners.ProcessProxyFactory"
|
||||
serviceImplementation="com.intellij.execution.runners.ProcessProxyFactoryImpl"/>
|
||||
@@ -390,9 +443,6 @@
|
||||
serviceImplementation="com.intellij.packaging.impl.artifacts.ArtifactBySourceFileFinderImpl"/>
|
||||
<applicationService serviceImplementation="com.intellij.packaging.impl.artifacts.InvalidArtifactType"/>
|
||||
|
||||
<projectService serviceInterface="com.intellij.lang.injection.InjectedLanguageManager"
|
||||
serviceImplementation="com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl"/>
|
||||
|
||||
<projectService serviceInterface="com.intellij.openapi.compiler.CompilerManager"
|
||||
serviceImplementation="com.intellij.compiler.CompilerManagerImpl"/>
|
||||
<projectService serviceInterface="com.intellij.compiler.options.ValidationConfiguration"
|
||||
@@ -411,12 +461,9 @@
|
||||
<changesGroupingPolicy key="module" id="module"
|
||||
implementationClass="com.intellij.openapi.vcs.changes.ui.ModuleChangesGroupingPolicy$Factory"/>
|
||||
|
||||
<projectService serviceInterface="com.intellij.openapi.vcs.impl.DefaultVcsRootPolicy"
|
||||
serviceImplementation="com.intellij.openapi.vcs.impl.ModuleDefaultVcsRootPolicy"/>
|
||||
<projectService serviceInterface="com.intellij.openapi.roots.FileIndexFacade"
|
||||
serviceImplementation="com.intellij.openapi.roots.impl.ProjectFileIndexFacade"/>
|
||||
<projectService serviceInterface="com.intellij.openapi.vcs.impl.VcsPathPresenter"
|
||||
serviceImplementation="com.intellij.openapi.vcs.impl.ModuleVcsPathPresenter"/>
|
||||
serviceImplementation="com.intellij.openapi.vcs.impl.ModuleVcsPathPresenter"
|
||||
overrides="true"/>
|
||||
|
||||
<projectService serviceInterface="com.intellij.compiler.impl.javaCompiler.javac.JavacConfiguration"
|
||||
serviceImplementation="com.intellij.compiler.impl.javaCompiler.javac.JavacConfiguration"/>
|
||||
@@ -428,7 +475,6 @@
|
||||
|
||||
<applicationService serviceInterface="com.intellij.openapi.roots.ui.configuration.libraries.LibraryPresentationManager"
|
||||
serviceImplementation="com.intellij.openapi.roots.ui.configuration.libraries.impl.LibraryPresentationManagerImpl"/>
|
||||
<projectService serviceImplementation="com.intellij.ide.bookmarks.BookmarkManager"/>
|
||||
|
||||
<daemon.highlightInfoFilter implementation="com.intellij.debugger.engine.evaluation.DebuggerHighlightFilter"/>
|
||||
<daemon.highlightInfoFilter implementation="com.intellij.codeInsight.daemon.impl.HighlightInfoFilterImpl"/>
|
||||
@@ -441,11 +487,6 @@
|
||||
<projectService serviceImplementation="com.intellij.openapi.roots.ui.configuration.projectRoot.GlobalLibrariesConfigurable"/>
|
||||
<projectService serviceImplementation="com.intellij.openapi.roots.ui.configuration.projectRoot.JdkListConfigurable"/>
|
||||
|
||||
<!-- Errors -->
|
||||
<!-- Show full error options configurable only in full IDEA - platform supports only default IDE profile for now -->
|
||||
<projectConfigurable groupId="editor" groupWeight="160" displayName="Inspections" id="Errors"
|
||||
provider="com.intellij.profile.codeInspection.ui.ErrorsConfigurableProviderImpl"/>
|
||||
|
||||
<!-- Compiler -->
|
||||
<projectConfigurable groupId="build" groupWeight="130" instance="com.intellij.compiler.options.CompilerConfigurable"
|
||||
id="project.propCompiler" order="after project"
|
||||
@@ -468,9 +509,6 @@
|
||||
id="Template Data Languages" key="template.data.language.configurable" bundle="messages.LangBundle"
|
||||
nonDefaultProject="true"/>
|
||||
|
||||
<!-- Scopes -->
|
||||
<projectConfigurable groupId="appearance" groupWeight="111" instance="com.intellij.ide.util.scopeChooser.ScopeChooserConfigurable"
|
||||
id="project.scopes" key="scopes.display.name" bundle="messages.IdeBundle"/>
|
||||
|
||||
<!-- Application Configurables -->
|
||||
|
||||
@@ -552,7 +590,6 @@
|
||||
order="after compileBeforeRunNoErrorCheck"/>
|
||||
<externalSystem.beforeRunTaskImporter implementation="com.intellij.compiler.options.CompileStepBeforeRunImporter"/>
|
||||
<programRunner id="defaultRunRunner" implementation="com.intellij.execution.impl.DefaultJavaProgramRunner"/>
|
||||
<programRunner implementation="com.intellij.execution.runners.DefaultRunProgramRunner" order="last"/>
|
||||
|
||||
<checkinHandlerFactory implementation="com.intellij.compiler.impl.vcs.UnloadedModulesCompilationCheckinHandler$Factory"/>
|
||||
|
||||
@@ -572,7 +609,8 @@
|
||||
serviceImplementation="com.intellij.openapi.file.exclude.ProjectPlainTextFileTypeManager"/>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.openapi.roots.ModifiableModelsProvider"
|
||||
serviceImplementation="com.intellij.openapi.roots.IdeaModifiableModelsProvider"/>
|
||||
serviceImplementation="com.intellij.openapi.roots.IdeaModifiableModelsProvider"
|
||||
overrides="true"/>
|
||||
<projectService serviceInterface="com.intellij.openapi.roots.ui.configuration.projectRoot.daemon.ProjectStructureProblemsSettings"
|
||||
serviceImplementation="com.intellij.openapi.roots.ui.configuration.projectRoot.daemon.ProjectStructureProblemsSettingsImpl"/>
|
||||
<applicationService serviceInterface="com.intellij.openapi.roots.ui.configuration.projectRoot.daemon.ProjectStructureProblemsSettings"
|
||||
@@ -708,11 +746,6 @@
|
||||
<internalFileTemplate name="package-info"/>
|
||||
<internalFileTemplate name="module-info"/>
|
||||
|
||||
<refactoring.copyHandler implementation="com.intellij.refactoring.copy.CopyFilesOrDirectoriesHandler" id="copyFilesOrDirectories"/>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.codeInsight.TargetElementUtil"
|
||||
serviceImplementation="com.intellij.codeInsight.TargetElementUtil"/>
|
||||
|
||||
<elementLookupRenderer implementation="com.intellij.codeInsight.lookup.impl.JavaElementLookupRenderer"/>
|
||||
|
||||
<projectViewPane implementation="com.intellij.ide.projectView.impl.PackageViewPane"/>
|
||||
@@ -774,7 +807,8 @@
|
||||
|
||||
<projectService serviceImplementation="com.intellij.openapi.roots.ui.configuration.ProjectStructureConfigurable"/>
|
||||
<projectService serviceInterface="com.intellij.openapi.roots.ui.configuration.ProjectSettingsService"
|
||||
serviceImplementation="com.intellij.openapi.roots.ui.configuration.IdeaProjectSettingsService"/>
|
||||
serviceImplementation="com.intellij.openapi.roots.ui.configuration.IdeaProjectSettingsService"
|
||||
overrides="true"/>
|
||||
|
||||
<projectWizard.projectCategory implementation="com.intellij.ide.projectWizard.ModuleTypeCategory$JavaSE"/>
|
||||
|
||||
@@ -789,9 +823,6 @@
|
||||
implementationClass="com.intellij.compiler.chainsSearch.completion.MethodChainWeigher"/>
|
||||
|
||||
<projectTemplate projectType="JAVA_MODULE" templatePath="resources/projectTemplates/Java/Command_Line_App.zip"/>
|
||||
<projectOpenProcessor implementation="com.intellij.platform.PlatformProjectOpenProcessor" order="last"/>
|
||||
<projectService serviceInterface="com.intellij.platform.ProjectBaseDirectory"
|
||||
serviceImplementation="com.intellij.platform.ProjectBaseDirectory"/>
|
||||
|
||||
<codeInsight.linkHandler prefix="#assignment/" handlerClass="com.intellij.codeInsight.intention.impl.config.AssignmentTooltipLinkHandler"/>
|
||||
<library.javaSourceRootDetector implementation="com.intellij.openapi.roots.ui.configuration.LibraryJavaSourceRootDetector"/>
|
||||
@@ -815,7 +846,8 @@
|
||||
</intentionAction>
|
||||
|
||||
<applicationService serviceInterface="com.intellij.profile.codeInspection.InspectionProfileManager"
|
||||
serviceImplementation="com.intellij.profile.codeInspection.JavaAwareInspectionProfileManager"/>
|
||||
serviceImplementation="com.intellij.profile.codeInspection.JavaAwareInspectionProfileManager"
|
||||
overrides="true"/>
|
||||
<applicationService serviceInterface="com.intellij.psi.impl.source.codeStyle.IndentHelper"
|
||||
serviceImplementation="com.intellij.psi.impl.source.codeStyle.JavaIndentHelper"
|
||||
overrides="true"/>
|
||||
@@ -823,15 +855,20 @@
|
||||
serviceImplementation="com.intellij.openapi.module.impl.JavaAwareModuleTypeManagerImpl"
|
||||
overrides="true"/>
|
||||
<projectService serviceInterface="com.intellij.ide.projectView.impl.nodes.ProjectViewDirectoryHelper"
|
||||
serviceImplementation="com.intellij.ide.projectView.impl.JavaProjectViewDirectoryHelper"/>
|
||||
serviceImplementation="com.intellij.ide.projectView.impl.JavaProjectViewDirectoryHelper"
|
||||
overrides="true"/>
|
||||
<projectService serviceInterface="com.intellij.usages.impl.rules.DirectoryGroupingRule"
|
||||
serviceImplementation="com.intellij.usages.impl.rules.PackageGroupingRule"/>
|
||||
serviceImplementation="com.intellij.usages.impl.rules.PackageGroupingRule"
|
||||
overrides="true"/>
|
||||
<projectService serviceInterface="com.intellij.psi.impl.file.PsiDirectoryFactory"
|
||||
serviceImplementation="com.intellij.psi.impl.file.PsiJavaDirectoryFactory"/>
|
||||
serviceImplementation="com.intellij.psi.impl.file.PsiJavaDirectoryFactory"
|
||||
overrides="true"/>
|
||||
<projectService serviceInterface="com.intellij.refactoring.RefactoringFactory"
|
||||
serviceImplementation="com.intellij.refactoring.openapi.impl.JavaRefactoringFactoryImpl"/>
|
||||
serviceImplementation="com.intellij.refactoring.openapi.impl.JavaRefactoringFactoryImpl"
|
||||
overrides="true"/>
|
||||
<projectService serviceInterface="com.intellij.ide.todo.nodes.TodoTreeHelper"
|
||||
serviceImplementation="com.intellij.ide.todo.nodes.TodoJavaTreeHelper"/>
|
||||
serviceImplementation="com.intellij.ide.todo.nodes.TodoJavaTreeHelper"
|
||||
overrides="true"/>
|
||||
</extensions>
|
||||
|
||||
<actions>
|
||||
|
||||
Reference in New Issue
Block a user