final int columnIndex = i; column.addSelectionListener( new SelectionAdapter() { public void widgetSelected( SelectionEvent e ) { sort( columnIndex ); } });
	protected void createContents( Composite content ) {		/* create a SashFrom containing the two tables */		SashForm sashForm = new SashForm(content, SWT.NULL | SWT.VERTICAL);				/* create the first table */		table = new TableViewer( sashForm, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI );		table.getTable().setLayoutData( new GridData( GridData.FILL_BOTH ) );		table.getTable().setLinesVisible( false );		table.getTable().setHeaderVisible( true );		table.getTable().setMenu( createRightMouse() );		table.setContentProvider( new FileInfoTableContentProvider() );		table.setLabelProvider( new FileInfoTableLabelProvider() );		/* create the headers and set the width */				String[] aString = { res.getString( "TT_Field0" ),						 	 res.getString( "TT_Field1" ),				   			 res.getString( "TT_Field2" ),							 res.getString( "TT_Field3" ),							 res.getString( "TT_Field4" ), 							 res.getString( "TT_Field5" ), 							 res.getString( "TT_Field6") };		int[] anInt = { 25, 300, 40, 70, 70, 40, 70 };		TableColumn column = null;		for ( int i = 0; i < aString.length; i++ ) {			column = new TableColumn( table.getTable(), SWT.LEFT );			column.setText( aString[ i ] );			column.setWidth( anInt[ i ] );		}				/* listen for right mouse click on item */		table.getTable().addMouseListener( new MouseListener () {			public void mouseDown( MouseEvent e ) {				if ( e.button == 3 ) {					Point pt = new Point( e.x, e.y );					item = table.getTable().getItem( pt );				}			}			public void mouseDoubleClick(MouseEvent e) {}			public void mouseUp(MouseEvent e) {}		});	}