mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection descriptions: dialog capitalization
GitOrigin-RevId: fb06962a7f128f1aea3230f3fe79de6b7ae5d3db
This commit is contained in:
committed by
intellij-monorepo-bot
parent
28358204b4
commit
402c6e4f03
@@ -1,4 +1,13 @@
|
||||
<html><body>
|
||||
This inspection checks strings in method parameters and return values annotated with @Nls annotation with "capitalization" parameter
|
||||
Reports strings in method parameters and return values annotated with @Nls annotation with "capitalization" parameter
|
||||
to confirm with capitalization rules, which is required by most platform UI guidelines.
|
||||
<p><b>Example:</b></p>
|
||||
<pre><code>
|
||||
void setTitle(@NlsContexts.DialogTitle String title) {}
|
||||
setTitle("This is sentence capitalization but should be title");
|
||||
</code></pre>
|
||||
<p>After the quick-fix is applied, the result looks like this:</p>
|
||||
<pre><code>
|
||||
setTitle("This Is Sentence Capitalization but Should Be Title");
|
||||
</code></pre>
|
||||
</body></html>
|
||||
Reference in New Issue
Block a user