public class ViewProviderImpl extends Object implements EMFFormsFilteredViewService
EMFFormsViewService
which collects all known IViewProvider
and finds the best
fitting view.Constructor and Description |
---|
ViewProviderImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate()
Component activate method.
|
void |
addProvider(IViewProvider viewProvider)
Add an
IViewProvider . |
VView |
getView(org.eclipse.emf.ecore.EObject object,
VViewModelProperties properties,
Collection<String> requiredKeys)
|
void |
removeProvider(IViewProvider viewProvider)
Remove an
IViewProvider . |
protected void |
setReportService(ReportService reportService)
Set the ReportService.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getView
protected void activate()
public VView getView(org.eclipse.emf.ecore.EObject object, VViewModelProperties properties, Collection<String> requiredKeys)
EMFFormsFilteredViewService
getView
in interface EMFFormsFilteredViewService
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 onepublic void addProvider(IViewProvider viewProvider)
EMFFormsViewService
IViewProvider
.addProvider
in interface EMFFormsViewService
viewProvider
- The IViewProvider
to be addedpublic void removeProvider(IViewProvider viewProvider)
EMFFormsViewService
IViewProvider
.removeProvider
in interface EMFFormsViewService
viewProvider
- The IViewProvider
to be removedprotected void setReportService(ReportService reportService)
reportService
- The ReportService
Copyright © 2019. All rights reserved.