home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / IBM VisualAge for Java Enterprise v4.0 Retail / ivj40 / setup / IDE.Cab / F76592_HelpHandlerBrowserThread.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-04-25  |  1.1 KB  |  37 lines

  1. package com.ibm.ivb.jface;
  2.  
  3. import java.io.IOException;
  4.  
  5. class HelpHandler$BrowserThread extends Thread {
  6.    // $FF: synthetic field
  7.    private final HelpHandler this$0;
  8.    String command;
  9.    String alt;
  10.  
  11.    public HelpHandler$BrowserThread(HelpHandler var1, String var2, String var3) {
  12.       this.this$0 = var1;
  13.       this.this$0 = var1;
  14.       this.command = var2;
  15.       this.alt = var3;
  16.    }
  17.  
  18.    public synchronized void run() {
  19.       try {
  20.          Process var1 = Runtime.getRuntime().exec(this.command);
  21.          int var2 = var1.waitFor();
  22.          if (var2 != 0 && this.alt != null) {
  23.             var1 = Runtime.getRuntime().exec(this.alt);
  24.             var2 = var1.waitFor();
  25.             this.this$0.freshSession = true;
  26.             return;
  27.          }
  28.       } catch (InterruptedException var3) {
  29.          this.this$0.browserLaunchFailed(var3);
  30.          return;
  31.       } catch (IOException var4) {
  32.          this.this$0.browserLaunchFailed(var4);
  33.       }
  34.  
  35.    }
  36. }
  37.