Ignore:
Timestamp:
2003-09-23T14:58:18+12:00 (21 years ago)
Author:
mdewsnip
Message:

Partway through tooltip assignment. Made lots of little changes, registered a whole lot more components, removed dead code, fixed help links (with SimpleMenuBars). Lots more of the same to come.

File:
1 edited

Legend:

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

    r5356 r5527  
    225225    help_about.addActionListener(Gatherer.g_man);
    226226
    227     help_browse = new JMenuItem(get("GUI.Browser"), Utility.BLANK_ICON);
     227    help_browse = new JMenuItem(get("GUI.Hunt"), Utility.BLANK_ICON);
    228228    help_browse.addActionListener(Gatherer.g_man);
    229229
     
    231231    help_build.addActionListener(Gatherer.g_man);
    232232
    233     help_collect = new JMenuItem(get("GUI.Collection"), Utility.BLANK_ICON);
     233    help_collect = new JMenuItem(get("GUI.Gather"), Utility.BLANK_ICON);
    234234    help_collect.addActionListener(Gatherer.g_man);
    235235
    236     help_design = new JMenuItem(get("GUI.Build"), Utility.BLANK_ICON);
     236    help_design = new JMenuItem(get("GUI.Design"), Utility.BLANK_ICON);
    237237    help_design.addActionListener(Gatherer.g_man);
    238238
     
    243243    help_general.addActionListener(Gatherer.g_man);
    244244
    245     help_metaedit = new JMenuItem(get("GUI.MetaEdit"), Utility.BLANK_ICON);
     245    help_metaedit = new JMenuItem(get("GUI.Enrich"), Utility.BLANK_ICON);
    246246    help_metaedit.addActionListener(Gatherer.g_man);
    247247
    248     help_mirror = new JMenuItem(get("GUI.Mirroring"), Utility.BLANK_ICON);
     248    help_mirror = new JMenuItem(get("GUI.Mirror"), Utility.BLANK_ICON);
    249249    help_mirror.addActionListener(Gatherer.g_man);
    250250
     
    325325
    326326    /** In order to provide context aware help advice we keep track of which
    327       *  tab the user has open, and then highlight that help menu item with
    328       *  separators.
    329       *  @param tab_index The index of the selected tab (0-7).
    330       */
     327     *  tab the user has open, and then highlight that help menu item with
     328     *  separators.
     329     *  @param tab_index The index of the selected tab (0-7).
     330     */
    331331    public void tabSelected(int tab_index) {
    332332    JMenuItem selected;
     
    347347     
    348348    /** Retrieves a key from the Dictionary, using no extra arguments.
    349       * @param key A String which maps to a certain phrase from the Dictionary.
    350       * @return The String the matches the key or an error String if no match
    351       * found.
    352       */
     349     * @param key A String which maps to a certain phrase from the Dictionary.
     350     * @return The String the matches the key or an error String if no match
     351     * found.
     352     */
    353353    private String get(String key) {
    354     return get(key, null);
     354    // return get(key, null);
     355    return Gatherer.dictionary.get(key, (String[]) null);
    355356    }
    356357
    357358    /** Retrieves a key from the Dictionary, providing extra arguments to
    358       * be inserted using a String array.
    359       * @param key A String which maps to a certain phrase from the Dictionary.
    360       * @param args A String array containing further arguments (such as
    361       * formatting instructions and variable values) to be taken into account
    362       * when Dictionary creates the return String.
    363       * @return The String the matches the key or an error String if no match
    364       * found.
    365       */
    366     private String get(String key, String args[]) {
     359     * be inserted using a String array.
     360     * @param key A String which maps to a certain phrase from the Dictionary.
     361     * @param args A String array containing further arguments (such as
     362     * formatting instructions and variable values) to be taken into account
     363     * when Dictionary creates the return String.
     364     * @return The String the matches the key or an error String if no match
     365     * found.
     366     */
     367    /* private String get(String key, String args[]) {
    367368    if(key.indexOf('.') == -1) {
    368369        key = "Menu." + key;
    369370    }
    370371    return Gatherer.dictionary.get(key, args);
    371     }
     372    } */
    372373
    373374    public class MagicMenuItem
Note: See TracChangeset for help on using the changeset viewer.