Java Code Examples for org.eclipse.swt.widgets.TableColumn#dispose()
The following examples show how to use
org.eclipse.swt.widgets.TableColumn#dispose() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QueryDataView.java From neoscada with Eclipse Public License 1.0 | 6 votes |
private void clearDataSize () { this.table.clearAll (); for ( final TableColumn col : this.columns.values () ) { col.dispose (); } this.columns.clear (); if ( this.countCol != null ) { this.countCol.dispose (); this.countCol = null; } if ( this.infoCol != null ) { this.infoCol.dispose (); this.infoCol = null; } }
Example 2
Source File: MultiPageCSVEditor.java From gama with GNU General Public License v3.0 | 6 votes |
/** * */ void updateTableFromTextEditor() { model.removeModelListener(csvFileListener); model.setInput(editor.getDocumentProvider().getDocument(editor.getEditorInput()).get()); final TableColumn[] columns = tableViewer.getTable().getColumns(); for (final TableColumn c : columns) { c.dispose(); } for (int i = 0; i < model.getHeader().size(); i++) { final TableViewerColumn column = new TableViewerColumn(tableViewer, SWT.LEFT); final int index = i; column.getColumn().setText(model.getHeader().get(i)); column.getColumn().setWidth(100); column.getColumn().setResizable(true); column.getColumn().setMoveable(true); column.setLabelProvider(new CSVLabelProvider()); addMenuItemToColumn(column.getColumn(), index); } tableViewer.setInput(model); model.addModelListener(csvFileListener); defineCellEditing(); }
Example 3
Source File: IndexTabWrapper.java From ermasterr with Apache License 2.0 | 5 votes |
@Override public void restruct() { clearButtonAndEditor(); while (indexTable.getColumnCount() > 2) { final TableColumn tableColumn = indexTable.getColumn(2); tableColumn.dispose(); } indexTable.removeAll(); resutuctIndexData(); setTableData(); }
Example 4
Source File: IndexTabWrapper.java From erflute with Apache License 2.0 | 5 votes |
public void restruct() { clearButtonAndEditor(); while (indexTable.getColumnCount() > 2) { final TableColumn tableColumn = indexTable.getColumn(2); tableColumn.dispose(); } indexTable.removeAll(); resutuctIndexData(); setTableData(); }
Example 5
Source File: ExpressionCollectionViewer.java From bonita-studio with GNU General Public License v2.0 | 5 votes |
private void updateColumns() { editingSupports.clear(); for (final TableColumn c : viewer.getTable().getColumns()) { c.dispose(); } if (getNbRows() > 0) { for (int i = 0; i < Math.max(minNbCol, getNbCols()); i++) { addColumnToViewer(i); } refresh(); } }
Example 6
Source File: ComponentFilterTable.java From arx with Apache License 2.0 | 5 votes |
/** * Clears the table. */ public void clear() { this.selectedKey = null; this.keys = null; this.selectedProperty = null; this.keyProperties = null; this.properties = null; this.permitted = null; this.pageableTable.setRedraw(false); for (TableColumn c : this.pageableTable.getViewer().getTable().getColumns()) { c.dispose(); } this.pageableTable.setRedraw(true); }
Example 7
Source File: IndexTabWrapper.java From ermaster-b with Apache License 2.0 | 5 votes |
public void restruct() { this.clearButtonAndEditor(); while (this.indexTable.getColumnCount() > 2) { TableColumn tableColumn = this.indexTable.getColumn(2); tableColumn.dispose(); } this.indexTable.removeAll(); this.resutuctIndexData(); this.setTableData(); }