home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / awt / Toolkit$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.5 KB  |  57 lines

  1. package java.awt;
  2.  
  3. import java.io.File;
  4. import java.io.FileInputStream;
  5. import java.security.PrivilegedAction;
  6. import java.util.Properties;
  7.  
  8. final class Toolkit$1 implements PrivilegedAction {
  9.    // $FF: synthetic field
  10.    final String val$sep;
  11.    // $FF: synthetic field
  12.    final Properties val$properties;
  13.  
  14.    Toolkit$1(String var1, Properties var2) {
  15.       this.val$sep = var1;
  16.       this.val$properties = var2;
  17.    }
  18.  
  19.    public Object run() {
  20.       try {
  21.          File var1 = new File(System.getProperty("user.home") + this.val$sep + ".accessibility.properties");
  22.          FileInputStream var2 = new FileInputStream(var1);
  23.          this.val$properties.load(var2);
  24.          var2.close();
  25.       } catch (Exception var4) {
  26.       }
  27.  
  28.       if (this.val$properties.size() == 0) {
  29.          try {
  30.             File var5 = new File(System.getProperty("java.home") + this.val$sep + "lib" + this.val$sep + "accessibility.properties");
  31.             FileInputStream var8 = new FileInputStream(var5);
  32.             this.val$properties.load(var8);
  33.             var8.close();
  34.          } catch (Exception var3) {
  35.          }
  36.       }
  37.  
  38.       String var6 = System.getProperty("javax.accessibility.screen_magnifier_present");
  39.       if (var6 == null) {
  40.          var6 = this.val$properties.getProperty("screen_magnifier_present", (String)null);
  41.          if (var6 != null) {
  42.             System.setProperty("javax.accessibility.screen_magnifier_present", var6);
  43.          }
  44.       }
  45.  
  46.       String var9 = System.getProperty("javax.accessibility.assistive_technologies");
  47.       if (var9 == null) {
  48.          var9 = this.val$properties.getProperty("assistive_technologies", (String)null);
  49.          if (var9 != null) {
  50.             System.setProperty("javax.accessibility.assistive_technologies", var9);
  51.          }
  52.       }
  53.  
  54.       return var9;
  55.    }
  56. }
  57.