Changeset 15105 for gli


Ignore:
Timestamp:
03/20/08 20:09:18 (13 years ago)
Author:
ak19
Message:

Works with new replace_srcdoc_with_html.pl

File:
1 edited

Legend:

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

    r13605 r15105  
    4545import org.greenstone.gatherer.collection.CollectionTreeNode;
    4646import org.greenstone.gatherer.gui.ExplodeMetadataDatabasePrompt;
     47import org.greenstone.gatherer.gui.ReplaceSrcDocWithHtmlPrompt;
    4748import org.greenstone.gatherer.gui.GProgressBar;
    4849import org.greenstone.gatherer.gui.NewFolderOrFilePrompt;
     
    201202    }
    202203
    203 
    204204    public void explodeMetadataDatabase(File file)
    205205    {
     
    208208    }
    209209
     210    // Works with replace_srcdoc_with_html.pl
     211    public void replaceSrcDocWithHtml(File[] files)
     212    {
     213    // This must go in a separate thread because we need the progress bar to work (remote Greenstone server)
     214    new ReplaceSrcDocWithHtmlPromptTask(files).start();
     215    }
    210216
    211217    private class ExplodeMetadataDatabasePromptTask
     
    222228    {
    223229        ExplodeMetadataDatabasePrompt emp = new ExplodeMetadataDatabasePrompt(metadata_database_file);
     230    }
     231    }
     232
     233    // Works with replace_srcdoc_with_html.pl
     234    private class ReplaceSrcDocWithHtmlPromptTask
     235    extends Thread
     236    {
     237    private File[] replace_these_srcdoc_files = null;
     238
     239    public ReplaceSrcDocWithHtmlPromptTask(File[] replace_these_srcdoc_files)
     240    {
     241        this.replace_these_srcdoc_files = replace_these_srcdoc_files;
     242    }
     243
     244    public void run()
     245    {
     246        ReplaceSrcDocWithHtmlPrompt prompt = new ReplaceSrcDocWithHtmlPrompt(replace_these_srcdoc_files);
    224247    }
    225248    }
Note: See TracChangeset for help on using the changeset viewer.