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:
parent
9cfd14bfc1
commit
7e02ddb252
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue