Changeset 5898


Ignore:
Timestamp:
2003-11-19T14:58:45+13:00 (20 years ago)
Author:
mdewsnip
Message:

A quick and ugly hack to assign a model to the root drives under Windows. I'll tidy this up when I get the chance.

Location:
trunk/gli/src/org/greenstone/gatherer/file
Files:
2 edited

Legend:

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

    r5847 r5898  
    1010public class FileSystem
    1111{
    12     static public FileNode getLocalFileSystem()
     12    static public FileNode getLocalFileSystem(FileSystemModel model)
     13    // static public FileNode getLocalFileSystem()
    1314    {
    1415    FileNode file_system_root = null;
     
    2829    else {
    2930        file_system_root = new FileNode(Dictionary.get("Tree.Root"));
     31        file_system_root.setModel(model);
    3032
    3133        // Sort the roots into alphabetical order
  • trunk/gli/src/org/greenstone/gatherer/file/WorkspaceTreeModel.java

    r5871 r5898  
    3535
    3636    // Add the local filespace
    37     workspace_tree_root.insert(FileSystem.getLocalFileSystem());
     37    workspace_tree_root.insert(FileSystem.getLocalFileSystem(workspace_tree_model));
    3838
    3939    // Add a mapping to the user home folder
Note: See TracChangeset for help on using the changeset viewer.