@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); } }
protected void configureControl( IXtextBrowserInformationControl control, ToolBarManager tbm, String font) { OpenInHelpAction openHelpAction = new OpenInHelpAction(); openHelpAction.setEnabled(true); tbm.add(openHelpAction); tbm.update(true); }