updateCommandState method
update the command states
Implementation
@override
void updateCommandState() {
setCommandEnabled("play", true);
setCommandEnabled("new", true);
setCommandEnabled("open", true);
setCommandEnabled("save", commandStack.isDirty());
setCommandEnabled("undo", commandStack.isDirty());
setCommandEnabled("revert", commandStack.isDirty());
}