Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » same instance of two or more EditParts
same instance of two or more EditParts [message #223983] Thu, 02 April 2009 07:39 Go to next message
Javier is currently offline JavierFriend
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.
Re: same instance of two or more EditParts [message #224054 is a reply to message #223983] Thu, 02 April 2009 10:54 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello nottake,

Are you wriring this code manually? If you are generating code then just
don't care about EditParts - generator will create everything for you..

-----------------
Alex Shatalin
Previous Topic:Probléme of link constraint
Next Topic:Graphic representation of an element with regard to the value of its attribute
Goto Forum:
  


Current Time: Tue Apr 23 12:10:33 GMT 2024

Powered by FUDForum. Page generated in 0.02501 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top