src/windows/classes/sun/awt/windows/ThemeReader.java

Print this page

        

*** 59,68 **** --- 59,70 ---- private static final ReadWriteLock readWriteLock = new ReentrantReadWriteLock(); private static final Lock readLock = readWriteLock.readLock(); private static final Lock writeLock = readWriteLock.writeLock(); + static volatile boolean xpStyleEnabled; + static void flush() { writeLock.lock(); try { // Close old themes. for (Long value : widgetToTheme.values()) {
*** 74,83 **** --- 76,89 ---- } } public static native boolean isThemed(); + public static boolean isXPStyleEnabled() { + return xpStyleEnabled; + } + // this should be called only with writeLock held private static Long getThemeImpl(String widget) { Long theme = widgetToTheme.get(widget); if (theme == null) { int i = widget.indexOf("::");