Changeset 12117


Ignore:
Timestamp:
2006-07-10T14:47:59+12:00 (18 years ago)
Author:
kjdon
Message:

Changed text handling to use Dictionary.get rather than Dictionary.setText or Dictionary.registerBoth etc. removed the Dictionary.register(tab_pane) bit and set the text and tooltips in the addTab method. also removed mnemonics cos they suck for other languages

File:
1 edited

Legend:

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

    r12103 r12117  
    367367        download_pane = new DownloadPane();
    368368        // "GUI.Download_Tooltip" is used automatically
    369         tab_pane.addTab("GUI.Download", JarTools.getImage("download.gif"), download_pane);
     369        tab_pane.addTab(Dictionary.get("GUI.Download"), JarTools.getImage("download.gif"), download_pane, Dictionary.get("GUI.Download_Tooltip"));
    370370        tab_pane.setEnabledAt(tab_pane.indexOfComponent(download_pane), Configuration.get("workflow.download", false));
    371371        }
     
    375375        if (Configuration.get("workflow.gather", true)) {
    376376        // "GUI.Gather_Tooltip" is used automatically
    377         tab_pane.addTab("GUI.Gather", JarTools.getImage("gather.gif"), gather_pane);
     377        tab_pane.addTab(Dictionary.get("GUI.Gather"), JarTools.getImage("gather.gif"), gather_pane, Dictionary.get("GUI.Gather_Tooltip"));
    378378        tab_pane.setEnabledAt(tab_pane.indexOfComponent(gather_pane), Configuration.get("workflow.gather", false));
    379379        }
     
    383383        if (Configuration.get("workflow.enrich", true)) {
    384384        // "GUI.Enrich_Tooltip" is used automatically
    385         tab_pane.addTab("GUI.Enrich", JarTools.getImage("enrich.gif"), enrich_pane);
     385        tab_pane.addTab(Dictionary.get("GUI.Enrich"), JarTools.getImage("enrich.gif"), enrich_pane, Dictionary.get("GUI.Enrich_Tooltip"));
    386386        tab_pane.setEnabledAt(tab_pane.indexOfComponent(enrich_pane), false);
    387387        }
     
    391391        if (Configuration.get("workflow.design", true)) {
    392392        // "GUI.Design_Tooltip" is used automatically
    393         tab_pane.addTab("GUI.Design", JarTools.getImage("design.gif"), design_pane);
     393        tab_pane.addTab(Dictionary.get("GUI.Design"), JarTools.getImage("design.gif"), design_pane, Dictionary.get("GUI.Design_Tooltip"));
    394394        tab_pane.setEnabledAt(tab_pane.indexOfComponent(design_pane), false);
    395395        }
     
    399399        if (Configuration.get("workflow.create", true)) {
    400400        // "GUI.Create_Tooltip" is used automatically
    401         tab_pane.addTab("GUI.Create", JarTools.getImage("create.gif"), create_pane);
     401        tab_pane.addTab(Dictionary.get("GUI.Create"), JarTools.getImage("create.gif"), create_pane, Dictionary.get("GUI.Create_Tooltip"));
    402402        tab_pane.setEnabledAt(tab_pane.indexOfComponent(create_pane), false);
    403403        }
     
    406406        format_pane.display();
    407407        if (Configuration.get("workflow.format", true)) {
    408         tab_pane.addTab("GUI.Format", JarTools.getImage("format.gif"), format_pane);
     408        tab_pane.addTab(Dictionary.get("GUI.Format"), JarTools.getImage("format.gif"), format_pane, Dictionary.get("GUI.Format_Tooltip"));
    409409        tab_pane.setEnabledAt(tab_pane.indexOfComponent(format_pane), false);
    410410        }
     
    427427        }
    428428
    429         Dictionary.register(tab_pane);
    430429        content_pane.add(tab_pane, BorderLayout.CENTER);
    431430
Note: See TracChangeset for help on using the changeset viewer.