Skip to main content



      Home
Home » Modeling » EMF » [XCore][PlantUML] Visualizing .xcore models as diagrams(Generic questions and problems with PlantUML)
[XCore][PlantUML] Visualizing .xcore models as diagrams [message #1430612] Wed, 24 September 2014 11:08 Go to next message
Eclipse UserFriend
Hi all,

1) So I have been using PlantUML to quickly have a diagram view of my .xcore models.

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.

Can I not defined this? What would be the difference of using a "refers" instead of a "contains"?
If I use refers it works.

2) Is there any other way of viewing the .xcore file as a diagram?
Re: [XCore][PlantUML] Visualizing .xcore models as diagrams [message #1430996 is a reply to message #1430612] Thu, 25 September 2014 00:40 Go to previous messageGo to next message
Eclipse UserFriend
João,

Comments below.

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...
Re: [XCore][PlantUML] Visualizing .xcore models as diagrams [message #1433826 is a reply to message #1430996] Mon, 29 September 2014 05:43 Go to previous message
Eclipse UserFriend
Thank you for the prompt reply. It helped a lot. I have reported the bugs on PlantUML and I am also using the Ecore Tools editor. Both are not perfect and you are quite right if no one does the work of report and using it, it will never get fixed.

Have a nice day and thank you once again
Previous Topic:Searching for a certain EMF version
Next Topic:URI mapping and proxy resolution
Goto Forum:
  


Current Time: Sun Apr 27 17:08:05 EDT 2025

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

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

Back to the top