[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [udig-devel] memento in styleblackboardimpl | 
If you are not loading and saving then please use the layer blackboard.
Jody
andrea antonello wrote:
Hi, I have a problem with the style blackboard:
when doing a bb.get(ID), you get into something that also goes
throught the getObject method, which is in the StyleBlackboardImpl.
                String mementoString = styleEntry
                        .getMemento();
Here I get <?xml version="1.0" encoding="UTF-8"?><styleEntry/>
which is not null and it enters here:
                if( mementoString!=null ){
                    XMLMemento memento = XMLMemento.createReadRoot(new
StringReader(mementoString));
                    Object style = styleContent.load(memento);
                    styleEntry.setStyle(style);
                }
I didn't need load and save from the stylecontent and therefore didn't
implement them.
That means that the setStyle break my style object setting it to null.
Is there a way to set the getMemento to return null? I can't find the way.
Andrea
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel