UML2 - text editor [message #1727646] |
Thu, 24 March 2016 13:37  |
Eclipse User |
|
|
|
Hello,
Would it be possible to build (or already show an example) of a text based UML2 editor that uses a DSL like for example plantUML? This includes model synchronization of the EMF model and DSL source. I have the feeling this could be very simple, but I can't seem to find the good path to start with.
Thanks in advance,
Daniel van Mil.
|
|
|
|
Re: UML2 - text editor [message #1727689 is a reply to message #1727655] |
Fri, 25 March 2016 06:14  |
Eclipse User |
|
|
|
As UML2 has an Ecore model, you can use Xtext to write a DSL that instantiates it (or parts of it). Search for "imported metamodels" in the Xtext documentation.
I would not recommend implementing another model-2-model transformation to get form some DSL model to a UML2 model. That is error prone and a horror to synchronize. Into the bargain, you usually loose/mess up the 2-way-mapping (DSL text<->Model) you'd get for free with Xtext.
I'd in general never recommend using UML2 as I consider it gigantic, overblown and inflexible. If your usecase is primarily about visualizing a DSL, there are better solutions, e.g. FXDiagram.
|
|
|
Powered by
FUDForum. Page generated in 0.05407 seconds