org.ow2.clif.console.lib.egui.editor
Class TestPlanTestPage

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.EditorPart
              extended by org.eclipse.ui.forms.editor.FormPage
                  extended by org.ow2.clif.console.lib.egui.editor.TestPlanTestPage
All Implemented Interfaces:
java.util.Observer, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.forms.editor.IFormPage, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation

public class TestPlanTestPage
extends org.eclipse.ui.forms.editor.FormPage
implements java.util.Observer

Test Plan Editor page to execute tests.
Selected blades are executed.
Test commands are:

An executed test plan can be executed again.
An executed test plan can't be changed. To modify an executed test plan, use the "Modify executed test plan" command. A copy of the test plan is created and openned.

Author:
Manuel AZEMA, Joan Chaumont, Florian Francheteau

Field Summary
protected  java.util.Map<java.lang.String,ClifDeployDefinition> deployedTestPlan
           
 
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
TestPlanTestPage(org.eclipse.ui.forms.editor.FormEditor editor, TestPlanObservable testPlan, java.lang.String id, java.lang.String title)
          Construct a test page to select blades and execute test plan.
TestPlanTestPage(TestPlanObservable testPlan, java.lang.String id, java.lang.String title)
          Construct a test page to select blades and execute test plan.
 
Method Summary
protected  void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
          Create page contents.
 void dispose()
          Stop execution if needed.
 TestPlanVisualDisplay getTableBlade()
          Get table blade viewer
 boolean isAborted()
           
 void refresh()
          Update test plan display TabOrder.
 void setChanged()
          If a changed has been made restart started clifApp
 void setTableBlade(TestPlanVisualDisplay tableBlade)
          Set the table blade viewer
 void stopTest()
           
 void update(java.util.Observable supervisor, java.lang.Object observation)
          Receive alarms and blade state changes from the supervisor.
 
Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, createPartControl, doSave, doSaveAs, getEditor, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, initialize, isActive, isDirty, isEditor, isSaveAsAllowed, selectReveal, setActive, setFocus, setIndex
 
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setInputWithNotify, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, 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.IEditorPart
getEditorInput, getEditorSite
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.ui.ISaveablePart
isSaveOnCloseNeeded
 

Field Detail

deployedTestPlan

protected java.util.Map<java.lang.String,ClifDeployDefinition> deployedTestPlan
Constructor Detail

TestPlanTestPage

public TestPlanTestPage(org.eclipse.ui.forms.editor.FormEditor editor,
                        TestPlanObservable testPlan,
                        java.lang.String id,
                        java.lang.String title)
Construct a test page to select blades and execute test plan.

Parameters:
editor - parent form editor
testPlan - the test plan used by this page
id - page id
title - page title

TestPlanTestPage

public TestPlanTestPage(TestPlanObservable testPlan,
                        java.lang.String id,
                        java.lang.String title)
Construct a test page to select blades and execute test plan.

Parameters:
testPlan - the test plan used by this page
id - page id
title - page title
Method Detail

createFormContent

protected void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
Create page contents.
Add a blades display tab folder and commands buttons to control test execution.

Overrides:
createFormContent in class org.eclipse.ui.forms.editor.FormPage

getTableBlade

public TestPlanVisualDisplay getTableBlade()
Get table blade viewer

Returns:
Returns the tableBlade.

setTableBlade

public void setTableBlade(TestPlanVisualDisplay tableBlade)
Set the table blade viewer

Parameters:
tableBlade - The tableBlade to set.

dispose

public void dispose()
Stop execution if needed.

Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.forms.editor.FormPage
See Also:
FormPage.dispose()

refresh

public void refresh()
Update test plan display TabOrder.


setChanged

public void setChanged()
If a changed has been made restart started clifApp


isAborted

public boolean isAborted()
Returns:
boolean

stopTest

public void stopTest()

update

public void update(java.util.Observable supervisor,
                   java.lang.Object observation)
Receive alarms and blade state changes from the supervisor.

Specified by:
update in interface java.util.Observer