Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » SelectionProvider/SelectionListener
SelectionProvider/SelectionListener [message #467664] Wed, 09 May 2007 17:35
Eclipse UserFriend
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
Previous Topic:how do i make a 2nd plugins directory available to eclipse?
Next Topic:Progress Monitor
Goto Forum:
  


Current Time: Thu May 15 16:56:16 EDT 2025

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

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

Back to the top