|
Re: Views Interaction [message #461141 is a reply to message #461135] |
Fri, 05 January 2007 15:14 |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.03324 seconds