Problems saving diagrams [message #160003] |
Tue, 13 November 2007 14:33 |
Eclipse User |
|
|
|
Originally posted by: ijerez2001.gmail.com
Hi All,
I import from a file (with a parser) and create elements depend on
token.
When I import any elements, I do a createElementCommand, and
SetBoundsCommands. Also, I specify attributes values for each one.
But when I save and then reopen (with rcp File->Open) the diagram, the
figures show in other location.
And when I save, close the application and then run again the application,
some figures don´t appear and I cannot modify (move, set property, etc.) the
figures.
Do anyone know what happen?
Thanks.
|
|
|
Re: Problems saving diagrams [message #160039 is a reply to message #160003] |
Tue, 13 November 2007 15:23 |
Eclipse User |
|
|
|
Originally posted by: ijerez2001.gmail.com
For more information,
I save and when I see the file xml that contain the diagram with a text
editor not have children.
And the file xml that contain the domain have the good elements.
"Iván Jerez" <ijerez2001@gmail.com> escribió en el mensaje de
noticias:fhccl7$s7c$1@build.eclipse.org...
> Hi All,
>
> I import from a file (with a parser) and create elements depend on
> token.
> When I import any elements, I do a createElementCommand, and
> SetBoundsCommands. Also, I specify attributes values for each one.
> But when I save and then reopen (with rcp File->Open) the diagram, the
> figures show in other location.
> And when I save, close the application and then run again the application,
> some figures don´t appear and I cannot modify (move, set property, etc.)
> the figures.
>
> Do anyone know what happen?
>
> Thanks.
|
|
|
|
Re: Problems saving diagrams [message #160369 is a reply to message #160345] |
Wed, 14 November 2007 15:17 |
Eclipse User |
|
|
|
Originally posted by: ijerez2001.msn.com
Thanks Alex, I solved my problem, it was because I used the create elements
command in the package .command from my diagram editor.
I tried with the CreateViewRequest and it work well.
Now, I create all elements, and remove the container, but when I do undo
(Ctrl+Z) don´t appear all elements. Perhaps I have to refresh the
diagram.
Thanks.
"Alex Shatalin" <vano@borland.com> escribió en el mensaje de
noticias:3c3172e61a17b8c9f4eccc3f3dfb@news.eclipse.org...
> Hello Iván,
>
> Try moving your diagram element using the mouse and save the diagram. If
> positions are correcntly saved/restored using this action then it looks
> like you have all the elements created as a "transientChildren". In this
> case you can try calling .persist() method for all views on your diagram.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01454 seconds