Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » CDT-like Hovers
CDT-like Hovers [message #1730205] Fri, 22 April 2016 10:31 Go to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Hi,

I'd like to have "CDT-like" hovers.
Basically it's useful on cross-references to show the cross-reference target (and a bit more of its surroundings) without having to ctrl-click to it.
Could this be done with the EmbeddedEditor ?
Re: CDT-like Hovers [message #1730207 is a reply to message #1730205] Fri, 22 April 2016 10:41 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13190
Registered: July 2009
Senior Member
Is this about implementing the hovers or not getting hovers in the embedded
editor


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: CDT-like Hovers [message #1730209 is a reply to message #1730207] Fri, 22 April 2016 11:05 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13190
Registered: July 2009
Senior Member
in normal editors xtext uses MultiLineCommentDocumentationProvider
of course you could customize this as use node model to get "the code"


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: CDT-like Hovers [message #1730221 is a reply to message #1730209] Fri, 22 April 2016 12:16 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Sorry I wasn't clear, the goal is not to have Hovers in the embedded editor but to have hovers in a normal editor but hovers containing an embedded editor of the cross reference target.
Re: CDT-like Hovers [message #1730222 is a reply to message #1730221] Fri, 22 April 2016 12:18 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13190
Registered: July 2009
Senior Member
why embedded editor in the hover? to actually edit it? or just to display the code?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: CDT-like Hovers [message #1730231 is a reply to message #1730222] Fri, 22 April 2016 13:07 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Just to display.
I was thinking of the EmbeddedEditor as I saw this presentation and also because this would probably be less work than transforming everything to html.

[Updated on: Fri, 22 April 2016 13:07]

Report message to a moderator

Re: CDT-like Hovers [message #1730232 is a reply to message #1730231] Fri, 22 April 2016 13:08 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13190
Registered: July 2009
Senior Member
Just take the node models text and wrap it into a pre tag should be a one
liner


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: CDT-like Hovers [message #1730249 is a reply to message #1730232] Fri, 22 April 2016 15:12 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Sure but then I won't have any highlighting
Re: CDT-like Hovers [message #1730250 is a reply to message #1730249] Fri, 22 April 2016 15:24 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13190
Registered: July 2009
Senior Member
Yes that's right

You may digg into hovercontrolcreator. And replace the browser info control
with a sourceviewerinformationcontrol or whatever


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: CDT-like Hovers [message #1730474 is a reply to message #1730250] Tue, 26 April 2016 07:43 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
Managed to make it work with a sourceviewerinformationcontrol, I just miss the semantic highlighting for the moment
Re: CDT-like Hovers [message #1730476 is a reply to message #1730474] Tue, 26 April 2016 08:12 Go to previous message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13190
Registered: July 2009
Senior Member
you should be able to install that as well.

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Problem with number sign
Next Topic:Serializing & case-insensitive languages (java.lang.RuntimeException: Could not serialize EObjec
Goto Forum:
  


Current Time: Fri Nov 15 07:35:25 GMT 2019

Powered by FUDForum. Page generated in 0.02460 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top