final Reader finalReader = r; display.asyncExec(new Runnable() { public void run() { errorDialog.show(finalReader);
if(display != null) { final Reader finalReader = r; display.asyncExec(new Runnable() { public void run() { errorDialog.show(finalReader); } }); } else { System.err.println("#######Error######"); BufferedReader bf = new BufferedReader(r); String s; try { while((s = bf.readLine())!=null) System.err.println(s); } catch(IOException ioee) {
  public void handleError(String code, String urlString) {    //actionSetContinuousDownload(false);    Reader r;    try {      if (urlString.indexOf(':') < 0) {        r = getResource("help/" + urlString);        if (r == null)          throw new NullPointerException();      }      else        try {          r = new InputStreamReader(new URL(urlString).openStream());        }        catch (MalformedURLException e) {          e.printStackTrace();          r = getResource("help/malformedurl.html");        }    }    catch (IOException e) {      r = getResource("help/errorerror.txt");    }    final Reader finalReader = r;    display.asyncExec(new Runnable() {      public void run() {        errorDialog.show(finalReader);      }    });  }