changeset 17771:08ec9924fcbf

8182402: Tooltip for Desktop button is in English when non-English locale is set Reviewed-by: azvegint
author psadhukhan
date Fri, 30 Jun 2017 11:03:44 +0530
parents f834f39cb870
children 19098b855e42
files src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java src/java.desktop/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java	Thu Jun 29 13:07:19 2017 -0700
+++ b/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/src/java.desktop/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java	Thu Jun 29 13:07:19 2017 -0700
+++ b/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);