myAttributesTableViewer.setLabelProvider(new EOAttributesLabelProvider(EOAttributesConstants.COLUMNS));
myAttributesTableViewer.setLabelProvider(new EOAttributesLabelProvider(myAttributesTableViewer, EOAttributesConstants.COLUMNS));
  public EOAttributesTableViewer(Composite _parent, int _style) {    super(_parent, _style);    setLayout(new GridLayout(1, true));    myAttributesTableViewer = new TableViewer(this, SWT.FULL_SELECTION);    myAttributesTableViewer.setContentProvider(new EOAttributesContentProvider());    myAttributesTableViewer.setLabelProvider(new EOAttributesLabelProvider(EOAttributesConstants.COLUMNS));    myAttributesTableViewer.setSorter(new EOAttributesViewerSorter(EOAttributesConstants.COLUMNS));    myAttributesTableViewer.setColumnProperties(EOAttributesConstants.COLUMNS);    Table attributesTable = myAttributesTableViewer.getTable();    attributesTable.setLayoutData(new GridData(GridData.FILL_BOTH));    attributesTable.setHeaderVisible(true);    attributesTable.setLinesVisible(true);    TableUtils.createTableColumns(myAttributesTableViewer, EOAttributesConstants.COLUMNS);    TableColumn primaryKeyColumn = attributesTable.getColumn(TableUtils.getColumnNumber(EOAttributesConstants.COLUMNS, EOAttributesConstants.PRIMARY_KEY));    primaryKeyColumn.setText("");    //primaryKeyColumn.setAlignment(SWT.CENTER);    primaryKeyColumn.setImage(Activator.getDefault().getImageRegistry().get(Activator.PRIMARY_KEY_ICON));    TableColumn lockingColumn = attributesTable.getColumn(TableUtils.getColumnNumber(EOAttributesConstants.COLUMNS, EOAttributesConstants.LOCKING));    lockingColumn.setText("");    //lockingColumn.setAlignment(SWT.CENTER);    lockingColumn.setImage(Activator.getDefault().getImageRegistry().get(Activator.LOCKING_ICON));    TableColumn classPropertyColumn = attributesTable.getColumn(TableUtils.getColumnNumber(EOAttributesConstants.COLUMNS, EOAttributesConstants.CLASS_PROPERTY));    classPropertyColumn.setText("");    //classPropertyColumn.setAlignment(SWT.CENTER);    classPropertyColumn.setImage(Activator.getDefault().getImageRegistry().get(Activator.CLASS_PROPERTY_ICON));    TableColumn allowNullColumn = attributesTable.getColumn(TableUtils.getColumnNumber(EOAttributesConstants.COLUMNS, EOAttributesConstants.ALLOW_NULL));    allowNullColumn.setText("0");    //allowNullColumn.setAlignment(SWT.CENTER);    //classPropertyColumn.setImage(Activator.getDefault().getImageRegistry().get(EOAttributesConstants.CLASS_PROPERTY));    ((EOAttributesViewerSorter) myAttributesTableViewer.getSorter()).sort(myAttributesTableViewer, EORelationshipsConstants.NAME);    CellEditor[] cellEditors = new CellEditor[EOAttributesConstants.COLUMNS.length];    cellEditors[TableUtils.getColumnNumber(EOAttributesConstants.COLUMNS, EOAttributesConstants.PROTOTYPE)] = new KeyComboBoxCellEditor(attributesTable, new String[0], SWT.READ_ONLY);    cellEditors[TableUtils.getColumnNumber(EOAttributesConstants.COLUMNS, EOAttributesConstants.NAME)] = new TextCellEditor(attributesTable);    cellEditors[TableUtils.getColumnNumber(EOAttributesConstants.COLUMNS, EOAttributesConstants.COLUMN)] = new TextCellEditor(attributesTable);    updateCellEditors(cellEditors);    myAttributesTableViewer.setCellModifier(new EOAttributesCellModifier(myAttributesTableViewer, cellEditors));    myAttributesTableViewer.setCellEditors(cellEditors);  }