tableColumn = new TableColumn( table.getTable(), SWT.LEFT );
tableColumn = new TableColumn( table.getTable(), tableAlign[ i ] );
    private void createTable() {        /* set a new image for the ctabitem to show we found results */        cTabItem.setImage( G2GuiResources.getImage( "SearchComplete" ) );        /* create the result table */        table = new CustomTableViewer( cTabFolder, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI );        table.getTable().setLayoutData( new GridData( GridData.FILL_BOTH ) );        table.getTable().setLinesVisible( true );        table.getTable().setHeaderVisible( true );        table.setUseHashlookup( true ); // more mem, but faster        table.setContentProvider( new ResultTableContentProvider() );        table.setLabelProvider( new ResultTableLabelProvider() );        table.setSorter( resultTableSorter );        resultTableMenuListener =         	new ResultTableMenuListener( table, core, cTabItem );        table.addSelectionChangedListener( resultTableMenuListener );        MenuManager popupMenu = new MenuManager( "" );        popupMenu.setRemoveAllWhenShown( true );        popupMenu.addMenuListener( resultTableMenuListener );        table.getTable().setMenu( popupMenu.createContextMenu( table.getTable() ) );        // add optional filters        if ( PreferenceLoader.loadBoolean( "searchFilterPornography" ) )            table.addFilter( new WordFilter( WordFilter.PORNOGRAPHY_FILTER_TYPE ) );        else if ( PreferenceLoader.loadBoolean( "searchFilterProfanity" ) )            table.addFilter( new WordFilter( WordFilter.PROFANITY_FILTER_TYPE ) );        /* create the columns */        for ( int i = 0; i < tableColumns.length; i++ ) {            tableColumn = new TableColumn( table.getTable(), SWT.LEFT );            tableColumn.setText( tableColumns[ i ] );            tableColumn.pack();            /* adds a sort listener */            final int columnIndex = i;            tableColumn.addListener( SWT.Selection, new Listener() {                    public void handleEvent( Event e ) {                        resultTableSorter.setColumnIndex( columnIndex );                        table.refresh();                    }                } );        }        /* add a resize listener */        cTabFolder.addControlListener( new ControlAdapter() {                public void controlResized( ControlEvent e ) {                    SearchResult.this.setColumnWidth();                }            } );        /*         * add a menulistener to set the first item to default         * sadly not possible with the MenuManager Class         * (Feature Request on eclipse?)         */        Menu menu = table.getTable().getMenu();        menu.addMenuListener( new MenuListener() {                public void menuShown( MenuEvent e ) {                    Menu menu = table.getTable().getMenu();                    if ( !table.getSelection().isEmpty() )                        menu.setDefaultItem( menu.getItem( 0 ) );                }                public void menuHidden( MenuEvent e ) {                }            } );           		/* add a mouse-listener to catch double-clicks */		table.getTable().addMouseListener( new MouseListener() {			public void mouseDoubleClick( MouseEvent e ) {				resultTableMenuListener.downloadSelected();			}			public void mouseDown( MouseEvent e ) { 				if ( stopped )					( ( SearchTab ) search ).setContinueButton();				else					( ( SearchTab ) search ).setStopButton();			}			public void mouseUp( MouseEvent e ) { }		} );            final ToolTipHandler tooltip = new ToolTipHandler( table.getTable().getShell() );        tooltip.activateHoverHelp( table.getTable() );        /* set the this table as the new CTabItem Control */        cTabItem.setControl( table.getTable() );    }