public class ViewTemplateProviderImpl extends Object implements VTViewTemplateProvider
| Constructor and Description |
|---|
ViewTemplateProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
VTViewTemplate |
getMutableViewTemplate()
Returns a reference to VTViewTemplate.
|
Set<VTStyleProperty> |
getStyleProperties(VElement vElement,
ViewModelContext viewModelContext)
Return all
StyleProperties which are applicable to the provided VElement. |
VTViewTemplate |
getViewTemplate()
Returns a copy of the view template.
|
boolean |
hasControlValidationTemplate() |
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 ReportServiceprotected void startup(org.osgi.framework.BundleContext bundleContext)
bundleContext - the BundleContextpublic VTViewTemplate getViewTemplate()
VTViewTemplateProvidergetViewTemplate in interface VTViewTemplateProviderVTViewTemplateVTViewTemplateProvider.getViewTemplate()public VTViewTemplate getMutableViewTemplate()
VTViewTemplateProvider has returned the
first VTStyleProperty, as they might be cashed by callers.VTViewTemplateprotected void setViewTemplate(VTViewTemplate viewTemplate)
viewTemplate - the VTViewTemplate to setpublic Set<VTStyleProperty> getStyleProperties(VElement vElement, ViewModelContext viewModelContext)
StyleProperties which are applicable to the provided VElement.
The returned values might be cached by the caller. Therefore on the same arguments, the
VTViewTemplateProvider is expected to return the same set of VTStylePropertygetStyleProperties in interface VTViewTemplateProvidervElement - 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)public boolean hasControlValidationTemplate()
hasControlValidationTemplate in interface VTViewTemplateProviderVTViewTemplateProvider provides a VTControlValidationTemplateVTViewTemplateProvider.hasControlValidationTemplate()Copyright © 2018. All rights reserved.