[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: How to: View1 responds to events in View2

When you have a question regarding plug-in development, it is always better to ask eclipse.platform newsgroup.

For your particular concerns, here is a tutorial on view linking explaining how a view can listen to selection occurring in a foreign view:

http://www-128.ibm.com/developerworks/opensource/library/os-ecllink/

Welcome to the Eclipse world!
Barthelemy!

Jonathan Branam wrote:
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.