/** * Sets the current help set. If the current help broker is not null, the help set will be assigned to it. * Otherwise, a help broker will be created from the given help set. * <p/> * This method can be used to switch to an other helpset. * * @param helpSet the help set to be set */ private static void set(HelpSet helpSet) { if (helpBroker == null) { helpBroker = new DefaultHelpBroker(helpSet); } helpBroker.setHelpSet(helpSet); } }
/** * Adds the given help set to the current helpset. * * @param helpSet the help set to be added */ public static void add(HelpSet helpSet) { if (!isInitialized()) { set(helpSet); return; } HelpSet set = helpBroker.getHelpSet(); if (set == null) { helpBroker.setHelpSet(helpSet); return; } set.add(helpSet); }