Changeset 8578


Ignore:
Timestamp:
2004-11-17T10:10:13+13:00 (19 years ago)
Author:
mdewsnip
Message:

Some minor tidy ups.

File:
1 edited

Legend:

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

    r8474 r8578  
    4444import javax.swing.event.*;
    4545import javax.swing.tree.*;
    46 import org.apache.xerces.parsers.DOMParser;
    4746import org.greenstone.gatherer.DebugStream;
    4847import org.greenstone.gatherer.Dictionary;
     
    7574
    7675
    77 
    7876    public HelpFrame()
    7977    {
     
    114112    }
    115113
    116     private class ViewHyperlinkListener
    117     implements HyperlinkListener {
    118     public void hyperlinkUpdate(HyperlinkEvent e) {
    119         if(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
    120         try {
    121             view.setPage(e.getURL());
    122         }
    123         catch(Exception exception) {
    124             DebugStream.printStackTrace(exception);
    125         }
    126         }
    127     }
    128     }
    129114
    130115    public void destroy()
     
    176161        // Load the XML help file and build the contents structure from it
    177162        try {
    178         // DOMParser parser = new DOMParser();
    179         // parser.parse(Utility.getHelpFolder() + StaticStrings.HELP_INDEX_FILENAME);
    180         // Document document = parser.getDocument();
    181 
    182163        String help_index = Utility.getHelpFolder() + StaticStrings.HELP_INDEX_FILENAME;
    183164        Document document = Utility.parse(help_index,true);
     
    333314    }
    334315    }
     316
     317
     318    private class ViewHyperlinkListener
     319    implements HyperlinkListener {
     320    public void hyperlinkUpdate(HyperlinkEvent e) {
     321        if(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
     322        try {
     323            view.setPage(e.getURL());
     324        }
     325        catch(Exception exception) {
     326            DebugStream.printStackTrace(exception);
     327        }
     328        }
     329    }
     330    }
    335331}
Note: See TracChangeset for help on using the changeset viewer.