public final class ViewModelContextFactory extends Object
ViewModelContexts.| Modifier and Type | Field and Description |
|---|---|
static ViewModelContextFactory |
INSTANCE
The singleton instance of the factory.
|
| Modifier and Type | Method and Description |
|---|---|
ViewModelContext |
createViewModelContext(VElement view,
org.eclipse.emf.ecore.EObject domainObject)
Instantiates a new view model context.
|
ViewModelContext |
createViewModelContext(VElement view,
org.eclipse.emf.ecore.EObject domainObject,
ViewModelService... modelServices)
Instantiates a new view model context with specific services.
|
ViewModelContext |
createViewModelContext(VElement view,
org.eclipse.emf.ecore.EObject domainObject,
ViewModelServiceProvider serviceProvider)
Instantiates a new view model context with a provider of local service overrides.
|
public static final ViewModelContextFactory INSTANCE
public ViewModelContext createViewModelContext(VElement view, org.eclipse.emf.ecore.EObject domainObject)
view - the viewdomainObject - the domain objectViewModelContextpublic ViewModelContext createViewModelContext(VElement view, org.eclipse.emf.ecore.EObject domainObject, ViewModelService... modelServices)
ViewModelServiceProvider that can propagate the override to child contexts.view - the viewdomainObject - the domain objectmodelServices - an array of services to use in the ViewModelContextViewModelContextcreateViewModelContext(VElement, EObject, ViewModelServiceProvider),
ViewModelContext.getChildContext(EObject, VElement, org.eclipse.emf.ecp.view.spi.model.VView,
ViewModelService...)public ViewModelContext createViewModelContext(VElement view, org.eclipse.emf.ecore.EObject domainObject, ViewModelServiceProvider serviceProvider)
serviceProvider is propagated to child contexts to override registered
services in their scope, too.view - the viewdomainObject - the domain objectserviceProvider - a provider of local view-model services to override any
statically registered services of the same types. May be null if
local service overrides are not neededViewModelContextCopyright © 2018. All rights reserved.