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,11 +140,13 @@ public class MakeTargetManager implements IMakeTargetManager, IResourceChangeLis
protected boolean hasTargetBuilder(IProject project) { protected boolean hasTargetBuilder(IProject project) {
try { try {
IProjectDescription description = project.getDescription(); if (project.isAccessible()) {
ICommand builder[] = description.getBuildSpec(); IProjectDescription description = project.getDescription();
for (int j = 0; j < builder.length; j++) { ICommand builder[] = description.getBuildSpec();
if (builderMap.containsValue(builder[j].getBuilderName())) { for (int j = 0; j < builder.length; j++) {
return true; if (builderMap.containsValue(builder[j].getBuilderName())) {
return true;
}
} }
} }
} catch (CoreException e) { } catch (CoreException e) {
@ -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);