addToHistory(String[] history, String newEntry) Adds an entry to a history, while taking care of duplicate history items
and excessively long histories.
protected void
addToHistory(List history, String newEntry) Adds an entry to a history, while taking care of duplicate history items
and excessively long histories.
createButton(Composite parent, int id, String label, boolean defaultButton) Creates a new button with the given id.
The Dialog implementation of this framework method creates
a standard push button, registers for selection events including button
presses and registers default buttons with its shell.
public void
createControl(Composite parent) (non-Javadoc) Method declared on IDialogPage.
queryOverwrite(String pathString) The WizardDataTransfer implementation of this
IOverwriteQuery method asks the user whether the existing
resource at the given path should be overwritten.
protected boolean
queryYesNoQuestion(String message) Displays a Yes/No question to the user with the specified message and
returns the user's response.
protected void
restoreWidgetValues() Hook method for restoring widget values to the values that they held last
time this wizard was used to completion.
validateOptionsGroup() Returns whether this page's options group's controls currently all
contain valid values.
The WizardPreferencesPage implementation of this method
returns true if the button to transfer all preferences is
selected OR at least one of the individual items are checked.
protected boolean
validateSourceGroup() Returns whether this page's source specification controls currently all
contain valid values.
The WizardDataTransferPage implementation of this method
returns true.
Field Detail
COMBO_HISTORY_LENGTH
final protected static int COMBO_HISTORY_LENGTH(Code)
Adds an entry to a history, while taking care of duplicate history items
and excessively long histories. The assumption is made that all histories
should be of length WizardDataTransferPage.COMBO_HISTORY_LENGTH.
Parameters: history - the current history Parameters: newEntry - the entry to add to the history
Adds an entry to a history, while taking care of duplicate history items
and excessively long histories. The assumption is made that all histories
should be of length WizardDataTransferPage.COMBO_HISTORY_LENGTH.
Parameters: history - the current history Parameters: newEntry - the entry to add to the history
protected Button createButton(Composite parent, int id, String label, boolean defaultButton)(Code)
Creates a new button with the given id.
The Dialog implementation of this framework method creates
a standard push button, registers for selection events including button
presses and registers default buttons with its shell. The button id is
stored as the buttons client data. Note that the parent's layout is
assumed to be a GridLayout and the number of columns in this layout is
incremented. Subclasses may override.
Parameters: parent - the parent composite Parameters: id - the id of the button (see IDialogConstants.*_IDconstants for standard dialog button ids) Parameters: label - the label from the button Parameters: defaultButton - true if the button is to be the default button,and false otherwise
Returns whether this page is complete. This determination is made based
upon the current contents of this page's controls. Subclasses wishing to
include their controls in this determination should override the hook
methods validateSourceGroup and/or
validateOptionsGroup.
true if this page is complete, andfalse if incomplete See Also:WizardPreferencesPage.validateSourceGroup See Also:WizardPreferencesPage.validateOptionsGroup
Attempts to ensure that the specified directory exists on the local file
system. Answers a boolean indicating success.
boolean Parameters: directory - java.io.File
If the target for export does not exist then attempt to create it. Answer
a boolean indicating whether the target exists (ie.- if it either
pre-existed or this method was able to create it)
boolean
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.
boolean
The WizardDataTransfer implementation of this
IOverwriteQuery method asks the user whether the existing
resource at the given path should be overwritten.
Parameters: pathString - the user's reply: one of "YES", "NO","ALL", or "CANCEL"
Displays a Yes/No question to the user with the specified message and
returns the user's response.
Parameters: message - the question to ask true for Yes, and false for No
Returns whether this page's options group's controls currently all
contain valid values.
The WizardPreferencesPage implementation of this method
returns true if the button to transfer all preferences is
selected OR at least one of the individual items are checked. Subclasses
may reimplement this method.
true indicating validity of all controls in theoptions group