Skip to main content



      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 01:48 Go to next message
Eclipse UserFriend
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 10:17 Go to previous messageGo to next message
Eclipse UserFriend
Hi, can you please give more details on what you do and error message you get
Re: Adding elements [message #1853368 is a reply to message #1853367] Wed, 29 June 2022 10:33 Go to previous messageGo to next message
Eclipse UserFriend
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 13:35 Go to previous message
Eclipse UserFriend
i still dont understand what you try to do and what error you get
Previous Topic:XtextLinkingDiagnostic: null:39 Couldn't resolve reference to JvmType 'Generator'
Next Topic:Asserting multiple errors with ValidationTestHelper
Goto Forum:
  


Current Time: Sun May 11 07:43:10 EDT 2025

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

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

Back to the top