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
CTabItem oldItem = findItemForPart(parentElement, child);
		if (oldItem != null) {
			oldItem.setControl(null); 
			oldItem.dispose();
		}
	}
	@Override
	public void hookControllerLogic(final MPart<?> me) {
		super.hookControllerLogic(me);
		final MStack sm = (MStack) me;
		
		CTabFolder ctf = (CTabFolder) me.getWidget();
		ctf.addSelectionListener(new SelectionListener() {
			public void widgetDefaultSelected(SelectionEvent e) {
			}
			public void widgetSelected(SelectionEvent e) {
				MItemPart<?> newPart = (MItemPart<?>) e.item.getData(OWNING_ME);
				if (sm.getActiveChild() != newPart) {
					activate(newPart);
				}
				showTab(newPart);
			}
		});
		ctf.addCTabFolderListener(new CTabFolderListener() {
			public void itemClosed(CTabFolderEvent event) {
				MPart part = (MPart) event.item.getData(PartFactory.OWNING_ME);
				part.setVisible(false);
			}
		});