Bug 280049 [UI] Don't use deprecated SWT API
Current CVS HEAD We should not use deprecated SWT API when there is an equivalent API available.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackModelFactory.java
if (selPart == null)
			return;
		
		CTabItem selItem = findItemForPart(part, selPart);
		if (selItem != null) {
			ctf.setSelection(selItem);
		}
	}
	@Override
	public void childAdded(final MPart<?> parentElement, MPart<?> element) {
		super.childAdded(parentElement, element);
		if (element instanceof MItemPart<?>) {
			MItemPart<?> itemPart = (MItemPart<?>) element;
			CTabFolder ctf = (CTabFolder) parentElement.getWidget();
			int createFlags = 0;
			
			
			CTabItem cti = findItemForPart(parentElement, element);
			if (cti == null)
				cti = new CTabItem(ctf, createFlags);
			cti.setData(OWNING_ME, element);
			cti.setText(itemPart.getName());
			cti.setImage(getImage(element));
			
			hookTabControllerLogic(parentElement, element, cti);
			
			
			Control ctrl = (Control) element.getWidget();
			if (ctrl != null) {
				showTab((MItemPart<?>) element);