updateCommandState method

  1. @override
void updateCommandState()
override

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());
}