Search in sources :

Example 1 with FileSystemExporterFullPath

use of org.talend.core.ui.export.FileSystemExporterFullPath in project tdi-studio-se by Talend.

the class JobScriptsExportWizardPage method getUnzipExporterOperation.

/**
     * Get the export operation.
     * 
     * @param resourcesToExport
     * @return
     */
public FileSystemExporterFullPath getUnzipExporterOperation(List<ExportFileResource> resourcesToExport) {
    //$NON-NLS-1$ 
    String currentUnzipFile = getDestinationValue().replace("/", File.separator);
    currentUnzipFile = currentUnzipFile.substring(0, currentUnzipFile.lastIndexOf(File.separator));
    FileSystemExporterFullPath exporterOperation = null;
    try {
        exporterOperation = new FileSystemExporterFullPath(resourcesToExport, currentUnzipFile);
    } catch (IOException e) {
        // TODO Auto-generated catch block
        // e.printStackTrace();
        ExceptionHandler.process(e);
    }
    return exporterOperation;
}
Also used : FileSystemExporterFullPath(org.talend.core.ui.export.FileSystemExporterFullPath) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 FileSystemExporterFullPath (org.talend.core.ui.export.FileSystemExporterFullPath)1