Changeset 5527 for trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java
- Timestamp:
- 2003-09-23T14:58:18+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java
r5356 r5527 225 225 help_about.addActionListener(Gatherer.g_man); 226 226 227 help_browse = new JMenuItem(get("GUI. Browser"), Utility.BLANK_ICON);227 help_browse = new JMenuItem(get("GUI.Hunt"), Utility.BLANK_ICON); 228 228 help_browse.addActionListener(Gatherer.g_man); 229 229 … … 231 231 help_build.addActionListener(Gatherer.g_man); 232 232 233 help_collect = new JMenuItem(get("GUI. Collection"), Utility.BLANK_ICON);233 help_collect = new JMenuItem(get("GUI.Gather"), Utility.BLANK_ICON); 234 234 help_collect.addActionListener(Gatherer.g_man); 235 235 236 help_design = new JMenuItem(get("GUI. Build"), Utility.BLANK_ICON);236 help_design = new JMenuItem(get("GUI.Design"), Utility.BLANK_ICON); 237 237 help_design.addActionListener(Gatherer.g_man); 238 238 … … 243 243 help_general.addActionListener(Gatherer.g_man); 244 244 245 help_metaedit = new JMenuItem(get("GUI. MetaEdit"), Utility.BLANK_ICON);245 help_metaedit = new JMenuItem(get("GUI.Enrich"), Utility.BLANK_ICON); 246 246 help_metaedit.addActionListener(Gatherer.g_man); 247 247 248 help_mirror = new JMenuItem(get("GUI.Mirror ing"), Utility.BLANK_ICON);248 help_mirror = new JMenuItem(get("GUI.Mirror"), Utility.BLANK_ICON); 249 249 help_mirror.addActionListener(Gatherer.g_man); 250 250 … … 325 325 326 326 /** In order to provide context aware help advice we keep track of which 327 328 329 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 */ 331 331 public void tabSelected(int tab_index) { 332 332 JMenuItem selected; … … 347 347 348 348 /** Retrieves a key from the Dictionary, using no extra arguments. 349 350 351 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 */ 353 353 private String get(String key) { 354 return get(key, null); 354 // return get(key, null); 355 return Gatherer.dictionary.get(key, (String[]) null); 355 356 } 356 357 357 358 /** Retrieves a key from the Dictionary, providing extra arguments to 358 359 360 361 362 363 364 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[]) { 367 368 if(key.indexOf('.') == -1) { 368 369 key = "Menu." + key; 369 370 } 370 371 return Gatherer.dictionary.get(key, args); 371 } 372 } */ 372 373 373 374 public class MagicMenuItem
Note:
See TracChangeset
for help on using the changeset viewer.