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
}
}
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
}
}
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);
}
Aggregations