public class LegacyAdditionalRendererService extends Object implements EMFFormsAdditionalRendererService<VElement>
Constructor and Description |
---|
LegacyAdditionalRendererService() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext)
Activate method of OSGI Component.
|
Collection<AbstractAdditionalSWTRenderer<VElement>> |
getRendererInstances(VElement vElement,
ViewModelContext viewModelContext)
Returns a collection of renderers.
|
boolean |
isApplicable(VElement vElement,
ViewModelContext viewModelContext)
Check whether the provided
VElement can be rendered by the AbstractAdditionalSWTRenderer provided
by EMFFormsAdditionalRendererService.getRendererInstances(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 boolean isApplicable(VElement vElement, ViewModelContext viewModelContext)
VElement
can be rendered by the AbstractAdditionalSWTRenderer
provided
by EMFFormsAdditionalRendererService.getRendererInstances(VElement, ViewModelContext)
.isApplicable
in interface EMFFormsAdditionalRendererService<VElement>
vElement
- The VElement
to checkviewModelContext
- The ViewModelContext
to useEMFFormsAdditionalRendererService.isApplicable(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
public Collection<AbstractAdditionalSWTRenderer<VElement>> getRendererInstances(VElement vElement, ViewModelContext viewModelContext)
getRendererInstances
in interface EMFFormsAdditionalRendererService<VElement>
vElement
- The VElement
to create the renderer instance forviewModelContext
- The ViewModelContext
to use for the renderer instanceEMFFormsAdditionalRendererService.getRendererInstances(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
Copyright © 2019. All rights reserved.