[udig-devel] Selecting layers in uDig

Damjan Šavko damjan.savd at gmail.com
Sat Jul 22 00:20:32 PDT 2006


Hello. I'm still working on my modal tool which needs to interact with two
different layers and I noticed something strange. While it is possible for a
user to select multiple layers in uDig, it is impossible for a developer to
know which layers have been selected. The only method available is  I
ToolContext.getSelectedLayer()  which returns only one layer. If you have
multiple selected layers it will return the one which is most near the top.
And there is no way of knowing if a layer is currently selected ( something
like ILayer.isSelected()) Do you know a way around this problem? If not then
I'll probably have to find another  way to find out which is the second
selected layer.

Thanks

Damjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.refractions.net/pipermail/udig-devel/attachments/20060722/b6b8873d/attachment.html


More information about the udig-devel mailing list