Code generation

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Code generation

Postby mnaglik » Wed Aug 20, 2003 3:39 am

Hello.
I was using SWT Designer for few days for developing application with quite a few forms and I had to do some workaround for few things:

1. Why generated code have widget declarated in {} - why they are not just fields in a class?
For example there is no easy way now to program accessing any widget.
I've got a window with i.e. 10 Text and I want to have button for clearing the content of Texts.

For me the best way would be to support JFace ApplicationWindow instead of just generating all the stuff in main method (all class variables must be static) and to have posibillity to change the position where the fields are declarated.

Thanks
Marcin
mnaglik
 
Posts: 3
Joined: Mon Aug 11, 2003 6:03 am

Re: Code generation

Postby admin » Wed Aug 20, 2003 3:50 am

mnaglik wrote:Hello.
I was using SWT Designer for few days for developing application with quite a few forms and I had to do some workaround for few things:

1. Why generated code have widget declarated in {} - why they are not just fields in a class?
For example there is no easy way now to program accessing any widget.
I've got a window with i.e. 10 Text and I want to have button for clearing the content of Texts.

There are two buttons above Inspector - one of them allows you navigate in source to the place where current control in created. And second button converts local variable to field and field to local variable.

mnaglik wrote:For me the best way would be to support JFace ApplicationWindow instead of just generating all the stuff in main method (all class variables must be static) and to have posibillity to change the position where the fields are declarated.

Yes, we will implement ApplicationWindow support, but this will take some time, and it will be available only in professional version.
admin
Moderator
 
Posts: 166
Joined: Thu Jul 24, 2003 12:25 am


Return to SWT Designer

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 1 guest