same instance of two or more EditParts [message #223983] |
Thu, 02 April 2009 07:39 |
Javier Messages: 57 Registered: July 2009 |
Member |
|
|
Hello all.
In my Canvas, I have as TopNodes:
- Tasks, so I have a correspondent TaskEditPart
- Methods, as MethodEditPart
Then, a Method can also have Tasks as its children. Not new Task, but
some of the ones defined in the Canvas and I need them to show the same.
And when for example I modify something of the Task inside the Method, I
also want that change to happen in the top node Task. And the opposite too.
I was thinking of using the same instance of the EditPart, with a
different View maybe, but I don't really know if this is possible --and
if it's possible, if that's a solution.
Another option might be to use a new EditPart that contains a reference
to the one in the top and synchronize by myself every change made in one
to the other.
Has someone dealt with a similar situation? Having repeated elements in
a Diagram and want them to behave the same.
Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03587 seconds