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,String font) {
    OpenInHelpAction openHelpAction = new OpenInHelpAction();
    openHelpAction.setEnabled(true);
    tbm.add(openHelpAction);
    tbm.update(true);
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...