public class ViewTemplateSupplierImpl extends Object implements ViewTemplateSupplier
ViewTemplateSupplier
collecting VTViewTemplates
registered to the
extension point "org.eclipse.emf.ecp.view.template
".Constructor and Description |
---|
ViewTemplateSupplierImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
generateSegments(VTViewTemplate template)
Generate segments for all DMRs of domain model reference selectors and set the corresponding EClasses to the
selectors.
|
Map<VTStyleProperty,Double> |
getStyleProperties(VElement vElement,
ViewModelContext viewModelContext)
Return all
StyleProperties which are applicable to the provided VElement . |
Set<VTViewTemplate> |
getViewTemplates()
Returns a copy of the view templates known to this supplier.
|
protected void |
startup(org.osgi.framework.BundleContext bundleContext)
Startup method for osgi service.
|
protected void startup(org.osgi.framework.BundleContext bundleContext)
bundleContext
- the BundleContext
protected void generateSegments(VTViewTemplate template)
template
- The view template containing the DMR selectorspublic Set<VTViewTemplate> getViewTemplates()
ViewTemplateSupplier
ViewTemplateSupplier
getViewTemplates
in interface ViewTemplateSupplier
VTViewTemplates
or an empty setpublic Map<VTStyleProperty,Double> getStyleProperties(VElement vElement, ViewModelContext viewModelContext)
ViewTemplateSupplier
StyleProperties
which are applicable to the provided VElement
.
The keys of the map are the StyleProperties
and the values the corresponding
specificities.
The returned values might be cached by the caller. Therefore, for the same arguments, the
ViewTemplateSupplier
is expected to return the same map of StyleProperties
and
specificities.
getStyleProperties
in interface ViewTemplateSupplier
vElement
- the VElement
to get the StyleProperties
forviewModelContext
- the ViewModelContext
currently in useStyleProperties
and their specificities for the given
VElement
or an empty mapCopyright © 2019. All rights reserved.