public abstract class WizardImportPage extends WizardDataTransferPage
Clients may subclass this page to inherit its common destination resource selection facilities.
Subclasses must implement
createSourceGroupSubclasses may override
allowNewContainerNameSubclasses may extend
handleEventCOMBO_HISTORY_LENGTH, SIZING_TEXT_FIELD_WIDTHERROR, INFORMATION, NONE, WARNING| Modifier | Constructor and Description |
|---|---|
protected |
WizardImportPage(String name,
IStructuredSelection selection)
Deprecated.
Creates an import wizard page.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowNewContainerName()
Deprecated.
The
WizardImportPage implementation of this
WizardDataTransferPage method returns true. |
void |
createControl(Composite parent)
Deprecated.
(non-Javadoc)
Method declared on IDialogPage.
|
protected void |
createDestinationGroup(Composite parent)
Deprecated.
Creates the import destination specification controls.
|
protected abstract void |
createSourceGroup(Composite parent)
Deprecated.
Creates the import source specification controls.
|
protected void |
displayErrorDialog(String message)
Deprecated.
Display an error dialog with the specified message.
|
protected IPath |
getContainerFullPath()
Deprecated.
Returns the path of the container resource specified in the container
name entry field, or
null if no name has been typed in. |
protected IPath |
getResourcePath()
Deprecated.
Return the path for the resource field.
|
protected IContainer |
getSpecifiedContainer()
Deprecated.
Returns the container resource specified in the container name entry field,
or
null if such a container does not exist in the workbench. |
protected void |
handleContainerBrowseButtonPressed()
Deprecated.
Opens a container selection dialog and displays the user's subsequent
container resource selection in this page's container name field.
|
void |
handleEvent(Event event)
Deprecated.
The
WizardImportPage implementation of this
Listener method handles all events and enablements for controls
on this page. |
protected void |
initialPopulateContainerField()
Deprecated.
Sets the initial contents of the container name field.
|
void |
setContainerFieldValue(String value)
Deprecated.
Sets the value of this page's container resource field, or stores
it for future use if this page's controls do not exist yet.
|
protected boolean |
validateDestinationGroup()
Deprecated.
Returns whether this page's destination specification controls currently all
contain valid values.
|
addToHistory, addToHistory, createBoldLabel, createOptionsGroup, createOptionsGroupButtons, createPlainLabel, createSpacer, determinePageCompletion, displayErrorDialog, getErrorDialogTitle, getPathFromText, queryForContainer, queryForContainer, queryOverwrite, queryYesNoQuestion, restoreWidgetValues, saveWidgetValues, updatePageCompletion, updateWidgetEnablements, validateOptionsGroup, validateSourceGroupcanFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toStringconvertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisibleprotected WizardImportPage(String name, IStructuredSelection selection)
name - the name of the pageselection - the current resource selectionprotected boolean allowNewContainerName()
WizardImportPage implementation of this
WizardDataTransferPage method returns true.
Subclasses may override this method.allowNewContainerName in class WizardDataTransferPagetrue if new ones are okay, and false
if only existing ones are allowedpublic void createControl(Composite parent)
parent - the parent compositeprotected final void createDestinationGroup(Composite parent)
parent - the parent controlprotected abstract void createSourceGroup(Composite parent)
Subclasses must implement this method.
parent - the parent controlprotected void displayErrorDialog(String message)
displayErrorDialog in class WizardDataTransferPagemessage - the error messageprotected IPath getContainerFullPath()
null if no name has been typed in.
The container specified by the full path might not exist and would need to be created.
nullprotected IPath getResourcePath()
protected IContainer getSpecifiedContainer()
null if such a container does not exist in the workbench.nullprotected void handleContainerBrowseButtonPressed()
public void handleEvent(Event event)
WizardImportPage implementation of this
Listener method handles all events and enablements for controls
on this page. Subclasses may extend.event - the event which occurredprotected final void initialPopulateContainerField()
public void setContainerFieldValue(String value)
value - new valueprotected final boolean validateDestinationGroup()
WizardDataTransferPage
The WizardDataTransferPage implementation of this method returns
true. Subclasses may reimplement this hook method.
validateDestinationGroup in class WizardDataTransferPagetrue indicating validity of all controls in the
destination specification groupGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.