public class ExtensionXMIViewModelProvider extends Object implements IViewProvider
IViewProvider
which loads view models from extension points.NOT_APPLICABLE
Constructor and Description |
---|
ExtensionXMIViewModelProvider() |
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 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 fitpublic 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
Copyright © 2016. All rights reserved.