Changeset 6790


Ignore:
Timestamp:
2004-02-12T15:52:47+13:00 (20 years ago)
Author:
kjdon
Message:

pass the args for the strings into the result prompt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/ExportCollectionPrompt.java

    r6387 r6790  
    320320        args[1] += "exported_"+cd_title.replaceAll("\\s","");
    321321    }
    322     ResultDialog result_dialog = new ResultDialog(success, extra);
     322    ResultDialog result_dialog = new ResultDialog(success, extra, args);
    323323    result_dialog.setVisible(true); // Blocks
    324324    result_dialog.dispose();
     
    524524    extends ModalDialog {
    525525   
    526     private Dimension size = new Dimension(400,300);
     526    private Dimension size = new Dimension(600,300);
    527527    private ResultDialog self;
    528528
    529     public ResultDialog(boolean success, String extra) {
     529    public ResultDialog(boolean success, String extra, String [] args) {
    530530        super(Gatherer.g_man, Dictionary.get("ExportCollectionPrompt.Successful_Title"), true);
    531531
     
    538538        JLabel result_label = new JLabel();
    539539        if(success) {
    540         Dictionary.registerText(result_label, "ExportCollectionPrompt.Successful_Export");
     540        Dictionary.registerText(result_label, "ExportCollectionPrompt.Successful_Export", args);
    541541        }
    542542        else {
    543         Dictionary.registerText(result_label, "ExportCollectionPrompt.Failed_Export");
     543        Dictionary.registerText(result_label, "ExportCollectionPrompt.Failed_Export", args);
    544544        }
    545545
Note: See TracChangeset for help on using the changeset viewer.