I'm not totally sure what you are looking for. The EditManager always has the currently selected layer. getEditManager ().getSelectedLayer(). Is that what you are looking for?

Jesse

On Jul 18, 2007, at 6:41 AM, Schmitt, Magna (CIP) wrote:

Hello :
I was wondering if there is a way to get a selected layer (not a shapefile) from the "layers view"?? but not using the "target" object. I was using this: PlatformUI.getWorkbench().getActiveWorkbenchWindow ().getActivePage().getSelection().toString(), but sometimes it does not work. There is the known other way: ApplicationGIS.getActiveMap ().getMapLayers().get(index), but i would need an "index".
Thanks,
Magna
_______________________________________________
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