Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Ctrl+hover does not show hyperlink
Ctrl+hover does not show hyperlink [message #713794] Tue, 09 August 2011 03:55 Go to next message
Mary Komor is currently offline Mary KomorFriend
Messages: 61
Registered: July 2009
Member
I have finally managed to migrate from Xtext 1.0.2 to Xtext 2.0.

Open declaration is working (ctrl+click as well as F3), but when I
ctrl+hover over the keyword, the keyword does not change into a hyperlink.
Without the hyperlink showing, I can still ctrl+click and open declaration.
What have I missed? What do I need to do to show the hyperlink?

Mary
Re: Ctrl+hover does not show hyperlink [message #713811 is a reply to message #713794] Tue, 09 August 2011 06:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi, this should work out of the box.
for debugging see HyperlinkManager/MultipleHyperlinkPresenter

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Ctrl+hover does not show hyperlink [message #715016 is a reply to message #713811] Fri, 12 August 2011 05:26 Go to previous message
Mary Komor is currently offline Mary KomorFriend
Messages: 61
Registered: July 2009
Member
Thanks for the pointer Christian. The problem was that I was not calculating
the TextRegion correctly. The old
EObjectAtOffsetHelper.resolveCrossReferencedElementAt(XtextResource, int,
TextLocation) used to calculate the TextLocation (now TextRegion).

Mary

"Christian Dietrich" <forums-noreply@eclipse.org> wrote in message
news:j1qibv$eq8$1@news.eclipse.org...
> Hi, this should work out of the box.
> for debugging see HyperlinkManager/MultipleHyperlinkPresenter
>
> ~Christian
Previous Topic:[mwe2] Resolving platform:/plugin
Next Topic:Re: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 'http://www.eclipse.org/ui/
Goto Forum:
  


Current Time: Thu Apr 25 08:52:16 GMT 2024

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

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

Back to the top