8182402: Tooltip for Desktop button is in English when non-English locale is set
authorpsadhukhan
Fri, 30 Jun 2017 11:03:44 +0530
changeset 47143 cb2688cc1ca5
parent 47142 c6ba533f5977
child 47144 20f16e21003f
8182402: Tooltip for Desktop button is in English when non-English locale is set Reviewed-by: azvegint
jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java
jdk/src/java.desktop/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java
--- a/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java	Thu Jun 29 13:07:19 2017 -0700
+++ b/jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java	Fri Jun 30 11:03:44 2017 +0530
@@ -281,11 +281,6 @@
         // Home Button
         File homeDir = fsv.getHomeDirectory();
         String toolTipText = homeFolderToolTipText;
-        if (fsv.isRoot(homeDir)) {
-            toolTipText = getFileView(fc).getName(homeDir); // Probably "Desktop".
-        }
-
-
 
 
         JButton b = new JButton(homeFolderIcon);
--- a/jdk/src/java.desktop/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java	Thu Jun 29 13:07:19 2017 -0700
+++ b/jdk/src/java.desktop/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java	Fri Jun 30 11:03:44 2017 +0530
@@ -260,9 +260,6 @@
     // Home Button
     File homeDir = fsv.getHomeDirectory();
     String toolTipText = homeFolderToolTipText;
-    if (fsv.isRoot(homeDir)) {
-        toolTipText = getFileView(fc).getName(homeDir); // Probably "Desktop".
-    }
 
     JButton b = new JButton(homeFolderIcon);
     b.setToolTipText(toolTipText);