mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-29 09:47:50 +08:00
update links to MP Docs plugin-overview-page.html
This commit is contained in:
parent
982f33e123
commit
ee98109ce1
@ -21,7 +21,7 @@ One use case for additional configuration files is when a plugin provides option
|
|||||||
|
|
||||||
## Useful Resources
|
## Useful Resources
|
||||||
|
|
||||||
Please make sure to follow the guidelines from [Plugin Overview page](https://plugins.jetbrains.com/docs/marketplace/plugin-overview-page.html) for an optimal presentation of your plugin on JetBrains Marketplace.
|
Please make sure to follow the guidelines from [Best practices for listing your plugin](https://plugins.jetbrains.com/docs/marketplace/best-practices-for-listing.html) for an optimal presentation of your plugin on JetBrains Marketplace.
|
||||||
The _Busy Plugin Developers. Episode 2_ discusses [5 tips for optimizing JetBrains Marketplace plugin page](https://youtu.be/oB1GA9JeeiY?t=52) in more detail.
|
The _Busy Plugin Developers. Episode 2_ discusses [5 tips for optimizing JetBrains Marketplace plugin page](https://youtu.be/oB1GA9JeeiY?t=52) in more detail.
|
||||||
|
|
||||||
See also [](marketing.md) about widgets and badges.
|
See also [](marketing.md) about widgets and badges.
|
||||||
@ -589,7 +589,7 @@ Attributes
|
|||||||
`order`.
|
`order`.
|
||||||
<br/>
|
<br/>
|
||||||
To not clash with other plugins defining extensions with the same identifier,
|
To not clash with other plugins defining extensions with the same identifier,
|
||||||
consider prepending the identifier with a prefix related to the plugin [`<id>`](#idea-plugin__id) or
|
consider prepending the identifier with a prefix related to the plugin [`<id>`](#idea-plugin__id) or
|
||||||
[`<name>`](#idea-plugin__name), for example, `id="com.example.myplugin.myExtension"`.
|
[`<name>`](#idea-plugin__name), for example, `id="com.example.myplugin.myExtension"`.
|
||||||
- `order` _(optional)_<br/>
|
- `order` _(optional)_<br/>
|
||||||
Allows for ordering the extension relative to other instances of the same extension point.
|
Allows for ordering the extension relative to other instances of the same extension point.
|
||||||
@ -613,7 +613,7 @@ Attributes
|
|||||||
- `mac`
|
- `mac`
|
||||||
- `unix`
|
- `unix`
|
||||||
- `windows`
|
- `windows`
|
||||||
|
|
||||||
For example, `os="windows"` registers the extension on Windows only.
|
For example, `os="windows"` registers the extension on Windows only.
|
||||||
|
|
||||||
### `extensionPoints`
|
### `extensionPoints`
|
||||||
@ -691,12 +691,12 @@ Attributes
|
|||||||
|
|
||||||
The scope in which the [extension](plugin_extensions.md) is
|
The scope in which the [extension](plugin_extensions.md) is
|
||||||
instantiated.
|
instantiated.
|
||||||
|
|
||||||
Allowed values:
|
Allowed values:
|
||||||
- `IDEA_APPLICATION` _(default)_
|
- `IDEA_APPLICATION` _(default)_
|
||||||
- `IDEA_PROJECT`
|
- `IDEA_PROJECT`
|
||||||
- `IDEA_MODULE` (**deprecated**)
|
- `IDEA_MODULE` (**deprecated**)
|
||||||
|
|
||||||
**It is strongly recommended not to introduce new project- and module-level extension points.**
|
**It is strongly recommended not to introduce new project- and module-level extension points.**
|
||||||
If an extension point needs to operate on a `Project` or `Module` instance, declare an application-level extension
|
If an extension point needs to operate on a `Project` or `Module` instance, declare an application-level extension
|
||||||
point and pass the instance as a method parameter.
|
point and pass the instance as a method parameter.
|
||||||
@ -739,7 +739,7 @@ Example
|
|||||||
An extension point which restricts the type provided in a `myClass` attribute to be an instance
|
An extension point which restricts the type provided in a `myClass` attribute to be an instance
|
||||||
of `com.example.ParentType`, and the type provided in a `someClass` element to be an instance
|
of `com.example.ParentType`, and the type provided in a `someClass` element to be an instance
|
||||||
of `java.lang.Comparable`:
|
of `java.lang.Comparable`:
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<extensionPoint
|
<extensionPoint
|
||||||
name="myExtension"
|
name="myExtension"
|
||||||
@ -752,18 +752,18 @@ Example
|
|||||||
implements="java.lang.Comparable"/>
|
implements="java.lang.Comparable"/>
|
||||||
</extensionPoint>
|
</extensionPoint>
|
||||||
```
|
```
|
||||||
|
|
||||||
When using the above extension point, an implementation could be registered as follows:
|
When using the above extension point, an implementation could be registered as follows:
|
||||||
|
|
||||||
```xml
|
```xml
|
||||||
<myExtension ...
|
<myExtension ...
|
||||||
myClass="com.example.MyCustomType">
|
myClass="com.example.MyCustomType">
|
||||||
<someClass>com.example.MyComparable</someClass>
|
<someClass>com.example.MyComparable</someClass>
|
||||||
</myExtension>
|
</myExtension>
|
||||||
```
|
```
|
||||||
|
|
||||||
where:
|
where:
|
||||||
|
|
||||||
- `com.example.MyCustomType` must be a subtype of `com.example.ParentType`
|
- `com.example.MyCustomType` must be a subtype of `com.example.ParentType`
|
||||||
- `com.example.MyComparable` must be a subtype of `java.lang.Comparable`
|
- `com.example.MyComparable` must be a subtype of `java.lang.Comparable`
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user