8211031: Remove un-needed qualified export to java.desktop from java.base on macos
Reviewed-by: serb, mchung
This commit is contained in:
parent
added9caf6
commit
42ecae239b
@ -1,26 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
|
|
||||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
||||||
*
|
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
|
||||||
* under the terms of the GNU General Public License version 2 only, as
|
|
||||||
* published by the Free Software Foundation. Oracle designates this
|
|
||||||
* particular file as subject to the "Classpath" exception as provided
|
|
||||||
* by Oracle in the LICENSE file that accompanied this code.
|
|
||||||
*
|
|
||||||
* This code is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
* version 2 for more details (a copy is included in the LICENSE file that
|
|
||||||
* accompanied this code).
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License version
|
|
||||||
* 2 along with this work; if not, write to the Free Software Foundation,
|
|
||||||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
||||||
*
|
|
||||||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
||||||
* or visit www.oracle.com if you need additional information or have any
|
|
||||||
* questions.
|
|
||||||
*/
|
|
||||||
|
|
||||||
exports jdk.internal.loader to java.desktop;
|
|
@ -274,7 +274,7 @@ public class AquaLookAndFeel extends BasicLookAndFeel {
|
|||||||
// <rdar://problem/5189013> Entire Java application window refreshes when moving off Shortcut menu item
|
// <rdar://problem/5189013> Entire Java application window refreshes when moving off Shortcut menu item
|
||||||
final Boolean useOpaqueComponents = Boolean.TRUE;
|
final Boolean useOpaqueComponents = Boolean.TRUE;
|
||||||
|
|
||||||
final Boolean buttonShouldBeOpaque = AquaUtils.shouldUseOpaqueButtons() ? Boolean.TRUE : Boolean.FALSE;
|
final Boolean buttonShouldBeOpaque = Boolean.FALSE;
|
||||||
|
|
||||||
// *** List value objects
|
// *** List value objects
|
||||||
final Object listCellRendererActiveValue = new UIDefaults.ActiveValue(){
|
final Object listCellRendererActiveValue = new UIDefaults.ActiveValue(){
|
||||||
|
@ -37,8 +37,6 @@ import javax.swing.*;
|
|||||||
import javax.swing.border.Border;
|
import javax.swing.border.Border;
|
||||||
import javax.swing.plaf.UIResource;
|
import javax.swing.plaf.UIResource;
|
||||||
|
|
||||||
import jdk.internal.loader.ClassLoaders;
|
|
||||||
|
|
||||||
import sun.awt.AppContext;
|
import sun.awt.AppContext;
|
||||||
|
|
||||||
import sun.lwawt.macosx.CPlatformWindow;
|
import sun.lwawt.macosx.CPlatformWindow;
|
||||||
@ -284,7 +282,6 @@ final class AquaUtils {
|
|||||||
public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int width, final int height) {
|
public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int width, final int height) {
|
||||||
final BufferedImage img = new BufferedImage(width + blur * 2, height + blur * 2, BufferedImage.TYPE_INT_ARGB_PRE);
|
final BufferedImage img = new BufferedImage(width + blur * 2, height + blur * 2, BufferedImage.TYPE_INT_ARGB_PRE);
|
||||||
paintToImage(img, x, y, width, height);
|
paintToImage(img, x, y, width, height);
|
||||||
// debugFrame("border", img);
|
|
||||||
g.drawImage(img, -blur, -blur, null);
|
g.drawImage(img, -blur, -blur, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -325,7 +322,6 @@ final class AquaUtils {
|
|||||||
|
|
||||||
final BufferedImage i = new BufferedImage(templateWidth, templateHeight, BufferedImage.TYPE_INT_ARGB_PRE);
|
final BufferedImage i = new BufferedImage(templateWidth, templateHeight, BufferedImage.TYPE_INT_ARGB_PRE);
|
||||||
super.paintBorder(null, i.getGraphics(), 0, 0, templateWidth, templateHeight);
|
super.paintBorder(null, i.getGraphics(), 0, 0, templateWidth, templateHeight);
|
||||||
// debugFrame("slices", i);
|
|
||||||
slices = new SlicedImageControl(i, leftCut, topCut, rightCut, bottomCut, false);
|
slices = new SlicedImageControl(i, leftCut, topCut, rightCut, bottomCut, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -335,29 +331,6 @@ final class AquaUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// static void debugFrame(String name, Image image) {
|
|
||||||
// JFrame f = new JFrame(name);
|
|
||||||
// f.setContentPane(new JLabel(new ImageIcon(image)));
|
|
||||||
// f.pack();
|
|
||||||
// f.setVisible(true);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// special casing naughty applications, like InstallAnywhere
|
|
||||||
// <rdar://problem/4851533> REGR: JButton: Myst IV: the buttons of 1.0.3 updater have redraw issue
|
|
||||||
static boolean shouldUseOpaqueButtons() {
|
|
||||||
// can we use ClassLoader.getSystemClassLoader here?
|
|
||||||
final ClassLoader launcherClassLoader = ClassLoaders.appClassLoader();
|
|
||||||
if (classExists(launcherClassLoader, "com.installshield.wizard.platform.macosx.MacOSXUtils")) return true;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static boolean classExists(final ClassLoader classLoader, final String clazzName) {
|
|
||||||
try {
|
|
||||||
return Class.forName(clazzName, false, classLoader) != null;
|
|
||||||
} catch (final Throwable ignored) { }
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final RecyclableSingleton<Method> getJComponentGetFlagMethod = new RecyclableSingleton<Method>() {
|
private static final RecyclableSingleton<Method> getJComponentGetFlagMethod = new RecyclableSingleton<Method>() {
|
||||||
@Override
|
@Override
|
||||||
protected Method getInstance() {
|
protected Method getInstance() {
|
||||||
|
Loading…
Reference in New Issue
Block a user