// Crawl the selected projects and add their contents to the XCDE server
// Show the progress to the user via a dialog
ProgressMonitorDialog monitorDialog = new ProgressMonitorDialog(Display.getCurrent().getActiveShell());
XCDEProjectCrawler crawler = new XCDEProjectCrawler(projectList, XCDEProjectCrawler.LINK);
try
{
monitorDialog.run(true, true, crawler);
}
catch(Exception e)
{
MessageDialog.openError(Display.getCurrent().getActiveShell(),
"XCDE Error",
"Error (" + e.getMessage() + ") experienced during Link.");
}
if(crawler.hadProjectExistsError())
{
// Looks like the user tried to map one or more projects
// that already existed
MessageDialog.openError(
Display.getCurrent().getActiveShell(),
"XCDE Error",
"The project /" + crawler.getErrorSource() +
"/ already exists on the XCDE server. Please rename the project" +
" and try again.");
}
else
{