Selects a new layer if the selected layer is being removed. The algorithm will try to select the bottom layer above the
selected layer or if not possible then the top layer below (that isn't being removed).
Parameters: layers - Layers in map Parameters: toRemove - layers being removed Parameters: indexOfSelectedLayer - true if the selected layer has been changed
Methods inherited from net.refractions.udig.project.command.AbstractCommand