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) {
try {
IProjectDescription description = project.getDescription();
ICommand builder[] = description.getBuildSpec();
for (int j = 0; j < builder.length; j++) {
if (builderMap.containsValue(builder[j].getBuilderName())) {
return true;
if (project.isAccessible()) {
IProjectDescription description = project.getDescription();
ICommand builder[] = description.getBuildSpec();
for (int j = 0; j < builder.length; j++) {
if (builderMap.containsValue(builder[j].getBuilderName())) {
return true;
}
}
}
} catch (CoreException e) {
@ -158,7 +160,6 @@ public class MakeTargetManager implements IMakeTargetManager, IResourceChangeLis
for (int i = 0; i < project.length; i++) {
if (hasTargetBuilder(project[i])) {
fProjects.add(project[i]);
break;
}
}
ResourcesPlugin.getWorkspace().addResourceChangeListener(this);