skip duplicates in goto action (IDEA-126131)

This commit is contained in:
Anna Kozlova
2014-06-16 17:26:25 +04:00
parent 6a2350194c
commit faa4b30196
@@ -312,7 +312,7 @@ public class GotoActionModel implements ChooseByNameModel, CustomMatcherModel, C
@Override
@NotNull
public String[] getNames(boolean checkBoxState) {
final ArrayList<String> result = new ArrayList<String>();
final LinkedHashSet<String> result = new LinkedHashSet<String>();
result.add(INTENTIONS_KEY);
for (AnAction action : myActionsMap.keySet()) {
result.add(getActionId(action));