public class WizardArchivePovClipseProjectResourceExportPage
extends WizardExportResourcesPage
Modifier and Type | Field and Description |
---|---|
protected Button |
compressContentsCheckbox |
protected Button |
createDirectoryStructureButton |
protected Button |
createSelectionOnlyButton |
protected Button |
overwriteExistingFilesCheckbox |
Modifier | Constructor and Description |
---|---|
|
WizardArchivePovClipseProjectResourceExportPage(IStructuredSelection selection)
Create an instance of this class.
|
protected |
WizardArchivePovClipseProjectResourceExportPage(java.lang.String name,
IStructuredSelection selection)
Create an instance of this class
|
Modifier and Type | Method and Description |
---|---|
protected void |
addDestinationItem(java.lang.String value)
Add the passed value to self's destination widget's history
|
protected void |
checkResource(IResource exportResource,
int leadupDepth) |
void |
createControl(Composite parent)
(non-Javadoc)
Method declared on IDialogPage.
|
protected void |
createDestinationGroup(Composite parent)
Create the export destination specification widgets
|
protected void |
createDirectoryStructureOptions(Composite optionsGroup,
Font font)
Create the buttons for the group that determine if the entire or
selected directory structure should be created.
|
protected void |
createFileFormatOptions(Composite optionsGroup,
Font font)
Create the buttons for the group that determine if the entire or
selected directory structure should be created.
|
protected void |
createOptionsGroupButtons(Group optionsGroup)
Create the export options specification widgets.
|
protected boolean |
ensureArchiveIsComplete()
Checks if all neccessary project files and folders are selected to
be exported by the user.
If not the user is aksed to confirm the export despite the missing project files. |
protected boolean |
ensureDirectoryExists(java.io.File directory)
Attempts to ensure that the specified directory exists on the local file system.
|
protected boolean |
ensureTargetDirectoryIsValid(java.lang.String fullPathname)
Returns a boolean indicating whether the directory portion of the
passed pathname is valid and available for use.
|
protected boolean |
ensureTargetFileIsValid(java.io.File targetFile)
Returns a boolean indicating whether the passed File handle is
is valid and available for use.
|
protected boolean |
ensureTargetIsValid()
Ensures that the target output file and its containing directory are
both valid and able to be used.
|
protected boolean |
ensureTargetIsValid(java.io.File targetDirectory)
If the target for export does not exist then attempt to create it.
|
protected boolean |
executeExportOperation(ArchiveFileExportOperation op)
Export the passed resource and recursively export all of its child resources
(iff it's a container).
|
boolean |
finish()
The Finish button was pressed.
|
protected java.lang.String |
getDestinationLabel()
Answer the string to display in the receiver as the destination type
|
protected java.lang.String |
getDestinationValue()
Answer the contents of self's destination specification widget.
|
protected java.lang.String |
getOutputSuffix()
Answer the suffix that files exported from this wizard should have.
|
protected void |
giveFocusToDestination()
Set the current input focus to self's destination entry field
|
protected void |
handleDestinationBrowseButtonPressed()
Open an appropriate destination browser so that the user can specify a source
to import from
|
void |
handleEvent(Event e)
Handle all events and enablements for widgets in this page
|
protected void |
internalSaveWidgetValues()
Hook method for saving widget values for restoration by the next instance
of this class.
|
protected void |
restoreWidgetValues()
Hook method for restoring widget values to the values that they held
last time this wizard was used to completion.
|
protected void |
setDestinationValue(java.lang.String value)
Set the contents of the receivers destination specification widget to
the passed value
|
protected void |
setupHitMap()
Adds all the project critical resources to the hitMap.
|
protected boolean |
validateDestinationGroup()
Answer a boolean indicating whether the receivers destination specification
widgets currently all contain valid values.
|
protected boolean |
validateSourceGroup() |
protected Button overwriteExistingFilesCheckbox
protected Button createDirectoryStructureButton
protected Button createSelectionOnlyButton
protected Button compressContentsCheckbox
protected WizardArchivePovClipseProjectResourceExportPage(java.lang.String name, IStructuredSelection selection)
public WizardArchivePovClipseProjectResourceExportPage(IStructuredSelection selection)
selection
- the selectionprotected void addDestinationItem(java.lang.String value)
value
- java.lang.Stringpublic void createControl(Composite parent)
protected void createDestinationGroup(Composite parent)
parent
- org.eclipse.swt.widgets.Compositeprotected void createOptionsGroupButtons(Group optionsGroup)
protected void createFileFormatOptions(Composite optionsGroup, Font font)
optionsGroup
- font
- protected void createDirectoryStructureOptions(Composite optionsGroup, Font font)
optionsGroup
- font
- protected boolean ensureDirectoryExists(java.io.File directory)
directory
- java.io.Fileprotected boolean ensureTargetIsValid(java.io.File targetDirectory)
public boolean finish()
protected java.lang.String getDestinationLabel()
protected java.lang.String getDestinationValue()
protected void giveFocusToDestination()
protected void handleDestinationBrowseButtonPressed()
public void handleEvent(Event e)
e
- Eventprotected void internalSaveWidgetValues()
protected void restoreWidgetValues()
protected void setDestinationValue(java.lang.String value)
protected boolean validateSourceGroup()
protected boolean validateDestinationGroup()
org.eclipse.ui.dialogs.WizardDataTransferPage#validateDestinationGroup()
protected boolean ensureTargetDirectoryIsValid(java.lang.String fullPathname)
protected boolean ensureTargetFileIsValid(java.io.File targetFile)
protected void setupHitMap()
protected boolean ensureArchiveIsComplete()
true
if the export is to be done, false
if it shall be skipped.protected void checkResource(IResource exportResource, int leadupDepth)
exportResource
- leadupDepth
- errorMessages
- protected boolean ensureTargetIsValid()
protected boolean executeExportOperation(ArchiveFileExportOperation op)
protected java.lang.String getOutputSuffix()