use

wbc.getLayerNamePanel().getSelectedLayers()

generally when coming across issues like that, check functionality that already 
does that. e.g. check the layer tree context menu for an entry, find the string 
in language/jump.properties and follow it to the plugin (each menu entry is 
usually a plugin) and look how it gathers the selected layer.

good luck.. ede

On 27.10.2011 15:55, Elton Chan wrote:
> Hi All,
> 
> Suppose there are two datasets in the layer view (i.e. two layers),then how 
> can I retrieve the selected layer? I've checked functions of LayerManager, 
> but it seems it can return list of layers only.
> 
> thanks,
> elton
> 
> 
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn 
> about Cisco certifications, training, and career opportunities. 
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> Jump-pilot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to