[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: getViewSite().setSelectionProvider(viewer) problem

Stein M. Eliassen wrote:

> David Vicente wrote:
> > Stein M. Eliassen wrote:
> > 
> > 
> >>You must register the other treeviewers as SelectionProviders also.
> > 
> > 
> > 
> >>Stein
> > 
> > 
> > 
> > yes, i do that, each time i select a tabitem.
> > 
> > I must register it when i create the treeitem ?
> > 
> > 

> You don't need to register the selectionprovider each time a tab is 
> selected, just register it once when you create the tabitem/treeview.

> Stein
my problem is :

I have a viewpart with one tabfolder and many tabitems which contain,
each, a treeviewer which must be a selection provider.

if i have 3 tabitems open in my tabfolder, i must have 3 selection
provider in the same time.

Or ViewSite register only one selection provider and no an array of
selection provider.

And when i set a new selection provider in viewsite, it doesn't work ,only
the first registered treeviewer stay as selection provider.


it is clear or not ?