org.ow2.clif.console.lib.egui.wizards
Class NewTestPlanWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.ow2.clif.console.lib.egui.wizards.NewTestPlanWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class NewTestPlanWizardPage
extends org.eclipse.jface.wizard.WizardPage

The "New" wizard page allows setting the container for the new test plan file as well as the file name. The page will only accept file name without the extension or with the .ctp extension. The wizard checks if container exists and file does not exist.

Author:
Tsirimiaina Andrianavonimiarina Jaona

Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
NewTestPlanWizardPage(org.eclipse.jface.viewers.ISelection selection)
          Construct a new NewTestPlanWizardPage.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Create page contents (2 labels and textfields and 1 button).
 java.lang.String getContainerName()
          Return the container name.
 java.lang.String getFileName()
          Return the file name.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Constructor Detail

NewTestPlanWizardPage

public NewTestPlanWizardPage(org.eclipse.jface.viewers.ISelection selection)
Construct a new NewTestPlanWizardPage.

Parameters:
selection - use for container selected
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Create page contents (2 labels and textfields and 1 button).

Parameters:
parent - the parent composite
See Also:
IDialogPage.createControl(Composite)

getContainerName

public java.lang.String getContainerName()
Return the container name.

Returns:
the container name

getFileName

public java.lang.String getFileName()
Return the file name.

Returns:
the file name