Ignore:
Timestamp:
2005-11-24T17:29:41+13:00 (18 years ago)
Author:
kjdon
Message:

I got rid of all the core files - they were mainly not used. some I have created new versions, or now use teh gs3 version. updated all these files to reflect the changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/admin/gui/SetServerPane.java

    r10929 r10943  
    5555import java.sql.*;
    5656
    57 import org.greenstone.core.Configuration;
    58 import org.greenstone.core.Dictionary;
     57import org.greenstone.admin.Configuration;
    5958import org.greenstone.core.ParsingProgress;
    6059import org.greenstone.admin.GAI;
     
    122121    save_button.setToolTipText("Click this button to save up the setting");
    123122    save_button.setEnabled(false);
    124     //Dictionary.registerBoth(build_button, "CreatePane.Build_Collection", "CreatePane.Build_Collection_Tooltip");
    125123
    126124    install_button = new JButton("Install GSDL3", InstallButtonIcon);
     
    129127    install_button.setMnemonic(KeyEvent.VK_I);
    130128    install_button.setToolTipText("Click this button to Install Greenstone III");
    131     //Dictionary.registerBoth(build_button, "CreatePane.Build_Collection", "CreatePane.Build_Collection_Tooltip");
    132129
    133130    exit_button = new JButton("Exit Setting and Installation", ExitButtonIcon);
     
    136133    install_button.setMnemonic(KeyEvent.VK_I);
    137134    install_button.setToolTipText("Click this button to Exit the Setting and Installation of Greenstone III");
    138     //Dictionary.registerBoth(build_button, "CreatePane.Build_Collection", "CreatePane.Build_Collection_Tooltip");
    139135
    140136    //Setting&Installation buttons
     
    211207    main_pane.add(setting_table_pane, BorderLayout.CENTER);
    212208    main_pane.add(outter_control_pane, BorderLayout.SOUTH);
    213     main_pane.setBackground(Configuration.getColor("coloring.workspace_selection_background", false));
    214     main_pane.setForeground(Configuration.getColor("coloring.workspace_selection_foreground", false));
     209    main_pane.setBackground(Configuration.getColor("coloring.workspace_selection_background"));
     210    main_pane.setForeground(Configuration.getColor("coloring.workspace_selection_foreground"));
    215211   
    216212    // Center and display
     
    233229        int result = JOptionPane.showConfirmDialog((Component) null, "Do you really want to save the setting?", "Save Confirmation", JOptionPane.YES_NO_OPTION);
    234230        if ( result == JOptionPane.YES_OPTION) {
    235         updateSetting (GAI.build_file);
    236         file_saved = writeFile (GAI.build_file);
     231        updateSetting (GAI.build_properties_file);
     232        file_saved = writeFile (GAI.build_properties_file);
    237233        if (file_saved) {
    238234            JOptionPane.showMessageDialog((Component) null,"Change has been saved succefully!");
     
    248244    }
    249245
    250     public void updateSetting(File build_file) {
    251     readFile (GAI.build_file);
     246    public void updateSetting(File build_properties_file) {
     247    readFile (GAI.build_properties_file);
    252248    String new_string;
    253249    for (int i=0; i < server_setting_table_model.getRowCount(); i++){
     
    265261   
    266262    }
    267     public void readFile (File build_file) {
    268     String filename = build_file.getPath();
     263    public void readFile (File build_properties_file) {
     264    String filename = build_properties_file.getPath();
    269265    String fileLine;
    270266    /*conf_array[] store all the details from the build.properties*/
     
    284280    }
    285281   
    286     public boolean writeFile(File build_file){
    287     String filename = build_file.getPath();
     282    public boolean writeFile(File build_properties_file){
     283    String filename = build_properties_file.getPath();
    288284    try {
    289285        BufferedWriter conf_out = new BufferedWriter(new FileWriter(filename));
Note: See TracChangeset for help on using the changeset viewer.