class PauseAction implements SelectionListener {
@Override
public void widgetSelected(final SelectionEvent paramSelectionEvent) {
final RobotStatus status = ControlFrame.this.robot.getStatusProvider().getStatus();
if (status == RobotStatus.PAUSED) {
ControlFrame.this.robot.getControlProvider().resume();
} else {
ControlFrame.this.robot.getControlProvider().pause();
}