changeset 12418:3cf154021626

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 8e6b0b4fc31b
children 0103a8cfc956
files src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java src/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java
diffstat 2 files changed, 0 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java	Fri Sep 08 10:42:46 2017 -0700
+++ b/src/share/classes/javax/swing/plaf/metal/MetalFileChooserUI.java	Fri Jun 30 11:03:44 2017 +0530
@@ -271,11 +271,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/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java	Fri Sep 08 10:42:46 2017 -0700
+++ b/src/share/classes/sun/swing/plaf/synth/SynthFileChooserUIImpl.java	Fri Jun 30 11:03:44 2017 +0530
@@ -259,9 +259,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);