List of usage examples for javax.swing.undo AbstractUndoableEdit getPresentationName
public String getPresentationName()
From source file:net.sf.jabref.util.Util.java
/** * Updates the timestamp of the given entry, nests the given undaoableEdit in a named compound, and returns that * named compound// w w w . ja v a2s. c om */ public static NamedCompound doUpdateTimeStamp(BibEntry entry, AbstractUndoableEdit undoableEdit) { NamedCompound ce = new NamedCompound(undoableEdit.getPresentationName()); ce.addEdit(undoableEdit); String timeStampField = Globals.prefs.get(JabRefPreferences.TIME_STAMP_FIELD); String timestamp = DATE_FORMATTER.getCurrentDate(); updateField(entry, timeStampField, timestamp, ce); return ce; }