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.