Prefer names over ids in tab completion

This commit is contained in:
BuildTools 2016-02-05 15:23:45 +01:00 committed by Olof Larsson
parent b484295aa3
commit 5c6b5287a3

View File

@ -410,15 +410,6 @@ public abstract class TypeAbstractChoice<T> extends TypeAbstract<T> implements A
// Fill
String string;
for (String id : this.getIds(value))
{
string = this.prepareTab(id, true);
if (string != null) ret.add(string);
string = this.prepareTab(id, false);
if (string != null) ret.add(string);
}
for (String name : this.getNames(value))
{
string = this.prepareTab(name, true);
@ -428,6 +419,15 @@ public abstract class TypeAbstractChoice<T> extends TypeAbstract<T> implements A
if (string != null) ret.add(string);
}
for (String id : this.getIds(value))
{
string = this.prepareTab(id, true);
if (string != null) ret.add(string);
string = this.prepareTab(id, false);
if (string != null) ret.add(string);
}
// Return
return ret;
}