|Re: UML2 - text editor [message #1727689 is a reply to message #1727655]
||Fri, 25 March 2016 10:14
| Jan Koehnlein
Registered: July 2009
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.
Get professional support from the Xtext committers at www.typefox.io
Powered by FUDForum
. Page generated in 0.01567 seconds