1 23 24 29 30 package com.sun.enterprise.tools.upgrade.gui.util; 31 32 36 37 import javax.help.*; 38 39 public class Utils { 40 41 private static HelpBroker helpBroker ; 42 private static java.util.logging.Logger log = com.sun.enterprise.tools.upgrade.common.CommonInfoModel.getDefaultLogger(); 43 44 public Utils() { 45 } 46 public static HelpBroker getHelpBroker(){ 47 if(helpBroker == null){ 48 String helpHSString = "com/sun/enterprise/tools/upgrade/doc/UpgradeToolHelp.hs"; 49 HelpSet helpHS = null; 50 ClassLoader cl = Utils.class.getClassLoader(); 51 try { 52 java.net.URL hsURL = HelpSet.findHelpSet(cl, helpHSString); 53 helpHS = new HelpSet(null, hsURL); 54 } catch (Exception ee) { 55 log.warning( "HelpSet " + ee.getMessage()); 57 log.warning("HelpSet "+ helpHS +" not found"); 58 return null; 59 } 60 helpBroker = helpHS.createHelpBroker(); 62 } 63 return helpBroker; 64 } 65 } 66 | Popular Tags |