Ignore:
Timestamp:
2008-02-12T16:13:13+13:00 (16 years ago)
Author:
davidb
Message:

Changes to GLI to support export into Fedora. New utility called flisvn diff gems/MetadataSetManager.java

Location:
gli/trunk/src/org/greenstone/gatherer/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/DesignPane.java

    r12144 r14974  
    3939import org.greenstone.gatherer.cdm.CollectionDesignManager;
    4040import org.greenstone.gatherer.cdm.Control;
     41
     42import org.greenstone.gatherer.Configuration;
     43
    4144public class DesignPane
    4245    extends BaseConfigPane {
     
    4548    public DesignPane() {
    4649    super();
    47     contents = new String [] { "CDM.GUI.Plugins", "CDM.GUI.Indexes", "CDM.GUI.Subcollections",  "CDM.GUI.Classifiers" };
     50    if (Configuration.fedora_info.isActive()) {
     51        contents = new String [] { "CDM.GUI.Plugins" };
     52    }
     53    else {
     54        contents = new String [] { "CDM.GUI.Plugins", "CDM.GUI.Indexes", "CDM.GUI.Subcollections",  "CDM.GUI.Classifiers" };
     55    }
    4856   
    4957    }
  • gli/trunk/src/org/greenstone/gatherer/gui/GUIManager.java

    r13944 r14974  
    387387        if (Configuration.get("workflow.design", true)) {
    388388        // "GUI.Design_Tooltip" is used automatically
    389         tab_pane.addTab(Dictionary.get("GUI.Design"), JarTools.getImage("design.gif"), design_pane, Dictionary.get("GUI.Design_Tooltip"));
     389        if (Configuration.fedora_info.isActive()) {
     390            tab_pane.addTab("Plugins", JarTools.getImage("design.gif"), design_pane, Dictionary.get("GUI.Design_Tooltip"));
     391        }
     392        else {
     393            tab_pane.addTab(Dictionary.get("GUI.Design"), JarTools.getImage("design.gif"), design_pane, Dictionary.get("GUI.Design_Tooltip"));
     394        }
     395
    390396        tab_pane.setEnabledAt(tab_pane.indexOfComponent(design_pane), false);
    391397        }
     
    641647    public void setTitle(String title, String name) {
    642648    // Finally display the collection name in the title bar.
    643     StringBuffer title_buffer = new StringBuffer(Gatherer.PROGRAM_NAME);
     649    StringBuffer title_buffer = new StringBuffer(Configuration.getApplicationTitle());
    644650    title_buffer.append(StaticStrings.SPACE_CHARACTER);
    645651    title_buffer.append(Gatherer.PROGRAM_VERSION);
Note: See TracChangeset for help on using the changeset viewer.