Changeset 16148 for gli

Show
Ignore:
Timestamp:
25.06.2008 10:45:23 (12 years ago)
Author:
osborn
Message:

Code fixes to Scheduling Component

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/CreatePane.java

    r16134 r16148  
    535535        build_button.setEnabled(true); 
    536536        cancel_button.setEnabled(false); 
    537         preview_button.setEnabled(true); 
     537        //preview_button.setEnabled(true); 
    538538        //only enable preview if the collection has been built.  
    539539        preview_button.setEnabled(Gatherer.c_man.built()); 
     
    959959        scroll_pane = null; 
    960960        } 
     961        if(node != null && node.equals(log)) {  
     962        build_button.setActionCommand(Dictionary.get("CreatePane.Build_Collection"));  
     963        build_button.setText(Dictionary.get("CreatePane.Build_Collection"));     
     964        } 
    961965        if(node != null && node.equals(building)) { 
     966    build_button.setActionCommand(Dictionary.get("CreatePane.Build_Collection"));        
     967        build_button.setText(Dictionary.get("CreatePane.Build_Collection")); 
     968  
     969 
    962970        previous_pane = options_pane.buildBuild(null); 
    963971        scroll_pane = new JScrollPane(previous_pane); 
     
    966974        } 
    967975        else if(node != null && node.equals(importing)) { 
     976        build_button.setActionCommand(Dictionary.get("CreatePane.Build_Collection"));  
     977        build_button.setText(Dictionary.get("CreatePane.Build_Collection"));  
     978 
    968979        previous_pane = options_pane.buildImport(null); 
    969980        scroll_pane = new JScrollPane(previous_pane); 
     
    972983        } 
    973984        else if(node != null && node.equals(scheduling)) {  
    974         //build_button.setActionCommand(Dictionary.get("CreatePane.Schedule_Build"));  
    975         //build_button.setText(Dictionary.get("CreatePane.Schedule_Build")); 
     985        build_button.setActionCommand(Dictionary.get("CreatePane.Schedule_Build"));  
     986        build_button.setText(Dictionary.get("CreatePane.Schedule_Build")); 
    976987  
    977988        previous_pane = options_pane.buildSchedule(null);