plugin_extensions.md: Cleanup

This commit is contained in:
Karol Lewandowski 2024-07-25 09:56:03 +02:00
parent 8c7400c50b
commit d346d373e8

View File

@ -55,20 +55,20 @@ and one extension to access the `another.plugin.myExtensionPoint` extension poin
--> -->
<extensions defaultExtensionNs="com.intellij"> <extensions defaultExtensionNs="com.intellij">
<appStarter <appStarter
implementation="com.example.MyAppStarter"/> implementation="com.example.MyAppStarter"/>
<projectTemplatesFactory <projectTemplatesFactory
implementation="com.example.MyProjectTemplatesFactory"/> implementation="com.example.MyProjectTemplatesFactory"/>
</extensions> </extensions>
<!-- <!--
Declare extensions to access extension points in a custom plugin "another.plugin". Declare extensions to access extension points in a custom plugin "another.plugin".
The "myExtensionPoint" extension point has been declared using "beanClass" The "myExtensionPoint" extension point has been declared using "beanClass"
and exposes custom properties "key" and "implementationClass". and exposes custom properties "key" and "implementationClass".
--> -->
<extensions defaultExtensionNs="another.plugin"> <extensions defaultExtensionNs="another.plugin">
<myExtensionPoint <myExtensionPoint
key="keyValue" key="keyValue"
implementationClass="com.example.MyExtensionPointImpl"/> implementationClass="com.example.MyExtensionPointImpl"/>
</extensions> </extensions>
``` ```
@ -125,10 +125,10 @@ Property names matching the following list will resolve to a fully qualified cla
A required parent type can be specified in the [extension point declaration](plugin_extension_points.md) via [`<with>`](plugin_configuration_file.md#idea-plugin__extensionPoints__extensionPoint__with): A required parent type can be specified in the [extension point declaration](plugin_extension_points.md) via [`<with>`](plugin_configuration_file.md#idea-plugin__extensionPoints__extensionPoint__with):
```xml ```xml
<extensionPoint name="myExtension" beanClass="MyExtensionBean"> <extensionPoint name="myExtension" beanClass="MyExtensionBean">
<with attribute="psiElementClass" <with
implements="com.intellij.psi.PsiElement"/> attribute="psiElementClass"
implements="com.intellij.psi.PsiElement"/>
</extensionPoint> </extensionPoint>
``` ```