You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Ernie Rael (Jira)" <ji...@apache.org> on 2020/05/01 19:00:00 UTC
[jira] [Assigned] (NETBEANS-4270) hint "Use @NbBundle.Messages" bad
edit of Bundle.properties
[ https://issues.apache.org/jira/browse/NETBEANS-4270?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ernie Rael reassigned NETBEANS-4270:
------------------------------------
Assignee: Ernie Rael
> hint "Use @NbBundle.Messages" bad edit of Bundle.properties
> -----------------------------------------------------------
>
> Key: NETBEANS-4270
> URL: https://issues.apache.org/jira/browse/NETBEANS-4270
> Project: NetBeans
> Issue Type: Bug
> Components: apisupport - Project, platform - Property Editors
> Environment: jdk8, win7, NB11.03-jdk8, NB12b3-jdk13
> Reporter: Ernie Rael
> Assignee: Ernie Rael
> Priority: Major
> Attachments: OptionsPlayHack.zip
>
>
> ./apisupport/apisupport.refactoring/src/org/netbeans/modules
> /apisupport/hints/UseNbBundleMessages.java:
> "UseNbBundleMessages.displayName=Use @NbBundle.Messages"
> To reproduce:
> # in Menu > Tools > Options > Editor > Hints > NetBeansDevelopment
> enable "Use @NbBundle.Messages" hint
> # unzip sources; open OptionsPlayHack in IDE
> # open file OptionsPlayHackOptionsPanelController.java
> # go to the line:
> {noformat}
> categoryName = "#OptionsCategory_Name_OptionsPlayHack",
> {noformat}
> and accept the hint "Use NbBundle.Message"
> # the line
> {noformat}
> keywords = "#OptionsCategory_Keywords_OptionsPlayHack",
> {noformat}
> is marked in error. Hover mouse over this line and see
> {noformat}
> Save modifications to Bundle.properties before using this hint
> {noformat}
> # click on the save button
> Observe:
> - the line is still in error, but now
> {noformat}
> No key 'OptionsCategory_Keywords_OptionsPlayHack'
> found in OptionsPlayHack.Bundle
> Bundle.properties does not contain any key
> 'OptionsCategory_Keywords_OptionsPlayHack'
> {noformat}
> - Open the bundle file and note that the remaining line is
> {noformat}
> ptionsCategory_Keywords_OptionsPlayHack=keyw1
> {noformat}
> which is a misspelling, missing initial "O"
> - click undo button twice, see the correct spelling (and deleted line)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists