Skip to main content

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

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


Back to the top