Why edges are not persisted when nodes are? How to change it? [message #655492] |
Mon, 21 February 2011 07:28  |
Vitaly Savickas Messages: 58 Registered: March 2010 |
Member |
|
|
Hi everyone,
Could you please help me to understand why connections are not persisted when the diagram changes from purely canonical to semantic i.e. when nodes are becoming persisted.
I have a big problem with this as after reopening a diagram I don't see connections. This is due to the fact that connections in my case can be from top level nodes to nested nodes inside compartments and when a connection is created not all the views are available yet. But persisting everything solves this issue. Of course if someone can offer a better solution I'll be very happy.
Anyway, how to tell the editor to persist not just nodes but also edges when it starts to persist children?
Regards,
Vitaly
[Updated on: Mon, 21 February 2011 07:29] Report message to a moderator
|
|
|
|
|
|
|
|
| Re: Why edges are not persisted when nodes are? How to change it? [message #658524 is a reply to message #658394] |
Tue, 08 March 2011 15:15  |
Thomas Spall Messages: 29 Registered: July 2009 |
Junior Member |
|
|
Hi Vitaly,
glad it works for you.
> I have no idea why, as implemented methods don't even get called.
I pretty much had the same effect: it wasn't actually necessary to implement the three additional methods (I just left them blank) as they never get called. It seems that merely extending that different parent class already does the job of changing the code path somewhere to do the right thing.
> I have changed the supertype only for the CanonicalPolicy of the diagram root edit part. Do you think it's necessary to do the same for the remaining edit parts?
I would think you need to change it in every XxxCanonicalEditPolicy which you have in your diagram editor, but of course NOT for the other policies (like e.g. the SemanticEditPolicies).
|
|
|
Powered by
FUDForum. Page generated in 0.04259 seconds