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.

Bug 209020 - Support @NbBundle.Messages
Summary: Support @NbBundle.Messages
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal with 3 votes (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 207063 (view as bug list)
Depends on:
Blocks: 192750
  Show dependency tree
 
Reported: 2012-02-29 22:21 UTC by Jesse Glick
Modified: 2013-01-30 19:50 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2012-02-29 22:21:26 UTC
For modules using @Messages, it would be very nice to be able to use this annotation also in forms managed by the GUI builder, instead of adding keys directly to Bundle.properties:

- easier to delete, copy, move forms when they are self-contained (no need for special refactoring hook for associated messages)
- no risk of clobbering generated Bundle.properties including annotation-defined values with the static version just because the static version had a newer modification time and no *.java including @Messages did
- diffs show only X.{form,java} after adding/removing/editing form text
- no need to use search to determine which form in a package is using a key

I think a single annotation on initComponents(), probably inside the guarded block, would suffice.

I am not much familiar with this code but could attempt a patch if you think you will not get to it yourself.
Comment 1 Jan Stola 2012-04-10 12:43:25 UTC
*** Bug 207063 has been marked as a duplicate of this bug. ***