|
Re: To add double click listener to the problemview pane [message #323776 is a reply to message #323769] |
Tue, 08 January 2008 09:41  |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
shwetha wrote:
> hi all,
>
> I wanted to know how to add a double click listener to the problem
> view pane so that when i doubleclick on the marker i get a window.
Note that the class org.eclipse.ui.views.markers.internal.ProblemView is
internal, not public API so anything you do to touch or extend it is not
recommended. Investigate that class and you'll find that it inherits
from TableView, which despite its name contains a multi-column
TreeViewer. There is a protected method to get access to the TreeViewer,
to which you can probably add whatever listener you need. But, this has
to be done through subclassing and thus you'll end up with a different
ViewPart to show instead of the same Problems View.
I don't think there is any support for adding listeners to existing
views, but I'm not 100% certain.
Hope this helps,
Eric
|
|
|
Powered by
FUDForum. Page generated in 0.03313 seconds