Fix after merge

This commit is contained in:
Dan
2021-01-12 10:50:14 -05:00
parent 72d6991fa4
commit a437ed8e06

View File

@@ -90,19 +90,6 @@ public class DataTypeTableCellEditor extends AbstractCellEditor
return service; return service;
} }
/**
* Get the maximum allowed size for the given row and column
*
* Defaults to unlimited.
*
* @param row the row being edited
* @param column the column being edited
* @return the maximum size or -1 for unlimited
*/
protected int getMaxLength(int row, int column) {
return -1;
}
protected AllowedDataTypes getAllowed(int row, int column) { protected AllowedDataTypes getAllowed(int row, int column) {
return AllowedDataTypes.ALL; return AllowedDataTypes.ALL;
} }
@@ -134,8 +121,7 @@ public class DataTypeTableCellEditor extends AbstractCellEditor
protected void init(int row, int column) { protected void init(int row, int column) {
updateService(); updateService();
editor = new DataTypeSelectionEditor(service, getMaxLength(row, column), editor = new DataTypeSelectionEditor(service, getAllowed(row, column));
getAllowed(row, column));
editor.setPreferredDataTypeManager(getPreferredDataTypeManager(row, column)); editor.setPreferredDataTypeManager(getPreferredDataTypeManager(row, column));
editor.setTabCommitsEdit(true); editor.setTabCommitsEdit(true);
editor.setConsumeEnterKeyPress(false); editor.setConsumeEnterKeyPress(false);