can i reuse components?

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

can i reuse components?

Postby emaayan » Tue Mar 29, 2011 9:59 pm

hi.. the help may have something about it, but i'm not sure, i wold like to create a seperate composite in the designer, and then create a shell/application window that will contain it, that way i would be able to test it fully at runtime,and then use the composite elsewhere. (i'm actually trying to bind a grid to entities, and the grid should to a wizad page in eclipse).
emaayan
 
Posts: 19
Joined: Fri Nov 26, 2010 1:58 am

Re: can i reuse components?

Postby Eric Clayberg » Wed Mar 30, 2011 3:48 am

Yes, I highly recommend reading/searching the docs first...

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: can i reuse components?

Postby emaayan » Wed Mar 30, 2011 4:10 am

you'll be suprised but i actually covered that bit, the only but way i could actually use another composite is to write code manually, what the docs (in the link) you sent didn't say i could use the component selection the palette and use that.

now i only have to discover how to bind a table to Collection..
emaayan
 
Posts: 19
Joined: Fri Nov 26, 2010 1:58 am

Re: can i reuse components?

Postby Eric Clayberg » Wed Mar 30, 2011 4:28 am

The palette docs certainly do say that...

A custom Composite is no different than any other widget. You can add it to the palette explicitly or you can access it via Choose Component.
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: Bing [Bot], Google [Bot] and 1 guest

cron