You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: topics/basics/plugin_structure/plugin_configuration_file.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -589,7 +589,7 @@ Attributes
589
589
`order`.
590
590
<br/>
591
591
To not clash with other plugins defining extensions with the same identifier,
592
-
consider prepending the identifier with a prefix related to the plugin [`<id>`](#idea-plugin__id) or
592
+
consider prepending the identifier with a prefix related to the plugin [`<id>`](#idea-plugin__id) or
593
593
[`<name>`](#idea-plugin__name), for example, `id="com.example.myplugin.myExtension"`.
594
594
- `order` _(optional)_<br/>
595
595
Allows for ordering the extension relative to other instances of the same extension point.
@@ -613,7 +613,7 @@ Attributes
613
613
- `mac`
614
614
- `unix`
615
615
- `windows`
616
-
616
+
617
617
For example, `os="windows"` registers the extension on Windows only.
618
618
619
619
### `extensionPoints`
@@ -691,12 +691,12 @@ Attributes
691
691
692
692
The scope in which the [extension](plugin_extensions.md) is
693
693
instantiated.
694
-
694
+
695
695
Allowed values:
696
696
- `IDEA_APPLICATION` _(default)_
697
697
- `IDEA_PROJECT`
698
698
- `IDEA_MODULE` (**deprecated**)
699
-
699
+
700
700
**It is strongly recommended not to introduce new project- and module-level extension points.**
701
701
If an extension point needs to operate on a `Project` or `Module` instance, declare an application-level extension
702
702
point and pass the instance as a method parameter.
@@ -739,7 +739,7 @@ Example
739
739
An extension point which restricts the type provided in a `myClass` attribute to be an instance
740
740
of `com.example.ParentType`, and the type provided in a `someClass` element to be an instance
741
741
of `java.lang.Comparable`:
742
-
742
+
743
743
```xml
744
744
<extensionPoint
745
745
name="myExtension"
@@ -752,18 +752,18 @@ Example
752
752
implements="java.lang.Comparable"/>
753
753
</extensionPoint>
754
754
```
755
-
755
+
756
756
When using the above extension point, an implementation could be registered as follows:
757
-
757
+
758
758
```xml
759
759
<myExtension ...
760
760
myClass="com.example.MyCustomType">
761
761
<someClass>com.example.MyComparable</someClass>
762
762
</myExtension>
763
763
```
764
-
764
+
765
765
where:
766
-
766
+
767
767
-`com.example.MyCustomType` must be a subtype of `com.example.ParentType`
768
768
-`com.example.MyComparable` must be a subtype of `java.lang.Comparable`
769
769
@@ -1276,7 +1276,7 @@ Attributes
1276
1276
- `ref` _(**required**)_<br/>
1277
1277
The ID of the action to add to a group.
1278
1278
- `id` _(optional)_<br/>
1279
-
**_Deprecated_**: Use `ref` instead.
1279
+
**_Deprecated_**: Use `ref` instead.
1280
1280
1281
1281
The ID of the action to add to a group.
1282
1282
@@ -1322,7 +1322,7 @@ Attributes
1322
1322
Separator text is displayed only in specific contexts such as popup menus, toolbars, etc.
1323
1323
- `key` _(optional)_<br/>
1324
1324
1325
-
The [message key]([message key](https://plugins.jetbrains.com/docs/intellij/basic-action-system.html#localizing-actions-and-groups)) for the separator text.
1325
+
The [message key](action_system.md#localizing-actions-and-groups) for the separator text.
1326
1326
The message bundle for use should be registered via the `resource-bundle` attribute of
1327
1327
the [`<actions>`](#idea-plugin__actions) element.
1328
1328
The attribute is ignored if the `text` attribute is specified.
0 commit comments