howto bind "«" and "»" to keys in eclipse [message #1745538] |
Wed, 12 October 2016 09:20  |
Uli Merkel Messages: 250 Registered: June 2013 |
Senior Member |
|
|
In my DSL, I have to handles some wildcards inside of strings.
To avoid conflichs with normal text, I decided to enclose these in "«" and "»".
The only issue is that the user has to enter these characters when editing his DSL file.
ALT0171 and ALT0187 doesn't seem the best way to do it, but I can not provide some Editor Templates inside of a string.
So is there any (minimal effort, because I'm still a newbie in eclipse) alternative like:
hit "CTRL-<" to enter "«" ?
I think I saw this feature when I edit my xxxGenerator.xtend
TIA, Uli
[Updated on: Wed, 12 October 2016 09:24] Report message to a moderator
|
|
|
|
|
|
|
Re: howto bind "«" and "»" to keys in eclipse [message #1745601 is a reply to message #1745575] |
Thu, 13 October 2016 04:49   |
Uli Merkel Messages: 250 Registered: June 2013 |
Senior Member |
|
|
Hi Christian,
that looks pretty promising as a start. I will experiment how this can be converted to work in mydsl example.
Thanks a lot, Uli
P.S: I found in the github the plugin.xml as well as the Handler under
xtext-xtend/org.eclipse.xtend.ide/src/org/eclipse/xtend/ide/edit/InsertStringHandler.java
Now I have to find out how to transfer that to my own little mydsl example project
[Updated on: Thu, 13 October 2016 08:09] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02200 seconds