Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Use Xtext Editor for a model field
Use Xtext Editor for a model field [message #1851043] Fri, 25 March 2022 14:58 Go to next message
Inaki Berriotxoa is currently offline Inaki BerriotxoaFriend
Messages: 2
Registered: March 2022
Junior Member
Hi all!

I am writing a RCP application to create and edit some models. The metamodels are created with Ecore and I use the code generated with the related GenModel files.

I want to show a Xtext editor for a grammar that I have created, when a certain object of the model is selected and I want to save the user input as a String in an attribute of the selected object. I want to keep the user input inside the same model, not in a different file.

I have been reading documentation and googling for a week, trying with some examples, but I can't find a proper way to do such thing.

Could somebody point me in the right direction, please?
Is there any tutorial related to what I am looking for? Any code in Github that I can take a look?

Any help would be really appreciated.

Thanks in advance!

Iñaki
Re: Use Xtext Editor for a model field [message #1851097 is a reply to message #1851043] Mon, 28 March 2022 06:37 Go to previous messageGo to next message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 157
Registered: February 2016
Senior Member
Hello Iñaki !

You may get some inspiration from the following blog posts / example projects to get started:

https://blogs.itemis.com/en/combining-emf-models-with-xtext-dsls
https://www.typefox.io/blog/linking-xtext-models-with-other-emf-models
https://github.com/altran-mde/xtext-sirius-integration

Hope that helps!
Tamás
Re: Use Xtext Editor for a model field [message #1851101 is a reply to message #1851097] Mon, 28 March 2022 06:58 Go to previous message
Inaki Berriotxoa is currently offline Inaki BerriotxoaFriend
Messages: 2
Registered: March 2022
Junior Member
Thanks for the reply! I will do so!
Previous Topic:Register Xtext Resource Factory in Xtend
Next Topic:xtend src-gen folder relative to dsl file
Goto Forum:
  


Current Time: Thu Apr 18 15:34:32 GMT 2024

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

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

Back to the top