Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346199

Summary: "org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover " should implement ITextHoverExtension2
Product: [WebTools] WTP Source Editing Reporter: Jack Liu <ljfeng1002>
Component: wst.sseAssignee: wst.sse <wst.sse-inbox>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: enhancement    
Priority: P3 CC: nsand.dev
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Jack Liu CLA 2011-05-18 05:24:40 EDT
Build Identifier: wst.sse.ui_1.2.2.v201008232126

BestMatchHover should implement ITextHoverExtension2.
I use JdtdocHover which takes getHoverInfo() and getHoverInfo2() differently and I wrap it in my wtp TextEditorConfiguration extension. When it's HoverCreator take the hover info (here only can be string, but it should be object from getHoverInfo2()), ClasscaseException will be thrown.

Similar implementation is:
org.eclipse.jdt.internal.ui.text.java.hover.BestMatchHover

Exception:
java.lang.ClassCastException: org.eclipse.jface.internal.text.html.BrowserInformationControl$3 incompatible with org.eclipse.jdt.internal.ui.text.java.hover.JavadocBrowserInformationControlInput
at org.eclipse.jdt.internal.ui.text.java.hover.JavadocHover$3.handleInlineJavadocLink(JavadocHover.java:494)
at org.eclipse.jdt.internal.ui.viewsupport.JavaElementLinks$1.changing(JavaElementLinks.java:220)
at org.eclipse.swt.browser.IE$6.handleEvent(IE.java:440)
at org.eclipse.swt.ole.win32.OleEventTable.sendEvent(OleEventTable.java:55)
at org.eclipse.swt.ole.win32.OleEventSink.notifyListener(OleEventSink.java:145)
at org.eclipse.swt.ole.win32.OleEventSink.Invoke(OleEventSink.java:120)


Reproducible: Always
Comment 1 Nick Sandonato CLA 2012-08-14 17:42:57 EDT
BestMatchHover implements ITextHoverExtension2 as of bug 360874.