Re: [OpenMap Users] OMGraphicHandlerLayer - Minor Bug?

From: Don Dietrick <dietrick@bbn.com>
Date: Mon Mar 22 2004 - 15:31:44 EST

On Mar 22, 2004, at 3:21 PM, Hudson Brian R Contr AFRL/IFSF wrote:

> Hey Don,
>
> I think I may have found a minor bug in the OMGraphicHandlerLayer.
>
> In getProperties there is a check to see if the ProjectionChangePolicy
> is a
> PropertyConsumer, and if so getProperties is called on it.
>
> In setProperties there is no such check (and accompanying call to
> setProperties).

There actually is a check, it's just done by the ComponentFactory when
it creates the object.

> I'm assuming that it was thought that ProjectionChangePolicy's may have
> properties associated with them and that the getProperties was edited
> accordingly... but someone forgot to add this change into the
> setProperties
> methods as well.
>
> I've written my own ProjectionChangePolicy which has properties
> associated
> with it... that's how I noticed the bug.

I think the problem is somewhat different, since OMGraphicHandlerLayer
assumes that it will be using the ComponentFactory to create the
ProjectionChangePolicy. You're probably seeing the problem when the
OMGraphicHandler doesn't do that, right? You're setting the policy
before setProperties is called.

Thanks for the heads-up,

Don

>
> Thanks,
>
> Brian Hudson
> NGI Systems
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Mar 22 15:32:16 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT