public static void importFromRepository(IProject project, IWizardContainer container){
try {
if (container == null){
IWorkbench wb = PlatformUI.getWorkbench();
IProgressService ps = wb.getProgressService();
ps.run(false, true, new RepositoryExport(project));
} else {
container.run(false, true, new RepositoryExport(project));
}
} catch (InvocationTargetException e) {
ToolPlugin.showError("Error importing from Tool Repository",e);
} catch (InterruptedException e) {
ToolPlugin.showError("Error importing from Tool Repository",e);