[devkit] UnregisteredNameColorInspection: link to SDK docs "Exposing Theme Metadata"

This commit is contained in:
Yann Cébron
2019-04-03 10:57:02 +02:00
parent f8cd2ae75d
commit 91826a78a1
3 changed files with 3 additions and 3 deletions
@@ -215,7 +215,7 @@ inspections.presentation.cannot.resolve.icon=Cannot resolve icon ''{0}''
inspections.plugin.xml.invalid.order.attribute=Invalid 'order' attribute value
invalid.order.attribute.part=Invalid ''order'' attribute value part: ''{0}'', must be ''first'', ''last'', ''before <id>'' or ''after <id>''
inspections.unregistered.named.color=Named color key ''{0}'' is not registered in <code>*.themeMetadata.json</code>
inspections.unregistered.named.color=<html>Named color key ''{0}'' is not registered in <code>*.themeMetadata.json</code> (<a href="https://www.jetbrains.org/intellij/sdk/docs/reference_guide/ui_themes/themes_metadata.html">Documentation</a>)</html>
ant.build.jar.comment=Build archive for plugin ''{0}''
ant.build.jar.description=Build plugin archive for module ''{0}''
@@ -11,7 +11,7 @@ class UnregisteredNamedColorInspectionTest : UnregisteredNamedColorInspectionTes
class InspectionTest {
public void smth() {
JBColor.namedColor("${knownNamedColor}", 0xcdcdcd);
JBColor.<warning descr="Named color key 'NotRegisteredKey' is not registered in '*.themeMetadata.json'">namedColor</warning>("NotRegisteredKey", 0xcdcdcd);
JBColor.<warning descr="Named color key 'NotRegisteredKey' is not registered in '*.themeMetadata.json' (Documentation)">namedColor</warning>("NotRegisteredKey", 0xcdcdcd);
}
}
""".trimIndent())
@@ -12,7 +12,7 @@ class KtUnregisteredNamedColorInspectionTest : UnregisteredNamedColorInspectionT
class InspectionTest {
fun smth() {
JBColor.namedColor("${knownNamedColor}", 0xcdcdcd)
JBColor.<warning descr="Named color key 'NotRegisteredKey' is not registered in '*.themeMetadata.json'">namedColor</warning>("NotRegisteredKey", 0xcdcdcd)
JBColor.<warning descr="Named color key 'NotRegisteredKey' is not registered in '*.themeMetadata.json' (Documentation)">namedColor</warning>("NotRegisteredKey", 0xcdcdcd)
}
}
""".trimIndent())