Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Re: save resize figure
Re: save resize figure [message #118440] Thu, 19 February 2004 14:50 Go to next message
Eclipse UserFriend
Originally posted by: yong.dong.sympatico.ca

Me too, since the new attribute size is not saved to the xml file. According
to the same reason,
other new shapes can not be saved in xml either. Now I try to serialize the
model object
to the disk and save it to the DB, then XML.

Michael

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Hi Micheal,

I am still fighting with resizing. I am able to resize
and I can see the
resized image on the screen. When I close the editor,
it does not get saved
and shows up with the default size. Did you modify
NetworkPackageImpl.java's
CreatePackageContents() or InitializePackageContents()
methods? I included
the getNetworkNode().setSize() method in
NetworkNodeEditPart.java but it
does not help. It has to do with some minor change in
the model
(NodeImpl.java or NetworkImpl.java) that I am missing.

Let me know & Thanks in advance!

Bharath
Re: save resize figure [message #118450 is a reply to message #118440] Thu, 19 February 2004 15:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bharath.starthis.com

Michael,

The "size" attribute is modeled as an EClass ONLY because it makes it
serializable! I must be missing out an extra method or so required to
enable its serialization and I am trying to find it. I will let you know
as soon as I get it working.

Thanks.

MichaelSun wrote:

> Me too, since the new attribute size is not saved to the xml file. According
> to the same reason,
> other new shapes can not be saved in xml either. Now I try to serialize the
> model object
> to the disk and save it to the DB, then XML.

> Michael

> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> Hi Micheal,

> I am still fighting with resizing. I am able to resize
> and I can see the
> resized image on the screen. When I close the editor,
> it does not get saved
> and shows up with the default size. Did you modify
> NetworkPackageImpl.java's
> CreatePackageContents() or InitializePackageContents()
> methods? I included
> the getNetworkNode().setSize() method in
> NetworkNodeEditPart.java but it
> does not help. It has to do with some minor change in
> the model
> (NodeImpl.java or NetworkImpl.java) that I am missing.

> Let me know & Thanks in advance!

> Bharath
Re: save resize figure [message #214404 is a reply to message #118450] Mon, 17 April 2006 16:00 Go to previous message
Eclipse UserFriend
Originally posted by: micha.m2visio.de

Hello Guys

have you found a solution for this problem?
I'm working at the same issue at the moment and just can't get it.

Michael


"Bharath" <bharath@starthis.com> schrieb im Newsbeitrag
news:c12lqg$4f8$1@eclipse.org...
> Michael,
>
> The "size" attribute is modeled as an EClass ONLY because it makes it
> serializable! I must be missing out an extra method or so required to
> enable its serialization and I am trying to find it. I will let you know
> as soon as I get it working.
>
> Thanks.
>
> MichaelSun wrote:
>
>> Me too, since the new attribute size is not saved to the xml file.
>> According
>> to the same reason,
>> other new shapes can not be saved in xml either. Now I try to serialize
>> the
>> model object
>> to the disk and save it to the DB, then XML.
>
>> Michael
>
>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>> Hi Micheal,
>
>> I am still fighting with resizing. I am able to resize
>> and I can see the
>> resized image on the screen. When I close the editor,
>> it does not get saved
>> and shows up with the default size. Did you modify
>> NetworkPackageImpl.java's
>> CreatePackageContents() or InitializePackageContents()
>> methods? I included
>> the getNetworkNode().setSize() method in
>> NetworkNodeEditPart.java but it
>> does not help. It has to do with some minor change in
>> the model
>> (NodeImpl.java or NetworkImpl.java) that I am missing.
>
>> Let me know & Thanks in advance!
>
>> Bharath
>
>
Previous Topic:Removing children reference
Next Topic:Dispose of an image within a Draw2D Label
Goto Forum:
  


Current Time: Sat Nov 09 03:34:48 GMT 2024

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

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

Back to the top