Detecting when someone has clicked on an item in the Problems view [message #186626] |
Thu, 04 January 2007 04:06 |
Eclipse User |
|
|
|
Originally posted by: alexmont1.comcast.net
I want to detect when the user has clicked on an icon in the Problems view.
Basically, my plugin puts up a whole bunch of markers, and when you click
on one, it updates its own view with information about that particular
marker. I want to make it so that the same thing that happens when you
click on a marker also happens when you click on the Problems view entry
for that marker.
Does clicking on an item in the Problems view generate any kind of event
that you can pick up or attach a callback to?
|
|
|
Re: Detecting when someone has clicked on an item in the Problems view [message #186820 is a reply to message #186626] |
Thu, 04 January 2007 17:21 |
Eclipse User |
|
|
|
Originally posted by: wayne.beaton._NOSPAM_eclipse.org
Alexander Mont wrote:
> I want to detect when the user has clicked on an icon in the Problems view.
>
> Basically, my plugin puts up a whole bunch of markers, and when you
> click on one, it updates its own view with information about that
> particular marker. I want to make it so that the same thing that happens
> when you click on a marker also happens when you click on the Problems
> view entry for that marker.
>
> Does clicking on an item in the Problems view generate any kind of event
> that you can pick up or attach a callback to?
>
Listen for the event on the selection manager.
http://www.eclipse.org/articles/Article-WorkbenchSelections/ article.html
Note that you'll get notified of any kind of selection. You'll have to
check the selected item to make sure that it's the type you're looking for.
Wayne
|
|
|
Powered by
FUDForum. Page generated in 0.09325 seconds