Changeset 10602 for trunk/gli/src/org


Ignore:
Timestamp:
2005-09-08T16:59:55+12:00 (19 years ago)
Author:
mdewsnip
Message:

Broke the help while messing around with paths for the remote building stuff. Will have to check this again to make sure it still works when isGsdlRemote is true.

File:
1 edited

Legend:

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

    r10345 r10602  
    317317        URL url = null;
    318318
    319         String help_file = getHelpFolder() + name + StaticStrings.HTM_FILE_EXTENSION;
    320 
    321         if (name != null && !name.equals(NULL_STRING)) {
    322         url = JarTools.getResource("/" + help_file);
    323         if (url == null) {
    324             File file = new File(Gatherer.getGLIUserDirectoryPath() + help_file);
    325             try {
    326             url = file.toURL();
    327             }
    328             catch (Exception ex) {
    329             ex.printStackTrace();
    330             }
     319        if (name != null && !name.equals("") && !name.equals(NULL_STRING)) {
     320        String help_file_path = getHelpFolder() + name + StaticStrings.HTM_FILE_EXTENSION;
     321        File help_file = new File(Gatherer.getGLIDirectoryPath() + help_file_path);
     322        if (Gatherer.isGsdlRemote) {
     323            help_file = new File(Gatherer.getGLIUserDirectoryPath() + help_file_path);
     324        }
     325        try {
     326            url = help_file.toURL();
     327        }
     328        catch (Exception exception) {
     329            DebugStream.printStackTrace(exception);
    331330        }
    332331        }
Note: See TracChangeset for help on using the changeset viewer.