@Override
public boolean performFinish() {
try {
IWizardContainer container = getContainer();
String name = projectCreationPage.getProjectName();
URI location = null;
if (!projectCreationPage.useDefaults()) {
location = projectCreationPage.getLocationURI();
} // else location == null
String forteLogger = null;
String repository = null;
String workspace = null;
String workspacePassword = null;
if (projectPropertyPage != null){
forteLogger = projectPropertyPage.getForteLogger();
repository = projectPropertyPage.getForteRepository();
workspace = projectPropertyPage.getForteWorkspace();
workspacePassword = projectPropertyPage.getForteWorkspacePassword();
}
IProject project = ToolProjectSupport.createProject(name, location, forteLogger, repository, workspace, workspacePassword);
project.refreshLocal(IResource.DEPTH_ZERO, null);
createRepos(project);
RepositoryExport exporter = new RepositoryExport(project);
container.run(true, true, exporter);
return true;
} catch (InvocationTargetException e) {
ToolPlugin.showError("Error importing from Tool repository",e);
} catch (InterruptedException e) {