Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Adding elements(Adding elements in between existing two elements in Xtext dialog)
Adding elements [message #1853356] Wed, 29 June 2022 05:48 Go to next message
Aparna M is currently offline Aparna MFriend
Messages: 2
Registered: June 2022
Junior Member
Hi,

I am new to xtext and trying to add element in between two elements in Xtext editor dialog and it is getting updated wrong upon save.

Example:
In dialog I have

Element1 {
Properties;
}
Element2{
Properties;
}

If I add another element in between these two like

Element1{
....
}
Element3{
.....
}
Element2{
...
}

Upon clicking ok in dialog element 3 will show the icon and properties of element 2.

Can we add elements in between existing elements in Xtext?

Please help me to understand this.

Thanks & Regards,
Aparna M
Re: Adding elements [message #1853367 is a reply to message #1853356] Wed, 29 June 2022 14:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Hi, can you please give more details on what you do and error message you get

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Adding elements [message #1853368 is a reply to message #1853367] Wed, 29 June 2022 14:33 Go to previous messageGo to next message
Aparna M is currently offline Aparna MFriend
Messages: 2
Registered: June 2022
Junior Member
In dialog I have
Element 1{
Name:Element1;
}
Element2{
Name:Element2;
}

Now I am doing control space after element 1 and create Element3
Element 1{
Name:Element1;
}
Element 3{
Name:Element3;
{
Element2{
Name:Element2;
}

Now upon clicking ok in dialog in explorer my values show like
Element1
Element3
Element2

Here I have icon for the elements and Element3 will show icon of Element2


Can we add elements in this way in Xtext?
Re: Adding elements [message #1853373 is a reply to message #1853368] Wed, 29 June 2022 17:35 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
i still dont understand what you try to do and what error you get

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator'
Next Topic:Asserting multiple errors with ValidationTestHelper
Goto Forum:
  


Current Time: Fri Apr 19 12:44:56 GMT 2024

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

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

Back to the top