How to add a custom JFace Viewer?

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

How to add a custom JFace Viewer?

Postby DirkSegelhorst » Thu May 28, 2009 11:36 pm

DirkSegelhorst
 
Posts: 3
Joined: Tue Apr 07, 2009 12:32 am

Re: How to add a custom JFace Viewer?

Postby Eric Clayberg » Fri May 29, 2009 11:10 am

Simple custom widgets can be added using the Palette Manager.

Custom viewers typically don't conform to any specific API, so you need to use the WindowBuilder Customization API to add it to the palette.

See the New Component Tutorial and Customization API docs.

See the following *.wbp-component.xml file for this viewer. Put it in the same package as the viewer class, or into a parrallel wbp-meta folder with the same package structure.

CTreeComboViewer.wbp-component.xml
(1.17 KiB) Downloaded 83 times

You will also need the following palette file to contribute this viewer to the existing JFace category. It should go into the wbp-meta folder.

com.instantiations.designer.rcp.wbp-palette.xml
(188 Bytes) Downloaded 61 times
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: How to add a custom JFace Viewer?

Postby budongsmith » Mon Sep 14, 2009 6:50 pm

It looks like that place is good for writing ctreecombo-widget. thanks fr that.
budongsmith
 
Posts: 1
Joined: Mon Sep 14, 2009 3:35 am

Re: How to add a custom JFace Viewer?

Postby Eric Clayberg » Mon Sep 14, 2009 6:58 pm

budongsmith wrote:It looks like that place is good for writing ctreecombo-widget.

Yes.
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: Google [Bot] and 2 guests