/**
* find the helpset file and create a HelpSet object
*/
private HelpSet getHelpSet(String helpsetfile) {
HelpSet hs = null;
ClassLoader cl = getClass().getClassLoader();
try {
URL hsURL = HelpSet.findHelpSet(cl, helpsetfile);
File file = new File("./help/Sample.hs");
if (!file.exists()) {
file = new File("./../help/Sample.hs");
}
if (hsURL == null) {
hsURL = (file.toURI()).toURL();
}
hs = new HelpSet(null, hsURL);
} catch (Exception ee) {
System.out.println("HelpSet: " + ee.getMessage());
System.out.println("HelpSet: " + helpsetfile + " not found");
}
return hs;