Ignore:
Timestamp:
2007-01-12T14:39:03+13:00 (17 years ago)
Author:
mdewsnip
Message:

Tidied up all the CollectionManager functions for getting loaded collection paths, and made them static, as part of making CollectionManager fully static.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/OptionsPane.java

    r12822 r13591  
    241241        // Build a list of the log files available, ordering by last modified. Log files are like build_log.date.txt
    242242        DefaultListModel contents = new DefaultListModel();
    243         File log_directory = new File(Gatherer.c_man.getCollectionLogDirectoryPath());
     243        File log_directory = new File(CollectionManager.getLoadedCollectionLogDirectoryPath());
    244244        File children[] = log_directory.listFiles();
    245245        for(int i = 0; children != null && i < children.length; i++) {
     
    293293    name.append(".txt");
    294294    // just in case there is no log directory
    295     File file = new File(Gatherer.c_man.getCollectionLogDirectoryPath() + name.toString());
     295    File file = new File(CollectionManager.getLoadedCollectionLogDirectoryPath() + name.toString());
    296296    File parent_file = file.getParentFile();
    297297    parent_file.mkdirs();
Note: See TracChangeset for help on using the changeset viewer.