gc.setFont(JFaceResources.getDialogFont());
TableColumn column1= new TableColumn(table, SWT.NONE);
column1.setText(TextEditorTemplateMessages.TemplatePreferencePage_column_name);
int minWidth= computeMinimumColumnWidth(gc, TextEditorTemplateMessages.TemplatePreferencePage_column_name);
columnLayout.addColumnData(new ColumnWeightData(2, minWidth, true));
TableColumn column2= new TableColumn(table, SWT.NONE);
column2.setText(TextEditorTemplateMessages.TemplatePreferencePage_column_context);
minWidth= computeMinimumColumnWidth(gc, TextEditorTemplateMessages.TemplatePreferencePage_column_context);
columnLayout.addColumnData(new ColumnWeightData(1, minWidth, true));
TableColumn column3= new TableColumn(table, SWT.NONE);
column3.setText(TextEditorTemplateMessages.TemplatePreferencePage_column_description);
minWidth= computeMinimumColumnWidth(gc, TextEditorTemplateMessages.TemplatePreferencePage_column_description);
columnLayout.addColumnData(new ColumnWeightData(3, minWidth, true));
TableColumn column4= new TableColumn(table, SWT.NONE);
column4.setAlignment(SWT.CENTER);
column4.setText(TextEditorTemplateMessages.TemplatePreferencePage_column_autoinsert);
minWidth= computeMinimumColumnWidth(gc, TextEditorTemplateMessages.TemplatePreferencePage_column_autoinsert);