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:
parent
bf35ff6cac
commit
06ff1402fa
1 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue