Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to provide functionality on CTRL+click ?(As the one provided by JDT)
How to provide functionality on CTRL+click ? [message #900720] Wed, 08 August 2012 09:53 Go to next message
Maxime D is currently offline Maxime DFriend
Messages: 27
Registered: June 2012
Junior Member
Hi all !

I didn't find any talks here about what I want to do, so I post here.

My use case is simple, I would like to provide the CTRL/Click functionality in my Xtext Editor.
As you know, in Java, JDT provides a way to open java file when you hit CTRL and click on an object in your java code.

In my DSL language I have some class names and I would like to provide the same functionality to my users.

I already read things about scoping and content assist in documentation but it's quite different.

I would like to know if any of you did the same thing or maybe someone could have some ints.
Specially, I asked myself which interfaces/classes in my Xtext project I have to create in order to get functionality on CTRL+click.

Thanks.
Re: How to provide functionality on CTRL+click ? [message #900734 is a reply to message #900720] Wed, 08 August 2012 10:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi have a look at IHyperlinkHelper

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to provide functionality on CTRL+click ? [message #900857 is a reply to message #900734] Wed, 08 August 2012 17:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Btw if it is really an object (cross reference) this will work out of the box

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How to provide functionality on CTRL+click ? [message #901709 is a reply to message #900857] Tue, 14 August 2012 09:26 Go to previous message
Maxime D is currently offline Maxime DFriend
Messages: 27
Registered: June 2012
Junior Member
Okay thank you, I'll take a look at this interface.
Previous Topic:Cross referencing to an attribute of an instance of a class
Next Topic:conflict with parenthesis
Goto Forum:
  


Current Time: Fri Apr 19 22:09:39 GMT 2024

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

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

Back to the top