Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346199 - "org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover " should implement ITextHoverExtension2
Summary: "org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover " should implement IT...
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.sse (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: wst.sse CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-18 05:24 EDT by Jack Liu CLA
Modified: 2012-08-14 17:42 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.