Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » STRING terminal in single quotes only
STRING terminal in single quotes only [message #637447] Fri, 05 November 2010 14:08 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
Seems simple to define a terminal for STRING with only single quotes, but
when I save the model using the emf calls, I get a bunch of errors indicated
that the string is invalid. Is there something else I should override to
only only allow single quoted strings?
Re: STRING terminal in single quotes only [message #637450 is a reply to message #637447] Fri, 05 November 2010 14:31 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi drew,

you have to override
org.eclipse.xtext.conversion.impl.STRINGValueConverter.toEsc apedString(String).
Please refer to the docs for detailled information about value converters.

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

Am 05.11.10 15:08, schrieb drew:
> Seems simple to define a terminal for STRING with only single quotes,
> but when I save the model using the emf calls, I get a bunch of errors
> indicated that the string is invalid. Is there something else I should
> override to only only allow single quoted strings?
Previous Topic:mark "src-gen" as eclipse derived resource
Next Topic:Xtext editor integration within UI Form editor
Goto Forum:
  


Current Time: Tue Apr 23 11:15:18 GMT 2024

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

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

Back to the top