home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / awt / AxBridgeHelper.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  667 b   |  39 lines

  1. package sun.awt;
  2.  
  3. public class AxBridgeHelper {
  4.    static Thread appMainThread;
  5.    public int event;
  6.  
  7.    public static void setAppMainThread(int var0) {
  8.       if (var0 != 0) {
  9.          appMainThread = Thread.currentThread();
  10.       } else {
  11.          appMainThread = null;
  12.       }
  13.  
  14.    }
  15.  
  16.    public static boolean isAppMainThread() {
  17.       return Thread.currentThread() == appMainThread;
  18.    }
  19.  
  20.    private static native void initIDs();
  21.  
  22.    public void nativeModalWait() {
  23.       this.nativeModalWait0();
  24.    }
  25.  
  26.    public void nativeModalNotify() {
  27.       this.nativeModalNotify0();
  28.    }
  29.  
  30.    native void nativeModalWait0();
  31.  
  32.    native void nativeModalNotify0();
  33.  
  34.    static {
  35.       initIDs();
  36.       appMainThread = null;
  37.    }
  38. }
  39.