| java.lang.Object org.eclipse.ui.internal.wizards.datatransfer.ArchiveFileExportOperation
ArchiveFileExportOperation | public class ArchiveFileExportOperation implements IRunnableWithProgress(Code) | | Operation for exporting a resource and its children to a new .zip or
.tar.gz file.
since: 3.1 |
ArchiveFileExportOperation | public ArchiveFileExportOperation(List resources, String filename)(Code) | | Create an instance of this class. Use this constructor if you wish to
export specific resources without a common parent resource
Parameters: resources - java.util.Vector Parameters: filename - java.lang.String |
ArchiveFileExportOperation | public ArchiveFileExportOperation(IResource res, String filename)(Code) | | Create an instance of this class. Use this constructor if you wish
to recursively export a single resource.
Parameters: res - org.eclipse.core.resources.IResource; Parameters: filename - java.lang.String |
ArchiveFileExportOperation | public ArchiveFileExportOperation(IResource res, List resources, String filename)(Code) | | Create an instance of this class. Use this constructor if you wish to
export specific resources with a common parent resource (affects container
directory creation)
Parameters: res - org.eclipse.core.resources.IResource Parameters: resources - java.util.Vector Parameters: filename - java.lang.String |
addError | protected void addError(String message, Throwable e)(Code) | | Add a new entry to the error table with the passed information
|
countChildrenOf | protected int countChildrenOf(IResource checkResource) throws CoreException(Code) | | Answer the total number of file resources that exist at or below self
in the resources hierarchy.
int Parameters: checkResource - org.eclipse.core.resources.IResource |
countSelectedResources | protected int countSelectedResources() throws CoreException(Code) | | Answer a boolean indicating the number of file resources that were
specified for export
int |
exportResource | protected void exportResource(IResource exportResource) throws InterruptedException(Code) | | Export the passed resource to the destination .zip. Export with
no path leadup
Parameters: exportResource - org.eclipse.core.resources.IResource |
exportResource | protected void exportResource(IResource exportResource, int leadupDepth) throws InterruptedException(Code) | | Export the passed resource to the destination .zip
Parameters: exportResource - org.eclipse.core.resources.IResource Parameters: leadupDepth - the number of resource levels to be included inthe path including the resourse itself. |
exportSpecifiedResources | protected void exportSpecifiedResources() throws InterruptedException(Code) | | Export the resources contained in the previously-defined
resourcesToExport collection
|
getStatus | public IStatus getStatus()(Code) | | Returns the status of the operation.
If there were any errors, the result is a status object containing
individual status objects for each error.
If there were no errors, the result is a status object with error code OK .
the status |
isDescendent | protected boolean isDescendent(List resources, IResource child)(Code) | | Answer a boolean indicating whether the passed child is a descendent
of one or more members of the passed resources collection
boolean Parameters: resources - java.util.Vector Parameters: child - org.eclipse.core.resources.IResource |
setCreateLeadupStructure | public void setCreateLeadupStructure(boolean value)(Code) | | Set this boolean indicating whether each exported resource's path should
include containment hierarchies as dictated by its parents
Parameters: value - boolean |
setUseCompression | public void setUseCompression(boolean value)(Code) | | Set this boolean indicating whether exported resources should
be compressed (as opposed to simply being stored)
Parameters: value - boolean |
setUseTarFormat | public void setUseTarFormat(boolean value)(Code) | | Set this boolean indicating whether the file should be output
in tar.gz format rather than .zip format.
Parameters: value - boolean |
|
|