[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Keybinding not active for a programmatically selected TreeViewer item

Hi,

I try to persist the TreeViewer selection between sessions via the memento. That works fine so far. The Tree is properly expanded and the right element is selected. But the keybindings are not set to the element. They are active after my first user mouse click on that element. So it seems that I have to propagate my selection somehow. Can someone help?

I set already TreeViewer.setSelection(TreeViewer.getSelection()) in order to propagate the selection to the ViewSite. But that did not helped for the keybindings.

Thanks
Adam