Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
jdk8, win7, NB11.03-jdk8, NB12b3-jdk13
Description
./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:
categoryName = "#OptionsCategory_Name_OptionsPlayHack",
and accept the hint "Use NbBundle.Message"
- the line
keywords = "#OptionsCategory_Keywords_OptionsPlayHack",
is marked in error. Hover mouse over this line and see
Save modifications to Bundle.properties before using this hint
- click on the save button
Observe:
- the line is still in error, but now
No key 'OptionsCategory_Keywords_OptionsPlayHack' found in OptionsPlayHack.Bundle Bundle.properties does not contain any key 'OptionsCategory_Keywords_OptionsPlayHack'
- Open the bundle file and note that the remaining line is
ptionsCategory_Keywords_OptionsPlayHack=keyw1
which is a misspelling, missing initial "O"
- click undo button twice, see the correct spelling (and deleted line)