- Timestamp:
- 2005-11-24T17:29:41+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/admin/gui/SetServerPane.java
r10929 r10943 55 55 import java.sql.*; 56 56 57 import org.greenstone.core.Configuration; 58 import org.greenstone.core.Dictionary; 57 import org.greenstone.admin.Configuration; 59 58 import org.greenstone.core.ParsingProgress; 60 59 import org.greenstone.admin.GAI; … … 122 121 save_button.setToolTipText("Click this button to save up the setting"); 123 122 save_button.setEnabled(false); 124 //Dictionary.registerBoth(build_button, "CreatePane.Build_Collection", "CreatePane.Build_Collection_Tooltip");125 123 126 124 install_button = new JButton("Install GSDL3", InstallButtonIcon); … … 129 127 install_button.setMnemonic(KeyEvent.VK_I); 130 128 install_button.setToolTipText("Click this button to Install Greenstone III"); 131 //Dictionary.registerBoth(build_button, "CreatePane.Build_Collection", "CreatePane.Build_Collection_Tooltip");132 129 133 130 exit_button = new JButton("Exit Setting and Installation", ExitButtonIcon); … … 136 133 install_button.setMnemonic(KeyEvent.VK_I); 137 134 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");139 135 140 136 //Setting&Installation buttons … … 211 207 main_pane.add(setting_table_pane, BorderLayout.CENTER); 212 208 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")); 215 211 216 212 // Center and display … … 233 229 int result = JOptionPane.showConfirmDialog((Component) null, "Do you really want to save the setting?", "Save Confirmation", JOptionPane.YES_NO_OPTION); 234 230 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); 237 233 if (file_saved) { 238 234 JOptionPane.showMessageDialog((Component) null,"Change has been saved succefully!"); … … 248 244 } 249 245 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); 252 248 String new_string; 253 249 for (int i=0; i < server_setting_table_model.getRowCount(); i++){ … … 265 261 266 262 } 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(); 269 265 String fileLine; 270 266 /*conf_array[] store all the details from the build.properties*/ … … 284 280 } 285 281 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(); 288 284 try { 289 285 BufferedWriter conf_out = new BufferedWriter(new FileWriter(filename));
Note:
See TracChangeset
for help on using the changeset viewer.