How to use a custom LabelProvider with JFace Databinding

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 use a custom LabelProvider with JFace Databinding

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

Hi,

how can I use my own LabelProvider with JFace Databinding? I tried the following:
screenshot.gif
screenshot.gif (20.54 KiB) Viewed 518 times


The used ElementClassLabelProvider class extends the ObservableMapLabelProvider and provides the same constructors. Hence, I do not understand the error message in the dialog. Whats going wrong here?

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

Re: How to use a custom LabelProvider with JFace Databinding

Postby Eric Clayberg » Sat May 30, 2009 3:57 am

Give this a try using the latest SWT Designer v7.0 build.
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