public class LegacyRendererService extends Object implements EMFFormsRendererService<VElement>
NOT_APPLICABLE
Constructor and Description |
---|
LegacyRendererService() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext)
Activate method of OSGI Component.
|
AbstractSWTRenderer<VElement> |
getRendererInstance(VElement vElement,
ViewModelContext viewModelContext)
Returns a renderer.
|
double |
isApplicable(VElement vElement,
ViewModelContext viewModelContext)
Check whether the provided
VElement can be rendered by the AbstractSWTRenderer provided by
EMFFormsRendererService.getRendererInstance(VElement, ViewModelContext) . |
protected void |
setReportService(ReportService reportService)
Called by the initializer to set the
ReportService . |
protected void setReportService(ReportService reportService)
ReportService
.reportService
- The ReportService to setprotected void activate(org.osgi.framework.BundleContext bundleContext)
bundleContext
- The BundleContext
to usepublic double isApplicable(VElement vElement, ViewModelContext viewModelContext)
VElement
can be rendered by the AbstractSWTRenderer
provided by
EMFFormsRendererService.getRendererInstance(VElement, ViewModelContext)
.isApplicable
in interface EMFFormsRendererService<VElement>
vElement
- The VElement
to checkviewModelContext
- The ViewModelContext
to use for the renderer instanceEMFFormsRendererService.NOT_APPLICABLE
if the renderer doesn't fit, a positive value otherwiseEMFFormsRendererService.isApplicable(VElement,ViewModelContext)
public AbstractSWTRenderer<VElement> getRendererInstance(VElement vElement, ViewModelContext viewModelContext)
getRendererInstance
in interface EMFFormsRendererService<VElement>
vElement
- The VElement
to create the renderer instance forviewModelContext
- The ViewModelContext
to use for the renderer instanceEMFFormsRendererService.getRendererInstance(VElement, ViewModelContext)
Copyright © 2019. All rights reserved.