0

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..

Jack Clouseau
  • 81
  • 1
  • 11

1 Answers1

0

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[]

Eugene
  • 9,242
  • 2
  • 30
  • 29