| Summary: | [patch] Show declaration in hover (with colors and links to referenced elements) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Christoph Kulla <christophkulla> | ||||||
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> | ||||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||||
| Severity: | enhancement | ||||||||
| Priority: | P3 | CC: | sebastian.zarnekow, sven.efftinge | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Christoph Kulla
Created attachment 193545 [details]
Patch for the declaration documentation provider.
Created attachment 193546 [details]
Screenshot of the new hover for xtext grammars
I don't like hovers showing the implementation details of a declared element in general. It should instead show an abstracted "outside"-view on it. Like the signature the inferred type and some documentation. On the other hand it might be ok if you have a very small implementations, which you can grasp quickly. In that case it's even better than documentation, but :-) What do others think? Btw.: The code looks like the coloring only work if the referenced element is opened in an editor. Is that true? Christoph, thanks for patch. Unfortunately, I don't like this feature. It overloads the semantics of the hover and I'd assume this will confuse users. Having something like the declaration view in Java may be ok but the hover info should display the documentation comment that is associated with the hovered element. Could you try to update your patch and provide a declaration view or at least a mock-up screenshot that illustrates how such a view could look like? Christoph, as Sebastian and me both don't like the idea too much, I'm closing this ticket. I hope this is not too frustrating for you. And please reopen or add comments if this is not ok with you. Thank you, Sven Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |