/** * {@inheritDoc} * * @see org.eclipse.jface.text.DefaultInformationControl.IInformationPresenter#updatePresentation(org.eclipse.swt.widgets.Display, * java.lang.String, org.eclipse.jface.text.TextPresentation, int, int) * @deprecated Use {@link #updatePresentation(Drawable, String, TextPresentation, int, int)} * instead */ @Deprecated @Override public String updatePresentation(Display display, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight) { return updatePresentation((Drawable)display, hoverInfo, presentation, maxWidth, maxHeight); }
/** * {@inheritDoc} * * @see org.eclipse.jface.text.DefaultInformationControl.IInformationPresenter#updatePresentation(org.eclipse.swt.widgets.Display, * java.lang.String, org.eclipse.jface.text.TextPresentation, int, int) * @deprecated Use {@link #updatePresentation(Drawable, String, TextPresentation, int, int)} * instead */ @Deprecated @Override public String updatePresentation(Display display, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight) { return updatePresentation((Drawable)display, hoverInfo, presentation, maxWidth, maxHeight); }
@Override public String updatePresentation(Drawable drawable, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight) { String warningInfo= JavaHoverMessages.JavadocHover_fallback_warning; String warning= super.updatePresentation(drawable, warningInfo, presentation, maxWidth, maxHeight); presentation.clear(); String content= super.updatePresentation(drawable, hoverInfo, presentation, maxWidth, maxHeight); return content + "\n\n" + warning; //$NON-NLS-1$ } }
@Override public String updatePresentation(Drawable drawable, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight) { String warningInfo= JavaHoverMessages.JavadocHover_fallback_warning; String warning= super.updatePresentation(drawable, warningInfo, presentation, maxWidth, maxHeight); presentation.clear(); String content= super.updatePresentation(drawable, hoverInfo, presentation, maxWidth, maxHeight); return content + "\n\n" + warning; //$NON-NLS-1$ } }
javadocHtml= fPresenter.updatePresentation(fText, javadocHtml, fPresentation, size.width, size.height); } catch (IllegalArgumentException ex) {
javadocHtml= fPresenter.updatePresentation(fText, javadocHtml, fPresentation, size.width, size.height); } catch (IllegalArgumentException ex) {