Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to receive NullSelection events for at table when it gets programmatically emptied?(No Nullselection event is fired when a table with selection gets programmatically emptied)
How to receive NullSelection events for at table when it gets programmatically emptied? [message #1237258] Wed, 29 January 2014 08:50
Matthias Paul Scholz is currently offline Matthias Paul ScholzFriend
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?

Previous Topic:Linked resources not updated if .project changes
Next Topic:Why can't Eclipse Target Editor read local p2 repo?
Goto Forum:
  


Current Time: Fri Apr 19 23:15:13 GMT 2024

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

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

Back to the top