mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Fix after merge
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user