Class ECPSWTViewRendererImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.view.internal.swt.ECPSWTViewRendererImpl
-
- All Implemented Interfaces:
ECPSWTViewRenderer
public class ECPSWTViewRendererImpl extends java.lang.Object implements ECPSWTViewRenderer
- Author:
- Jonas
-
-
Field Summary
-
Fields inherited from interface org.eclipse.emf.ecp.ui.view.swt.ECPSWTViewRenderer
INSTANCE
-
-
Constructor Summary
Constructors Constructor Description ECPSWTViewRendererImpl()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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, java.util.Map<java.lang.String,java.lang.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.
-
-
-
Method Detail
-
render
public ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject) throws ECPRendererException
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.- Specified by:
render
in interfaceECPSWTViewRenderer
- Parameters:
parent
- the parent SWT composite to render the view ondomainObject
- The domainObject to show in the view- Returns:
- an ECPSWTView providing an interface to the rendered view
- Throws:
ECPRendererException
- if there is an exception during rendering- See Also:
ECPSWTViewRenderer.render(org.eclipse.swt.widgets.Composite, org.eclipse.emf.ecore.EObject)
-
render
public ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject, VView viewModel) throws ECPRendererException
Creates a view with the attributes of the domain object. The layout of the view is specified by the given view model.- Specified by:
render
in interfaceECPSWTViewRenderer
- Parameters:
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 view- Returns:
- an ECPSWTView providing an interface to the rendered view
- Throws:
ECPRendererException
- if there is an exception during rendering- See Also:
ECPSWTViewRenderer.render(org.eclipse.swt.widgets.Composite, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecp.view.spi.model.VView)
-
render
public ECPSWTView render(org.eclipse.swt.widgets.Composite parent, ViewModelContext viewModelContext) throws ECPRendererException
Creates a view with the attributes of the domain object. The layout of the view is specified by the view model set in the view model context.- Specified by:
render
in interfaceECPSWTViewRenderer
- Parameters:
parent
- the parent SWT composite to render the view onviewModelContext
- theViewModelContext
to use- Returns:
- an ECPSWTView providing an interface to the rendered view
- Throws:
ECPRendererException
- if there is an exception during rendering- See Also:
ECPSWTViewRenderer.render(org.eclipse.swt.widgets.Composite, org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
-
render
@Deprecated public ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject, java.util.Map<java.lang.String,java.lang.Object> context) throws ECPRendererException
Deprecated.Description copied from interface: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 toECPSWTViewRenderer.render(Composite, EObject, VViewModelProperties)
, which should be used instead of this method- Specified by:
render
in interfaceECPSWTViewRenderer
- Parameters:
parent
- the parent SWT composite to render the view ondomainObject
- The domainObject to show in the viewcontext
- a key-value-map from String to Object- Returns:
- an ECPSWTView providing an interface to the rendered view
- Throws:
ECPRendererException
- if there is an exception during rendering
-
render
public ECPSWTView render(org.eclipse.swt.widgets.Composite parent, org.eclipse.emf.ecore.EObject domainObject, VViewModelProperties properties) throws ECPRendererException
Description copied from interface: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.- Specified by:
render
in interfaceECPSWTViewRenderer
- Parameters:
parent
- the parent SWT composite to render the view ondomainObject
- The domainObject to show in the viewproperties
- theproperties
. May benull
- Returns:
- an ECPSWTView providing an interface to the rendered view
- Throws:
ECPRendererException
- if there is an exception during rendering
-
-