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: 13888
Registered: July 2009
Senior Member
Hi, this should work out of the box.
for debugging see HyperlinkManager/MultipleHyperlinkPresenter

~Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
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: Wed Apr 21 15:15:51 GMT 2021

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

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

Back to the top