Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Graphical display of DSL
Graphical display of DSL [message #1861492] Mon, 16 October 2023 10:04 Go to next message
Eclipse UserFriend
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 69 times)
  • Attachment: Xtext2.png
    (Size: 118.47KB, Downloaded 67 times)
  • Attachment: Xtext3.png
    (Size: 108.07KB, Downloaded 58 times)

[Updated on: Tue, 17 October 2023 06:55] by Moderator

Re: Graphical display of DSL [message #1861504 is a reply to message #1861492] Tue, 17 October 2023 00:09 Go to previous messageGo to next message
Eclipse UserFriend
Did you look into the Sirius framework ?
Re: Graphical display of DSL [message #1861505 is a reply to message #1861504] Tue, 17 October 2023 00:38 Go to previous messageGo to next message
Eclipse UserFriend
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 01:10 Go to previous messageGo to next message
Eclipse UserFriend
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 02:15 Go to previous messageGo to next message
Eclipse UserFriend
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 04:03 Go to previous messageGo to next message
Eclipse UserFriend
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] Sun, 12 November 2023 23:08 Go to previous message
Eclipse UserFriend
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: Sat Apr 19 14:53:41 EDT 2025

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

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

Back to the top