Ignore:
Timestamp:
2020-07-04T06:47:58+12:00 (4 years ago)
Author:
ak19
Message:

In the previous commit 1. Codec.java change was still related to commit 34241. 2. Fixed my own silly bug: it's windowClosed not windowClose. Because the real method was not overridden, it never got called when the configFileEditor was closed, as a result of which the GLI's GUI interface wasn't getting immediately repainted. 3. Fixed a bug in FileNode.java (nullpointer exception case). 4. Accidentally committed experimental work to export metadata from GLI to csv. This commit undoes the experimental stuff, only some of which is promising and still needs work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/file/FileSystemModel.java

    r34246 r34247  
    3535    getFileListing(root, files);
    3636    return;
    37     }
    38    
    39     private void getFileListing(TreeNode node, ArrayList<File> files) {
    40     if(node == null) return;
    41    
    42     if(!(node instanceof FileNode)) {
    43         return;
    44     } else {
    45         FileNode current = (FileNode)node;
    46         files.add(current.getFile());
    47         if(current.isLeaf()) {
    48         return;
    49         }
    50        
    51         Enumeration children = current.children();     
    52         while(children.hasMoreElements()) {
    53         FileNode child = (FileNode)children.nextElement();
    54         getFileListing(child, files);
    55         }
    56     }
    5737    }
    5838   
Note: See TracChangeset for help on using the changeset viewer.