Class UnitTestView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
org.eclipse.ease.lang.unittest.ui.views.UnitTestView
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,org.eclipse.core.runtime.IExecutableExtension,org.eclipse.ui.IPersistable,org.eclipse.ui.IViewPart,org.eclipse.ui.IWorkbenchPart,org.eclipse.ui.IWorkbenchPart2,org.eclipse.ui.IWorkbenchPart3,org.eclipse.ui.part.IWorkbenchPartOrientation
public class UnitTestView
extends org.eclipse.ui.part.ViewPart
-
Field Summary
Fields Modifier and Type Field Description static StringTEST_STATUS_PROPERTYstatic StringVIEW_IDFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
Constructors Constructor Description UnitTestView() -
Method Summary
Modifier and Type Method Description voidcreatePartControl(org.eclipse.swt.widgets.Composite parent)voiddispose()TestSuiteScriptEnginegetCurrentEngine()ITestSuitegetCurrentTestSuite()static StringgetDurationString(long duration)org.eclipse.jface.viewers.TreeViewergetFileTreeViewer()org.eclipse.jface.viewers.StructuredViewergetTableViewer()voidnotifyEngineCreation(TestSuiteScriptEngine engine)static voidopenEditor(Object resource, int lineNumber)Opens the given resource in an editor.voidsetFocus()voidterminateSuite()Methods inherited from class org.eclipse.ui.part.ViewPart
getViewSite, init, init, saveState, setInitializationDataMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusyMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Field Details
-
VIEW_ID
- See Also:
- Constant Field Values
-
TEST_STATUS_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Details
-
UnitTestView
public UnitTestView()
-
-
Method Details
-
openEditor
Opens the given resource in an editor. Needs to be run from the UI thread.- Parameters:
resource- resource to openlineNumber- line number to jump to in editor
-
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)- Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart
-
setFocus
public void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
setFocusin classorg.eclipse.ui.part.WorkbenchPart
-
getFileTreeViewer
public org.eclipse.jface.viewers.TreeViewer getFileTreeViewer() -
getTableViewer
public org.eclipse.jface.viewers.StructuredViewer getTableViewer() -
notifyEngineCreation
-
getDurationString
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classorg.eclipse.ui.part.WorkbenchPart
-
terminateSuite
public void terminateSuite() -
getCurrentEngine
- Returns:
- the currentEngine
-
getCurrentTestSuite
-