public class DIViewSWTRendererService extends Object implements EMFFormsRendererService<VView>
NOT_APPLICABLE
Constructor and Description |
---|
DIViewSWTRendererService() |
Modifier and Type | Method and Description |
---|---|
protected void |
activate(org.osgi.framework.BundleContext bundleContext)
Activate ViewSWTRendererService.
|
protected void |
deactivate(org.osgi.framework.BundleContext bundleContext)
Deactivate ViewSWTRendererService.
|
AbstractSWTRenderer<VView> |
getRendererInstance(VView 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 |
setEMFFormsDatabinding(EMFFormsDatabinding databindingService)
Called by the initializer to set the EMFFormsDatabinding.
|
protected void |
setEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
Called by the initializer to set the EMFFormsLocaleProvider.
|
protected void |
setReportService(ReportService reportService)
Called by the initializer to set the ReportService.
|
protected void |
unsetEMFFormsDatabinding(EMFFormsDatabinding databindingService)
Called by the initializer to unset the EMFFormsDatabinding.
|
protected void |
unsetEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
Called by the initializer to unset the EMFFormsLocaleProvider.
|
protected void |
unsetReportService(ReportService reportService)
Called by the initializer to unset the ReportService.
|
protected void activate(org.osgi.framework.BundleContext bundleContext)
bundleContext
- The BundleContext
protected void deactivate(org.osgi.framework.BundleContext bundleContext)
bundleContext
- The BundleContext
protected void setEMFFormsDatabinding(EMFFormsDatabinding databindingService)
databindingService
- The EMFFormsDatabindingprotected void unsetEMFFormsDatabinding(EMFFormsDatabinding databindingService)
databindingService
- The EMFFormsDatabindingprotected void setReportService(ReportService reportService)
reportService
- The ReportServiceprotected void unsetReportService(ReportService reportService)
reportService
- The ReportServiceprotected void setEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
localeProvider
- The EMFFormsLocaleProviderprotected void unsetEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
localeProvider
- The EMFFormsLocaleProviderpublic double isApplicable(VElement vElement, ViewModelContext viewModelContext)
VElement
can be rendered by the AbstractSWTRenderer
provided by
EMFFormsRendererService.getRendererInstance(VElement, ViewModelContext)
.isApplicable
in interface EMFFormsRendererService<VView>
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<VView> getRendererInstance(VView vElement, ViewModelContext viewModelContext)
getRendererInstance
in interface EMFFormsRendererService<VView>
vElement
- The VElement
to create the renderer instance forviewModelContext
- The ViewModelContext
to use for the renderer instanceEMFFormsRendererService.getRendererInstance(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
Copyright © 2016. All rights reserved.