Sets the selection mode of the this.
If the previous type was MULTIPLE, then the anchor is kept selected, if it was previously selected.
A TreeSelection.
The selection mode