Diagram Partitioning serialization [message #180601] |
Wed, 02 April 2008 18:26 |
Eclipse User |
|
|
|
Originally posted by: smartine.ull.es
I've create a superdiagram and added the partition node then,
I've created a new editor and a new diagram file doing right-click on the
model file in the package explorer and selecting "Initialize new
"subdiagram" diagram file" option from the context menu.
After that I did double click on the superdiagram partition element but at
that moment, GMF opens a new subdiagram editor instead of the already open
one. When this happens the content of the subdiagram file is copied into
the superdiagram file but the layout information (xy positions) is lost.
Are there any possibility to avoid this? That is, GMF doesn't open a new
subdiagram and doesn't create a new file.
Thanks in advance.
Salva.
|
|
|
|
|
Re: Diagram Partitioning serialization [message #185992 is a reply to message #180703] |
Fri, 09 May 2008 10:24 |
Eclipse User |
|
|
|
Originally posted by: zzhangh.cn.ibm.com
Hi Alex,
Could you shed some lights on how to modify the generated
OpenDiagramEditPolicy class, I'm also have this problem on diagram
partitioning and I've tried to do this way without success.
Thanks in advance.
Regards,
Hao
Alex Shatalin 写道:
> Hello Salva,
>
> Just modify generated OpenDiagramEditPolicy - this class contains logic
> concerning new diagram creation/openning.
>
> -----------------
> Alex Shatalin
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03012 seconds