cTabFolder.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { }  public void widgetSelected(SelectionEvent e) { CTabItem cTabItem = (CTabItem) e.item; Console console = (Console) cTabItem.getData("console"); console.setFocus(); } });
	private void createRightSash( Composite main ) {		SashForm messagesSash = new SashForm ( main, SWT.HORIZONTAL );		messagesSash.setLayout( new FillLayout() );					cTabFolder = new CTabFolder( messagesSash, SWT.NONE );		cTabFolder.setBorderVisible(true);		cTabFolder.setLayoutData( new FillLayout() );		Display display = cTabFolder.getDisplay();		cTabFolder.setSelectionBackground(new Color[]{display.getSystemColor(SWT.COLOR_TITLE_BACKGROUND),											cTabFolder.getBackground() },							 			 	new int[] {75});				cTabFolder.addCTabFolderListener( new CTabFolderAdapter() {			public void itemClosed( CTabFolderEvent event ) {				CTabItem item = ( CTabItem ) event.item;				Console console = (Console) item.getData("console");				Composite consoleComposite = (Composite) item.getData("composite");				Integer id = (Integer) item.getData("id");				openTabs.remove(id);				consoleComposite.dispose();				item.dispose();				setRightLabel();			}		} );	}