org.ow2.clif.console.lib.egui.monitor
Class MonitorView

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 org.ow2.clif.console.lib.egui.monitor.MonitorView
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 MonitorView
extends org.eclipse.ui.part.ViewPart

Author:
Tsirimiaina ANDRIANAVONIMIARINA JAONA, Joan Chaumont, Bruno Dillenseger

Field Summary
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
MonitorView()
          Constructor.
 
Method Summary
 void addExecutionTab(java.util.Map testPlan, java.lang.String testId, ClifAppFacade clifApp)
          Create a new execution tab
 java.util.ArrayList bladesTabName(java.util.Map selectedTestPlan)
          Returns the list of class name for a testplan.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          This callback allow us to create the viewer and initialize it.
 org.eclipse.swt.custom.CTabItem getLastAddedTabItemExec()
          Gets last tabItemExec added
 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
 

Constructor Detail

MonitorView

public MonitorView()
Constructor.

Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
This callback allow us to create the viewer and initialize it.

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart
See Also:
WorkbenchPart.setFocus()

addExecutionTab

public void addExecutionTab(java.util.Map testPlan,
                            java.lang.String testId,
                            ClifAppFacade clifApp)
Create a new execution tab

Parameters:
testPlan - TestPlan which contains only selected blades
testId - test id and new tab's name
clifApp - the clif app used for this test

bladesTabName

public java.util.ArrayList bladesTabName(java.util.Map selectedTestPlan)
Returns the list of class name for a testplan.

Parameters:
selectedTestPlan -
Returns:
an arrayList with ctabitems title

getLastAddedTabItemExec

public org.eclipse.swt.custom.CTabItem getLastAddedTabItemExec()
Gets last tabItemExec added

Returns:
CTabItem the last added tab item