mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-139647 Change signature: focus is lost while typing parameter name/value
This commit is contained in:
+1
-7
@@ -64,13 +64,7 @@ public abstract class ParameterTableModelBase<P extends ParameterInfo, TableItem
|
||||
}
|
||||
|
||||
public void setValueAtWithoutUpdate(Object aValue, int rowIndex, int columnIndex) {
|
||||
super.setValueAt(aValue, rowIndex, columnIndex);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
super.setValueAt(aValue, rowIndex, columnIndex);
|
||||
fireTableCellUpdated(rowIndex, columnIndex); // to update signature
|
||||
setValueAt(aValue, rowIndex, columnIndex, false);
|
||||
}
|
||||
|
||||
protected static abstract class ColumnInfoBase<P extends ParameterInfo, TableItem extends ParameterTableModelItemBase<P>, Aspect>
|
||||
|
||||
@@ -113,10 +113,23 @@ public class ListTableModel<Item> extends TableViewModel<Item> implements Editab
|
||||
|
||||
@Override
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
|
||||
setValueAt(aValue, rowIndex, columnIndex, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value in the cell at {@code columnIndex} and {@code rowIndex} to {@code aValue}.
|
||||
* This method allows to choose will the model listeners notified or not.
|
||||
*
|
||||
* @param aValue the new value
|
||||
* @param rowIndex the row whose value is to be changed
|
||||
* @param columnIndex the column whose value is to be changed
|
||||
* @param notifyListeners indicates whether the model listeners are notified
|
||||
*/
|
||||
public void setValueAt(Object aValue, int rowIndex, int columnIndex, boolean notifyListeners) {
|
||||
if (rowIndex < myItems.size()) {
|
||||
myColumnInfos[columnIndex].setValue(getItem(rowIndex), aValue);
|
||||
}
|
||||
fireTableCellUpdated(rowIndex, columnIndex);
|
||||
if (notifyListeners) fireTableCellUpdated(rowIndex, columnIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user