public interface IViewProvider
VView
. First the can render method is called. The provider
with the highest priority is then asked to provideViewModel(EObject, VViewModelProperties)
a VView
.Modifier and Type | Field and Description |
---|---|
static double |
NOT_APPLICABLE
Constant indicating, that the provider cannot provide a
VView for a specific EObject . |
Modifier and Type | Method and Description |
---|---|
double |
canProvideViewModel(org.eclipse.emf.ecore.EObject eObject,
VViewModelProperties properties)
Called to check whether the provider can provide a
VView for an EObject . |
VView |
provideViewModel(org.eclipse.emf.ecore.EObject eObject,
VViewModelProperties properties)
This method is only called if
canProvideViewModel(EObject, VViewModelProperties) returned the highest
positive
number of all IViewProviders . |
static final double NOT_APPLICABLE
VView
for a specific EObject
.double canProvideViewModel(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
VView
for an EObject
.eObject
- the EObject
to create aproperties
- the properties
for providing the viewVView
for the
provided EObject
or NOT_APPLICABLE
if it doesn't fitVView provideViewModel(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
canProvideViewModel(EObject, VViewModelProperties)
returned the highest
positive
number of all IViewProviders
.
It must then return a VView
to the EObject
.eObject
- the EObject
to generate the VView
forproperties
- the properties
for providing the viewVView
Copyright © 2019. All rights reserved.