1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-29 20:05:35 +02:00

Additional fix to the progress monitor support basis for the CProjectDescription operation

This commit is contained in:
Mikhail Sennikovsky 2007-03-16 22:06:13 +00:00
parent 968559df5c
commit ff9b1c4616

View file

@ -704,6 +704,7 @@ public class CProjectDescriptionManager {
}
public void updateProjectDescriptions(IProgressMonitor monitor) throws CoreException{
try {
IWorkspace wsp = ResourcesPlugin.getWorkspace();
final IProject projects[] = wsp.getRoot().getProjects();
final ICProjectDescription dess[] = new ICProjectDescription[projects.length];
@ -715,7 +716,8 @@ public class CProjectDescriptionManager {
}
if(num != 0){
final int[] fi = new int[num];
final int[] fi = new int[1];
fi[0] = num;
runWspModification(new IWorkspaceRunnable(){
public void run(IProgressMonitor monitor) throws CoreException {
@ -735,11 +737,12 @@ public class CProjectDescriptionManager {
}
}
}
}, new NullProgressMonitor());
}, monitor);
}
} finally {
monitor.done();
}
}