How to receive NullSelection events for at table when it gets programmatically emptied? [message #1237258] |
Wed, 29 January 2014 08:50 |
Matthias Paul Scholz Messages: 40 Registered: May 2012 |
Member |
|
|
Hi,
I've got three views, let's call them A, B and C.
A and B both include tables.
B listens to selections in A's table and updates its own table accordingly, using a global ISelectionListener.
C in turn listens to selections in B, including null selections, using a INullSelectionListener that is registered as a PostSelectionListener.
Everything works fine when manually selecting something in A's table, then manually selecting something in B's updated table: C receives the SelectionEvent with the selection in B's table as expected.
It also works when manually deselecting something in B's table: again, C receives the event for that NullSelection.
Now, imagine that something in B's table has been selected and C has been updated accordingly. When manually selecting something in A's table now that gives rise to the table in B getting emptied, I'd expect C receiving a NullSelection event, as nothing at all is selected in B's table any more.
However, that NullSelection event is never fired, so C never gets updated correctly.
Am I wrong in expecting such an event in such a case?
How can I achieve C being notified then?
|
|
|
Powered by
FUDForum. Page generated in 0.03551 seconds