com.pvx.ooadide.wizards
Class WizardPasswordPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by com.pvx.ooadide.wizards.WizardPasswordPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage, org.eclipse.swt.widgets.Listener, org.eclipse.ui.dialogs.IOverwriteQuery
Direct Known Subclasses:
ExportPasswordsPage, WizardPasswordImportPage1

public abstract class WizardPasswordPage
extends org.eclipse.jface.wizard.WizardPage
implements org.eclipse.swt.widgets.Listener, org.eclipse.ui.dialogs.IOverwriteQuery

Base class for preference export/import pages.

Since:
3.1

Field Summary
 
Fields inherited from interface org.eclipse.ui.dialogs.IOverwriteQuery
ALL, CANCEL, NO, NO_ALL, YES
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          (non-Javadoc) Method declared on IDialogPage.
 void dispose()
           
 boolean finish(java.lang.String eventName)
          The Finish button was pressed.
 void handleEvent(org.eclipse.swt.widgets.Event e)
          Handle all events and enablements for widgets in this page
 java.lang.String queryOverwrite(java.lang.String pathString)
          The WizardDataTransfer implementation of this IOverwriteQuery method asks the user whether the existing resource at the given path should be overwritten.
 void setPageComplete()
          Check whether the internal state of the page is complete and update the dialog
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
getControl, getDescription, getErrorMessage, getMessage, getMessageType, getTitle, performHelp, setMessage, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
(non-Javadoc) Method declared on IDialogPage.

Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage

finish

public boolean finish(java.lang.String eventName)
The Finish button was pressed. Try to do the required work now and answer a boolean indicating success. If false is returned then the wizard will not close.

Returns:
boolean

setPageComplete

public void setPageComplete()
Check whether the internal state of the page is complete and update the dialog


handleEvent

public void handleEvent(org.eclipse.swt.widgets.Event e)
Handle all events and enablements for widgets in this page

Specified by:
handleEvent in interface org.eclipse.swt.widgets.Listener
Parameters:
e - Event

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
dispose in class org.eclipse.jface.dialogs.DialogPage

queryOverwrite

public java.lang.String queryOverwrite(java.lang.String pathString)
The WizardDataTransfer implementation of this IOverwriteQuery method asks the user whether the existing resource at the given path should be overwritten.

Specified by:
queryOverwrite in interface org.eclipse.ui.dialogs.IOverwriteQuery
Parameters:
pathString -
Returns:
the user's reply: one of "YES", "NO", "ALL", or "CANCEL"