This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
How to reproduce : Prepare a Form with 3 strings.(strings should be in guarded block) e.g. create JFrame and add 3 JButtons and move focus to generated source file. 1) Call Tools|Internationalization|Internationalize... 2) Fill appeared dialog "Internationalize..." 3) Click 'Replace' -> first jbutton is internationalized and corsor is moved to end of guarded block 4) Click 'Replace' -> second jbutton is internationalized -> Dialog Internationalize disappeared and jbutton3 is not internationalized.
Petr, is there a workaround?
Yes, there is. Workaround is easy. User just need to do these steps: 1) invoke the Internationalize dialog and continue with Internationalization of rest strings. (it is possible to internationalize only two strings again in this guarded block) 2) goto step 1 until all guarded block is internationalized
Thanks for the info. Proposed relnote: The Tools | Internationalization | Internationalize command only works for two strings at a time in guarded blocks of form objects. Workaround: Call the command again and resume internationalization of the strings, two at a time. Repeat as many times as necessary.
I can reproduce, but cannot find reason. Further second string to be replaced is not correcty highlighted. A bug is probably in replacer because skipping works smoothly.
I think I found a solution. See diff below. Problem is, that the updates of guarded section are now postponed so all relevant code, which have to be performed after the guarded section is regenerated, must be postponed aswell. The fix is for [release35] but diff should be identical for [maintrunk]. Petr, please review it.
Created attachment 11423 [details] diff in -c format
Fixed in Nevada Patch 1 and in Arrow.
*** Issue 36611 has been marked as a duplicate of this issue. ***
Is it so hard to commit this patch into maintrunk? I've increased priority.
Fixed in the trunk. Fixed by applying the patch provided by Jan Kovar.
Verified in dev build 200402251900. I tried internacionalize my samples and it works for all string in guarded block! Thanks
removing RELNOTE keyword