Files
openide/plugins/devkit/devkit-java-tests/testData/codeInsight/ExtensionsHighlighting.xml
T
2019-08-23 17:02:50 +03:00

40 lines
3.0 KiB
XML

<idea-plugin xmlns:xi="http://www.w3.org/2001/XInclude">
<id>com.intellij.myPlugin</id>
<vendor>JetBrains</vendor>
<version>1.0</version>
<extensionPoints>
<extensionPoint name="foo.bar" interface="java.util.List"/>
<extensionPoint name="ext" interface="java.lang.Runnable"/>
<extensionPoint name="deprecatedEP" interface="foo.MyDeprecatedEP"/>
<extensionPoint name="deprecatedBeanClassEP" beanClass="foo.MyDeprecatedEP"/>
<extensionPoint name="experimentalApiEP" interface="foo.MyExperimentalEP"
<warning descr="Usage of API marked with @org.jetbrains.annotations.ApiStatus.Experimental. Such API may be changed or removed in future IDE versions causing compatibility problems.">dynamic="true"</warning>/>
</extensionPoints>
<depends>com.intellij.custom</depends>
<depends config-file="../ExtensionsHighlighting-via-depends.xml">com.myplugin.depends</depends>
<xi:include href="ExtensionsHighlighting-included.xml" xpointer="xpointer(/idea-plugin/*)"/>
<extensions defaultExtensionNs="com.intellij">
<<error descr="'implementation' attribute should be defined">myPlugin.ext</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>"/>
<<error descr="Deprecated EP 'com.intellij.myPlugin.deprecatedEP'">myPlugin.deprecatedEP</error> implementation="foo.MyDeprecatedEPImpl" order="<error descr="Invalid 'order' attribute value">INVALID_VALUE</error>"/>
<<error descr="Deprecated EP 'com.intellij.myPlugin.deprecatedBeanClassEP'">myPlugin.deprecatedBeanClassEP</error>/>
<warning descr="Usage of API marked with @org.jetbrains.annotations.ApiStatus.Experimental. Such API may be changed or removed in future IDE versions causing compatibility problems."><myPlugin.experimentalApiEP implementation="foo.MyExperimentalEP" <warning descr="Usage of API marked with @org.jetbrains.annotations.ApiStatus.Experimental. Such API may be changed or removed in future IDE versions causing compatibility problems.">experimentalAttribute="java.lang.String"</warning>/></warning>
<myService serviceImplementation="foo.<error descr="Cannot resolve class 'MyInvalid'">MyInvalid</error>"/>
<myService serviceImplementation="foo.MyRunnable" os="mac"/>
<myPlugin.foo.bar implementation="java.util.ArrayList" os="<error descr="Unknown enum value 'INVALID_VALUE'">INVALID_VALUE</error>"/>
<completion.contributor/>
<custom.custom/>
<indirect.indirect/>
<<error descr="Element custom.error is not allowed here">custom.error</error>/>
</extensions>
</idea-plugin>