no message

This commit is contained in:
2024-10-14 01:50:33 +03:00
parent 9669eb61d2
commit 031ae09a4b
13 changed files with 35 additions and 24 deletions

View File

@@ -3,6 +3,7 @@ import Common.Utils.Utils_;
import Common.Utils.Stopwatch;
import Common.Utils.TextLog;
import Common.Visual.UI_;
import MainModule_.MainModule_;
import Visual_DVM_2021.PassStats.PassStats;
import Visual_DVM_2021.Passes.PassCode;
import Visual_DVM_2021.Passes.UI.PassForm;
@@ -94,24 +95,22 @@ public class Pass<T> {
public void UpdateStatsIfNeed() {
if (hasStats()) {
try {
Global.mainModule.getDb().passStats.IncPassStat(code());
MainModule_.object.getDb().passStats.IncPassStat(getName());
} catch (Exception ex) {
Utils_.MainLog.PrintException(ex);
}
UI.fastAccessMenuBar.Refresh(); //todo все бары в мейн модуль. или уи.мейн модуль
}
}
public PassCode code() {
return PassCode.valueOf(getClass().getSimpleName());
}
public boolean isDone() {
return state.equals(PassState.Done);
}
public void setDone() {
state.equals(PassState.Done);
}
public String getName(){return getClass().getSimpleName();}
public String getDescription() {
return code().getDescription();
return Global.mainModule.getPassDescription(getName());
}
public String getStartDescription() {
return getDescription();