|Proper handling of model references [message #671287]
||Tue, 17 May 2011 11:44
| Alexander Mack
Registered: July 2009
I am working on an model editor based on GEF.
I can create some model objects with children etc.
Further I am able to drag model objects from one diagram to another.
So the question is, how to handle these links properly.
First I want the link not to be editable.
Second, the link should use all the editparts of the original element.
And at least the link should not be saved like the original element, instead it should be saved as kind of a reference to the original element. The consequence is, that if the diagram with the linked element is reloaded, the link can refresh itself.
I am not able to find a proper way to implement this concern. My current solution is creating mock-objects and is improvable.
I would appreciate any suggestions!
Powered by FUDForum
. Page generated in 0.02509 seconds