selection=new StructuredSelection();
notifyListeners();
}else{
ILayer selectedLayer = map.getEditManager().getSelectedLayer();
if( selectedLayer!=null ){
selectedLayer.addListener(layerListener);
AdaptingFilter filter = AdaptingFilterFactory.createAdaptingFilter(
selectedLayer.getFilter(), selectedLayer );
selection=new StructuredSelection(filter);
notifyListeners();