Modifier and Type | Method and Description |
---|---|
static VView |
getView(org.eclipse.emf.ecore.EObject eObject,
VViewModelProperties properties)
This allows to retrieve a
VView based on an EObject . |
static VView |
getView(org.eclipse.emf.ecore.EObject object,
VViewModelProperties properties,
Collection<String> requiredKeys)
|
public static VView getView(org.eclipse.emf.ecore.EObject eObject, VViewModelProperties properties)
VView
based on an EObject
. This method reads all IViewProviders
and searches for the best fitting. If none can be found, then null is returned.eObject
- the EObject
to find a VView
forproperties
- the properties
. May be null
EObject
or null if no suited provider could be foundpublic static VView getView(org.eclipse.emf.ecore.EObject object, VViewModelProperties properties, Collection<String> requiredKeys)
object
- the domain model object for which a view is to be requestedproperties
- the properties
for providing the view, that
may or may not include matching filtersrequiredKeys
- a subset (possibly empty) of the keys in the properties
that
must be matched by any view model that I would provide. If any of these keys does not match
a view model, then that view model must not be provided. Otherwise, it may just be less
preferred than some other view model that does matchobject
or null
if no
suitable provider could be found to provide oneCopyright © 2019. All rights reserved.