Prefer names over ids in tab completion
This commit is contained in:
parent
b484295aa3
commit
5c6b5287a3
@ -410,15 +410,6 @@ public abstract class TypeAbstractChoice<T> extends TypeAbstract<T> implements A
|
|||||||
// Fill
|
// Fill
|
||||||
String string;
|
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))
|
for (String name : this.getNames(value))
|
||||||
{
|
{
|
||||||
string = this.prepareTab(name, true);
|
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);
|
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
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user