de.cau.cs.kieler.sim.kiem.automated.ui.views
Class AutomatedEvalView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by de.cau.cs.kieler.sim.kiem.automated.ui.views.AutomatedEvalView
All Implemented Interfaces:
EventListener, IAdaptable, IExecutableExtension, ControlListener, org.eclipse.swt.internal.SWTEventListener, IPersistable, IViewPart, IWorkbenchPart, IWorkbenchPart2, IWorkbenchPart3, IWorkbenchPartOrientation

public class AutomatedEvalView
extends ViewPart
implements ControlListener

A View for displaying the results of an automated execution run.

Rating proposed yellow
(2010-01-29)

Field Summary
static String VIEW_ID
          The identifier string for this view.
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
AutomatedEvalView()
           
 
Method Summary
 ExecutionFilePanel addExecutionFile(IPath name)
          Add a new execution file to the result view.
 void addExecutionFileFailed(IPath name, Exception e0)
          Add a failed execution file to the view.
 void addIterationResult(IterationResult result)
          Adds the iteration result to the current panel.
 void addIterationResult(List<IterationResult> results)
          Adds the iteration results to the current panel.
 void clear()
          Dispose of all panels and clear the view.
 void controlMoved(ControlEvent e)
          
 void controlResized(ControlEvent e)
          
 void createPartControl(Composite parentComponent)
          
 List<ExecutionFilePanel.PanelData> getData()
          Getter for the data in all tables.
 List<ExecutionFilePanel> getPanels()
          Getter for the panels.
static StepTextField getStepField()
          Getter for the stepField.
 boolean isEmpty()
          Determine whether or not the view is empty.
 void refresh()
          Refreshes the current panel.
 void setFocus()
          
 
Methods inherited from class org.eclipse.ui.part.ViewPart
checkSite, getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, dispose, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

VIEW_ID

public static final String VIEW_ID
The identifier string for this view.

See Also:
Constant Field Values
Constructor Detail

AutomatedEvalView

public AutomatedEvalView()
Method Detail

createPartControl

public void createPartControl(Composite parentComponent)

Specified by:
createPartControl in interface IWorkbenchPart
Specified by:
createPartControl in class WorkbenchPart

setFocus

public void setFocus()

Specified by:
setFocus in interface IWorkbenchPart
Specified by:
setFocus in class WorkbenchPart

addExecutionFile

public ExecutionFilePanel addExecutionFile(IPath name)
Add a new execution file to the result view. The method returns the panel where the results for each individual iteration will be displayed.

Parameters:
name - the path of the execution file
Returns:
the panel for managing the result

addExecutionFileFailed

public void addExecutionFileFailed(IPath name,
                                   Exception e0)
Add a failed execution file to the view.

Parameters:
name - the name of the file
e0 - the exception that caused the failure

addIterationResult

public void addIterationResult(IterationResult result)
Adds the iteration result to the current panel.

Parameters:
result - the result

addIterationResult

public void addIterationResult(List<IterationResult> results)
Adds the iteration results to the current panel.

Parameters:
results - the results

refresh

public void refresh()
Refreshes the current panel.


clear

public void clear()
Dispose of all panels and clear the view.


controlMoved

public void controlMoved(ControlEvent e)

Specified by:
controlMoved in interface ControlListener

controlResized

public void controlResized(ControlEvent e)

Specified by:
controlResized in interface ControlListener

getData

public List<ExecutionFilePanel.PanelData> getData()
Getter for the data in all tables.

Returns:
the data

getPanels

public List<ExecutionFilePanel> getPanels()
Getter for the panels.

Returns:
the panels

isEmpty

public boolean isEmpty()
Determine whether or not the view is empty.

Returns:
true if the view is empty

getStepField

public static StepTextField getStepField()
Getter for the stepField.

Returns:
the stepField