SelectionProvider/SelectionListener [message #467664] |
Wed, 09 May 2007 17:35 |
Eclipse User |
|
|
|
Originally posted by: asanh.ll.mit.edu
I have two ViewParts. I'll call them ViewA and ViewB.
ViewA has a button, and registers a SelectionProvider. ViewB adds a
SelectionListener and is used to display data generated by ViewA.
ViewA is presented at startup. ViewB is registered using the placeholder
mechanism.
I have a listener for the button. When the button is pressed, the listener
shows ViewB. It then calls a method in the SelectionProvider code to call
the selectionChanged method for the SelectionListener.
I am getting some interesting behaviour.
When I click the button the first time, I get ViewB to show up, but it
doesn't see the selectionChanged event. Then I need to take focus off
ViewB - select another view or another window, put focus back on ViewB,
then click the button again. Then I get a selectionChanged event, but from
the data I print out, it's from the first button click.
Where should I begin to diagnose this behaviour?
Thanks much.
Ai-Hoa
|
|
|
Powered by
FUDForum. Page generated in 0.03277 seconds