TableViewerColumn column = new TableViewerColumn( tableViewer, SWT.LEFT );
TableColumn col = column.getColumn();
col.setText( "Relationship type" );
col.setWidth( 200 );
col.setResizable( true );
column.setEditingSupport( new RelationshipTypeEditingSupport(
tableViewer, RelationshipTypeEditingSupport.ColumnType.HEADING ) );
column = new TableViewerColumn( tableViewer, SWT.LEFT );
col = column.getColumn();
col.setText( "In" );
col.setToolTipText( "Filter incoming relationships of this relationship type." );
col.setWidth( 60 );
col.setImage( Icons.INCOMING.image() );
col.setResizable( true );
column.setEditingSupport( new RelationshipTypeEditingSupport(
tableViewer, RelationshipTypeEditingSupport.ColumnType.IN ) );
column = new TableViewerColumn( tableViewer, SWT.LEFT );
col = column.getColumn();
col.setText( "Out" );
col.setToolTipText( "Filter outgoing relationships of this relationship type." );
col.setWidth( 60 );
col.setImage( Icons.OUTGOING.image() );
col.setResizable( true );
column.setEditingSupport( new RelationshipTypeEditingSupport(
tableViewer, RelationshipTypeEditingSupport.ColumnType.OUT ) );
table.setHeaderVisible( true );
table.setLinesVisible( true );
}