Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » UML2 - text editor(UML2 - text editor)
UML2 - text editor [message #1727646] Thu, 24 March 2016 17:37 Go to next message
Daniel van Mil is currently offline Daniel van MilFriend
Messages: 1
Registered: March 2016
Junior Member
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 #1727655 is a reply to message #1727646] Thu, 24 March 2016 20:14 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7266
Registered: July 2009
Senior Member
Hi

The OCLinEcore editor has the core UML elements plus OCL. Extension to a
fuller UML is some way down my roundtuit stack.

http://help.eclipse.org/mars/topic/org.eclipse.ocl.doc/help/Tutorials.html?cp=53_3_0_4_2#OCLinEcoreMetamodel

Regards

Ed Willink



On 24/03/2016 19:52, Daniel van Mil wrote:
> 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 10:14 Go to previous message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
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
Previous Topic:Building with Maven
Next Topic:After parsing files using xtext, Should we keep xtext emf model in the memory?
Goto Forum:
  


Current Time: Thu Sep 23 15:47:08 GMT 2021

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

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

Back to the top