mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
align x.y.z extension point
references
This commit is contained in:
parent
2a9c41dde4
commit
31de5f7add
@ -388,7 +388,7 @@ Add implementation for `com.intellij.openapi.fileEditor.FileEditor.getFile()`
|
|||||||
`com.jetbrains.performancePlugin.CommandProvider.getCommands(Project)` method parameter `Project` removed
|
`com.jetbrains.performancePlugin.CommandProvider.getCommands(Project)` method parameter `Project` removed
|
||||||
: Project is now only accessible via `com.intellij.openapi.ui.playback.PlaybackContext.getProject()` since it may change during script execution.
|
: Project is now only accessible via `com.intellij.openapi.ui.playback.PlaybackContext.getProject()` since it may change during script execution.
|
||||||
|
|
||||||
JSON Widget suppressor EP `com.intellij.json.jsonWidgetSuppressor`
|
JSON Widget suppressor `com.intellij.json.jsonWidgetSuppressor` EP
|
||||||
: Override new method [`JsonWidgetSuppressor.isCandidateForSuppress(VirtualFile, Project)`](%gh-ic%/json/src/com/jetbrains/jsonSchema/extension/JsonWidgetSuppressor.java) for quick check in EDT before `suppressSwitcherWidget()` is called on background thread.
|
: Override new method [`JsonWidgetSuppressor.isCandidateForSuppress(VirtualFile, Project)`](%gh-ic%/json/src/com/jetbrains/jsonSchema/extension/JsonWidgetSuppressor.java) for quick check in EDT before `suppressSwitcherWidget()` is called on background thread.
|
||||||
|
|
||||||
### HTTP Client Plugin 2021.1
|
### HTTP Client Plugin 2021.1
|
||||||
|
@ -28,7 +28,7 @@ Constructor Injection disabled for Extensions
|
|||||||
: Please obtain necessary components only when needed (logged as ERROR now).
|
: Please obtain necessary components only when needed (logged as ERROR now).
|
||||||
|
|
||||||
Language Injection
|
Language Injection
|
||||||
: Use [`LanguageInjectionContributor`](%gh-ic%/platform/core-api/src/com/intellij/lang/injection/general/LanguageInjectionContributor.java) (EP `com.intellij.languageInjectionContributor`) and [`LanguageInjectionPerformer`](%gh-ic%/platform/core-api/src/com/intellij/lang/injection/general/LanguageInjectionPerformer.java) (EP `com.intellij.languageInjectionPerformer`) to customize language injection.
|
: Use [`LanguageInjectionContributor`](%gh-ic%/platform/core-api/src/com/intellij/lang/injection/general/LanguageInjectionContributor.java) (`com.intellij.languageInjectionContributor` EP) and [`LanguageInjectionPerformer`](%gh-ic%/platform/core-api/src/com/intellij/lang/injection/general/LanguageInjectionPerformer.java) (`com.intellij.languageInjectionPerformer` EP) to customize language injection.
|
||||||
|
|
||||||
### IntelliJ IDEA 2021.2
|
### IntelliJ IDEA 2021.2
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ _Version 14_: implement `SpringInfrastructureBean`, such beans obtain a special
|
|||||||
All support for XML-based Spring configuration files is provided via [DOM-API](xml_dom_api.md).
|
All support for XML-based Spring configuration files is provided via [DOM-API](xml_dom_api.md).
|
||||||
|
|
||||||
#### Add Support for Additional Spring Namespace
|
#### Add Support for Additional Spring Namespace
|
||||||
See EP `com.intellij.spring.dom.SpringCustomNamespaces`, registered namespace-key must match the one registered with your DOM elements via `@Namespace`.
|
See `com.intellij.spring.customNamespaces` EP, registered namespace-key must match the one registered with your DOM elements via `@Namespace`.
|
||||||
Register available elements via standard `DomExtender<Beans>` EP or `com.intellij.spring.dom.SpringCustomNamespaces#registerExtensions` (Version 14).
|
Register available elements via standard `DomExtender<Beans>` EP or `com.intellij.spring.dom.SpringCustomNamespaces#registerExtensions` (Version 14).
|
||||||
|
|
||||||
Please pay attention to `getModelVersion` and `getStubVersion` (see javadoc).
|
Please pay attention to `getModelVersion` and `getStubVersion` (see javadoc).
|
||||||
@ -149,7 +149,7 @@ See `com.intellij.spring.spi.SpringSpiManager`.
|
|||||||
### IDE Features
|
### IDE Features
|
||||||
|
|
||||||
#### Add Inspections to Spring Validator
|
#### Add Inspections to Spring Validator
|
||||||
Add additional inspections (e.g. for custom namespace) to Spring Validator (*Settings|Compiler|Validation*) via EP `com.intellij.spring.SpringInspectionsRegistry$Contributor`.
|
Add additional inspections (e.g. for custom namespace) to Spring Validator (*Settings|Compiler|Validation*) via `com.intellij.spring.SpringInspectionsRegistry$Contributor` in `com.intellij.spring.inspectionsRegistryContributor` extension point.
|
||||||
|
|
||||||
#### Add Additional Files to Spring Validator
|
#### Add Additional Files to Spring Validator
|
||||||
_Version 14.1_
|
_Version 14.1_
|
||||||
@ -194,5 +194,5 @@ Custom `@ConditionalOn...` annotations implementing `com.intellij.spring.boot.mo
|
|||||||
`com.intellij.spring.boot.initializr.SpringInitializrModuleBuilderPostTask` allows performing custom setup steps after creation of module (e.g. setup integration with build system).
|
`com.intellij.spring.boot.initializr.SpringInitializrModuleBuilderPostTask` allows performing custom setup steps after creation of module (e.g. setup integration with build system).
|
||||||
|
|
||||||
### Endpoint Tab
|
### Endpoint Tab
|
||||||
Use EP `com.intellij.spring.boot.run.endpoint` to add custom actuator endpoint tabs.
|
Use `com.intellij.spring.boot.run.endpoint` extension point to add custom actuator endpoint tabs.
|
||||||
Any settings should be exposed in "Spring Boot" settings tab via `com.intellij.spring.boot.run.endpointTabConfigurable` EP.
|
Any settings should be exposed in "Spring Boot" settings tab via `com.intellij.spring.boot.run.endpointTabConfigurable` EP.
|
||||||
|
@ -369,7 +369,7 @@ The index parameter in the last example means the index in the merged collection
|
|||||||
### Dynamic Definition
|
### Dynamic Definition
|
||||||
|
|
||||||
You can extend existing DOM model at runtime by implementing `com.intellij.util.xml.reflect.DomExtender<T>`.
|
You can extend existing DOM model at runtime by implementing `com.intellij.util.xml.reflect.DomExtender<T>`.
|
||||||
Register it in "extenderClass" attribute of EP `com.intellij.dom.extender`, where "domClass" specifies DOM class `<T>` to be extended.
|
Register it in "extenderClass" attribute of `com.intellij.dom.extender` extension point, where "domClass" specifies DOM class `<T>` to be extended.
|
||||||
[`DomExtensionsRegistrar`](%gh-ic%/xml/dom-openapi/src/com/intellij/util/xml/reflect/DomExtensionsRegistrar.java) provides various methods to register dynamic attributes and children.
|
[`DomExtensionsRegistrar`](%gh-ic%/xml/dom-openapi/src/com/intellij/util/xml/reflect/DomExtensionsRegistrar.java) provides various methods to register dynamic attributes and children.
|
||||||
|
|
||||||
If the contributed elements depend on anything other than plain XML file content (used framework version, libraries in classpath, ...), make sure to return `false` from `DomExtender.supportsStubs()`.
|
If the contributed elements depend on anything other than plain XML file content (used framework version, libraries in classpath, ...), make sure to return `false` from `DomExtender.supportsStubs()`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user