Override toString() for simple displaying it in a List.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 17 Mar 2012 21:38:35 +0000 (22:38 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Sat, 17 Mar 2012 21:38:35 +0000 (22:38 +0100)
src/de/todesbaum/jsite/gui/FileScanner.java

index 86c9ff5..c777ae8 100644 (file)
@@ -320,6 +320,14 @@ public class FileScanner implements Runnable {
                        return filename.equals(obj);
                }
 
+               /**
+                * {@inheritDoc}
+                */
+               @Override
+               public String toString() {
+                       return filename;
+               }
+
                //
                // COMPARABLE METHODS
                //