Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to: View1 responds to events in View2
How to: View1 responds to events in View2 [message #163967] Fri, 04 August 2006 19:55 Go to next message
Eclipse UserFriend
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.
Re: How to: View1 responds to events in View2 [message #163989 is a reply to message #163967] Sat, 05 August 2006 10:38 Go to previous message
Barthelemy Dagenais is currently offline Barthelemy DagenaisFriend
Messages: 14
Registered: July 2009
Junior Member
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.
>
>
>
Previous Topic:How to control the target for each folder
Next Topic:Loading incomplete images
Goto Forum:
  


Current Time: Thu Apr 25 00:42:22 GMT 2024

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

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

Back to the top