Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram Partitioning serialization
Diagram Partitioning serialization [message #180601] Wed, 02 April 2008 18:26 Go to next message
Eclipse UserFriend
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 #180703 is a reply to message #180601] Thu, 03 April 2008 10:31 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Salva,

Just modify generated OpenDiagramEditPolicy - this class contains logic concerning
new diagram creation/openning.

-----------------
Alex Shatalin
Re: Diagram Partitioning serialization [message #180772 is a reply to message #180703] Thu, 03 April 2008 14:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: smartine.ull.es

Thanks, I'll try this way.
Re: Diagram Partitioning serialization [message #185992 is a reply to message #180703] Fri, 09 May 2008 10:24 Go to previous messageGo to next message
Eclipse UserFriend
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
>
>
Re: Diagram Partitioning serialization [message #186329 is a reply to message #185992] Mon, 12 May 2008 11:29 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Hao,

Set "@generated NOT" javadoc for the appropriate method and this method will
not be overriten on next code generation. The rest is up to you - the code
in this class is quite simple. All you need is just substitute automatically-defined
diagram URI with the one calculated by corresponding action (used to create
sub-diagram).

-----------------
Alex Shatalin
Previous Topic:Help: how to create a node programmatically??????
Next Topic:icons
Goto Forum:
  


Current Time: Thu Apr 25 00:40:05 GMT 2024

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

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

Back to the top