@Override
    public String getHelpText(I_CmsWidgetDialog widgetDialog, I_CmsWidgetParameter param) {

        String helpId = getDisabledHelpKey(param);
        Set<String> helpIdsShown = widgetDialog.getHelpMessageIds();
        if (helpIdsShown.contains(helpId)) {
            // help hey has already been included in output
            return "";
        }
        helpIdsShown.add(helpId);

        // calculate the key
        String locValue = widgetDialog.getMessages().key(helpId, true);
        if (locValue == null) {
            // there was no help message found for this key, so return an empty string
            return "";
        } else {
            if (widgetDialog.useNewStyle()) {
                StringBuffer result = new StringBuffer(128);
                result.append("<div class=\"help\" id=\"help");
                result.append(helpId);
                result.append("\"");
                result.append(getJsHelpMouseHandler(widgetDialog, helpId, helpId));
                result.append(">");
                result.append(locValue);
                result.append("</div>\n");
                return result.toString();
            } else {
                return "";
            }
        }
    }
@ Override public String getHelpText ( I_CmsWidgetDialog widgetDialog , I_CmsWidgetParameter param ) { String helpId = getDisabledHelpKey ( param ) ; Set < String > helpIdsShown = widgetDialog . getHelpMessageIds ( ) ; if ( helpIdsShown . contains ( helpId ) ) { return "" ; } helpIdsShown . add ( helpId ) ; String locValue = widgetDialog . getMessages ( ) . key ( helpId , true ) ; if ( locValue == null ) { return "" ; } else { if ( widgetDialog . useNewStyle ( ) ) { StringBuffer result = new StringBuffer ( 128 ) ; result . append ( "<div class=\"help\" id=\"help" ) ; result . append ( helpId ) ; result . append ( "\"" ) ; result . append ( getJsHelpMouseHandler ( widgetDialog , helpId , helpId ) ) ; result . append ( ">" ) ; result . append ( locValue ) ; result . append ( "</div>\n" ) ; return result . toString ( ) ; } else { return "" ; } } }
@see org.opencms.widgets.A_CmsWidget#getHelpText(org.opencms.widgets.I_CmsWidgetDialog, org.opencms.widgets.I_CmsWidgetParameter)