Package org.eclipse.emf.ecp.ui.view.swt
Class RenderFailureView
- java.lang.Object
-
- org.eclipse.emf.ecp.ui.view.swt.RenderFailureView
-
- All Implemented Interfaces:
ECPSWTView
public class RenderFailureView extends java.lang.Object implements ECPSWTView
A specialized view presenting a rendering exception.- Since:
- 1.22
-
-
Constructor Summary
Constructors Constructor Description RenderFailureView(org.eclipse.swt.widgets.Composite parent, ViewModelContext context, ECPRendererException exception)
Initializes me with theexception
to present.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes the view.java.lang.Throwable
getException()
Queries the exception that I present.org.eclipse.swt.widgets.Control
getSWTControl()
Obtains the SWT control presenting the exception.ViewModelContext
getViewModelContext()
Returns theViewModelContext
which was used to create the current view.
-
-
-
Constructor Detail
-
RenderFailureView
public RenderFailureView(org.eclipse.swt.widgets.Composite parent, ViewModelContext context, ECPRendererException exception)
Initializes me with theexception
to present.- Parameters:
parent
- the parent composite in which to present theexception
context
- the view contextexception
- the rendering exception
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:ECPSWTView
Disposes the view.- Specified by:
dispose
in interfaceECPSWTView
-
getSWTControl
public org.eclipse.swt.widgets.Control getSWTControl()
Obtains the SWT control presenting the exception.- Specified by:
getSWTControl
in interfaceECPSWTView
- Returns:
- the root SWT Control of this view.
-
getViewModelContext
public ViewModelContext getViewModelContext()
Description copied from interface:ECPSWTView
Returns theViewModelContext
which was used to create the current view.- Specified by:
getViewModelContext
in interfaceECPSWTView
- Returns:
- the
ViewModelContext
-
getException
public java.lang.Throwable getException()
Queries the exception that I present.- Returns:
- the rendering exception
-
-