Serializing Color with the model [message #145998] |
Mon, 02 August 2004 14:01  |
Eclipse User |
|
|
|
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 #146047 is a reply to message #146037] |
Mon, 02 August 2004 16:16   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
> >
> >
|
|
|
Powered by
FUDForum. Page generated in 0.06283 seconds