use of javax.help.HelpSet in project bundle-app-ui by astrapi69.
the class DesktopMenu method getHelpSet.
/**
* Gets the help set.
*
* @return the help set
*/
public HelpSet getHelpSet() {
HelpSet hs = null;
final String filename = "simple-hs.xml";
final String directoryPath = "help/";
try {
hs = JComponentFactory.newHelpSet(directoryPath, filename);
} catch (final HelpSetException e) {
log.error("Instanciation problem of class HelpSet.", e);
}
return hs;
}
use of javax.help.HelpSet in project zaproxy by zaproxy.
the class ZapBasicSearchNavigatorUI method addSubHelpSets.
@Override
protected void addSubHelpSets(HelpSet hs) {
for (Enumeration<?> e = hs.getHelpSets(); e.hasMoreElements(); ) {
HelpSet ehs = (HelpSet) e.nextElement();
// merge views
Arrays.stream(ehs.getNavigatorViews()).forEach(view -> mergeSearchView(view, ehs));
addSubHelpSets(ehs);
}
}
use of javax.help.HelpSet in project zaproxy by zaproxy.
the class ExtensionHelp method createHelpBroker.
private static synchronized void createHelpBroker() {
if (hb == null) {
try {
URL hsUrl = findHelpSetUrl();
if (hsUrl != null) {
hs = new HelpSet(ExtensionFactory.getAddOnLoader(), hsUrl);
hb = hs.createHelpBroker();
showHelpActionListener = new CSH.DisplayHelpFromFocus(hb);
}
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
}
}
Aggregations