Ignore:
Timestamp:
2009-01-12T11:40:15+13:00 (15 years ago)
Author:
kjdon
Message:

updated the rtl-gli branch with files from trunk. Result of a merge 14807:18318, and fixed some conflicts. I think this is the last commit following merging the files. Haven't tried to compile yet... here goes...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/branches/rtl-gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r18297 r18364  
    6060import org.greenstone.gatherer.gui.tree.DragTree;
    6161import org.greenstone.gatherer.metadata.MetadataSet;
     62import org.greenstone.gatherer.metadata.MetadataXMLFileManager;
    6263import org.greenstone.gatherer.remote.RemoteGreenstoneServer;
    6364import org.greenstone.gatherer.util.JarTools;
     
    204205    }
    205206    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();
    207213    }
    208214
     
    346352
    347353        // 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());
    349359        // BorderLayout for the main screen. I'll try my best to avoid these in subcomponents as they're space greedy.
    350360        content_pane.setLayout(new BorderLayout());
     
    392402        if (Configuration.get("workflow.design", true)) {
    393403        // "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
    395411        tab_pane.setEnabledAt(tab_pane.indexOfComponent(design_pane), false);
    396412        }
     
    441457        remote_greenstone_server_progress_panel.setLayout(new BorderLayout());
    442458        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);
    444460        content_pane.add(remote_greenstone_server_progress_panel, BorderLayout.SOUTH);
    445461        }
     
    467483    // If we have a collection open remember it for next time, then save it and close it
    468484    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());
    470487        saveThenCloseCurrentCollection();
    471488    }
    472489    else {
    473         Configuration.setString("general.open_collection", true, null);
     490        Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(), true, null);
    474491    }
    475492
     
    650667    public void setTitle(String title, String name) {
    651668    // 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());
    653670    title_buffer.append(StaticStrings.SPACE_CHARACTER);
    654671    title_buffer.append(Gatherer.PROGRAM_VERSION);
    655672    title_buffer.append(StaticStrings.SPACE_CHARACTER);
    656673    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);
    657678    // Describe the current user mode
    658679    title_buffer.append(StaticStrings.MODE_STR);
Note: See TracChangeset for help on using the changeset viewer.