Layer selectedMapLayer = mapLayerTableViewer.getSelectedMapLayer();
if (selectedMapLayer == null) {
return;
}
MapContent mapContext = pane.getMapContent();
mapContext.removeLayer(selectedMapLayer);
mapLayerTableViewer.selectionChanged(null);
}
});
Button showLayersButton = new Button(buttonComposite, SWT.PUSH);