|Re: [XCore][PlantUML] Visualizing .xcore models as diagrams [message #1430996 is a reply to message #1430612]
||Thu, 25 September 2014 04:40
| Ed Merks
Registered: July 2009
On 24/09/2014 5:08 PM, João Bastos wrote:
> Hi all,
> 1) So I have been using PlantUML to quickly have a diagram view of my
> .xcore models.
I don't know anything about that...
> It has worked so far, however, I notice he fails to create a graph
> when I build a model such as this:
> class Door
> int number
> String location
> class House
> contains Door front
> contains Door back
> If I define to contains with objects of the same type PlantUML crashes.
Hmm, there's nothing wrong with the above.
> Can I not defined this?
Clearly you can and it shouldn't cause any projects.
> What would be the difference of using a "refers" instead of a "contains"?
You'd get cross reference instead of a containment reference. In terms
of the EMF model then, you couldn't create a Door from a House instance
in the editor. You'd have to have a containment reference for Doors
somewhere else or save Doors at the root of some other reference in
order for a House to be able to refer to it.
> If I use refers it works.
> 2) Is there any other way of viewing the .xcore file as a diagram?
The Ecore Tools editor supports creating diagrams for Xcore, though I've
found it to be a little buggy is that regard as well (and it's important
to note that it treats the *.xcore file as read only, so you can't
actually edit the underlying model with it). But if no one opens
bugzillas for Ecore Tools problems with Xcore, then any such problems
will never be fixed...
Powered by FUDForum
. Page generated in 0.01907 seconds