public static final class ViewModelServiceProvider.Composed extends Object implements ViewModelServiceProvider
ViewModelServiceProvider
s. 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.ViewModelServiceProvider.Composed
NULL
Constructor and Description |
---|
Composed(ViewModelServiceProvider first,
ViewModelServiceProvider second)
Initializes me with two service providers to compose.
|
Modifier and Type | Method and Description |
---|---|
Collection<? extends ViewModelService> |
getViewModelServices(VElement view,
org.eclipse.emf.ecore.EObject eObject)
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)
first
override services of the same type provided by the second
.
Services in the second
made redundant by this mechanism are immediately
disposed.first
- a provider of view-model services to composesecond
- another providerpublic Collection<? extends ViewModelService> getViewModelServices(VElement view, org.eclipse.emf.ecore.EObject eObject)
ViewModelServiceProvider
getViewModelServices
in interface ViewModelServiceProvider
view
- the view to be renderedeObject
- the object to be renderednull
)Copyright © 2019. All rights reserved.