Changeset 13605


Ignore:
Timestamp:
2007-01-12T18:02:50+13:00 (17 years ago)
Author:
mdewsnip
Message:

Started work on the "Replace" option when using a remote Greenstone.

File:
1 edited

Legend:

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

    r13604 r13605  
    417417    public void run()
    418418    {
    419 
    420419        JFileChooser file_chooser = new JFileChooser(startup_directory);
    421420        file_chooser.setDialogTitle(Dictionary.get("ReplacePrompt.Title"));
     
    439438        // copy the new file in - but don't bring metadata
    440439        file_queue.addJob(System.currentTimeMillis(), Gatherer.g_man.gather_pane.workspace_tree, new FileNode[] { source_node }, collection_tree, (FileNode)collection_tree_node.getParent(),  FileJob.COPY_FILE_ONLY);
     440        if (Gatherer.isGsdlRemote) {
     441        RemoteGreenstoneServer.uploadFilesIntoCollection(CollectionManager.getLoadedCollectionName(), new File[] { new_file }, target_directory);
     442        }
    441443        // do a replace of old file with new file
    442444        file_queue.addJob(System.currentTimeMillis(), collection_tree, new FileNode[] { collection_tree_node }, collection_tree, new_collection_tree_node, FileJob.REPLACE);
    443 
    444     }
    445     }
    446    
     445    }
     446    }
    447447}
    448 
    449 
    450 
    451 
Note: See TracChangeset for help on using the changeset viewer.