Search in sources :

Example 1 with ZipFileStructureProvider

use of org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider in project jbosstools-hibernate by jbosstools.

the class JavaProjectHelper method importFilesFromZip.

private static void importFilesFromZip(ZipFile srcZipFile, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException {
    ZipFileStructureProvider structureProvider = new ZipFileStructureProvider(srcZipFile);
    try {
        ImportOperation op = new ImportOperation(destPath, structureProvider.getRoot(), structureProvider, new ImportOverwriteQuery());
        op.run(monitor);
    } catch (InterruptedException e) {
    // should not happen
    }
}
Also used : ImportOperation(org.eclipse.ui.wizards.datatransfer.ImportOperation) ZipFileStructureProvider(org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider)

Example 2 with ZipFileStructureProvider

use of org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider in project jbosstools-hibernate by jbosstools.

the class JavaProjectHelper method importFilesFromZip.

private static void importFilesFromZip(ZipFile srcZipFile, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException {
    ZipFileStructureProvider structureProvider = new ZipFileStructureProvider(srcZipFile);
    try {
        ImportOperation op = new ImportOperation(destPath, structureProvider.getRoot(), structureProvider, new ImportOverwriteQuery());
        op.run(monitor);
    } catch (InterruptedException e) {
    // should not happen
    }
}
Also used : ImportOperation(org.eclipse.ui.wizards.datatransfer.ImportOperation) ZipFileStructureProvider(org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider)

Example 3 with ZipFileStructureProvider

use of org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider in project webtools.sourceediting by eclipse.

the class ExampleProjectCreationOperation method importFilesFromZip.

private void importFilesFromZip(ZipFile srcZipFile, IPath destPath, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
    ZipFileStructureProvider structureProvider = new ZipFileStructureProvider(srcZipFile);
    ImportOperation op = new ImportOperation(destPath, structureProvider.getRoot(), structureProvider, overwriteQuery);
    op.run(monitor);
}
Also used : ImportOperation(org.eclipse.ui.wizards.datatransfer.ImportOperation) ZipFileStructureProvider(org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider)

Aggregations

ImportOperation (org.eclipse.ui.wizards.datatransfer.ImportOperation)3 ZipFileStructureProvider (org.eclipse.ui.wizards.datatransfer.ZipFileStructureProvider)3