home *** CD-ROM | disk | FTP | other *** search
- package java.awt;
-
- import java.io.File;
- import java.io.FileInputStream;
- import java.security.PrivilegedAction;
- import java.util.Properties;
-
- final class Toolkit$1 implements PrivilegedAction {
- // $FF: synthetic field
- final String val$sep;
- // $FF: synthetic field
- final Properties val$properties;
-
- Toolkit$1(String var1, Properties var2) {
- this.val$sep = var1;
- this.val$properties = var2;
- }
-
- public Object run() {
- try {
- File var1 = new File(System.getProperty("user.home") + this.val$sep + ".accessibility.properties");
- FileInputStream var2 = new FileInputStream(var1);
- this.val$properties.load(var2);
- var2.close();
- } catch (Exception var4) {
- }
-
- if (this.val$properties.size() == 0) {
- try {
- File var5 = new File(System.getProperty("java.home") + this.val$sep + "lib" + this.val$sep + "accessibility.properties");
- FileInputStream var8 = new FileInputStream(var5);
- this.val$properties.load(var8);
- var8.close();
- } catch (Exception var3) {
- }
- }
-
- String var6 = System.getProperty("javax.accessibility.screen_magnifier_present");
- if (var6 == null) {
- var6 = this.val$properties.getProperty("screen_magnifier_present", (String)null);
- if (var6 != null) {
- System.setProperty("javax.accessibility.screen_magnifier_present", var6);
- }
- }
-
- String var9 = System.getProperty("javax.accessibility.assistive_technologies");
- if (var9 == null) {
- var9 = this.val$properties.getProperty("assistive_technologies", (String)null);
- if (var9 != null) {
- System.setProperty("javax.accessibility.assistive_technologies", var9);
- }
- }
-
- return var9;
- }
- }
-