public void doTheNextThing(){
  int origState;
  origState=state;
  if (origState != 0) {
    state=nextState(origState);
  }
  if ((origState == 0) || (state == 0)) {
    readAllButton.setSelected(false);
    writeAllButton.setSelected(false);
    if (origState != 0) {
      status.setText(Bundle.getMessage("ButtonDone"));
    }
 else {
      status.setText(rb.getString("ERROR_ABORTED_DUE_TO_TIMEOUT"));
    }
    return;
  }
 else {
    nextRequest();
    return;
  }
}

public void doTheNextThing ( ) { int origState ; origState = state ; if ( origState != 0 ) { state = nextState ( origState ) ; } if ( ( origState == 0 ) || ( state == 0 ) ) { readAllButton . setSelected ( false ) ; writeAllButton . setSelected ( false ) ; if ( origState != 0 ) { status . setText ( Bundle . getMessage ( "ButtonDone" ) ) ; } else { status . setText ( rb . getString ( "ERROR_ABORTED_DUE_TO_TIMEOUT" ) ) ; } return ; } else { nextRequest ( ) ; return ; } }
helps continue sequences of opsw accesses . < p > handles aborting a sequence of reads or writes when the gui read button or the gui write button ( as appropriate for the current operation ) is de - selected .
