рефакторинг. вынес в обобщенную часть бд, но еще не все
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Current;
|
||||
import GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.Global;
|
||||
import Common_old.UI.UI;
|
||||
import Common_old.UI.Windows.Dialog.PercentsForm;
|
||||
@@ -21,7 +23,7 @@ public class UpdateSetting extends Pass_2021<DBSetting> {
|
||||
VFileChooser fileChooser = new VFileChooser("", "exe");
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = Global.db.settings.get(args[0]);
|
||||
target = ((GlobalDatabase)CommonUtils.db).settings.get(args[0]);
|
||||
NewValue = target.Value;
|
||||
if (args.length == 1) {
|
||||
//интерфейсный режим. получение по клику на пункт меню.
|
||||
@@ -112,7 +114,7 @@ public class UpdateSetting extends Pass_2021<DBSetting> {
|
||||
@Override
|
||||
protected void body() throws Exception {
|
||||
target.Value = NewValue;
|
||||
Global.db.Update(target);
|
||||
CommonUtils.db.Update(target);
|
||||
}
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user