Custom FormToolkit

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

Custom FormToolkit

Postby fleque » Tue Mar 18, 2008 12:53 am

Hi all,

I'm using WindowBuilder Pro Version: 6.5.0 with a subclass of FormToolkit. Works fine so far, all my changes (overridden factory methods) and changes to font and colors are well reflected in the designer. It also supports custom Layout and LayoutData code applied in the factory methods (when not involving other factory methods), very nice!
However, I wonder if I could somehow include methods into the designer palette, that get I've added to the toolkit myself. Actually I'm only looking for one, that is unfortunately missing in the FormToolkit API: createCombo(Composite, int). When added to my custom toolkit and placed to create a Combo, the designer does not recognize it as Combo and displays a Composite-placeholder instead.
Still, using a normal Combo or a subclass will add a call to toolkit.adapt() after creation, so that works fine, it would just be nice to have all font and layout customisation code inside my custom toolkit.

Any hints on this?

Best regards
Alex
fleque
 
Posts: 2
Joined: Mon Mar 17, 2008 11:27 pm

Re: Custom FormToolkit

Postby Eric Clayberg » Tue Mar 18, 2008 5:58 pm

There isn't anything you can do in the current product, but we are working on a major update that will offer first class factory support, so adding support for custom toolkit factory methods will be trivial.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: Custom FormToolkit

Postby fleque » Tue Mar 18, 2008 11:32 pm

Thanks Eric,

I'll watch out for new versions...

Best regards
Alex
fleque
 
Posts: 2
Joined: Mon Mar 17, 2008 11:27 pm

Re: Custom FormToolkit

Postby Eric Clayberg » Wed Mar 19, 2008 5:47 am

You can read about how it will work here.

Note that this feature is currently available in our eRCP Designer beta.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests