Package org.eclipse.ui.dialogs
Class WizardExportPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.eclipse.ui.dialogs.WizardDataTransferPage
-
- org.eclipse.ui.dialogs.WizardExportPage
-
- All Implemented Interfaces:
IDialogPage,IMessageProvider,IWizardPage,Listener,IOverwriteQuery
@Deprecated public abstract class WizardExportPage extends WizardDataTransferPage
Deprecated.use WizardExportResourcePageAbstract 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
handleEventinternalSaveWidgetValuesupdateWidgetEnablements
- Restriction:
- This class is not intended to be subclassed by clients. Planned to be removed, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=448275
- Restriction:
- This class is not intended to be referenced by clients.
-
-
Field Summary
-
Fields inherited from class org.eclipse.ui.dialogs.WizardDataTransferPage
COMBO_HISTORY_LENGTH, SIZING_TEXT_FIELD_WIDTH
-
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWizardExportPage(String pageName, IStructuredSelection selection)Deprecated.Creates an export wizard page.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleanallowNewContainerName()Deprecated.TheWizardExportPageimplementation of thisWizardDataTransferPagemethod returnsfalse.voidcreateControl(Composite parent)Deprecated.Creates the top level control for this dialog page under the given parent composite.protected abstract voidcreateDestinationGroup(Composite parent)Deprecated.Creates the export destination specification visual components.protected voidcreateSourceGroup(Composite parent)Deprecated.Creates the export source resource specification controls.protected voiddisplayErrorDialog(String message)Deprecated.Display an error dialog with the specified message.protected voiddisplayResourcesSelectedCount(int selectedResourceCount)Deprecated.Displays a description message that indicates a selection of resources of the specified size.protected booleanensureResourcesLocal(List resources)Deprecated.Only retained for backwards compatibility.protected ListextractNonLocalResources(List originalList)Deprecated.Returns a new subcollection containing only those resources which are not local.booleangetExportAllTypesValue()Deprecated.Returns the current selection value of the "Export all types" radio, or its set initial value if it does not exist yet.StringgetResourceFieldValue()Deprecated.Returns the current contents of the resource name entry field, or its set initial value if it does not exist yet (which could benull).protected IPathgetResourcePath()Deprecated.Return the path for the resource field.protected ListgetSelectedResources()Deprecated.Returns this page's collection of currently-specified resources to be exported.protected IResourcegetSourceResource()Deprecated.Returns the resource object specified in the resource name entry field, ornullif such a resource does not exist in the workbench.StringgetTypesFieldValue()Deprecated.Returns the current contents of the types entry field, or its set initial value if it does not exist yet (which could benull).protected ListgetTypesToExport()Deprecated.Returns the resource extensions currently specified to be exported.voidhandleEvent(Event event)Deprecated.TheWizardExportPageimplementation of thisListenermethod handles all events and enablements for controls on this page.protected voidhandleResourceBrowseButtonPressed()Deprecated.Opens a container selection dialog and displays the user's subsequent container selection in this page's resource name field.protected voidhandleResourceDetailsButtonPressed()Deprecated.Opens a resource selection dialog and records the user's subsequent resource selections.protected voidhandleTypesEditButtonPressed()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 booleanhasExportableExtension(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 voidinternalSaveWidgetValues()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 voidresetSelectedResources()Deprecated.Resets this page's selected resources collection and updates its controls accordingly.protected voidrestoreResourceSpecificationWidgetValues()Deprecated.Restores resource specification control settings that were persisted in the previous instance of this page.protected voidsaveWidgetValues()Deprecated.Persists resource specification control setting that are to be restored in the next instance of this page.protected voidselectAppropriateFolderContents(IContainer resource)Deprecated.Records a container's recursive file descendents which have an extension that has been specified for export by the user.protected voidselectAppropriateResources(Object resource)Deprecated.Records a resource's recursive descendents which are appropriate for export based upon this page's current controls contents.voidsetExportAllTypesValue(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.voidsetResourceFieldValue(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 voidsetResourceToDisplay(IResource resource)Deprecated.Set the resource whos name we will display.voidsetTypesFieldValue(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 voidsetTypesToExport(List typeStrings)Deprecated.Sets the value of this page's "Types to export" field based upon the collection of extensions.protected voidsetupBasedOnInitialSelections()Deprecated.Populates the resource name field based upon the currently selected resources.protected voidupdateWidgetEnablements()Deprecated.Updates the enablements of this page's controls.protected booleanvalidateSourceGroup()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, 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, setButtonLayoutData, 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
-
WizardExportPage
protected WizardExportPage(String pageName, IStructuredSelection selection)
Deprecated.Creates an export wizard page. If the current resource selection is not empty then it will be used as the initial collection of resources selected for export.- Parameters:
pageName- the name of the pageselection- the current resource selection
-
-
Method Detail
-
allowNewContainerName
protected boolean allowNewContainerName()
Deprecated.TheWizardExportPageimplementation of thisWizardDataTransferPagemethod returnsfalse. Subclasses may override this method.- Specified by:
allowNewContainerNamein classWizardDataTransferPage- Returns:
trueif new ones are okay, andfalseif only existing ones are allowed
-
createControl
public void createControl(Composite parent)
Deprecated.Description copied from interface:IDialogPageCreates the top level control for this dialog page under the given parent composite.Implementors are responsible for ensuring that the created control can be accessed via
getControl- Parameters:
parent- the parent composite
-
createDestinationGroup
protected abstract void createDestinationGroup(Composite parent)
Deprecated.Creates the export destination specification visual components.Subclasses must implement this method.
- Parameters:
parent- the parent control
-
createSourceGroup
protected final void createSourceGroup(Composite parent)
Deprecated.Creates the export source resource specification controls.- Parameters:
parent- the parent control
-
displayErrorDialog
protected void displayErrorDialog(String message)
Deprecated.Display an error dialog with the specified message.- Overrides:
displayErrorDialogin classWizardDataTransferPage- Parameters:
message- the error message
-
displayResourcesSelectedCount
protected void displayResourcesSelectedCount(int selectedResourceCount)
Deprecated.Displays a description message that indicates a selection of resources of the specified size.- Parameters:
selectedResourceCount- the resource selection size to display
-
ensureResourcesLocal
@Deprecated protected boolean ensureResourcesLocal(List resources)
Deprecated.Only retained for backwards compatibility.Obsolete method. This was implemented to handle the case where ensureLocal() needed to be called but it doesn't use it any longer.- Parameters:
resources- the list of resources to ensure locality for- Returns:
truefor successful completion
-
extractNonLocalResources
protected List extractNonLocalResources(List originalList)
Deprecated.Returns a new subcollection containing only those resources which are not local.- Parameters:
originalList- the original list of resources (element type:IResource)- Returns:
- the new list of non-local resources (element type:
IResource)
-
getExportAllTypesValue
public 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.- Returns:
- the "Export All Types" radio's current value or anticipated initial value
-
getResourceFieldValue
public 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 benull).- Returns:
- the resource name field's current value or anticipated initial value,
or
null
-
getResourcePath
protected IPath getResourcePath()
Deprecated.Return the path for the resource field.- Returns:
- org.eclipse.core.runtime.IPath
-
getSelectedResources
protected List getSelectedResources()
Deprecated.Returns this page's collection of currently-specified resources to be exported. This is the primary resource selection facility accessor for subclasses.- Returns:
- the collection of resources currently selected for export (element
type:
IResource)
-
getSourceResource
protected IResource getSourceResource()
Deprecated.Returns the resource object specified in the resource name entry field, ornullif such a resource does not exist in the workbench.- Returns:
- the resource specified in the resource name entry field, or
null
-
getTypesFieldValue
public 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 benull).- Returns:
- the types entry field's current value or anticipated initial value,
or
null
-
getTypesToExport
protected List getTypesToExport()
Deprecated.Returns the resource extensions currently specified to be exported.- Returns:
- the resource extensions currently specified to be exported (element
type:
String)
-
handleEvent
public void handleEvent(Event event)
Deprecated.TheWizardExportPageimplementation of thisListenermethod handles all events and enablements for controls on this page. Subclasses may extend.- Parameters:
event- the event which occurred
-
handleResourceBrowseButtonPressed
protected void handleResourceBrowseButtonPressed()
Deprecated.Opens a container selection dialog and displays the user's subsequent container selection in this page's resource name field.
-
handleResourceDetailsButtonPressed
protected void handleResourceDetailsButtonPressed()
Deprecated.Opens a resource selection dialog and records the user's subsequent resource selections.
-
handleTypesEditButtonPressed
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.
-
hasExportableExtension
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.- Parameters:
resourceName- the resource name- Returns:
trueif the resource name is suitable for export based upon its extension
-
internalSaveWidgetValues
protected void internalSaveWidgetValues()
Deprecated.Persists additional setting that are to be restored in the next instance of this page.The
WizardImportPageimplementation of this method does nothing. Subclasses may extend to persist additional settings.
-
queryIndividualResourcesToExport
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.- Parameters:
rootResource- the resource to use as the root of the selection query- Returns:
- the resources selected for export (element type:
IResource), ornullif the user canceled the selection
-
queryResourceTypesToExport
protected Object[] queryResourceTypesToExport()
Deprecated.Queries the user for the resource types that are to be exported and returns these types as a collection.- Returns:
- the resource types selected for export (element type:
String), ornullif the user canceled the selection
-
resetSelectedResources
protected void resetSelectedResources()
Deprecated.Resets this page's selected resources collection and updates its controls accordingly.
-
restoreResourceSpecificationWidgetValues
protected void restoreResourceSpecificationWidgetValues()
Deprecated.Restores resource specification control settings that were persisted in the previous instance of this page. Subclasses wishing to restore persisted values for their controls may extend.
-
saveWidgetValues
protected void saveWidgetValues()
Deprecated.Persists resource specification control setting that are to be restored in the next instance of this page. Subclasses wishing to persist additional setting for their controls should extend hook methodinternalSaveWidgetValues.- Overrides:
saveWidgetValuesin classWizardDataTransferPage
-
selectAppropriateFolderContents
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.- Parameters:
resource- the parent container
-
selectAppropriateResources
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.- Parameters:
resource- the parent resource
-
setExportAllTypesValue
public 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.- Parameters:
value- new selection value
-
setResourceFieldValue
public 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.- Parameters:
value- new value
-
setResourceToDisplay
protected void setResourceToDisplay(IResource resource)
Deprecated.Set the resource whos name we will display.- Parameters:
resource- the resource to display
-
setTypesFieldValue
public 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.- Parameters:
value- new value
-
setTypesToExport
protected void setTypesToExport(List typeStrings)
Deprecated.Sets the value of this page's "Types to export" field based upon the collection of extensions.- Parameters:
typeStrings- the collection of extensions to populate the "Types to export" field with (element type:String)
-
setupBasedOnInitialSelections
protected void setupBasedOnInitialSelections()
Deprecated.Populates the resource name field based upon the currently selected resources.
-
updateWidgetEnablements
protected void updateWidgetEnablements()
Deprecated.Updates the enablements of this page's controls. Subclasses may extend.- Overrides:
updateWidgetEnablementsin classWizardDataTransferPage
-
validateSourceGroup
protected final boolean validateSourceGroup()
Deprecated.Description copied from class:WizardDataTransferPageReturns whether this page's source specification controls currently all contain valid values.The
WizardDataTransferPageimplementation of this method returnstrue. Subclasses may reimplement this hook method.- Overrides:
validateSourceGroupin classWizardDataTransferPage- Returns:
trueindicating validity of all controls in the source specification group
-
-