рефакторинг
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package Common.UI;
|
||||
import Common.Constants.Constants;
|
||||
import Common.Current;
|
||||
import Common.Database.DBObject;
|
||||
import Common.Database.DBTable;
|
||||
@@ -9,7 +10,6 @@ import Common.UI.Menus.TableMenu;
|
||||
import Common.UI.Tables.ColumnInfo;
|
||||
import Common.UI.Tables.DataTable;
|
||||
import Common.UI.Tables.Grid.GridAnchestor;
|
||||
import Common.Utils.Utils;
|
||||
import GlobalData.Grid.Grid;
|
||||
|
||||
import javax.swing.*;
|
||||
@@ -209,7 +209,7 @@ public class DataSetControlForm extends ControlWithCurrentForm<DataTable> {
|
||||
}
|
||||
};
|
||||
if (CurrentName() != Current.Undefined) {
|
||||
current_row_i = Utils.Nan;
|
||||
current_row_i = Constants.Nan;
|
||||
ListSelectionModel selModel = control.getSelectionModel();
|
||||
selModel.addListSelectionListener(e -> {
|
||||
int row = control.getSelectedRow();
|
||||
@@ -227,7 +227,7 @@ public class DataSetControlForm extends ControlWithCurrentForm<DataTable> {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
current_row_i = Utils.Nan;
|
||||
current_row_i = Constants.Nan;
|
||||
// System.out.println("no current row_i="+current_row_i);
|
||||
getDataSource().dropCurrent();
|
||||
if (events_on) {
|
||||
|
||||
Reference in New Issue
Block a user