Example usage for javax.swing.undo CannotRedoException getMessage

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

Introduction

In this page you can find the example usage for javax.swing.undo CannotRedoException 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!//from www  . java2  s .c  o  m
 */
public void redo() {
    try {
        undo.redo();
        MessageManager.sendMessage(new BufferMessage(this, BufferMessage.UNDOABLE_EDIT_EVENT));

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