1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

Typo and wrong arrayList.

This commit is contained in:
Alain Magloire 2003-11-19 22:11:14 +00:00
parent 9cfd14bfc1
commit 7e02ddb252

View file

@ -97,7 +97,6 @@ public class AddBuildTargetAction extends Action {
public boolean canActionBeAdded(ISelection selection) {
ITargetRule[] rules = getTargetRules(selection);
boolean ok = false;
for (int i = 0; i < rules.length; i++) {
IFile file = getFile();
if (file == null)
@ -128,7 +127,7 @@ public class AddBuildTargetAction extends Action {
targets.add(elements[i]);
}
}
return (ITargetRule[])list.toArray(EMPTY_TARGET_RULES);
return (ITargetRule[])targets.toArray(EMPTY_TARGET_RULES);
}
}
return EMPTY_TARGET_RULES;