public class DatasetEditorModelHeader extends BasicDataModelHeader implements DataModelHeader {
public DatasetEditorModelHeader(DatasetEditor datasetEditor, ResultSet resultSet) throws SQLException {
DBDataset dataset = datasetEditor.getDataset();
if (dataset != null) {
if (resultSet == null) {
DatasetColumnSetup columnSetup = datasetEditor.getState().getColumnSetup();
List<DatasetColumnState> columnStates = columnSetup.getColumnStates();
if (columnStates.size() != dataset.getColumns().size()) {
columnSetup.init(dataset);
}
int index = 0;
for (DatasetColumnState columnState : columnStates) {
DBColumn column = dataset.getColumn(columnState.getName());