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 2005-05-12 Alain Magloire
Fix multiple warnings, the use of: Fix multiple warnings, the use of:
Workbench.setHelp() --> PlatformUI.getWorkbench().getHelpSystem().getHelp() Workbench.setHelp() --> PlatformUI.getWorkbench().getHelpSystem().getHelp()

View file

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