IntentionActionBean.className: mark required

GitOrigin-RevId: b06f396ad4cc47c5545b1e3fbab11e63de8f4969
This commit is contained in:
Yann Cébron
2020-02-14 17:56:55 +01:00
committed by intellij-monorepo-bot
parent 720f108c09
commit b2eede2a48
3 changed files with 12 additions and 1 deletions

View File

@@ -9,6 +9,10 @@
<extensionPoint name="deprecatedBeanClassEP" beanClass="foo.MyDeprecatedEP"/>
<extensionPoint name="experimentalApiEP" interface="foo.MyExperimentalEP"
dynamic="true"/>
<extensionPoint name="intentionAction"
beanClass="com.intellij.codeInsight.intention.IntentionActionBean">
<with tag="className" implements="com.intellij.codeInsight.intention.IntentionAction"/>
</extensionPoint>
</extensionPoints>
<depends>com.intellij.custom</depends>
@@ -19,6 +23,9 @@
<extensions defaultExtensionNs="com.intellij">
<<error descr="'implementation' attribute should be defined">myPlugin.ext</error>/>
<<error descr="'className' child tag should be defined">myPlugin.intentionAction</error>/>
<myPlugin.ext implementation="<error descr="Interface is not allowed">java.lang.Runnable</error>"/>
<myPlugin.ext implementation="<error descr="'java.util.concurrent.TimeUnit' is not assignable to 'java.lang.Runnable'"><error descr="Enum is not allowed"><error descr="Abstract class is not allowed">java.util.concurrent.TimeUnit</error></error></error>"/>
<myPlugin.ext implementation="<error descr="'java.lang.String' is not assignable to 'java.lang.Runnable'">java.lang.String</error>"/>

View File

@@ -59,10 +59,12 @@
<intentionAction>
<categoryKey>my.key</categoryKey>
<className>com.intellij.codeInsight.intention.IntentionAction</className>
</intentionAction>
<intentionAction>
<categoryKey><error descr="Cannot resolve property key">INVALID_KEY</error></categoryKey>
<bundleName><error descr="Cannot resolve property bundle">INVALID_BUNDLE</error></bundleName>
<className>com.intellij.codeInsight.intention.IntentionAction</className>
</intentionAction>
</extensions>