[udig-devel] Adding a feature to a layer won't result in an EventType.EDIT_EVENT

Jesse Eichar jeichar at refractions.net
Fri Dec 7 08:53:12 PST 2007


Hi Tony.

What you are doing is supposed to work.  I will put this on my list of  
things to look at.  But until then you can add a listener to the  
FeatureStore:

layer.getResource( FeatureSource.class, monitor).addFeatureListener();

Jesse

On 7-Dec-07, at 12:44 AM, tony.roth at GMX.de wrote:

> Hi list,
> we want to upgrade our application from eclipse 3.2 to 3.3 which  
> means that we also have to upgrade udig. We're using 1.1RC8 and know  
> we have to change to RC12.
> One of our layers is a temporary layer containing polygon features.  
> It's necessary to catch programatically events when the user adds a  
> polygon using the polygon tool.
> For this we add an ILayerListener to this layer and in  
> refresh(LayerEvent event) we catch the events with  
> EventType.EDIT_EVENT. In RC8 this works fine but in RC12 (and I  
> think I tried it once with RC11) this doesn't work.
>
> Is this a known bug?
>
> Are there other possibilities to be informed if a new feature has  
> been added without modifying udig classes?
>
> Thank you,
>
> tony roth
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20071207/385e10b4/attachment.html


More information about the udig-devel mailing list