public IInformationControlCreator getInformationControlCreator() { Shell shell= JavaPlugin.getActiveWorkbenchShell(); if (shell == null || !BrowserInformationControl.isAvailable(shell)) return null; if (fCreator == null) { fCreator= new ControlCreator(); } return fCreator; }
@Override public IInformationControl doCreateInformationControl(Shell parent) { if (BrowserInformationControl.isAvailable(parent)) return new BrowserInformationControl(parent, JFaceResources.DIALOG_FONT, false); return new DefaultInformationControl(parent, false); } };
@Override protected IInformationControl doCreateInformationControl(Shell parent) { if (BrowserInformationControl.isAvailable(parent)) { return new BrowserInformationControl(parent, JFaceResources.DIALOG_FONT, fIsFocusable) {
@Override protected IInformationControl doCreateInformationControl(Shell parent) { if (BrowserInformationControl.isAvailable(parent)) { return new BrowserInformationControl(parent, JFaceResources.DIALOG_FONT, fIsFocusable) {
@Override public IInformationControl doCreateInformationControl(Shell parent) { String tooltipAffordanceString= fAdditionalInfoAffordance ? JavaPlugin.getAdditionalInfoAffordanceString() : EditorsUI.getTooltipAffordanceString(); if (BrowserInformationControl.isAvailable(parent)) { String font= PreferenceConstants.APPEARANCE_JAVADOC_FONT; BrowserInformationControl iControl= new BrowserInformationControl(parent, font, tooltipAffordanceString) { /* * @see org.eclipse.jface.text.IInformationControlExtension5#getInformationPresenterControlCreator() */ @Override public IInformationControlCreator getInformationPresenterControlCreator() { return fInformationPresenterControlCreator; } }; addLinkListener(iControl); return iControl; } else { return new DefaultInformationControl(parent, tooltipAffordanceString) { @Override public IInformationControlCreator getInformationPresenterControlCreator() { return new IInformationControlCreator() { @Override public IInformationControl createInformationControl(Shell parentShell) { return new DefaultInformationControl(parentShell, (ToolBarManager) null, new FallbackInformationPresenter()); } }; } }; } }
public IInformationControl doCreateInformationControl(Shell parent) { int shellStyle= SWT.RESIZE | SWT.TOOL; int style= SWT.V_SCROLL | SWT.H_SCROLL; if (BrowserInformationControl.isAvailable(parent)) return new BrowserInformationControl(parent, shellStyle, style); else return new DefaultInformationControl(parent, shellStyle, style, new HTMLTextPresenter(false)); } }
@Override public IInformationControl doCreateInformationControl(Shell parent) { String tooltipAffordanceString = EditorsUI.getTooltipAffordanceString(); if (BrowserInformationControl.isAvailable(parent)) { String font = "org.eclipse.jdt.ui.javadocfont"; // FIXME: PreferenceConstants.APPEARANCE_JAVADOC_FONT; IXtextBrowserInformationControl iControl = new XtextBrowserInformationControl(parent, font, tooltipAffordanceString) { /* * @see org.eclipse.jface.text.IInformationControlExtension5#getInformationPresenterControlCreator() */ @Override public IInformationControlCreator getInformationPresenterControlCreator() { return fInformationPresenterControlCreator; } }; addLinkListener(iControl); return iControl; } else { return new DefaultInformationControl(parent, tooltipAffordanceString); } }
@Override public IInformationControl doCreateInformationControl(Shell parent) { if (BrowserInformationControl.isAvailable(parent)) { ToolBarManager tbm = new ToolBarManager(SWT.FLAT); String font = "org.eclipse.jdt.ui.javadocfont"; // FIXME: mPreferenceConstants.APPEARANCE_JAVADOC_FONT; IXtextBrowserInformationControl control = new XtextBrowserInformationControl(parent, font, tbm); configureControl(control, tbm, font); return control; } else { return new DefaultInformationControl(parent,true); } }
public IInformationControl doCreateInformationControl(Shell parent) { int shellStyle= SWT.RESIZE | SWT.TOOL; int style= SWT.V_SCROLL | SWT.H_SCROLL; if (BrowserInformationControl.isAvailable(parent)) return new BrowserInformationControl(parent, shellStyle, style); else return new DefaultInformationControl(parent, shellStyle, style, new HTMLTextPresenter(false)); } }
@Override public IInformationControlCreator getInformationControlCreator() { Shell shell= JavaPlugin.getActiveWorkbenchShell(); if (shell == null || !BrowserInformationControl.isAvailable(shell)) return null; if (fCreator == null) { /* * FIXME: Take control creators (and link handling) out of JavadocHover, * see https://bugs.eclipse.org/bugs/show_bug.cgi?id=232024 */ JavadocHover.PresenterControlCreator presenterControlCreator= new JavadocHover.PresenterControlCreator(getSite()); fCreator= new JavadocHover.HoverControlCreator(presenterControlCreator, true); } return fCreator; }
@Override public IInformationControlCreator getInformationControlCreator() { Shell shell= JavaPlugin.getActiveWorkbenchShell(); if (shell == null || !BrowserInformationControl.isAvailable(shell)) return null; if (fCreator == null) { /* * FIXME: Take control creators (and link handling) out of JavadocHover, * see https://bugs.eclipse.org/bugs/show_bug.cgi?id=232024 */ JavadocHover.PresenterControlCreator presenterControlCreator= new JavadocHover.PresenterControlCreator(getSite()); fCreator= new JavadocHover.HoverControlCreator(presenterControlCreator, true); } return fCreator; }
public IInformationControl doCreateInformationControl(Shell parent) { if (BrowserInformationControl.isAvailable(parent)) return new BrowserInformationControl(parent, SWT.TOOL | SWT.NO_TRIM, SWT.NONE, EditorsUI.getTooltipAffordanceString()); else return new DefaultInformationControl(parent, SWT.NONE, new HTMLTextPresenter(true), EditorsUI.getTooltipAffordanceString()); }
@Override protected IInformationControl doCreateInformationControl(Shell parent) { if (BrowserInformationControl.isAvailable(parent)) { if (fIsFocusable) return new RevisionInformationControl(parent); return new RevisionInformationControl(parent, EditorsUI.getTooltipAffordanceString()); } if (fIsFocusable) return new DefaultInformationControl(parent, true); return new DefaultInformationControl(parent, EditorsUI.getTooltipAffordanceString()); }
@Override public IInformationControl doCreateInformationControl(Shell parent) { String tooltipAffordanceString= fAdditionalInfoAffordance ? JavaPlugin.getAdditionalInfoAffordanceString() : EditorsUI.getTooltipAffordanceString(); if (BrowserInformationControl.isAvailable(parent)) { String font= PreferenceConstants.APPEARANCE_JAVADOC_FONT; iControl= new BrowserInformationControl(parent, font, tooltipAffordanceString) {
protected IInformationControl doCreateInformationControl(Shell parent) { int style= fIsFocusable ? SWT.V_SCROLL | SWT.H_SCROLL : SWT.NONE; if (BrowserInformationControl.isAvailable(parent)) { final int shellStyle= SWT.TOOL | (fIsFocusable ? SWT.RESIZE : SWT.NO_TRIM); return new BrowserInformationControl(parent, shellStyle, style, EditorsUI.getTooltipAffordanceString()) {
@Override public IInformationControl doCreateInformationControl(Shell parent) { if (BrowserInformationControl.isAvailable(parent)) { ToolBarManager tbm= new ToolBarManager(SWT.FLAT); String font= PreferenceConstants.APPEARANCE_JAVADOC_FONT;
@Override public IInformationControl doCreateInformationControl(Shell parent) { if (BrowserInformationControl.isAvailable(parent)) { ToolBarManager tbm= new ToolBarManager(SWT.FLAT); String font= PreferenceConstants.APPEARANCE_JAVADOC_FONT;