Java 类org.eclipse.xtext.ui.editor.hover.html.IXtextBrowserInformationControl 实例源码

项目:gama    文件:GamlHoverProvider.java   
@Override
public IInformationControl doCreateInformationControl(final Shell parent) {

    final String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString();
    if (BrowserInformationControl.isAvailable(parent)) {
        final String font = "org.eclipse.jdt.ui.javadocfont"; // FIXME:
                                                                // PreferenceConstants.APPEARANCE_JAVADOC_FONT;
        final IXtextBrowserInformationControl iControl =
                new GamlInformationControl(parent, font, tooltipAffordanceString) {

                };
        addLinkListener(iControl);
        return iControl;
    } else {
        return new DefaultInformationControl(parent, tooltipAffordanceString);
    }
}
项目:solidity-ide    文件:CustomCSSHelpHoverProvider.java   
protected void configureControl(
        IXtextBrowserInformationControl control, ToolBarManager tbm,
        String font) {
    OpenInHelpAction openHelpAction = new OpenInHelpAction();
    openHelpAction.setEnabled(true);
    tbm.add(openHelpAction);
    tbm.update(true);
}
项目:statecharts    文件:CustomCSSHelpHoverProvider.java   
protected void configureControl(
        IXtextBrowserInformationControl control, ToolBarManager tbm,
        String font) {
    OpenInHelpAction openHelpAction = new OpenInHelpAction();
    openHelpAction.setEnabled(true);
    tbm.add(openHelpAction);
    tbm.update(true);
}