[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: ISelectionProvider in a View

Patrick Godeau wrote:

Le 12/03/2009 15:13, adithya a écrit :

I came to know i have to use IStructuredSelection of IselectionProvider for making the selection Global but how do i add a listener in the other view which listens to the above said listener?

Try this:
getSite ().getSelectionProvider ().addSelectionChangedListener (...)
I have done that..but in the other view say i want to display the attributes of the table selected in the table selected then how do i do it??

I mean if i want to make the selection of the table selected in one view (in this i will add getSite().setSelectionProvider()..right??) global to the view which displays the attributes of the selected table then what do i do in the view displaying the attributes??

Adithya.