final Boolean pausedFinal = new Boolean(paused);
final Boolean pausedFinal = Boolean.valueOf(paused);
  public void setPaused(boolean paused) {    super.setPaused(paused);    final Boolean pausedFinal = new Boolean(paused);    // We have to delegate to the SWT event thread, because we might be    // called from a thread other than it, such as the remote control thread.    display.asyncExec(new Runnable() {      public void run() {        if (pausedFinal.booleanValue()) {          play.setSelection(false);          play.setToolTipText(Resources.getString("button.play.tooltip"));        }        else {          play.setSelection(true);          play.setToolTipText(Resources.getString("button.pause.tooltip"));        }      }    });  }