Example usage for javax.swing.undo CannotUndoException getMessage

List of usage examples for javax.swing.undo CannotUndoException getMessage

Introduction

In this page you can find the example usage for javax.swing.undo CannotUndoException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:tk.tomby.tedit.core.Buffer.java

/**
 * DOCUMENT ME!/*  w  ww .j  a v  a 2 s .c  o m*/
 */
public void undo() {
    try {
        undo.undo();
        MessageManager.sendMessage(new BufferMessage(this, BufferMessage.UNDOABLE_EDIT_EVENT));

        if (!modifiedState) {
            setModifiedState(true);
        }
    } catch (CannotUndoException e) {
        log.error(e.getMessage(), e);
    }
}