public void reflectUndoCommands() {
        UndoCaretaker undoCaretaker = ((DocumentViewModelImpl)
                documentViewController.getDocumentViewModel()).
                getAnnotationCareTaker();
        setEnabled(undoMenuItem, undoCaretaker.isUndo());
        setEnabled(redoMenuItem, undoCaretaker.isRedo());
    }