|selectionChangedListener and viewer.setSelection [message #991285]
||Tue, 18 December 2012 10:52
| Laura V
Registered: March 2012
I have a table (GridTreeViewer) with a selection changed listener doing some stuff.
Then I have another table below, from which I need to set the selection on the table above at a certain point.
The problem is, when I do viewer.setSelection(mySelection) I do get redirected into the selection changed listener (as I want) but there:
- the selection inside the event is null (I assume it is so, because the user didn't actually click on the table...)
- viewer.getSelection is also null (Why? I just set it..)
Are viewer.setSelection and SelectionChangedListener not supposed to work together? If so, what is the right way to do this?
[Updated on: Tue, 18 December 2012 11:35]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.12679 seconds