Search in sources :

Example 1 with UndoableRemoveString

use of org.jabref.gui.undo.UndoableRemoveString in project jabref by JabRef.

the class StringRemoveChange method makeChange.

@Override
public boolean makeChange(BasePanel panel, BibDatabase secondary, NamedCompound undoEdit) {
    try {
        panel.getDatabase().removeString(inMem.getId());
        undoEdit.addEdit(new UndoableRemoveString(panel, panel.getDatabase(), string));
    } catch (Exception ex) {
        LOGGER.info("Error: could not add string '" + string.getName() + "': " + ex.getMessage(), ex);
    }
    // Update tmp database:
    secondary.removeString(tmpString.getId());
    return true;
}
Also used : UndoableRemoveString(org.jabref.gui.undo.UndoableRemoveString)

Aggregations

UndoableRemoveString (org.jabref.gui.undo.UndoableRemoveString)1