Skip to main content



      Home
Home » Eclipse Projects » GEF » Serializing Color with the model
Serializing Color with the model [message #145998] Mon, 02 August 2004 14:01 Go to next message
Eclipse UserFriend
Originally posted by: bandrews.bphnx.com

Hi,
I wanted to store the Color object in the model and serialize it with
everything else, but org.eclipse.swt.graphics.Color does not implement
Serializable. My first question is why not? My second question is how have
others gotten around this, or is Color not typically stored in the model,
but in the edit part? It seems to me that it should be in the model.


thanks,

B
Re: Serializing Color with the model [message #146037 is a reply to message #145998] Mon, 02 August 2004 16:06 Go to previous messageGo to next message
Eclipse UserFriend
You should probably store the RGB values in your model, instead of Color
itself. For information about Color, read the article on Eclipse.org. For
further queries regarding this, try the eclipse.platform.swt newsgroup.

"bandrews" <bandrews@bphnx.com> wrote in message
news:celvii$e26$1@eclipse.org...
> Hi,
> I wanted to store the Color object in the model and serialize it with
> everything else, but org.eclipse.swt.graphics.Color does not implement
> Serializable. My first question is why not? My second question is how have
> others gotten around this, or is Color not typically stored in the model,
> but in the edit part? It seems to me that it should be in the model.
>
>
> thanks,
>
> B
>
>
Re: Serializing Color with the model [message #146047 is a reply to message #146037] Mon, 02 August 2004 16:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bandrews.bphnx.com

Well that sounds like a good idea. A little inconvenient, but it will work.
Thanks!


Pratik Shah wrote:

> You should probably store the RGB values in your model, instead of Color
> itself. For information about Color, read the article on Eclipse.org. For
> further queries regarding this, try the eclipse.platform.swt newsgroup.

> "bandrews" <bandrews@bphnx.com> wrote in message
> news:celvii$e26$1@eclipse.org...
> > Hi,
> > I wanted to store the Color object in the model and serialize it with
> > everything else, but org.eclipse.swt.graphics.Color does not implement
> > Serializable. My first question is why not? My second question is how have
> > others gotten around this, or is Color not typically stored in the model,
> > but in the edit part? It seems to me that it should be in the model.
> >
> >
> > thanks,
> >
> > B
> >
> >
Re: Serializing Color with the model [message #146064 is a reply to message #146037] Mon, 02 August 2004 16:50 Go to previous message
Eclipse UserFriend
Originally posted by: bandrews.bphnx.com

I decided to use org.eclipse.swt.graphics.RGB which is Serializable!



Pratik Shah wrote:

> You should probably store the RGB values in your model, instead of Color
> itself. For information about Color, read the article on Eclipse.org. For
> further queries regarding this, try the eclipse.platform.swt newsgroup.

> "bandrews" <bandrews@bphnx.com> wrote in message
> news:celvii$e26$1@eclipse.org...
> > Hi,
> > I wanted to store the Color object in the model and serialize it with
> > everything else, but org.eclipse.swt.graphics.Color does not implement
> > Serializable. My first question is why not? My second question is how have
> > others gotten around this, or is Color not typically stored in the model,
> > but in the edit part? It seems to me that it should be in the model.
> >
> >
> > thanks,
> >
> > B
> >
> >
Previous Topic:saving image to file
Next Topic:MutilPageEditor & save
Goto Forum:
  


Current Time: Fri Jul 18 04:20:56 EDT 2025

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

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

Back to the top