ViewersObservables.observeInput(Viewer) example?

190 views Asked by At

Can anybody point me to an example which is dealing with Databinding of jface viewers with the ViewersObservables.observeInput(Viewer)?

Am looking to update the contents of a viewer (the items in the comboviewer) with some dynamic content (new set of items to the comboviewer)

Any pointers is much apreciated..

1

There are 1 answers

0
Eugene On BEST ANSWER

I can provide a bit of my (working code):

libraryPathsObservable = BeansObservables.observeDetailValue(selectedToolkit, "libraryPath", Object.class);
bindingContext.bindValue(ViewersObservables.observeInput(libraryPaths), libraryPathsObservable);

Contents provider for libraryPath is ArrayContentProvider and selectedToolkit.getLibraryPath actually returns String[]