|Re: Modify diagram dynamically. [message #593176 is a reply to message #593162]
||Tue, 24 August 2010 16:53
| Louis Rose
Registered: July 2009
Location: York, United Kingdom
Hi Jose Miguel,|
Thanks for using Epsilon, and for the feedback!
Jose Miguel wrote on Tue, 24 August 2010 16:21
> I need modify the visual diagram dinamically. When the user throw a link from a object to other object, I need generate other links to some others object, impacting it in the model of my metamodel. (like if the user throw this generated links manually).
I'm guessing that you're using EuGENia to generate the visual editor...
Do the links need to be added while the model is being changed in the visual editor? Or could they be added later, after the model has been saved?
> Is there some way for do it using Epsilon or I need modify the source code?
> In the case I need modify the source code. Is possible get some documentation about the code automatic generated?
If the links are to be added while the model is being changed with visual editor, I think the best approach is to modify the generated source code...
In the generated .diagram project, there will be some EditPart classes in the your.project.diagram.edit.parts package. If I recall correctly, the handleNotificationEvent(Notification event) method can be used to react to changes to the model. The GMF documentation might provide some tips on how best to achieve the automatic addition of links.
Powered by FUDForum
. Page generated in 0.01601 seconds