- Timestamp:
- 2009-01-12T11:40:15+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/branches/rtl-gli/src/org/greenstone/gatherer/gui/GUIManager.java
r18297 r18364 60 60 import org.greenstone.gatherer.gui.tree.DragTree; 61 61 import org.greenstone.gatherer.metadata.MetadataSet; 62 import org.greenstone.gatherer.metadata.MetadataXMLFileManager; 62 63 import org.greenstone.gatherer.remote.RemoteGreenstoneServer; 63 64 import org.greenstone.gatherer.util.JarTools; … … 204 205 } 205 206 else if (esrc == menu_bar.file_save) { 206 Gatherer.c_man.saveCollection(); 207 // Very important: make sure metadata values are saved too 208 enrich_pane.stopEditingAndRebuild(); 209 // Make sure all the metadata has been saved to file 210 MetadataXMLFileManager.saveMetadataXMLFiles(); 211 212 Gatherer.c_man.saveCollection(); 207 213 } 208 214 … … 346 352 347 353 // Pretty corner icon 348 this.setIconImage(JarTools.getImage("gatherer_small.gif").getImage()); 354 String gsmall_image = "gatherer_small.gif"; 355 if (Configuration.fedora_info.isActive()) { 356 gsmall_image = "fli-" + gsmall_image; 357 } 358 this.setIconImage(JarTools.getImage(gsmall_image).getImage()); 349 359 // BorderLayout for the main screen. I'll try my best to avoid these in subcomponents as they're space greedy. 350 360 content_pane.setLayout(new BorderLayout()); … … 392 402 if (Configuration.get("workflow.design", true)) { 393 403 // "GUI.Design_Tooltip" is used automatically 394 tab_pane.addTab(Dictionary.get("GUI.Design"), JarTools.getImage("design.gif"), design_pane, Dictionary.get("GUI.Design_Tooltip")); 404 if (Configuration.fedora_info.isActive()) { 405 tab_pane.addTab("Plugins", JarTools.getImage("design.gif"), design_pane, Dictionary.get("GUI.Design_Tooltip")); 406 } 407 else { 408 tab_pane.addTab(Dictionary.get("GUI.Design"), JarTools.getImage("design.gif"), design_pane, Dictionary.get("GUI.Design_Tooltip")); 409 } 410 395 411 tab_pane.setEnabledAt(tab_pane.indexOfComponent(design_pane), false); 396 412 } … … 441 457 remote_greenstone_server_progress_panel.setLayout(new BorderLayout()); 442 458 remote_greenstone_server_progress_panel.add(remote_greenstone_server_progress_label, BorderLayout.LINE_START); 443 remote_greenstone_server_progress_panel.add( RemoteGreenstoneServer.getProgressBar(), BorderLayout.CENTER);459 remote_greenstone_server_progress_panel.add(Gatherer.remoteGreenstoneServer.getProgressBar(), BorderLayout.CENTER); 444 460 content_pane.add(remote_greenstone_server_progress_panel, BorderLayout.SOUTH); 445 461 } … … 467 483 // If we have a collection open remember it for next time, then save it and close it 468 484 if (Gatherer.c_man.ready()) { 469 Configuration.setString("general.open_collection", true, CollectionManager.getLoadedCollectionColFilePath()); 485 Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(), 486 true, CollectionManager.getLoadedCollectionColFilePath()); 470 487 saveThenCloseCurrentCollection(); 471 488 } 472 489 else { 473 Configuration.setString("general.open_collection" , true, null);490 Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(), true, null); 474 491 } 475 492 … … 650 667 public void setTitle(String title, String name) { 651 668 // Finally display the collection name in the title bar. 652 StringBuffer title_buffer = new StringBuffer( Gatherer.PROGRAM_NAME);669 StringBuffer title_buffer = new StringBuffer(Configuration.getApplicationTitle()); 653 670 title_buffer.append(StaticStrings.SPACE_CHARACTER); 654 671 title_buffer.append(Gatherer.PROGRAM_VERSION); 655 672 title_buffer.append(StaticStrings.SPACE_CHARACTER); 656 673 title_buffer.append(StaticStrings.SPACE_CHARACTER); 674 // Server version information 675 title_buffer.append(Gatherer.getServerVersionAsString()); 676 title_buffer.append(StaticStrings.SPACE_CHARACTER); 677 title_buffer.append(StaticStrings.SPACE_CHARACTER); 657 678 // Describe the current user mode 658 679 title_buffer.append(StaticStrings.MODE_STR);
Note:
See TracChangeset
for help on using the changeset viewer.