How Netbeans Editors know that file is not modified after undo?

Posted by Ha on Stack Overflow See other posts from Stack Overflow or by Ha
Published on 2010-03-18T12:48:27Z Indexed on 2010/03/18 12:51 UTC
Read the original article Hit count: 225

Filed under:
|
|
|

Netbeans uses standart UndoManager API for implementation of undo functionality. But neither standart javax.swing.undo.UndoManager nor org.openide.awt.UndoRedo.Manager doesn't have any method to mark states as saved and check modified status. Nonetheless if you change the file and press undo, the file is marked as unmodified. How do they do that? I need the same functionality for my (non-text) editors if the Netbeans RCP application.

© Stack Overflow or respective owner

Related posts about java

Related posts about netbeans