Changeset 21922

Show
Ignore:
Timestamp:
20.04.2010 15:08:18 (9 years ago)
Author:
sjm84
Message:

Added an additional file and modified an existing file for the GAI extension manager

Location:
main/trunk/greenstone3/src/java/org/greenstone/admin
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/admin/gui/LogPane.java

    r10953 r21922  
    113113     
    114114    // Log_list 
    115     String[] log_files = { "Tomcat log file", "Log file 2", "Log file 3"}; 
     115    String[] log_files = { "Tomcat log file", "Extension log file", "Log file 3"}; 
    116116    log_list = new JList(log_files); 
    117117    log_list.setBorder(BorderFactory.createLoweredBevelBorder()); 
     
    357357            clear_button.setEnabled(true); 
    358358        } else if (log_list.getSelectedIndex () == 1) { 
    359             log_textarea.setText(""); 
    360             JOptionPane.showMessageDialog((Component) null,"This file has not been defined yet");    
    361             clear_button.setEnabled(false); 
    362             reload_button.setEnabled(false); 
     359            log_file = new File (GAI.getGSDL3ExtensionHome() + File.separatorChar + "logs" + File.separatorChar + "ext.log"); 
     360            String filename = log_file.getPath(); 
     361            updateLogsContent(filename); 
     362            clear_button.setEnabled(true); 
     363            reload_button.setEnabled(true); 
    363364        } else if (log_list.getSelectedIndex () == 2) { 
    364365            log_textarea.setText("");