public class ECPSWTViewRendererImpl extends Object implements ECPSWTViewRenderer
INSTANCE
Constructor and Description |
---|
ECPSWTViewRendererImpl()
Constructor.
|
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.
|
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.
|
public ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject) throws ECPRendererException
render
in interface ECPSWTViewRenderer
parent
- the parent SWT composite to render the view ondomainObject
- The domainObject to show in the viewECPRendererException
- if there is an exception during renderingECPSWTViewRenderer.render(org.eclipse.swt.widgets.Composite,
org.eclipse.emf.ecore.EObject)
public ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject, VView viewModel) throws ECPRendererException
render
in interface ECPSWTViewRenderer
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 renderingECPSWTViewRenderer.render(org.eclipse.swt.widgets.Composite,
org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecp.view.spi.model.VView)
public ECPSWTView render(org.eclipse.swt.widgets.Composite parent, ViewModelContext viewModelContext) throws ECPRendererException
render
in interface ECPSWTViewRenderer
parent
- the parent SWT composite to render the view onviewModelContext
- the ViewModelContext
to useECPRendererException
- if there is an exception during renderingECPSWTViewRenderer.render(org.eclipse.swt.widgets.Composite,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
@Deprecated public ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject, Map<String,Object> context) throws ECPRendererException
ECPSWTViewRenderer
Creates 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
ECPSWTViewRenderer.render(Composite, EObject, VViewModelProperties)
, which should be used instead of this method
render
in interface ECPSWTViewRenderer
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 renderingpublic ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject, VViewModelProperties properties) throws ECPRendererException
ECPSWTViewRenderer
render
in interface ECPSWTViewRenderer
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 © 2016. All rights reserved.