public class EUnitRunnerView extends org.eclipse.ui.part.ViewPart implements EUnitTestListener
Note: this class implements the EUnitTestListener
interface,
but it is does ShowEUnitViewTestListener
, which creates this view and sets
it up. After setting it up, ShowEUnitViewTestListener
delegates all
notifications to this class.
Modifier and Type | Class and Description |
---|---|
static class |
EUnitRunnerView.RerunAllHandler |
static class |
EUnitRunnerView.RerunOnlyFailedHandler |
static class |
EUnitRunnerView.RerunSameHandler |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The ID of the view as specified by the extension.
|
EXTENSION_POINT_ID
Constructor and Description |
---|
EUnitRunnerView() |
Modifier and Type | Method and Description |
---|---|
void |
afterCase(EUnitModule module,
EUnitTest test)
Notification sent after running a test case.
|
void |
beforeCase(EUnitModule module,
EUnitTest test)
Notification sent before running a test case.
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
This is a callback that will allow us to create the viewer and initialize
it.
|
void |
setCurrentModules(java.util.List<EUnitModule> modules)
Changes the module which is currently displayed in this view.
|
void |
setFocus()
Passing the focus request to the viewer's control.
|
getViewSite, init, init, saveState, setInitializationData
addPartPropertyListener, addPropertyListener, dispose, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String ID
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public void setCurrentModules(java.util.List<EUnitModule> modules)
module
- EUnit module to be shown.public void beforeCase(EUnitModule module, EUnitTest test)
EUnitTestListener
beforeCase
in interface EUnitTestListener
module
- EUnit module under execution.test
- Description of the test case: its result has not been set yet.public void afterCase(EUnitModule module, EUnitTest test)
EUnitTestListener
afterCase
in interface EUnitTestListener
module
- EUnit module under execution.test
- Test case, with its result set.