public class ViewTemplateProviderImpl extends Object implements VTViewTemplateProvider
Constructor and Description |
---|
ViewTemplateProviderImpl() |
Modifier and Type | Method and Description |
---|---|
Set<VTStyleProperty> |
getStyleProperties(VElement vElement,
ViewModelContext viewModelContext)
Return all
StyleProperties which are applicable to the provided VElement . |
VTViewTemplate |
getViewTemplate()
Returns the view template.
|
void |
setReportService(ReportService reportService)
Sets the report service.
|
protected void |
setViewTemplate(VTViewTemplate viewTemplate)
Currently only a testing method.
|
protected void |
startup(org.osgi.framework.BundleContext bundleContext)
Startup method for osgi service.
|
public void setReportService(ReportService reportService)
reportService
- the ReportService
protected void startup(org.osgi.framework.BundleContext bundleContext)
bundleContext
- the BundleContext
public VTViewTemplate getViewTemplate()
getViewTemplate
in interface VTViewTemplateProvider
VTViewTemplate
VTViewTemplateProvider.getViewTemplate()
protected void setViewTemplate(VTViewTemplate viewTemplate)
viewTemplate
- the VTViewTemplate
to setpublic Set<VTStyleProperty> getStyleProperties(VElement vElement, ViewModelContext viewModelContext)
StyleProperties
which are applicable to the provided VElement
.getStyleProperties
in interface VTViewTemplateProvider
vElement
- the VElement
to get the StyleProperties
forviewModelContext
- the ViewModelContext
currently in useStyleProperties
which are applicable to the provided
VElement
or an empty setVTViewTemplateProvider.getStyleProperties(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
Copyright © 2016. All rights reserved.