Ignore:
Timestamp:
2005-06-03T14:49:55+12:00 (19 years ago)
Author:
mdewsnip
Message:

Moved Utility.getHelpFolder into HelpFrame, as part of tidying up the Utility class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r10008 r10009  
    412412
    413413
    414     /** Retrieve the full file path to the help index xml file.
    415      * @return the full path as a String
    416      */
    417     static public String getHelpFolder() {
    418 
    419     String help_folder = "help/" + Configuration.getLanguage() + "/";
    420 
    421     // Try in the JAR/classes directory first
    422     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 next
    428     File help_folder_file = new File(help_folder);
    429     if (help_folder_file.exists()) {
    430         return help_folder;
    431     }
    432 
    433     // Resort to English
    434     return "help/" + StaticStrings.ENGLISH_LANGUAGE_STR  + "/";
    435     }
    436 
    437414    /** Method to retrieve an image icon with the given filename found in classpath or the resouces directory.
    438415     *  @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.