How to: View1 responds to events in View2 [message #163967] |
Fri, 04 August 2006 19:55 |
Eclipse User |
|
|
|
Originally posted by: jonathan.branam.ontariosystems.com
Setup:
I have two custom Views that I have built. They each show a different view
of the same XML data (the XML data in this case is a trace from the
execution of a program). One of the views shows a hierarchical trace of the
execution with nested method calls and timing statistics in a Tree View. The
other view shows a tabular view of the data arranged by method/class also
including timing statistics in a Table View.
Goal:
What I want is when the user double-clicks in the Tree View to make the
Table View select the same row of data (I will also make this operate in
reverse). What I don't know is the proper "eclipse" way to do this. Is there
some generic way to send my custom message and respond to it? My plug-in
actually has 3 tabular views currently and may gain more. I would like all
of my tabular views to repond to the double-click in the Tree View and
vice-versa.
Obviously, the user may close any of the views, so the other views should
still work properly in this instance.
This is my first project in Eclipse and I'm quite happy with everything so
far. This would be some great icing on the cake.
Thanks!
-Jonathan Branam
Ontario Systems, LLC.
|
|
|
|
Powered by
FUDForum. Page generated in 0.07778 seconds