Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Graphical display of DSL
Graphical display of DSL [message #1861492] Mon, 16 October 2023 14:04 Go to next message
peppa nwpu is currently offline peppa nwpuFriend
Messages: 15
Registered: October 2023
Junior Member
Hello everyone in the Eclipse Xtext community.
I recently used Xtext to create a modeling language that I defined myself. At present, I have only implemented the text editor of this DSL, but I also need to design a corresponding graphics editor for the DSL I designed. What should I do next? How to do it? Or is there any example tutorial that I can refer to?
I have just read the book "Implementing Domain-Specific Languages with Xtext and Xtend Second Edition", as well as the official Xtext documentation and grammar.
So far I have only achieved the following results.
  • Attachment: Xtext1.png
    (Size: 135.29KB, Downloaded 47 times)
  • Attachment: Xtext2.png
    (Size: 118.47KB, Downloaded 43 times)
  • Attachment: Xtext3.png
    (Size: 108.07KB, Downloaded 37 times)

[Updated on: Tue, 17 October 2023 10:55]

Report message to a moderator

Re: Graphical display of DSL [message #1861504 is a reply to message #1861492] Tue, 17 October 2023 04:09 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14720
Registered: July 2009
Senior Member
Did you look into the Sirius framework ?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Day Job: https://www.everest-systems.com
Re: Graphical display of DSL [message #1861505 is a reply to message #1861504] Tue, 17 October 2023 04:38 Go to previous messageGo to next message
peppa nwpu is currently offline peppa nwpuFriend
Messages: 15
Registered: October 2023
Junior Member
I learned some information about Sirius, but I still don't know how to use the Sirius framework to graphically design the DSL I defined. Currently, I have generated the ECore metamodel, but what do I need to do to integrate it with Scirius? Woolen cloth?
Re: Graphical display of DSL [message #1861507 is a reply to message #1861505] Tue, 17 October 2023 05:10 Go to previous messageGo to next message
Lars Gelin is currently offline Lars GelinFriend
Messages: 4
Registered: November 2012
Junior Member
Hi, maybe Eclipse GLSP is what you are looking for?https://projects.eclipse.org/projects/ecd.glsp
Re: Graphical display of DSL [message #1861510 is a reply to message #1861507] Tue, 17 October 2023 06:15 Go to previous messageGo to next message
peppa nwpu is currently offline peppa nwpuFriend
Messages: 15
Registered: October 2023
Junior Member
I just took a look at GLSP and I found it to be a good approach, but I'm not sure if GLSP can support synchronicity of text editing and graphics editing?
Re: Graphical display of DSL [message #1861520 is a reply to message #1861510] Tue, 17 October 2023 08:03 Go to previous messageGo to next message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 162
Registered: February 2016
Senior Member
Hello Peppa!

You can also take a look at the Eclipse Graphical Editing Framework to get some inspiration!

https://blogs.itemis.com/en/eclipse-gef-dot-graphical-views-on-xtext-dsls
https://youtu.be/GnSVLNYfGlk?si=v2AM6ZliweLhg80n&t=1320

Hope that helps!
Tamás
Re: Graphical display of DSL [message #1862092 is a reply to message #1861505] Mon, 13 November 2023 04:08 Go to previous message
Brandon Lewis is currently offline Brandon LewisFriend
Messages: 268
Registered: May 2012
Senior Member
These tutorials are a little difficult to find, but are very good at introducing how Sirius works:

https://wiki.eclipse.org/Sirius/Tutorials/StarterTutorial#Overview

peppa nwpu wrote on Tue, 17 October 2023 00:38
I learned some information about Sirius, but I still don't know how to use the Sirius framework to graphically design the DSL I defined. Currently, I have generated the ECore metamodel, but what do I need to do to integrate it with Scirius? Woolen cloth?

Previous Topic:Xtext 2.33.0.M3 is out
Next Topic:error: code too large for try statement + java heap
Goto Forum:
  


Current Time: Fri Oct 04 15:09:05 GMT 2024

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

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

Back to the top