Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352812

Summary: Sync changes in a Swing widget's variable name to the value of the key in the i18n "Externalized Strings".
Product: z_Archived Reporter: Basil Bourque <basil.bourque.lists>
Component: WindowBuilderAssignee: Konstantin Scheglov <Konstantin.Scheglov>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: clayberg
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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"