Ernie Rael created NETBEANS-4270: ------------------------------------ Summary: 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 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-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists