From 9e440016f0d20050d3732bd303ea32a1ebfcfe70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 17 Mar 2012 22:38:35 +0100 Subject: [PATCH] Override toString() for simple displaying it in a List. --- src/de/todesbaum/jsite/gui/FileScanner.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/de/todesbaum/jsite/gui/FileScanner.java b/src/de/todesbaum/jsite/gui/FileScanner.java index 86c9ff5..c777ae8 100644 --- a/src/de/todesbaum/jsite/gui/FileScanner.java +++ b/src/de/todesbaum/jsite/gui/FileScanner.java @@ -320,6 +320,14 @@ public class FileScanner implements Runnable { return filename.equals(obj); } + /** + * {@inheritDoc} + */ + @Override + public String toString() { + return filename; + } + // // COMPARABLE METHODS // -- 2.7.4