Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352812 - Sync changes in a Swing widget's variable name to the value of the key in the i18n "Externalized Strings".
Summary: Sync changes in a Swing widget's variable name to the value of the key in the...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WindowBuilder (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Scheglov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-22 01:16 EDT by Basil Bourque CLA
Modified: 2021-06-04 16:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Basil Bourque CLA 2011-07-22 01:16:05 EDT
Feature Request for WindowBuilder…

By default in i18n, when WindowBuilder externalizes strings, the string's key is the variable name of the Swing widget (JButton, JTextField, etc.). Unfortunately, if the programmer later changes the widget's variable name, the key is not kept in sync. 

Please add a feature when either of these routes to changing a widget's variable name is chosen:
• Editing the "Variable" property in the property sheet of the Design View.
• Choosing the context menu item "Rename" on the widget.

JFormDesigner from FormDev.com does this very well, if you want to see an example.

--Basil Bourque
Comment 1 Konstantin Scheglov CLA 2011-10-19 15:06:55 EDT
Done in trunk.
It is not enabled by default, see preferences Swing | Code Generation | NLS.
"Rename keys on component variable change"