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

Bug 346204

Summary: [editor] Confusion in org.eclipse.wst.sse.ui.internal.taginfo.BestMatchHover.getHoverControlCreator()
Product: [WebTools] WTP Source Editing Reporter: Jack Liu <ljfeng1002>
Component: wst.sseAssignee: Nick Sandonato <nsand.dev>
Status: RESOLVED FIXED QA Contact: Nick Sandonato <nsand.dev>
Severity: normal    
Priority: P3 CC: nsand.dev
Version: unspecified   
Target Milestone: 3.6 M4   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Jack Liu CLA 2011-05-18 05:36:33 EDT
Build Identifier: Build Identifier: 201101021000

There are two steps for show hover info.
1. get hover info
2. get InformationCreator

To get hover info, 
if the fBestMatchHover returned null, it will check other hovers from "getTextHovers()", until finding a valid display string.

To get InformationCreator, BestMatchHover will only return the fBestMatchHover's InformationCreator.

So the display string maybe come from a different hover from the fBestMatchHover, so it is strange to display other hover's result with fBestMatchHover, and would cause some issues.

Reproducible: Always