Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How i can remove empty keyword from xtext editor.
How i can remove empty keyword from xtext editor. [message #1809050] Mon, 08 July 2019 06:09 Go to next message
Nagashree KN is currently offline Nagashree KNFriend
Messages: 20
Registered: September 2018
Junior Member
Hi,

I am using xtext version- 2.17.1.
I am opening the xtext editor for imported file, and that file contains some empty tags. On opening it is giving error. So how can i remove those empty keywords from xtext editor.
Any one can please help out to fix this one.

Thank you!!!!
Re: How i can remove empty keyword from xtext editor. [message #1809051 is a reply to message #1809050] Mon, 08 July 2019 06:10 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13150
Registered: July 2009
Senior Member
what is an empty keyword?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How i can remove empty keyword from xtext editor. [message #1809052 is a reply to message #1809051] Mon, 08 July 2019 06:43 Go to previous messageGo to next message
Nagashree KN is currently offline Nagashree KNFriend
Messages: 20
Registered: September 2018
Junior Member
Hi Christian,
Thanks for the quick response..

If i have grammar -
Family returns Family:
{Family}
'Family{'
'Name:' name=EString
'}';

Here 'Name:' is keyword. i have imported one file, in that name is empty but tag has been created. So on opening xtext editor for that file, it will print the keyword 'Name:' with empty value.
I do not want to print keyword with empty value. how i can remove it?
Re: How i can remove empty keyword from xtext editor. [message #1809053 is a reply to message #1809052] Mon, 08 July 2019 06:51 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13150
Registered: July 2009
Senior Member
strange grammar. maybe you can change it to

('Name:' name=EString)?

btw it that empty "" or is it null (in the model you open)
if it really is "" i am not sure about that. maybe you can customize the serializer


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: How i can remove empty keyword from xtext editor. [message #1809055 is a reply to message #1809053] Mon, 08 July 2019 07:23 Go to previous messageGo to next message
Nagashree KN is currently offline Nagashree KNFriend
Messages: 20
Registered: September 2018
Junior Member
I am getting empty value "" only.
Re: How i can remove empty keyword from xtext editor. [message #1809057 is a reply to message #1809055] Mon, 08 July 2019 07:38 Go to previous message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13150
Registered: July 2009
Senior Member
what is the value in the model?

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Customizing validator behavior
Next Topic:Deploy Xtext DSL into Intellij
Goto Forum:
  


Current Time: Tue Oct 15 05:02:38 GMT 2019

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

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

Back to the top