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

java.lang.Object
  extended by org.ow2.clif.console.lib.egui.editor.TestPlanDetailsEditPage
All Implemented Interfaces:
org.eclipse.ui.forms.IDetailsPage, org.eclipse.ui.forms.IFormPart, org.eclipse.ui.forms.IPartSelectionListener

public class TestPlanDetailsEditPage
extends java.lang.Object
implements org.eclipse.ui.forms.IDetailsPage

Injectors and probes details page in Master/Details pattern.

Author:
Manuel AZEMA, Joan Chaumont

Constructor Summary
TestPlanDetailsEditPage(TestPlanMasterEditPage master, java.util.Map testPlan)
          Create a new injectors and probes details page.
 
Method Summary
 void commit(boolean onSave)
           
 void createContents(org.eclipse.swt.widgets.Composite parent)
          Create injectors and probes properties labels and textfields.
 void dispose()
          Release allocated resources.
 void initialize(org.eclipse.ui.forms.IManagedForm form)
          Save the managed form.
 boolean isDirty()
          Detail part is dirty if properties have been changed and no commit.
 boolean isStale()
          No model modification without direct user interaction.
 void refresh()
          Not called because the part is not stale.
 void selectionChanged(org.eclipse.ui.forms.IFormPart part, org.eclipse.jface.viewers.ISelection selection)
          Show selected blade properties.
 void setFocus()
          No default property textfield focus.
 boolean setFormInput(java.lang.Object input)
          Part needs not to react.
 void updateAvailableServers()
          Set the list of the available servers in the server combo box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestPlanDetailsEditPage

public TestPlanDetailsEditPage(TestPlanMasterEditPage master,
                               java.util.Map testPlan)
Create a new injectors and probes details page.

Parameters:
master - master page in master/detail pattern
testPlan - Map with used test plan
Method Detail

initialize

public void initialize(org.eclipse.ui.forms.IManagedForm form)
Save the managed form.

Specified by:
initialize in interface org.eclipse.ui.forms.IFormPart
Parameters:
form - the parent form

createContents

public void createContents(org.eclipse.swt.widgets.Composite parent)
Create injectors and probes properties labels and textfields.

Specified by:
createContents in interface org.eclipse.ui.forms.IDetailsPage
Parameters:
parent - the parent composite

dispose

public void dispose()
Release allocated resources.

Specified by:
dispose in interface org.eclipse.ui.forms.IFormPart
See Also:
IFormPart.dispose()

isDirty

public boolean isDirty()
Detail part is dirty if properties have been changed and no commit.

Specified by:
isDirty in interface org.eclipse.ui.forms.IFormPart
Returns:
true if properties changed and no commit

setFormInput

public boolean setFormInput(java.lang.Object input)
Part needs not to react. No input change.

Specified by:
setFormInput in interface org.eclipse.ui.forms.IFormPart
Returns:
false
See Also:
IFormPart.setFormInput(Object input)

isStale

public boolean isStale()
No model modification without direct user interaction.

Specified by:
isStale in interface org.eclipse.ui.forms.IFormPart
Returns:
false
See Also:
IFormPart.isStale()

setFocus

public void setFocus()
No default property textfield focus.

Specified by:
setFocus in interface org.eclipse.ui.forms.IFormPart
See Also:
IFormPart.isStale()

refresh

public void refresh()
Not called because the part is not stale.

Specified by:
refresh in interface org.eclipse.ui.forms.IFormPart
See Also:
IFormPart.refresh()

updateAvailableServers

public void updateAvailableServers()
Set the list of the available servers in the server combo box.


commit

public void commit(boolean onSave)
Specified by:
commit in interface org.eclipse.ui.forms.IFormPart

selectionChanged

public void selectionChanged(org.eclipse.ui.forms.IFormPart part,
                             org.eclipse.jface.viewers.ISelection selection)
Show selected blade properties.
With the id of the selected blade, we take its blade definition in the test plan and fill textfield with properties.

Specified by:
selectionChanged in interface org.eclipse.ui.forms.IPartSelectionListener