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

Bug 464825

Summary: [Hover][Annotations] Title and tooltip content for search, current line, matching bracket annotations could be more useful
Product: [ECD] Orion Reporter: Curtis Windatt <curtis.windatt.public>
Component: ClientAssignee: Curtis Windatt <curtis.windatt.public>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 8.0   
Target Milestone: 9.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on: 463515    
Bug Blocks: 466781    

Description Curtis Windatt CLA 2015-04-16 14:19:59 EDT
When you hover over annotations the tooltip will display the title of the annotation.  We can display more useful information by either changing the title of the annotaation or by putting custom code into tooltip.js.

Marked occurrences - Annotation has no title, so in editor no tooltip is shown (Bug 463515) and in the ruler the line of code is shown.  This is pretty reasonable, though it does not match up with search result.

Matching search result - Displays title in tooltip "Matching Search".  Could remove the title to behave the same as Marked occurrences.

Matching bracket - Displays title "Current Bracket" and "Matching Bracket". I don't think a tooltip is helpful in the editor, maybe in the right hand ruler.
Comment 1 Curtis Windatt CLA 2015-05-07 17:17:01 EDT
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=0789dd8ec40fa503107ae26a823d4f9696a1768e
Tried a few different things and this simple change looks the best.  The current search still says current search, but all the other entries (including the overlapping matching search) will just display the line of code they apply to in the ruler tooltip.

In the future we could provide html content for our annotations (like git blame) that highlights the specific word.