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

Bug 367058

Summary: [xtend][ui] Hover for feature calls should include implicit receiver / argument
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: XtextAssignee: Holger Schill <Holger.Schill>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: Holger.Schill, sven.efftinge
Version: 2.3.0Flags: sven.efftinge: juno+
Target Milestone: M5   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sebastian Zarnekow CLA 2011-12-19 04:53:46 EST
Currently only the linked function is shown. We should also include the implicitly used information.

e.g. 

extension SomeExtensions

def zonk(Thing it) {
  bar("Foo")
}

The hover for bar should include

this._someExtensions.bar(it, "Foo")
Comment 1 Sven Efftinge CLA 2011-12-19 05:36:39 EST
Big +1
Comment 2 Holger Schill CLA 2012-01-11 05:04:22 EST
We'll try to provide more information in the default hover. It's important to visualize that the feature call is not the declaration but otoh we want to provide easy access to the de-sugared feature call.

Hover (comparable to debug hover in JDT):

Some Java doc comment
More Java doc
(scroll bars if long documentation, see Java's view)
------------(I'm a JFace separator)----------------
The unfolded expression (with some simple-to-implement strategy to simplify multi line expressions in parameter lists)
---------------------------------------------------
Comment 3 Holger Schill CLA 2012-01-20 06:52:01 EST
pushed first version to MASTER.
Comment 4 Holger Schill CLA 2012-01-20 10:45:52 EST
Please reopen if I missed something.
Comment 5 Karsten Thoms CLA 2017-09-19 17:25:57 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 6 Karsten Thoms CLA 2017-09-19 17:37:21 EDT
Closing all bugs that were set to RESOLVED before Neon.0