Skip to main content



      Home
Home » Modeling » Papyrus » changing .uml model file do not change .di model file
changing .uml model file do not change .di model file [message #1084409] Sun, 11 August 2013 09:44 Go to next message
Eclipse UserFriend
Hello All,

I am working on updating UML statemachine model using Epsilon EWl. In my work I manipulate UML statemachine model that was created bye papyrus. I manipulate .uml model file and delet some element and add another one. When my .uml model file has been changed, I can not see this change in graphical representation of model (.di model file). How I can solve this problem?

Best Regards,
Amin
Re: changing .uml model file do not change .di model file [message #1084873 is a reply to message #1084409] Mon, 12 August 2013 03:01 Go to previous messageGo to next message
Eclipse UserFriend
At first, remember that the diagram is just a view of your model. This means that the diagram does not need to contain all the elements of your model (but of course it should never contain deleted elements). A view allows you to visualize only certain aspects of your model.

You need to regenerate the diagrams with the diagram generation plugins of Papyrus. They are not installed by default. Go to Help > Install Papyrus Additional Components.
Re: changing .uml model file do not change .di model file [message #1088108 is a reply to message #1084873] Fri, 16 August 2013 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Dear Goood Guy,

Thank you for your reply...

Best Regards,
Amin
Re: changing .uml model file do not change .di model file [message #1747288 is a reply to message #1084873] Fri, 11 November 2016 12:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
I have the same problem with viewing .di model file
can you please tell me how did you fix the problem?
i downloaded diagram generation but nothing changed .

Thanks,

Taghreed
Re: changing .uml model file do not change .di model file [message #1747324 is a reply to message #1747288] Sat, 12 November 2016 02:14 Go to previous messageGo to next message
Eclipse UserFriend
A diagram can be marked as synchronized [Appearance->Sync with model]. This means that the diagram contents will be automatically adapted to the model contents.
Re: changing .uml model file do not change .di model file [message #1747369 is a reply to message #1747324] Sun, 13 November 2016 21:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ansgar,
I attached two screenshots first one is what i did to synchronize model with diagram and the other for the result of synchronizing.Can you please clarify more for what i have to do to keep the model synchronize with the diagram.
I do really appreciate your help

Taghreed.

[Updated on: Sun, 13 November 2016 21:50] by Moderator

Re: changing .uml model file do not change .di model file [message #1747495 is a reply to message #1747369] Tue, 15 November 2016 08:17 Go to previous messageGo to next message
Eclipse UserFriend
It seems that both screen-shots are identical (at least I could not tell the difference). So, please update. A .png is generally preferable compared to a word document.

I understand that some code you have modifies UML elements (seems to be activities). So what does not work? Elements that have been added on the model level do not automatically appear? Please clarify
Re: changing .uml model file do not change .di model file [message #1747522 is a reply to message #1747495] Tue, 15 November 2016 11:07 Go to previous messageGo to next message
Eclipse UserFriend
Sorry for confusing,
I used EOL to change the deployment diagram and i added device5,then i synchronized the diagram to model then i got in the diagram the whole elements before change in the model plus the new one (device5)but also activity1 and activity2 appeared in the deployment diagram even they are not new elements and not related to the deployment diagram . i tried also to synchronize the activity diagram with the model i got all elements (the one that was there before change and the new one) of the activity diagram scattered beside the diagram itself as in the attached picture.
Is there a way to synchronize the diagram with the model? and if so how can do that without mixing up the whole elements together
Thanks

[Updated on: Tue, 15 November 2016 11:17] by Moderator

Re: changing .uml model file do not change .di model file [message #1747535 is a reply to message #1747522] Tue, 15 November 2016 13:10 Go to previous messageGo to next message
Eclipse UserFriend
Hi Taghreed,

when you synchronize a diagram with the model, it means that all sub elements of the "root of the diagram" will be displayed in the diagram.
If you want to synchronize only part of the diagram, you can use the following procedure :

1/ select the element you want to synchronize with model
2/ set the the "Sync with model" radio button to true from "Appearance" tab of the property view.

Xavier

Re: changing .uml model file do not change .di model file [message #1747625 is a reply to message #1747535] Wed, 16 November 2016 10:23 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
Thanks for your prompt reply i followed the procedure to synchronize part of the activity diagram with the model after i added new activity partition but i got the whole elements are scattered beside the diagram ,it seems that its user responsibility to gather them again to get the new diagram am i right??

I tried to set the radio button to false ,nothing changed or the diagram did not go back to its previous state.I don't know why??

Thanks,
Taghreed

[Updated on: Wed, 16 November 2016 10:26] by Moderator

Re: changing .uml model file do not change .di model file [message #1747882 is a reply to message #1747625] Wed, 16 November 2016 11:59 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

It is indeed the user responsibility to define the layout of the diagram for many diagram elements. The reason is that the layout algorithm is not obvious in many case.

When you set sync to true, then child elements on the semantic model (that you can for example create or delete from the model explorer & property view) will be added to the diagram.
When you set sync to false, these child elements will not be added to the diagram. You cannot undo the sync by setting it to false but you can by classic undo (ctrl+z).

Best,
Xavier
Re: changing .uml model file do not change .di model file [message #1747884 is a reply to message #1747625] Wed, 16 November 2016 12:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

It is indeed the user responsibility to define the layout of the diagram for many diagram elements. The reason is that the layout algorithm is not obvious in many case.

When you set sync to true, then child elements on the semantic model (that you can for example create or delete from the model explorer & property view) will be added to the diagram.
When you set sync to false, these child elements will not be added to the diagram. You cannot undo the sync by setting it to false but you can by classic undo (ctrl+z).

Best,
Xavier
Re: changing .uml model file do not change .di model file [message #1748124 is a reply to message #1747884] Fri, 18 November 2016 11:53 Go to previous message
Eclipse UserFriend
Thanks very much.
Previous Topic:Expressions and MOKA
Next Topic:ValuePin and ActionInputPin in Moka
Goto Forum:
  


Current Time: Mon Jul 07 15:32:37 EDT 2025

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

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

Back to the top