Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » SelectionProvider?
SelectionProvider? [message #466999] Fri, 27 April 2007 03:50 Go to next message
Eclipse UserFriend
please help,
I have tree viewer and table viewer on the same view part,
and I should register them as selection providers, but
but via method:
getSite().setSelectionProvider(ISelectionProvider provider);

It can be regisetered only one provider, table or tree, not both.

So, what do you thing about this problem?

Best regards

/Daniel
Re: SelectionProvider? [message #467029 is a reply to message #466999] Fri, 27 April 2007 05:40 Go to previous messageGo to next message
Eclipse UserFriend
Daniel Ladavac wrote:
> please help,
> I have tree viewer and table viewer on the same view part,
> and I should register them as selection providers, but
> but via method:
> getSite().setSelectionProvider(ISelectionProvider provider);
>
> It can be regisetered only one provider, table or tree, not both.
>
> So, what do you thing about this problem?

http://www.eclipse.org/articles/Article-WorkbenchSelections/ article.html

search within the page for "Multiple Selection Providers Within a Part"

Cheers,
Filippo
Re: SelectionProvider? [message #467042 is a reply to message #466999] Fri, 27 April 2007 08:52 Go to previous message
Eclipse UserFriend
U can set selectionProvider on Viewer's gotFocus() event or selectionChanged Listener...
Previous Topic:JFace dynamic menu accelerators
Next Topic:Configuration scope problems
Goto Forum:
  


Current Time: Sun May 11 23:21:41 EDT 2025

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

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

Back to the top