Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367142

Summary: Using SelectionProviderMediator to work with different table views
Product: [Eclipse Project] PDE Reporter: Roque Pinel <repinel>
Component: API ToolsAssignee: PDE API Tools Inbox <pde-apitools-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: remy.suen
Version: 4.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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.