Move starting file scanner in background to file scanner class
[jSite.git] / src / main / java / de / todesbaum / jsite / gui / FileScanner.java
index d86a6ba..9135073 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * jSite - FileScanner.java - Copyright © 2006–2012 David Roden
+ * jSite - FileScanner.java - Copyright © 2006–2014 David Roden
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -115,6 +115,10 @@ public class FileScanner implements Runnable {
                return lastFilename;
        }
 
+       public void startInBackground() {
+               new Thread(this).start();
+       }
+
        /**
         * {@inheritDoc}
         * <p>