Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Getting a selected layer

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



Back to the top