Changeset 11440


Ignore:
Timestamp:
2006-03-21T13:37:43+12:00 (18 years ago)
Author:
kjdon
Message:

replace task now stores directory for next time

File:
1 edited

Legend:

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

    r11314 r11440  
    6161    public static int FILE_TYPE = 0;
    6262    public static int FOLDER_TYPE = 1;
     63    protected static File startup_directory = null;
    6364
    6465
     
    389390    public void run()
    390391    {
    391         JFileChooser file_chooser = new JFileChooser();
     392
     393        JFileChooser file_chooser = new JFileChooser(startup_directory);
    392394        file_chooser.setDialogTitle(Dictionary.get("ReplacePrompt.Title"));
    393395        File new_file = null;
     
    401403        }
    402404       
     405        // save the search path for next time
     406        startup_directory = new_file.getParentFile();
    403407        // make up a node for the file to bring in
    404408        WorkspaceTreeNode source_node = new WorkspaceTreeNode(new_file);
Note: See TracChangeset for help on using the changeset viewer.