if (show) { Event event = new Event (); event.item = item; postEvent (SWT.Selection, event);
index= newValue; if (index != -1) item = items [index]; if (item != null) { Control control = item.control; if (control != null && !control.isDisposed ()) { control.setBounds (getClientArea ()); control.setVisible (true); }
private void handleSelectionChange(int newValue)  {	TabItem item = null;	int index= OS.GetControl32BitValue(handle)-1;		boolean show= newValue == index;	if (index != -1) item = items [index];	if (item != null) {		Control control = item.control;		if (control != null && !control.isDisposed ()) {			if (show) {				control.setBounds (getClientArea ());			}			control.setVisible (show);		}	}	if (show) {		Event event = new Event ();		event.item = item;		postEvent (SWT.Selection, event);	}}