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

Bug 337027

Summary: [MWE2] Patch to show variable values in hover
Product: [Modeling] EMFT Reporter: Christoph Kulla <christophkulla>
Component: MWEAssignee: Project Inbox <emft-mwe-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: sven.efftinge
Version: unspecifiedFlags: sven.efftinge: indigo+
Target Milestone: M6   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Patch for mwe2
sven.efftinge: iplog+
Patch for Xtext
sven.efftinge: iplog+
Hover displays variable value
none
Link in hover to referenced variable none

Description Christoph Kulla CLA 2011-02-12 08:14:26 EST
Build Identifier: Indigo M5

The attached patch shows a variable's value in the hover. If the variable refers to other variables, links are placed into the hover. The user can then follow links and go back and forth in history. This patch requires a small modification in Xtext's DefaultEObjectHoverProvider (I added two separate patches, one for mwe2 and for Xtext). Added some screenshots.

Reproducible: Always
Comment 1 Christoph Kulla CLA 2011-02-12 08:15:21 EST
Created attachment 188830 [details]
Patch for mwe2
Comment 2 Christoph Kulla CLA 2011-02-12 08:16:19 EST
Created attachment 188831 [details]
Patch for Xtext
Comment 3 Christoph Kulla CLA 2011-02-12 08:17:39 EST
Created attachment 188832 [details]
Hover displays variable value
Comment 4 Christoph Kulla CLA 2011-02-12 08:18:20 EST
Created attachment 188833 [details]
Link in hover to referenced variable
Comment 5 Sven Efftinge CLA 2011-02-13 17:10:16 EST
patches applied, thanks.