Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » How do I create a Diagram from an existing UML model
How do I create a Diagram from an existing UML model [message #676247] Fri, 03 June 2011 11:44 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I feel a bit stupid asking such a simple question, but I'm defeated:

I've looked for

select xxx.uml then right button Initialize Diagram File (like Ecore Tools)

create blank diagram and right button Load Resource...

New ... Papyrus ... from existing model

create blank diagram and drag and drop from UML Model editor

create a blank diagram and then DNDing between UML Model Editors and
reopening at least
gives an editor on the model but editor and outline are blank.

So: How do I create diagrams from an existing model?

Regards

Ed Willink
Re: How do I create a Diagram from an existing UML model [message #676700 is a reply to message #676247] Mon, 06 June 2011 08:40 Go to previous messageGo to next message
Moflon Michael is currently offline Moflon MichaelFriend
Messages: 1
Registered: June 2011
Junior Member
Ed,
using Papyrus 7.3 on Helios I follow this procedure to create a diagram for an existing UML model:
-select the UML model in package explorer
-create Papyrus model with File->New->Papyrus Model, file name will be like the uml model but ending with .di
-open the created papyrus model in the papyrus perspective
-go to the papyrus model explorer
-right click on a uml package->new diagram->class diagram
-drag elements from the model explorer to the newly created diagram

Regards
Michael
Re: How do I create a Diagram from an existing UML model [message #676713 is a reply to message #676700] Mon, 06 June 2011 09:30 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Michael

On 06/06/2011 09:40, forums-noreply@eclipse.org wrote:
> papyrus model explorer
Thanks. That was news to me. I expected elements to appear in the Outline.

Your approach works for simple UML models. It doesn't work for mine; the
Papyrus Model Explorer is empty. I guess there's some pathmap issue to
debug.

Regards

Ed Willink
Re: How do I create a Diagram from an existing UML model [message #677670 is a reply to message #676713] Thu, 09 June 2011 06:17 Go to previous messageGo to next message
Yann Tanguy is currently offline Yann TanguyFriend
Messages: 80
Registered: July 2009
Member
Hi Ed,

can you log a bug for this (adding your model in attachement would be helpful).

regards,

Yann
Re: How do I create a Diagram from an existing UML model [message #677675 is a reply to message #677670] Thu, 09 June 2011 06:37 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Yann

https://bugs.eclipse.org/bugs/show_bug.cgi?id=348831 raised.

Regards

Ed Willink


On 09/06/2011 07:17, Yann Tanguy wrote:
> Hi Ed,
>
> can you log a bug for this (adding your model in attachement would be
> helpful).
>
> regards,
>
> Yann
Re: How do I create a Diagram from an existing UML model [message #677681 is a reply to message #677675] Thu, 09 June 2011 06:50 Go to previous messageGo to next message
Yann Tanguy is currently offline Yann TanguyFriend
Messages: 80
Registered: July 2009
Member
Can you check the model attached, it seems to be empty:

<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" xmi:id="_Mij0oZAWEeCZU9lJySWf8A" name="model"/>
Re: How do I create a Diagram from an existing UML model [message #677700 is a reply to message #677681] Thu, 09 June 2011 07:43 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Yann

Oops. Embarrassing. While trying to workaround ignorance of the Model
Explorer I trashed the UML file.

[I find it a bit odd that the Model Explorer is not the (primary)
Outline View.]

After restoring the file, I can DND classes fine and after a bit of
experimentation generalisations too.

Thanks.

Regards

Ed Willink

On 09/06/2011 07:50, Yann Tanguy wrote:
> Can you check the model attached, it seems to be empty:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <uml:Model xmi:version="2.1"
> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML"
> xmi:id="_Mij0oZAWEeCZU9lJySWf8A" name="model"/>
>
Re: How do I create a Diagram from an existing UML model [message #707989 is a reply to message #676247] Tue, 02 August 2011 10:09 Go to previous messageGo to next message
Dimitri CHARLES is currently offline Dimitri CHARLESFriend
Messages: 3
Registered: July 2011
Junior Member
Hi Yann,
I followed step by step your answer but it doesn't work for me.
After selecting the UML Model, I open the Papyrus New Model Wizard (File -> New -> Papyrus Model), and the file name corresponds already with the .di extension. But When I try to finish, the papyrus Wizard doesn't dispose.

If I cancel the operation, Papyrus creates a the model with the di extension but I tri to open it, the papyrus editor is blank.

I am using Eclipse Helios and Papyrus v7.3, on Linux .2.6.38. I hope this is not a bug from Papyrus.

How can I resolve that problem?
Re: How do I create a Diagram from an existing UML model [message #709706 is a reply to message #707989] Thu, 04 August 2011 07:57 Go to previous messageGo to next message
Yann Tanguy is currently offline Yann TanguyFriend
Messages: 80
Registered: July 2009
Member
The editor may be blank because no diagram have been created yet.

First (after opening the di file) switch to Papyrus perspective, the "ModelExplorer" should appears on the left side of your eclipse.

Try to select a Package and to create a Class Diagram (right-click on the Package element in explorer and select "/New Diagram/Create a new Class Diagram" command).

A Class Diagram should be created and its editor should open. Did this work ?

Then you can manually populate the diagram with elements from your model by dragging them in the ModelExplorer and dropping them in the diagram editor.

[Updated on: Thu, 04 August 2011 08:21]

Report message to a moderator

Re: How do I create a Diagram from an existing UML model [message #713980 is a reply to message #709706] Tue, 09 August 2011 14:14 Go to previous message
Dimitri CHARLES is currently offline Dimitri CHARLESFriend
Messages: 3
Registered: July 2011
Junior Member
Hi Yann, thanks for your help and it works perfectly. Wink
Previous Topic:Git?
Next Topic:How to connect two ports in SysML's IBD diagrams?
Goto Forum:
  


Current Time: Thu Apr 25 22:34:00 GMT 2024

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

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

Back to the top