mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 12:25:35 +02:00
Additional fix to the progress monitor support basis for the CProjectDescription operation
This commit is contained in:
parent
968559df5c
commit
ff9b1c4616
1 changed files with 36 additions and 33 deletions
|
@ -704,6 +704,7 @@ public class CProjectDescriptionManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateProjectDescriptions(IProgressMonitor monitor) throws CoreException{
|
public void updateProjectDescriptions(IProgressMonitor monitor) throws CoreException{
|
||||||
|
try {
|
||||||
IWorkspace wsp = ResourcesPlugin.getWorkspace();
|
IWorkspace wsp = ResourcesPlugin.getWorkspace();
|
||||||
final IProject projects[] = wsp.getRoot().getProjects();
|
final IProject projects[] = wsp.getRoot().getProjects();
|
||||||
final ICProjectDescription dess[] = new ICProjectDescription[projects.length];
|
final ICProjectDescription dess[] = new ICProjectDescription[projects.length];
|
||||||
|
@ -715,7 +716,8 @@ public class CProjectDescriptionManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(num != 0){
|
if(num != 0){
|
||||||
final int[] fi = new int[num];
|
final int[] fi = new int[1];
|
||||||
|
fi[0] = num;
|
||||||
runWspModification(new IWorkspaceRunnable(){
|
runWspModification(new IWorkspaceRunnable(){
|
||||||
|
|
||||||
public void run(IProgressMonitor monitor) throws CoreException {
|
public void run(IProgressMonitor monitor) throws CoreException {
|
||||||
|
@ -735,11 +737,12 @@ public class CProjectDescriptionManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, new NullProgressMonitor());
|
}, monitor);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
monitor.done();
|
monitor.done();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue