ReferencedEnvelope bounds = (ReferencedEnvelope) layer.getMapInternal().getViewportModel().getBounds();
if( layer.getMapInternal().getMapLayers().size()==1
&& !bounds.intersects( (Envelope) layer.getBounds(monitor, viewportModel.getCRS()))){
oldBounds=bounds;
viewportModel.zoomToExtent();
}
monitor.done();
}
public void rollback( IProgressMonitor monitor ) throws Exception {