Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Embedding EOL using xtext in a Sirius VSM
Embedding EOL using xtext in a Sirius VSM [message #1841935] Thu, 03 June 2021 19:30 Go to next message
Thomas Chiang is currently offline Thomas ChiangFriend
Messages: 100
Registered: March 2020
Senior Member
Not sure if I should be posting this here or in the Sirius forum.

Hello,

I am trying to embed an editor for EOL in Sirius and I was wondering if this has been done before and if so how to do it. I would like to leverage stuff like EVL and other code generation tools available in Epsilon in my Sirius instance. I know that there is a way to embed OCL using xtext (haven't done it myself yet, work in progress) but I haven't been able to find much about embedding EOL. Any help would be greatly appreciated.
Re: Embedding EOL using xtext in a Sirius VSM [message #1841948 is a reply to message #1841935] Fri, 04 June 2021 03:44 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 2154
Registered: July 2009
Location: York, UK
Senior Member

Hi Thomas,

EOL is not EMF/Xtext-based so to embed an EOL expression/program in an EMF model, you would need to put it in a string attribute of your model and, when needed, parse it as shown in [1]. I haven't tried embedding the EOL editor in a Sirius properties view, however, [2] shows an example of reusing its syntax highlighting capabilities in a view [3].

Best,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/run-epsilon-from-java/
[2] https://git.eclipse.org/c/epsilon/org.eclipse.epsilon.git/tree/plugins/org.eclipse.epsilon.eol.dt.interpreter/src/org/eclipse/epsilon/eol/dt/interpreter/EolInterpreter.java
[3] https://www.eclipse.org/epsilon/doc/articles/eol-interpreter-view/
Previous Topic:Epsilon in Papyrus RT RCP
Next Topic:Extracting metamodel from ETL
Goto Forum:
  


Current Time: Thu Mar 28 21:45:12 GMT 2024

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

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

Back to the top