Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:08 Go to next message
João Bastos is currently offline João BastosFriend
Messages: 9
Registered: September 2014
Junior Member
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 04:40 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30449
Registered: July 2009
Senior Member
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 09:43 Go to previous message
João Bastos is currently offline João BastosFriend
Messages: 9
Registered: September 2014
Junior Member
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: Wed Sep 18 05:06:28 GMT 2019

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

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

Back to the top