org.fife.ui.rtextfilechooser
Class FileDisplayNames

java.lang.Object
  extended by org.fife.ui.rtextfilechooser.FileDisplayNames

public class FileDisplayNames
extends java.lang.Object

Utility class for getting file display names. Useful to avoid potential performance pitfalls, such as removal media drives on Windows.

Version:
1.0
Author:
Robert Futrell

Method Summary
static FileDisplayNames get()
          Returns the singleton instance of this class.
 java.lang.String getName(java.io.File file)
          Returns the display name for a given file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public static FileDisplayNames get()
Returns the singleton instance of this class.

Returns:
The singleton instance of this class.

getName

public java.lang.String getName(java.io.File file)
Returns the display name for a given file.

Parameters:
file - The file for which to get the display name.
Returns:
The display name.