Search in sources :

Example 16 with HelpSet

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;
}
Also used : HelpSet(javax.help.HelpSet) HelpSetException(javax.help.HelpSetException)

Example 17 with HelpSet

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);
    }
}
Also used : HelpSet(javax.help.HelpSet)

Example 18 with HelpSet

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);
        }
    }
}
Also used : HelpSet(javax.help.HelpSet) CSH(javax.help.CSH) URL(java.net.URL) HelpSetException(javax.help.HelpSetException)

Aggregations

HelpSet (javax.help.HelpSet)18 URL (java.net.URL)12 HelpSetException (javax.help.HelpSetException)7 DefaultHelpBroker (javax.help.DefaultHelpBroker)3 HelpBroker (javax.help.HelpBroker)3 Dimension (java.awt.Dimension)2 FileNotFoundException (java.io.FileNotFoundException)2 IOException (java.io.IOException)2 BadIDException (javax.help.BadIDException)2 CSH (javax.help.CSH)2 JHelp (javax.help.JHelp)2 WindowPresentation (javax.help.WindowPresentation)2 ExecuteAcs (alma.acs.commandcenter.engine.ExecuteAcs)1 ExecuteContainer (alma.acs.commandcenter.engine.ExecuteContainer)1 ExecuteManager (alma.acs.commandcenter.engine.ExecuteManager)1 ExecuteServices (alma.acs.commandcenter.engine.ExecuteServices)1 ExecuteTools (alma.acs.commandcenter.engine.ExecuteTools)1 CommandCenterGui (alma.acs.commandcenter.gui.CommandCenterGui)1 Firestarter (alma.acs.commandcenter.meta.Firestarter)1 OrbInitException (alma.acs.commandcenter.meta.Firestarter.OrbInitException)1