Ignore:
Timestamp:
05/09/08 09:31:42 (16 years ago)
Author:
ra33
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/agents/WriteTree.java

    r4 r22  
    4545                int ind = params.indexOf(" ");
    4646                if (ind > 0) {
    47                         String param = params.substring(ind + 1);
     47                        String lastParam = params.substring(ind + 1);
    4848                        _format = params.substring(0, ind).toLowerCase();
    4949
    50                         if (param.equals("clipboard"))
     50                        if (lastParam.equals("clipboard"))
    5151                                _clipboard = true;
    5252                        else
    53                                 _outFile = param;
    54                 }
     53                                _outFile = lastParam;
     54                }
     55        }
     56       
     57        public WriteTree(String format, String outFile) {
     58                _format = format;
     59                _outFile = outFile;
    5560        }
    5661
     
    6267        @Override
    6368        public boolean initialise(Frame start) {
    64                 _outFile = start.getExportFileName();
     69                if (_outFile == null)
     70                        _outFile = start.getExportFileName();
    6571
    6672                try {
Note: See TracChangeset for help on using the changeset viewer.