1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

ignore close project on initial scan

This commit is contained in:
David Inglis 2003-08-21 20:31:24 +00:00
parent bf35ff6cac
commit 06ff1402fa

View file

@ -140,6 +140,7 @@ public class MakeTargetManager implements IMakeTargetManager, IResourceChangeLis
protected boolean hasTargetBuilder(IProject project) { protected boolean hasTargetBuilder(IProject project) {
try { try {
if (project.isAccessible()) {
IProjectDescription description = project.getDescription(); IProjectDescription description = project.getDescription();
ICommand builder[] = description.getBuildSpec(); ICommand builder[] = description.getBuildSpec();
for (int j = 0; j < builder.length; j++) { for (int j = 0; j < builder.length; j++) {
@ -147,6 +148,7 @@ public class MakeTargetManager implements IMakeTargetManager, IResourceChangeLis
return true; return true;
} }
} }
}
} catch (CoreException e) { } catch (CoreException e) {
} }
return false; return false;
@ -158,7 +160,6 @@ public class MakeTargetManager implements IMakeTargetManager, IResourceChangeLis
for (int i = 0; i < project.length; i++) { for (int i = 0; i < project.length; i++) {
if (hasTargetBuilder(project[i])) { if (hasTargetBuilder(project[i])) {
fProjects.add(project[i]); fProjects.add(project[i]);
break;
} }
} }
ResourcesPlugin.getWorkspace().addResourceChangeListener(this); ResourcesPlugin.getWorkspace().addResourceChangeListener(this);