Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Bind an action to CTRL and mouse click in XText
Bind an action to CTRL and mouse click in XText [message #689793] Tue, 28 June 2011 11:20 Go to next message
Gil Lev is currently offline Gil LevFriend
Messages: 1
Registered: June 2011
Junior Member
Hi,
I have written a plug-in for DSL based on XText. It works great! (Thanks XText team!)

However, when I try to add the following bind:
CTRL+M1, it seems that I cannot. I assume that maybe the event is being taken by some Xtext mechanism, since other binds do work for me.

My question: How can I catch this event in my XText based plug-in? What is the right way to do it?

Thanks !!
Gil Lev
Re: Bind an action to CTRL and mouse click in XText [message #690934 is a reply to message #689793] Thu, 30 June 2011 12:44 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Gil,

Ctrl+Click is used to navigate to other elements. This is common in
Eclipse and it is recommended to keep this behavior. You can customize
the navigation targets by means of the IHyperlinkHelper. The simplest
way would be extend the default HyperlinkHelper.

Does that help?

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

On 28.06.11 13:20, Gil Lev wrote:
> Hi,
> I have written a plug-in for DSL based on XText. It works great! (Thanks
> XText team!)
>
> However, when I try to add the following bind:
> CTRL+M1, it seems that I cannot. I assume that maybe the event is being
> taken by some Xtext mechanism, since other binds do work for me.
>
> My question: How can I catch this event in my XText based plug-in? What
> is the right way to do it?
>
> Thanks !!
> Gil Lev
>
Previous Topic:XtextResource.save(outputStream,options) throw a Exception
Next Topic:Scoping and content assist relation
Goto Forum:
  


Current Time: Thu Apr 25 22:59:15 GMT 2024

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

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

Back to the top