|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.dialogs.DialogPage | +--org.eclipse.jface.wizard.WizardPage | +--org.eclipse.ui.dialogs.WizardDataTransferPage | +--org.eclipse.ui.dialogs.WizardExportPage
Abstract superclass for a typical export wizard's main page.
Clients may subclass this page to inherit its common destination resource selection facilities.
Subclasses must implement
createDestinationGroup
Subclasses may override
allowNewContainerName
Subclasses may extend
handleEvent
internalSaveWidgetValues
updateWidgetEnablements
Field Summary |
Fields inherited from class org.eclipse.ui.dialogs.WizardDataTransferPage |
COMBO_HISTORY_LENGTH, SIZING_TEXT_FIELD_WIDTH |
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 |
Constructor Summary | |
protected |
WizardExportPage(String pageName,
IStructuredSelection selection)
Deprecated. Creates an export wizard page. |
Method Summary | |
protected boolean |
allowNewContainerName()
Deprecated. The WizardExportPage implementation of this
WizardDataTransferPage method returns false . |
void |
createControl(Composite parent)
Deprecated. (non-Javadoc) Method declared on IDialogPage. |
protected abstract void |
createDestinationGroup(Composite parent)
Deprecated. Creates the export destination specification visual components. |
protected void |
createSourceGroup(Composite parent)
Deprecated. Creates the export source resource specification controls. |
protected void |
displayErrorDialog(String message)
Deprecated. Display an error dialog with the specified message. |
protected void |
displayResourcesSelectedCount(int selectedResourceCount)
Deprecated. Displays a description message that indicates a selection of resources of the specified size. |
protected boolean |
ensureResourcesLocal(List resources)
Deprecated. Ensures that all resources have local contents. |
protected List |
extractNonLocalResources(List originalList)
Deprecated. Returns a new subcollection containing only those resources which are not local. |
boolean |
getExportAllTypesValue()
Deprecated. Returns the current selection value of the "Export all types" radio, or its set initial value if it does not exist yet. |
String |
getResourceFieldValue()
Deprecated. Returns the current contents of the resource name entry field, or its set initial value if it does not exist yet (which could be null ). |
protected IPath |
getResourcePath()
Deprecated. Return the path for the resource field. |
protected List |
getSelectedResources()
Deprecated. Returns this page's collection of currently-specified resources to be exported. |
protected IResource |
getSourceResource()
Deprecated. Returns the resource object specified in the resource name entry field, or null if such a resource does not exist in the workbench. |
String |
getTypesFieldValue()
Deprecated. Returns the current contents of the types entry field, or its set initial value if it does not exist yet (which could be null ). |
protected List |
getTypesToExport()
Deprecated. Returns the resource extensions currently specified to be exported. |
void |
handleEvent(Event event)
Deprecated. The WizardExportPage implementation of this
Listener method handles all events and enablements for controls
on this page. |
protected void |
handleResourceBrowseButtonPressed()
Deprecated. Opens a container selection dialog and displays the user's subsequent container selection in this page's resource name field. |
protected void |
handleResourceDetailsButtonPressed()
Deprecated. Opens a resource selection dialog and records the user's subsequent resource selections. |
protected void |
handleTypesEditButtonPressed()
Deprecated. Queries the user for the types of resources to be exported and displays these types in this page's "Types to export" field. |
protected boolean |
hasExportableExtension(String resourceName)
Deprecated. Returns whether the extension of the given resource name is an extension that has been specified for export by the user. |
protected void |
internalSaveWidgetValues()
Deprecated. Persists additional setting that are to be restored in the next instance of this page. |
protected Object[] |
queryIndividualResourcesToExport(IAdaptable rootResource)
Deprecated. Queries the user for the individual resources that are to be exported and returns these resources as a collection. |
protected Object[] |
queryResourceTypesToExport()
Deprecated. Queries the user for the resource types that are to be exported and returns these types as a collection. |
protected void |
resetSelectedResources()
Deprecated. Resets this page's selected resources collection and updates its controls accordingly. |
protected void |
restoreResourceSpecificationWidgetValues()
Deprecated. Restores resource specification control settings that were persisted in the previous instance of this page. |
protected void |
saveWidgetValues()
Deprecated. Persists resource specification control setting that are to be restored in the next instance of this page. |
protected void |
selectAppropriateFolderContents(IContainer resource)
Deprecated. Records a container's recursive file descendents which have an extension that has been specified for export by the user. |
protected void |
selectAppropriateResources(Object resource)
Deprecated. Records a resource's recursive descendents which are appropriate for export based upon this page's current controls contents. |
void |
setExportAllTypesValue(boolean value)
Deprecated. Sets the selection value of this page's "Export all types" radio, or stores it for future use if this visual component does not exist yet. |
void |
setResourceFieldValue(String value)
Deprecated. Sets the value of this page's source resource field, or stores it for future use if this visual component does not exist yet. |
protected void |
setResourceToDisplay(IResource resource)
Deprecated. Set the resource whos name we will display. |
void |
setTypesFieldValue(String value)
Deprecated. Sets the value of this page's "Types to export" field, or stores it for future use if this visual component does not exist yet. |
protected void |
setTypesToExport(List typeStrings)
Deprecated. Sets the value of this page's "Types to export" field based upon the collection of extensions. |
protected void |
setupBasedOnInitialSelections()
Deprecated. Populates the resource name field based upon the currently selected resources. |
protected void |
updateWidgetEnablements()
Deprecated. Updates the enablements of this page's controls. |
protected boolean |
validateSourceGroup()
Deprecated. Returns whether this page's source specification controls currently all contain valid values. |
Methods inherited from class org.eclipse.ui.dialogs.WizardDataTransferPage |
addToHistory, addToHistory, createBoldLabel, createOptionsGroup, createOptionsGroupButtons, createPlainLabel, createSpacer, determinePageCompletion, displayErrorDialog, getErrorDialogTitle, getPathFromText, queryForContainer, queryOverwrite, queryYesNoQuestion, restoreWidgetValues, updatePageCompletion, validateDestinationGroup, validateOptionsGroup |
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, 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 |
protected WizardExportPage(String pageName, IStructuredSelection selection)
pageName
- the name of the pageselection
- the current resource selectionMethod Detail |
protected boolean allowNewContainerName()
WizardExportPage
implementation of this
WizardDataTransferPage
method returns false
.
Subclasses may override this method.
allowNewContainerName
in class WizardDataTransferPage
true
if new ones are okay, and false
if only existing ones are allowedpublic void createControl(Composite parent)
parent
- the parent compositeprotected abstract void createDestinationGroup(Composite parent)
Subclasses must implement this method.
parent
- the parent controlprotected final void createSourceGroup(Composite parent)
parent
- the parent controlprotected void displayErrorDialog(String message)
displayErrorDialog
in class WizardDataTransferPage
message
- the error messageprotected void displayResourcesSelectedCount(int selectedResourceCount)
selectedResourceCount
- the resource selection size to displayprotected boolean ensureResourcesLocal(List resources)
Note that this is a potentially long operation which should be used sparingly (in other words, once per export operation, likely just before performance of the export).
resources
- the list of resources to ensure locality for
true
for successful completionprotected List extractNonLocalResources(List originalList)
originalList
- the original list of resources (element type:
IResource
)
IResource
)public boolean getExportAllTypesValue()
public String getResourceFieldValue()
null
).
null
protected IPath getResourcePath()
protected List getSelectedResources()
IResource
)protected IResource getSourceResource()
null
if such a resource does not exist in the workbench.
null
public String getTypesFieldValue()
null
).
null
protected List getTypesToExport()
String
)public void handleEvent(Event event)
WizardExportPage
implementation of this
Listener
method handles all events and enablements for controls
on this page. Subclasses may extend.
event
- the event which occurredprotected void handleResourceBrowseButtonPressed()
protected void handleResourceDetailsButtonPressed()
protected void handleTypesEditButtonPressed()
protected boolean hasExportableExtension(String resourceName)
resourceName
- the resource name
true
if the resource name is suitable for export based
upon its extensionprotected void internalSaveWidgetValues()
The WizardImportPage
implementation of this method does
nothing. Subclasses may extend to persist additional settings.
protected Object[] queryIndividualResourcesToExport(IAdaptable rootResource)
A similar method is available which queries the user for a single root
resource selection to export. To get this functionality instead, use
queryRootResourceToExport
.
rootResource
- the resource to use as the root of the selection query
IResource
), or null
if the user canceled the
selection#queryRootResourceToExport
protected Object[] queryResourceTypesToExport()
String
), or null
if the user canceled the
selectionprotected void resetSelectedResources()
protected void restoreResourceSpecificationWidgetValues()
protected void saveWidgetValues()
internalSaveWidgetValues
.
saveWidgetValues
in class WizardDataTransferPage
protected void selectAppropriateFolderContents(IContainer resource)
resource
- the parent containerprotected void selectAppropriateResources(Object resource)
resource
- the parent resourcepublic void setExportAllTypesValue(boolean value)
value
- new selection valuepublic void setResourceFieldValue(String value)
value
- new valueprotected void setResourceToDisplay(IResource resource)
resource
- public void setTypesFieldValue(String value)
value
- new valueprotected void setTypesToExport(List typeStrings)
typeStrings
- the collection of extensions to populate the "Types to
export" field with (element type: String
)protected void setupBasedOnInitialSelections()
protected void updateWidgetEnablements()
updateWidgetEnablements
in class WizardDataTransferPage
protected final boolean validateSourceGroup()
WizardDataTransferPage
The WizardDataTransferPage
implementation of this method returns
true
. Subclasses may reimplement this hook method.
validateSourceGroup
in class WizardDataTransferPage
true
indicating validity of all controls in the
source specification group
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |