Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » GridTreeViewer: selection changed listener and viewer.setSelection
GridTreeViewer: selection changed listener and viewer.setSelection [message #991290] Tue, 18 December 2012 06:40 Go to previous message
Laura V is currently offline Laura V
Messages: 32
Registered: March 2012
Member
Hi guys
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? Is it necessary to use the selection provider service?
 
Read Message
Read Message
Previous Topic:Issues with Kepler M4 and E4 Tools
Next Topic:Tab placement always remove most used window
Goto Forum:
  


Current Time: Sat May 18 22:52:59 EDT 2013

Powered by FUDForum. Page generated in 0.01712 seconds