equal
deleted
inserted
replaced
65 private static final PlatformLogger keyEventLog = PlatformLogger.getLogger("sun.awt.X11.kye.XToolkit"); |
65 private static final PlatformLogger keyEventLog = PlatformLogger.getLogger("sun.awt.X11.kye.XToolkit"); |
66 private static final PlatformLogger backingStoreLog = PlatformLogger.getLogger("sun.awt.X11.backingStore.XToolkit"); |
66 private static final PlatformLogger backingStoreLog = PlatformLogger.getLogger("sun.awt.X11.backingStore.XToolkit"); |
67 |
67 |
68 //There is 400 ms is set by default on Windows and 500 by default on KDE and GNOME. |
68 //There is 400 ms is set by default on Windows and 500 by default on KDE and GNOME. |
69 //We use the same hardcoded constant. |
69 //We use the same hardcoded constant. |
70 private final static int AWT_MULTICLICK_DEFAULT_TIME = 500; |
70 private static final int AWT_MULTICLICK_DEFAULT_TIME = 500; |
71 |
71 |
72 static final boolean PRIMARY_LOOP = false; |
72 static final boolean PRIMARY_LOOP = false; |
73 static final boolean SECONDARY_LOOP = true; |
73 static final boolean SECONDARY_LOOP = true; |
74 |
74 |
75 private static String awtAppClassName = null; |
75 private static String awtAppClassName = null; |
138 * Return (potentially) platform specific display timeout for the |
138 * Return (potentially) platform specific display timeout for the |
139 * tray icon |
139 * tray icon |
140 */ |
140 */ |
141 static native long getTrayIconDisplayTimeout(); |
141 static native long getTrayIconDisplayTimeout(); |
142 |
142 |
143 private native static void initIDs(); |
143 private static native void initIDs(); |
144 native static void waitForEvents(long nextTaskTime); |
144 static native void waitForEvents(long nextTaskTime); |
145 static Thread toolkitThread; |
145 static Thread toolkitThread; |
146 static boolean isToolkitThread() { |
146 static boolean isToolkitThread() { |
147 return Thread.currentThread() == toolkitThread; |
147 return Thread.currentThread() == toolkitThread; |
148 } |
148 } |
149 |
149 |
1100 |
1100 |
1101 /** |
1101 /** |
1102 * Returns the value of "sun.awt.disableGtkFileDialogs" property. Default |
1102 * Returns the value of "sun.awt.disableGtkFileDialogs" property. Default |
1103 * value is {@code false}. |
1103 * value is {@code false}. |
1104 */ |
1104 */ |
1105 public synchronized static boolean getSunAwtDisableGtkFileDialogs() { |
1105 public static synchronized boolean getSunAwtDisableGtkFileDialogs() { |
1106 if (sunAwtDisableGtkFileDialogs == null) { |
1106 if (sunAwtDisableGtkFileDialogs == null) { |
1107 sunAwtDisableGtkFileDialogs = AccessController.doPrivileged( |
1107 sunAwtDisableGtkFileDialogs = AccessController.doPrivileged( |
1108 new GetBooleanAction("sun.awt.disableGtkFileDialogs")); |
1108 new GetBooleanAction("sun.awt.disableGtkFileDialogs")); |
1109 } |
1109 } |
1110 return sunAwtDisableGtkFileDialogs.booleanValue(); |
1110 return sunAwtDisableGtkFileDialogs.booleanValue(); |
1577 |
1577 |
1578 static int getNumberOfButtonsForMask() { |
1578 static int getNumberOfButtonsForMask() { |
1579 return Math.min(XConstants.MAX_BUTTONS, ((SunToolkit) (Toolkit.getDefaultToolkit())).getNumberOfButtons()); |
1579 return Math.min(XConstants.MAX_BUTTONS, ((SunToolkit) (Toolkit.getDefaultToolkit())).getNumberOfButtons()); |
1580 } |
1580 } |
1581 |
1581 |
1582 private final static String prefix = "DnD.Cursor."; |
1582 private static final String prefix = "DnD.Cursor."; |
1583 private final static String postfix = ".32x32"; |
1583 private static final String postfix = ".32x32"; |
1584 private static final String dndPrefix = "DnD."; |
1584 private static final String dndPrefix = "DnD."; |
1585 |
1585 |
1586 @Override |
1586 @Override |
1587 protected Object lazilyLoadDesktopProperty(String name) { |
1587 protected Object lazilyLoadDesktopProperty(String name) { |
1588 if (name.startsWith(prefix)) { |
1588 if (name.startsWith(prefix)) { |