Agreed. It is certainly a hack.  I think it should be easy to make the layer
blackboard persistent in the future.  But that is a slightly tricky task.  I
have recently done the big EMF regeneration and it went fairly well but it
always scares me because so much depends on the main model and if some one
forgot to remove the @generated tag then we might loose work without
realizing it.



On Thu, Apr 23, 2009 at 1:47 AM, KLAEBE Michael <
[email protected]> wrote:

>  Hi Jesse,
>
> Thanks for the pointers. I considered using the style blackboard, but it
> felt like I would be abusing its purpose. What are my chances of modifying
> the EMF model for Layer to include a 'properties' BlackboardImpl, submitting
> a patch and having it included for M4?
>
> Mike
>
>  ------------------------------
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Jesse Eichar
> *Sent:* Wednesday, April 22, 2009 4:14 PM
> *To:* User-friendly Desktop Internet GIS
> *Subject:* Re: [udig-devel] Equivalent to a Map internalBlackboard for
> Layer
>
> The layer has a blackboard as well but they are transient (not stored).
> There are several methods you could use to get around this.  The easiest is
> to create a style extension and use the style blackboard instead of the
> layer blackboard.  The Style blackboard is persisted.
>
> The other (probably worse) option is to store the layers properties in the
> map blackboard and define a persister extension in order to persist the
> layer values.
>
> I think I would recommend the first option.
>
> Jesse
>
> On Wed, Apr 22, 2009 at 8:29 AM, KLAEBE Michael <
> [email protected]> wrote:
>
>>  Hi,
>>
>> In case this is the wrong place to ask this question please educate me as
>> to the correct place.
>>
>> I have a need to add some 'properties' to Maps and Layers. The idea being
>> users can update these properties and they're persisted between uDig
>> sessions. For a Map the following worked quite nicely:
>> * Create a MapCreation Interceptor that sets the default value for
>> properties on the layer and store the properties in the maps blackboard
>> * Create a Persister for the various types of properties being put into
>> the blackboard (so they get persisted between uDig sessions)
>> * Create a PropertyPage for IMaps to allow display and modification of the
>> map properties
>>
>> I can do the same for Layers however it falls down with the 'persisting
>> between uDig sessions' bit, because the IBlackboard of a layer is a
>> SimpleBlackboard unlike the map's IBlackboard which is a BlackboardImpl
>>
>> So my question is what is the recommended approach for a Layer?
>>
>> Thanks,
>>
>> Mike.
>>
>> _______________________________________________
>> User-friendly Desktop Internet GIS (uDig)
>> http://udig.refractions.net
>> http://lists.refractions.net/mailman/listinfo/udig-devel
>>
>>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel
>
>
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to