Changeset 10009 for trunk/gli/src/org/greenstone/gatherer/util/Utility.java
- Timestamp:
- 2005-06-03T14:49:55+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r10008 r10009 412 412 413 413 414 /** Retrieve the full file path to the help index xml file.415 * @return the full path as a String416 */417 static public String getHelpFolder() {418 419 String help_folder = "help/" + Configuration.getLanguage() + "/";420 421 // Try in the JAR/classes directory first422 URL help_folder_url = base.getResource("/" + help_folder);423 if (help_folder_url != null) {424 return help_folder;425 }426 427 // Look in the base directory next428 File help_folder_file = new File(help_folder);429 if (help_folder_file.exists()) {430 return help_folder;431 }432 433 // Resort to English434 return "help/" + StaticStrings.ENGLISH_LANGUAGE_STR + "/";435 }436 437 414 /** Method to retrieve an image icon with the given filename found in classpath or the resouces directory. 438 415 * @return The specified <strong>ImageIcon</strong>, or an error image replacement if no such images exists.
Note:
See TracChangeset
for help on using the changeset viewer.