Examples of GetPropertyAction


Examples of sun.security.action.GetPropertyAction

     */
    private static boolean getSuppressDropTarget() {
        if (!checkedSuppressDropSupport) {
            suppressDropSupport = Boolean.valueOf(
                AccessController.doPrivileged(
                    new GetPropertyAction("suppressSwingDropSupport")));
            checkedSuppressDropSupport = true;
        }
        return suppressDropSupport;
    }
View Full Code Here

Examples of sun.security.action.GetPropertyAction

    static boolean atBugLevel(String bl) {              // package-private
        if (bugLevel == null) {
            if (!sun.misc.VM.isBooted())
                return false;
            java.security.PrivilegedAction pa =
                new GetPropertyAction("sun.nio.cs.bugLevel");
            String value = (String)AccessController.doPrivileged(pa);
            bugLevel = (value != null) ? value : "";
        }
        return bugLevel.equals(bl);
    }
View Full Code Here

Examples of sun.security.action.GetPropertyAction

     */
    public static Charset defaultCharset() {
        if (defaultCharset == null) {
      synchronized (Charset.class) {
    java.security.PrivilegedAction pa =
        new GetPropertyAction("file.encoding");
    String csn = (String)AccessController.doPrivileged(pa);
    Charset cs = lookup(csn);
    if (cs != null)
        defaultCharset = cs;
                else
View Full Code Here

Examples of sun.security.action.GetPropertyAction

        static final String temporaryDirectory = temporaryDirectory();
        static String temporaryDirectory() {
            return fs.normalize(
                AccessController.doPrivileged(
                    new GetPropertyAction("java.io.tmpdir")));
        }
View Full Code Here

Examples of sun.security.action.GetPropertyAction

  // Using the fonts set by the user can potentially cause
  // performance and compatibility issues, so allow this feature
  // to be switched off either at runtime or programmatically
  //
  String systemFonts = (String) java.security.AccessController.doPrivileged(
               new GetPropertyAction("swing.useSystemFontSettings"));
  useSystemFontSettings = (systemFonts == null ||
                                 Boolean.valueOf(systemFonts).booleanValue());

        if (useSystemFontSettings) {
            Object value = UIManager.get("Application.useSystemFontSettings");
View Full Code Here

Examples of sun.security.action.GetPropertyAction


  if (!(this instanceof WindowsClassicLookAndFeel) &&
      (System.getProperty("os.name").startsWith("Windows ") &&
       System.getProperty("os.version").compareTo("5.1") >= 0) &&
      AccessController.doPrivileged(new GetPropertyAction("swing.noxp")) == null) {

      // These desktop properties are not used directly, but are needed to
      // trigger realoading of UI's.
      this.themeActive = new TriggerDesktopProperty("win.xpstyle.themeActive");
      this.dllName     = new TriggerDesktopProperty("win.xpstyle.dllName");
View Full Code Here

Examples of sun.security.action.GetPropertyAction

   
    /**
     * Simple utility method that reads system keys.
     */
    private String getSystemProperty(String key) {
        return AccessController.doPrivileged(new GetPropertyAction(key));
    }
View Full Code Here

Examples of sun.security.action.GetPropertyAction

     */
    private static boolean getSuppressDropTarget() {
        if (!checkedSuppressDropSupport) {
            suppressDropSupport = Boolean.valueOf(
                AccessController.doPrivileged(
                    new GetPropertyAction("suppressSwingDropSupport")));
            checkedSuppressDropSupport = true;
        }
        return suppressDropSupport;
    }
View Full Code Here

Examples of sun.security.action.GetPropertyAction

     * Returns true if running on Windows.
     */
    static boolean isWindows() {
        if (!checkedWindows) {
            String osName = (String)AccessController.doPrivileged(
                new GetPropertyAction("os.name"));
            if (osName != null && osName.indexOf("Windows") != -1) {
                isWindows = true;
                String systemFonts = (String)AccessController.doPrivileged(
                    new GetPropertyAction("swing.useSystemFontSettings"));
                useSystemFonts = (systemFonts != null &&
                               (Boolean.valueOf(systemFonts).booleanValue()));
            }
            checkedWindows = true;
        }
View Full Code Here

Examples of sun.security.action.GetPropertyAction

                }
                else {
                    // Create the default theme. We prefer Ocean, but will
                    // use DefaultMetalTheme if told to.
                    String theme = (String)AccessController.doPrivileged(
                                   new GetPropertyAction("swing.metalTheme"));
                    if ("steel".equals(theme)) {
                        currentTheme = new DefaultMetalTheme();
                    }
                    else {
                        currentTheme = new OceanTheme();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.