Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext String no quotes
Xtext String no quotes [message #1851422] Tue, 05 April 2022 13:38 Go to next message
John Henbergs is currently offline John HenbergsFriend
Messages: 239
Registered: October 2020
Senior Member
Hi,

I have defined class in my dsl (in xtext) with various references and attributes.
One of them is
attributeA : EString.

Now in the textual editor, I write it inside double quotes.

attributeA "sometext"

However, when I check it in the tree editor, it still has the double quotes, and I am not expecting that as it is a string, in the tree editor I expect to only see sometext not "sometext".

And the weirdest thing, is that in another class I only have one attribute, lets say attributeB, and in this case in the textual editor I have "sometext", while in the tree editor I have sometext with no double quotes (like I am expecting).

Checked both, and they both look the same. The only different is that attributeB is the only one in that class. Any idea why this could be happening?
Re: Xtext String no quotes [message #1851424 is a reply to message #1851422] Tue, 05 April 2022 13:51 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
did you check value converters

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext String no quotes [message #1851430 is a reply to message #1851424] Tue, 05 April 2022 14:24 Go to previous messageGo to next message
John Henbergs is currently offline John HenbergsFriend
Messages: 239
Registered: October 2020
Senior Member
I have not defined a value converter. Is something generated by itself or...?
And if I have not defined anything myself, aren't they supposed to be the same?
Re: Xtext String no quotes [message #1851431 is a reply to message #1851430] Tue, 05 April 2022 14:30 Go to previous message
John Henbergs is currently offline John HenbergsFriend
Messages: 239
Registered: October 2020
Senior Member
solved, thanks
Previous Topic:xtext some .dsl files shall not be checked from grammar
Next Topic:Reference Enum Literals of an Ecore model
Goto Forum:
  


Current Time: Thu Apr 18 23:36:55 GMT 2024

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

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

Back to the top