checkWidget (); if (end < 0 || start > end || ((style & SWT.SINGLE) != 0 && start != end)) { deselectAll (); return; } int [] args = new int [] {OS.Pt_ARG_LIST_ITEM_COUNT, 0, 0}; OS.PtGetResources (handle, args.length / 3, args); int count = args [1]; if (count == 0 || start >= count) { deselectAll (); return; } start = Math.max (0, start); end = Math.min (end, count - 1);
public void setSelection (int start, int end) {	if ((style & SWT.MULTI) != 0) deselectAll ();	select (start, end);}