table686 wrote:How can I make widgets those are created by swt designer to be private member of class ,instead of being a member just in the createcontents() method?
You have several options:
1) You can convert any widget from a local variable to a field and vice versa using the
Convert Local to Field button in the property pane:
2) You can use the
Designer > Code Generation > Type Specific preferences to specify which types of widgets should be created as fields by default:
3) You can use the
Designer > Code Generation preferences to
Create every component as a field by default:
4) Using the latest v4.0.1 build, you can rename and/or convert multiple widgets to fields at one time: