Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367142 - Using SelectionProviderMediator to work with different table views
Summary: Using SelectionProviderMediator to work with different table views
Status: RESOLVED INVALID
Alias: None
Product: PDE
Classification: Eclipse Project
Component: API Tools (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PDE API Tools Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-19 18:16 EST by Roque Pinel CLA
Modified: 2011-12-19 19:13 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roque Pinel CLA 2011-12-19 18:16:39 EST
Build Identifier: 20100617-1415

So as to allows the user to select elements from different table view in the same view, I started using the SelectionProviderMediator.

Something like:
		StructuredViewer[] trackedViewers = new StructuredViewer[]
			{
				table1,
				table2,
				table3
			};
		ISelectionProvider selectionProvider = new SelectionProviderMediator(trackedViewers, statisticTable);
		getSite().setSelectionProvider(selectionProvider);

But although the previous code works fine, the 'org.eclipse.jdt.internal.ui.viewsupport.SelectionProviderMediator' class is still internal and I think that is kind of discouraged...

Is there a workaround for my case or any chance to offer the right access to mediator class?

Thank you all for any help.


Reproducible: Always
Comment 1 Remy Suen CLA 2011-12-19 19:13:10 EST
(In reply to comment #0)
> But although the previous code works fine, the
> 'org.eclipse.jdt.internal.ui.viewsupport.SelectionProviderMediator' class is
> still internal and I think that is kind of discouraged...
> 
> Is there a workaround for my case or any chance to offer the right access to
> mediator class?

Either live and acknowledge the fact that you are not using APIs or write your own implementation.