mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
dequadratize KeymapImpl.getActionIds()
This commit is contained in:
@@ -807,17 +807,11 @@ public class KeymapImpl extends ExternalizableSchemeAdapter implements Keymap {
|
||||
|
||||
@Override
|
||||
public String[] getActionIds() {
|
||||
ArrayList<String> ids = new ArrayList<String>();
|
||||
Set<String> ids = ContainerUtil.newLinkedHashSet();
|
||||
if (myParent != null) {
|
||||
String[] parentIds = getParentActionIds();
|
||||
ContainerUtil.addAll(ids, parentIds);
|
||||
}
|
||||
String[] ownActionIds = getOwnActionIds();
|
||||
for (String id : ownActionIds) {
|
||||
if (!ids.contains(id)) {
|
||||
ids.add(id);
|
||||
}
|
||||
ContainerUtil.addAll(ids, getParentActionIds());
|
||||
}
|
||||
Collections.addAll(ids, getOwnActionIds());
|
||||
return ArrayUtil.toStringArray(ids);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user