// show a stop button when the console is busy (the stop and
// clear commands are mutually exclusive)
commands_.viewerStop().setVisible(commands_.interruptR().isEnabled());
commands_.viewerClear().setVisible(!commands_.viewerStop().isVisible());
commands_.interruptR().addEnabledChangedHandler(
new EnabledChangedHandler() {
@Override
public void onEnabledChanged(AppCommand command)
{
commands_.viewerStop().setVisible(command.isEnabled());
commands_.viewerClear().setVisible(!command.isEnabled());