Update programmatically figure with EditPart [message #990822] |
Fri, 14 December 2012 06:00  |
Eclipse User |
|
|
|
Hello!
I have an rcp application, with gmf model.
So i have somes edit part who contains a model and a figure.
I want update bounds or routing points of a figure, programmatically with using directly the edit part (or the figure).
Directly make a figure.setPoints(pointList); not works (because not persisted in file).
To update a model, i create command with a transactionnal editing domain.
But for update figures, what is the procedure?
Thanks!
|
|
|
|
|
Re: Update programmatically figure with EditPart [message #1753367 is a reply to message #990837] |
Sat, 04 February 2017 16:46  |
Eclipse User |
|
|
|
hello did u solve this problem?
i got now a similar problem like u.
i use a recordCommand to resize the figure position.
set bound, set locatioon, set point,translate with the figure
its work fine, but this cant save in the diagram.
when i close the editor and reopen it, the figure will back to their original position. Nothing is changed.
or wenn i drag another Figure, the changed Figure will also back to their original position?
can someone give some help to solve this ?
|
|
|
Powered by
FUDForum. Page generated in 0.06063 seconds