public interface ECPSelectionProviderService extends ViewModelService
ViewModelContext, to provide a coherent selection provider for the rendering of a view.
|Modifier and Type||Method and Description|
Create a master-detail selection provider on the given
Obtain a selection provider that aggregates the selection in the view model context.
Register a selection provider for a given
null, but if there are no registered providers to which it can delegate, it may have no useful effect.
void registerSelectionProvider(VElement element, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
element. The effect is undefined if the
elementalready has a provider registered. It is probably a good practice that only the renderer of the
elementbe responsible for registering a selection provider for it.
element- an element in the view model
selectionProvider- a selection provider to register for it
NullPointerException- if the either the element or the selection provider is
default IMasterDetailSelectionProvider createMasterDetailSelectionProvider(org.eclipse.jface.viewers.Viewer master, Supplier<? extends org.eclipse.swt.widgets.Control> detailSupplier)
master- the master viewer
detailSupplier- the supplier of the detail view currently presented for the selection in the
Copyright © 2020. All rights reserved.