문제

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

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top