/** * MainProgram constructor * * @param num - number of month * @param source - Directory to start search * @param hr - reference to HandlerView object that called to the constructor */ public MainProgram(int num, File source, HandlerView hr) { _listOfFiles = new ArrayList<File>(); _numOfMonth = num; _source = source; archiveDirectory = createArchive(); /*TODO if added only for running UnitTest - should be without if*/ if (hr != null) { list = hr.getList(); progress = hr.getBar(); handlerFrame = hr; } else { list = null; progress = null; handlerFrame = null; } }