Search in sources :

Example 1 with HelpTag

use of org.ovirt.engine.ui.uicommonweb.help.HelpTag in project ovirt-engine by oVirt.

the class AbstractModelBoundPopupPresenterWidget method updateHelpTag.

protected void updateHelpTag(T model) {
    HelpTag helpTag = model.getHelpTag();
    UICommand command = model.getOpenDocumentationCommand();
    if (command != null && helpTag != null && ContextSensitiveHelpManager.getPath(helpTag.name()) != null) {
        command.setIsAvailable(true);
        // also sets the help icon visible
        getView().setHelpCommand(command);
    }
}
Also used : HelpTag(org.ovirt.engine.ui.uicommonweb.help.HelpTag) UICommand(org.ovirt.engine.ui.uicommonweb.UICommand)

Aggregations

UICommand (org.ovirt.engine.ui.uicommonweb.UICommand)1 HelpTag (org.ovirt.engine.ui.uicommonweb.help.HelpTag)1