private IWorkingSet[] workingSets = new IWorkingSet[0];
private RadioGroups radioGroups = new RadioGroups();
public void performFinish(IProgressMonitor mon) throws InvocationTargetException, InterruptedException {
mon.beginTask("Importing "+baseUrl.getValue(), 4);
DownloadManager downloader = null;
try {
downloader = new DownloadManager().allowUIThread(allowUIThread);
DownloadableItem zip = new DownloadableItem(newURL(downloadUrl .getValue()), downloader);
String projectNameValue = projectName.getValue();
CodeSet cs = CodeSet.fromZip(projectNameValue, zip, new Path("/"));
IRunnableWithProgress oper = getImportStrategy().createOperation(ImportUtils.importConfig(
new Path(location.getValue()),
projectNameValue,
cs
));
oper.run(new SubProgressMonitor(mon, 3));
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectNameValue);
addToWorkingSets(project, new SubProgressMonitor(mon, 1));
} catch (IOException e) {
throw new InvocationTargetException(e);
} finally {
if (downloader!=null) {
downloader.dispose();
}
mon.done();
}
}