Example usage for javax.swing.undo AbstractUndoableEdit getPresentationName

List of usage examples for javax.swing.undo AbstractUndoableEdit getPresentationName

Introduction

In this page you can find the example usage for javax.swing.undo AbstractUndoableEdit getPresentationName.

Prototype

public String getPresentationName() 

Source Link

Document

This default implementation returns "".

Usage

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;
}