Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » selectionChangedListener and viewer.setSelection
selectionChangedListener and viewer.setSelection [message #991285] Tue, 18 December 2012 10:52
Laura V is currently offline Laura VFriend
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?

[Updated on: Tue, 18 December 2012 11:35]

Report message to a moderator

Previous Topic:Jface SQLite
Next Topic:Validation of Tables with Databinding
Goto Forum:
  


Current Time: Tue Apr 23 12:16:09 GMT 2024

Powered by FUDForum. Page generated in 0.02758 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top