Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Template Switch per non-Tab-Klick(How can I switch a Template by other keys than TAB?)
Template Switch per non-Tab-Klick [message #653290] Wed, 09 February 2011 09:06 Go to next message
Etla  is currently offline Etla Friend
Messages: 1
Registered: February 2011
Junior Member
Hi!

I've got a little Problem:
wrote a Language in XTex and added several templates
(Like
"This is a ${attribute} template, this is a template that is more ${otherAttribute}."

Now it is common, that you can switch between attribute and otherAttribute by using the TAB key.

The Problem i have is, that i'd like to Swtch by another Key.

Like if my template would look like "${name};${forname}", i want to make sure you can change from name to formane by klicking the ";" key.

Is there a Possibility to reach that goal?
Re: Template Switch per non-Tab-Klick [message #653382 is a reply to message #653290] Wed, 09 February 2011 15:19 Go to previous message
Henrik Lindberg is currently offline Henrik LindbergFriend
Messages: 2509
Registered: July 2009
Senior Member
I don't think this is performed by Xtext, it is probably done by general
template functionality in the Eclipse text editing framework. You need
to dig into that to figure it out.

- henrik

On 2/9/11 10:06 AM, Etla wrote:
> Hi!
>
> I've got a little Problem:
> wrote a Language in XTex and added several templates (Like
> "This is a ${attribute} template, this is a template that is more
> ${otherAttribute}."
>
> Now it is common, that you can switch between attribute and
> otherAttribute by using the TAB key.
>
> The Problem i have is, that i'd like to Swtch by another Key.
>
> Like if my template would look like "${name};${forname}", i want to make
> sure you can change from name to formane by klicking the ";" key.
>
> Is there a Possibility to reach that goal?
Previous Topic:generation with two dsl
Next Topic:XText and IntellIJ
Goto Forum:
  


Current Time: Thu Apr 25 01:11:09 GMT 2024

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

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

Back to the top