1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

fixed bug # 95556

This commit is contained in:
David Inglis 2005-05-19 01:47:27 +00:00
parent 3e98b19c1c
commit 3ee88519f0
2 changed files with 25 additions and 13 deletions

View file

@ -1,3 +1,7 @@
2005-05-18 David Inglis
Fixed bug # 95556
* src/org/eclipse/cdt/ui/wizards/NewCProjectWizard.java
2005-05-12 Alain Magloire
Fix multiple warnings, the use of:
Workbench.setHelp() --> PlatformUI.getWorkbench().getHelpSystem().getHelp()

View file

@ -210,22 +210,30 @@ public abstract class NewCProjectWizard extends BasicNewResourceWizard implement
public IRunnableWithProgress getRunnable() {
return new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
final IProgressMonitor fMonitor;
if (monitor == null) {
monitor= new NullProgressMonitor();
fMonitor= new NullProgressMonitor();
} else {
fMonitor = monitor;
}
monitor.beginTask(CUIPlugin.getResourceString(OP_DESC), 3);
doRunPrologue(new SubProgressMonitor(monitor, 1));
fMonitor.beginTask(CUIPlugin.getResourceString(OP_DESC), 3);
final CoreException except[] = new CoreException[1];
getShell().getDisplay().syncExec(new Runnable() {
public void run() {
doRunPrologue(new SubProgressMonitor(fMonitor, 1));
try {
doRun(new SubProgressMonitor(monitor, 1));
doRun(new SubProgressMonitor(fMonitor, 1));
}
catch (CoreException e) {
throw new InvocationTargetException(e);
except[0] = e;
}
doRunEpilogue(new SubProgressMonitor(monitor, 1));
monitor.done();
doRunEpilogue(new SubProgressMonitor(fMonitor, 1));
}
});
if (except[0] != null) {
throw new InvocationTargetException(except[0]);
}
fMonitor.done(); }
};
}