try{
ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
public void run(IProgressMonitor wsOpMonitor) throws CoreException {
ProjectReferenceImporter importer = new ProjectReferenceImporter(referenceStrings);
List<IProject> p = importer.run(wsOpMonitor);
importedProjects.addAll(p);
}
}, ResourcesPlugin.getWorkspace().getRoot(), IWorkspace.AVOID_UPDATE, monitor);
} catch (CoreException e) {
throw TeamException.asTeamException(e);