public interface ECPSWTViewRenderer
Modifier and Type | Field and Description |
---|---|
static ECPSWTViewRenderer |
INSTANCE
Provides access to the stateless renderer.
|
Modifier and Type | Method and Description |
---|---|
ECPSWTView |
render(org.eclipse.swt.widgets.Composite parent,
org.eclipse.emf.ecore.EObject domainObject)
Creates a view with the attributes of the domain object.
|
ECPSWTView |
render(org.eclipse.swt.widgets.Composite parent,
org.eclipse.emf.ecore.EObject domainObject,
Map<String,Object> context)
Deprecated.
use
render(Composite, EObject, VViewModelProperties) instead |
ECPSWTView |
render(org.eclipse.swt.widgets.Composite parent,
org.eclipse.emf.ecore.EObject domainObject,
VView viewModel)
Creates a view with the attributes of the domain object.
|
ECPSWTView |
render(org.eclipse.swt.widgets.Composite parent,
org.eclipse.emf.ecore.EObject domainObject,
VViewModelProperties properties)
Creates a view with the attributes of the domain object.
|
ECPSWTView |
render(org.eclipse.swt.widgets.Composite parent,
ViewModelContext viewModelContext)
Creates a view with the attributes of the domain object.
|
static final ECPSWTViewRenderer INSTANCE
ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject) throws ECPRendererException
parent
- the parent SWT composite to render the view ondomainObject
- The domainObject to show in the viewECPRendererException
- if there is an exception during renderingECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject, VView viewModel) throws ECPRendererException
parent
- the parent SWT composite to render the view ondomainObject
- The domainObject to show in the viewviewModel
- the view model describing the layout of the viewECPRendererException
- if there is an exception during renderingECPSWTView render(org.eclipse.swt.widgets.Composite parent, ViewModelContext viewModelContext) throws ECPRendererException
parent
- the parent SWT composite to render the view onviewModelContext
- the ViewModelContext
to useECPRendererException
- if there is an exception during rendering@Deprecated ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject, Map<String,Object> context) throws ECPRendererException
render(Composite, EObject, VViewModelProperties)
insteadCreates a view with the attributes of the domain object. The layout of the view can either be describes by a registered view model, or, if none view model is registered for the domainObject, will be the default layout.
The given context map will be used to create
non-inheritable properties
. The rendering will be delegated to
render(Composite, EObject, VViewModelProperties)
, which should be used instead of this method
parent
- the parent SWT composite to render the view ondomainObject
- The domainObject to show in the viewcontext
- a key-value-map from String to ObjectECPRendererException
- if there is an exception during renderingECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject, VViewModelProperties properties) throws ECPRendererException
parent
- the parent SWT composite to render the view ondomainObject
- The domainObject to show in the viewproperties
- the properties
. May be null
ECPRendererException
- if there is an exception during renderingCopyright © 2019. All rights reserved.