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

Hi Adithya,

You can read this article:
http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html
 and download the source code to see how to achieve your purpose.

Best Regards,

Cheney

adithya wrote:

> 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.