Problem Binding ComboViewer to TableViewer

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

Problem Binding ComboViewer to TableViewer

Postby zephon » Mon Oct 11, 2010 4:57 pm

There is another error I am seeing which is still occurring in the BETA release.

When I create a binding in WindowBuilder GUI between a ComboViewer (single selection) and a TableViewer (part of selection) the binding is created and works but the next time I edit the bindings in the GUI it is removed.

Here's an example of the generated code to show you the exact type of binding I am creating:

Code: Select all
IObservableValue projectEditorFormgetStatusComboViewerObserveSingleSelection = ViewersObservables.observeSingleSelection(projectEditorForm.getStatusComboViewer());
IObservableValue projectsTableViewerObserveSingleSelection_8 = ViewersObservables.observeSingleSelection(projectsTableViewer);
IObservableValue projectsTableViewerStatusObserveDetailValue = BeansObservables.observeDetailValue(projectsTableViewerObserveSingleSelection_8, Project.class, "status", ProjectStatus.class);
bindingContext.bindValue(projectEditorFormgetStatusComboViewerObserveSingleSelection, projectsTableViewerStatusObserveDetailValue, null, null);


Also, if I put this code back into initDataBindings() manually it is not displayed in the "Bound Properties" table of the binding tab.
zephon
 
Posts: 4
Joined: Thu Sep 30, 2010 9:03 pm

Re: Problem Binding ComboViewer to TableViewer

Postby Eric Clayberg » Thu Oct 14, 2010 5:53 pm

Give this a try using the latest WindowBuilder build...

http://code.google.com/webtoolkit/tools ... -beta.html
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: Problem Binding ComboViewer to TableViewer

Postby zephon » Sun Oct 17, 2010 4:20 pm

Hi Eric,

The latest beta works. Thanks for your help!

Regards,
Simon
zephon
 
Posts: 4
Joined: Thu Sep 30, 2010 9:03 pm

Re: Problem Binding ComboViewer to TableViewer

Postby Eric Clayberg » Sun Oct 17, 2010 5:02 pm

Glad that worked for you.
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