}
else {
// Store undo information.
BibtexString subject = (BibtexString)strings[row];
panel.undoManager.addEdit
(new UndoableStringChange
(panel, subject, true,
subject.getName(), (String)value));
subject.setName((String)value);
panel.markBaseChanged();
refreshTable();
}
}
} else {
// Change content of string.
BibtexString subject = (BibtexString)strings[row];
if (!((String)value).equals(subject.getContent())) {
try {
(new LatexFieldFormatter()).format((String)value, "__dummy");
} catch (IllegalArgumentException ex) {
return;
}
// Store undo information.
panel.undoManager.addEdit
(new UndoableStringChange
(panel, subject, false,
subject.getContent(), (String)value));
subject.setContent((String)value);
panel.markBaseChanged();