+"<br><br>"+tr("Please select a key")), GBC.eol().fill(GBC.HORIZONTAL));
AutoCompletionManager autocomplete = Main.main.getEditLayer().data.getAutoCompletionManager();
List<AutoCompletionListItem> keyList = autocomplete.getKeys();
AutoCompletionListItem itemToSelect = null;
// remove the object's tag keys from the list
Iterator<AutoCompletionListItem> iter = keyList.iterator();
while (iter.hasNext()) {
AutoCompletionListItem item = iter.next();
if (item.getValue().equals(lastAddKey)) {
itemToSelect = item;
}
for (int i = 0; i < tagData.getRowCount(); ++i) {
if (item.getValue().equals(tagData.getValueAt(i, 0))) {
if (itemToSelect == item) {
itemToSelect = null;
}
iter.remove();
break;