Update connection when target-attribute changes [message #484365] |
Mon, 07 September 2009 04:56  |
Eclipse User |
|
|
|
I've got a connection, that is not defined by an element with source/target attributes, but only as target-attribute of the source-node.
Something like
<node name="Node1">
<link target="Node2" />
</node>
<node name="Node2" />
where node is represented as a Node, link as Border-Node and target as connection.
This works fine, but when the user changes the target-attribute, the connection still points to the old node. When I press F5 on the connection, it is removed.
I can react to this change in handleNotificationEvent, but what do I have to do have the connection revalidated (or removed and re-added)?
Thanks!
|
|
|
|
|
Re: Update connection when target-attribute changes [message #484813 is a reply to message #484396] |
Wed, 09 September 2009 08:31  |
Eclipse User |
|
|
|
Hello Peter,
> Out of curiosity, where and how would I set the target view?
You can create new command calling Edge.setTarget() method with an appropriate
(new) target view from this method listening to underlying domain model notifications.
-----------------
Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 0.64888 seconds