boolean canRedo = false;
// String undoText = "";
// String redoText = "";
if (undoController != null){
canUndo = undoController.canUndo();
canRedo = undoController.canRedo();
// undoText = undoController.getUndoManager().getUndoPresentationName();
// redoText = undoController.getUndoManager().getRedoPresentationName();
}
menuManager.setActionEnabled(ACTION_UNDO,canUndo);