// The upper entry is the
if (answer == DuplicateResolverDialog.DO_NOT_IMPORT)
keepEntry = false;
if (answer == DuplicateResolverDialog.IMPORT_AND_DELETE_OLD) {
// Remove the old one and import the new one.
toAddTo.removeEntry(duplicate.getId());
ce.addEdit(new UndoableRemoveEntry(toAddTo, duplicate, panel));
}
}
// Add the entry, if we are supposed to:
if (keepEntry) {