page1.saveWidgetValues();
return importSession();
}
private boolean importSession() {
final ISessionImporter importer = CoverageTools.getImporter();
importer.setDescription(page1.getSessionDescription());
importer.setCoverageFile(page1.getCoverageFile());
importer.setClassFiles(page1.getClassFiles());
importer.setCopy(page1.getCreateCopy());
importer.setUseImportedMetaData(page1.getUseImportedMetaData());
IRunnableWithProgress op = new IRunnableWithProgress() {
public void run(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {
try {
importer.importSession(monitor);
} catch (Exception e) {
throw new InvocationTargetException(e);
}
}
};