Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Customize generated code and shell in SWT Designer
Customize generated code and shell in SWT Designer [message #129533] Fri, 04 August 2006 23:46 Go to next message
Eclipse UserFriend
Originally posted by: ivanooi.gmail.com

Hi all,

Is there anyway I can customzie generated code in SWT GUI Designer ?
for an example changing this style :-

label = new Label(this, SWT.NONE);

to :-

label = new Label();

can I do that I SWT GUI Designer ?

Thanks
Re: Customize generated code and shell in SWT Designer [message #129545 is a reply to message #129533] Sun, 06 August 2006 11:43 Go to previous message
Eclipse UserFriend
"Ivan" <ivanooi@gmail.com> wrote in message
news:0d3e55dc7ec37a3f1e6e630a2da45cee$1@www.eclipse.org...
> Is there anyway I can customzie generated code in SWT GUI Designer ?
> for an example changing this style :-
> label = new Label(this, SWT.NONE);
> to :-
> label = new Label();
> can I do that I SWT GUI Designer ?

No. SWT widgets don't have default constructors. The parent and style bits
must be provided in the constructor to conform to SWT conventions.

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.windowbuilderpro.com/

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Re: Customize generated code and shell in SWT Designer [message #613700 is a reply to message #129533] Sun, 06 August 2006 11:43 Go to previous message
Eclipse UserFriend
"Ivan" <ivanooi@gmail.com> wrote in message
news:0d3e55dc7ec37a3f1e6e630a2da45cee$1@www.eclipse.org...
> Is there anyway I can customzie generated code in SWT GUI Designer ?
> for an example changing this style :-
> label = new Label(this, SWT.NONE);
> to :-
> label = new Label();
> can I do that I SWT GUI Designer ?

No. SWT widgets don't have default constructors. The parent and style bits
must be provided in the constructor to conform to SWT conventions.

-Eric Clayberg
Sr. Vice President of Product Development
Instantiations, Inc.
http://www.instantiations.com
http://www.windowbuilderpro.com/

Author: "Eclipse: Building Commercial Quality Plug-ins"
http://www.awprofessional.com/title/0321228472
Previous Topic:Customize generated code and shell in SWT Designer
Next Topic:Setting the Alignment of Labels
Goto Forum:
  


Current Time: Thu Jun 19 06:03:00 EDT 2025

Powered by FUDForum. Page generated in 0.03825 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top