On Fri, 2006-03-24 at 08:09 -0800, Jesse Eichar wrote:
> Hmmm.  Mind you at that point the selected feature isn't a Map.  It  
> is a feature.  You might consider changing the target to Feature so  
> it will work any where a feature is selected
> 
> Jesse

Yes, that sounds nice. But I don't know if I am following... Setting the
targetClass to org.geotools.feature.Feature doesn't let me activate the
plugin with either selection-tool or edit-tool.
 
It would really be nice if there was some document I could read that
explains these things.

Jonas 

> 
> On 24-Mar-06, at 8:01 AM, Jonas Johansson wrote:
> 
> > Hi,
> >
> > I need some help with finding my selected Feature (on the map). I'm
> > doing a plug-in that extends operation. The targetclass is
> > "net.refractions.udig.project.IMap" and I get back as the target a
> > MapImpl whose name is Map1. I was told that I could use
> > getEditManager().getEditFeature() on the target to get the selected
> > Feature... but it comes back as null!
> >
> > Anyone who knows where it could have gone missing?
> >
> > Jonas
> >
> > _______________________________________________
> > 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