final int index = position.intValue();
if (index >= elementNames.length) {
elementNames = XArray.resize(elementNames, index+1);
}
final String oldName = elementNames[index];
final String newName = name.toInternationalString().toString(locale);
if (oldName==null || oldName.length()>newName.length()) {
/*
* Keep the shortest string, since it is often a code used
* for identification (e.g. EPSG code). It also help to fit
* the table in the window's width.