Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Views Interaction
Views Interaction [message #461135] Fri, 05 January 2007 14:42 Go to next message
Swetha is currently offline SwethaFriend
Messages: 68
Registered: July 2009
Member
Hi All,

I am new to the Eclipse RCP...Please help in me regarding the
interaction f views

I am creating two views in a single perspective..one is Tree (SWT) and
another view is Table(SWT)..Selection of a tree node should notify the
other views like (Table) as I want to display the contents of tree node
into the table...
SO I am using IselectionProvider and Listener concept....

Please throw some light on how to implement this....

Thanks in advance
Re: Views Interaction [message #461141 is a reply to message #461135] Fri, 05 January 2007 15:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nugaee.SPAMtlen.pl

Swetha wrote:
> Hi All,
>
> I am new to the Eclipse RCP...Please help in me regarding the
> interaction f views
>
> I am creating two views in a single perspective..one is Tree (SWT) and
> another view is Table(SWT)..Selection of a tree node should notify the
> other views like (Table) as I want to display the contents of tree node
> into the table...
> SO I am using IselectionProvider and Listener concept....
>
> Please throw some light on how to implement this....
>
> Thanks in advance
>
to be selection listener you should implement ISelectionListener
interface and add your view to listeners pool using
addSelectionListener (i do that in createPartControl method):
getSite().getPage().addSelectionListener(this);

or using two parameters version of this method.


to be selection provider you should use

setSelectionProvider from IViewPart interface
getViewSite().setSelectionProvider(yourViewer)


bartosz michalik
Re: Views Interaction [message #461172 is a reply to message #461135] Fri, 05 January 2007 17:28 Go to previous message
Roman Porotnikov is currently offline Roman PorotnikovFriend
Messages: 18
Registered: July 2009
Junior Member
"Make your Eclipse applications richer with view linking"
http://www-128.ibm.com/developerworks/library/os-ecllink/ind ex.html

Swetha wrote:

> I am new to the Eclipse RCP...Please help in me regarding the
> interaction f views
>
> I am creating two views in a single perspective..one is Tree (SWT) and
> another view is Table(SWT)..Selection of a tree node should notify the
> other views like (Table) as I want to display the contents of tree node
> into the table...
> SO I am using IselectionProvider and Listener concept....
>
> Please throw some light on how to implement this....
>
Previous Topic:Classsloading Problem
Next Topic:several plugins locations in one product configuration?
Goto Forum:
  


Current Time: Wed Apr 24 16:35:21 GMT 2024

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

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

Back to the top