Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Customize generated code and shell in SWT Designer
Customize generated code and shell in SWT Designer [message #129533] Sat, 05 August 2006 03: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 15:43 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
"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 15:43 Go to previous message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
"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: Wed Sep 18 21:02:23 GMT 2024

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

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

Back to the top