set_mode


Description:

public void set_mode (SelectionMode type)

Sets the selection mode of the this.

If the previous type was MULTIPLE, then the anchor is kept selected, if it was previously selected.

Parameters:

this

A TreeSelection.

type

The selection mode