harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lvj...@apache.org
Subject svn commit: r595194 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java
Date Thu, 15 Nov 2007 03:15:05 GMT
Author: lvjing
Date: Wed Nov 14 19:15:04 2007
New Revision: 595194

URL: http://svn.apache.org/viewvc?rev=595194&view=rev
Log:
Re-define toString according to Harmony-5092.

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java?rev=595194&r1=595193&r2=595194&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java
Wed Nov 14 19:15:04 2007
@@ -67,10 +67,6 @@
         return WinFileManager.getManager().getParentShellInfo(absoluteItemId);
     }
 
-    public String getName() {
-        return isFileSystem() ? super.getName() : getDisplayName();
-    }
-
     public File getParentFile() {
         Win32.ITEMIDLIST parentItemId = WinFileManager.getManager().getParentItemId(absoluteItemId);
         return parentItemId != null ? WinFileManager.getManager().getWinFile(parentItemId)
: null;
@@ -147,6 +143,10 @@
         return getDescription() == WindowsDefs.SHDID_COMPUTER_CDROM;
     }
 
+    public String toString() {
+        return isFileSystem() ? super.toString() : getDisplayName();
+    }
+    
     public boolean isFixedDrive() {
         return getDescription() == WindowsDefs.SHDID_COMPUTER_FIXED;
     }



Mime
View raw message