tableViewer = new TableViewer( table );
if ( (tableStyle & SWT.CHECK) != 0 ) { tableViewer = new CheckboxTableViewer( table ); } else { tableViewer = new TableViewer( table ); }
	private void createTableViewer( int tableStyle )	{		Table table = new Table( this, tableStyle				| SWT.FULL_SELECTION				| SWT.BORDER );		table.setLayoutData( new GridData( GridData.FILL_BOTH ) );		table.setHeaderVisible( true );		table.setLinesVisible( true );		tableViewer = new TableViewer( table );		if ( modifier instanceof ITableAreaModifier )		{			table.addKeyListener( new KeyAdapter( ) {				/**				 * @see org.eclipse.swt.events.KeyAdapter#keyReleased(org.eclipse.swt.events.KeyEvent)				 */				public void keyReleased( KeyEvent e )				{					if ( e.keyCode == SWT.DEL							&& e.stateMask == 0							&& !getSelection( ).isEmpty( ) )					{						doRemove( );					}				}			} );		}		tableViewer.addDoubleClickListener( new IDoubleClickListener( ) {			public void doubleClick( DoubleClickEvent event )			{				if ( getSelection( ).size( ) == 1 )				{					doEdit( );				}			}		} );	}