|Reflecting Connection source/target change from diagram to business objects [message #657314]
||Wed, 02 March 2011 12:18
| Dobrou Mising name
Registered: December 2010
I have diagram with elements that are connected using Connections.|
Every connection has linked business object, that stores this connection as references between another business objects.
I would like to react on situation when user clicks on Connection in diagram and moves source/target of this Connection to different element.
Connection in diagram is updated, but business object connection doesn't.
Possible solution would be using update feature. But update features are used to reflect changes from business objects to diagram elements. So it wouldn't be possible to decide in which direction changes should be reflected (data->diagram or diagram->data).
Is there any event where I can listen on changing connection source/target and reflect those changes in my data?
I investigated get* methods in feature provider, but I couldn't find any good solution.
Edit: And now I found another problem. Some elements in my diagram are not allowed to be source of Connection. Connection create feature behaves correctly, so it's not possible to create new connection from those elements. But moving source of already existing Connection is possible to elements that are not allowed to be source of Connection. So there should be some way to react and possibly don't allow moving of connection source/target.
[Updated on: Wed, 02 March 2011 12:41]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02288 seconds