public static final class ViewModelServiceProvider.Composed extends Object implements ViewModelServiceProvider
ViewModelServiceProviders. Any services provided by the first composed provider override services of the same type provided by the second. Services in the second made redundant by this mechanism are immediately disposed.
|Constructor and Description|
Initializes me with two service providers to compose.
|Modifier and Type||Method and Description|
Returns newly created view model services which will be used when the given view for the given object is rendered.
public Composed(ViewModelServiceProvider first, ViewModelServiceProvider second)
firstoverride services of the same type provided by the
second. Services in the
secondmade redundant by this mechanism are immediately disposed.
first- a provider of view-model services to compose
second- another provider
public Collection<? extends ViewModelService> getViewModelServices(VElement view, org.eclipse.emf.ecore.EObject eObject)
view- the view to be rendered
eObject- the object to be rendered
Copyright © 2018. All rights reserved.