382383384385386387388389
Layer<?> selLayer = this.getSelectedLayer(); if (selLayer != null && !layer.getId().equals(selLayer.getId())) { deselectLayer(selLayer); } layer.setSelected(true); handlerManager.fireEvent(new LayerSelectedEvent(layer)); } }