public class ViewProvider extends Object implements IViewProvider
NOT_APPLICABLE
Constructor and Description |
---|
ViewProvider()
Initializes me.
|
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
IViewProvider.canProvideViewModel(EObject, VViewModelProperties) returned the highest
positive
number of all IViewProviders . |
public VView provideViewModel(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
IViewProvider
IViewProvider.canProvideViewModel(EObject, VViewModelProperties)
returned the highest
positive
number of all IViewProviders
.
It must then return a VView
to the EObject
.provideViewModel
in interface IViewProvider
eObject
- the EObject
to generate the VView
forproperties
- the properties
for providing the viewVView
public double canProvideViewModel(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
IViewProvider
VView
for an EObject
.canProvideViewModel
in interface IViewProvider
eObject
- the EObject
to create aproperties
- the properties
for providing the viewVView
for the
provided EObject
or IViewProvider.NOT_APPLICABLE
if it doesn't fitCopyright © 2019. All rights reserved.