com.ibm.commons.swt.dialog
Interface IDialogPageExt

All Known Implementing Classes:
WizardPageExt

public interface IDialogPageExt

An interface that is used in conjunction with the LWPDOnePageDialog. Users are encouraged to use the abstract class WizardPageExt.


Method Summary
 boolean performDialogOperation(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
          Performs the work on behalf of the wizard.
 void setWizardContainer(org.eclipse.jface.wizard.IWizardContainer wizardContainer)
          Sets the wizard container for the current page.
 java.lang.String validatePage()
          Gets called while the UI thread is idle.
 

Method Detail

performDialogOperation

boolean performDialogOperation(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
                               throws java.lang.reflect.InvocationTargetException,
                                      org.eclipse.core.runtime.CoreException
Performs the work on behalf of the wizard. In the case of the LWPDOnePageDialog only one wizard page is associated with the dialog. That page must implement this interface (or preferably extend com.ibm.commons.swt.dialog.WizardPageExt). The performDialogOperation is called when the user presses OK or Finish.

Parameters:
progressMonitor - the progress monitor that may be used to show the progress of the operation
Returns:
returns true if the operation suceeded.
Throws:
java.lang.reflect.InvocationTargetException
org.eclipse.core.runtime.CoreException

setWizardContainer

void setWizardContainer(org.eclipse.jface.wizard.IWizardContainer wizardContainer)
Sets the wizard container for the current page.

Parameters:
wizardContainer -

validatePage

java.lang.String validatePage()
Gets called while the UI thread is idle. If a non null value is returned it is taken that vaildation failed on the page and the resulting message is displayed in the wizard's title area.

Returns:
null if no error