no message

This commit is contained in:
2024-10-07 14:22:52 +03:00
parent 6b1576461d
commit 61fc37b574
173 changed files with 960 additions and 1526 deletions

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes;
import Common.Utils.CommonUtils;
import Common_old.Current;
import _VisualDVM.Global;
import Common_old.UI.DebugPrintLevel;
@@ -269,7 +270,7 @@ public class Pass_2021<T> {
return false;
}
public void Interrupt() throws Exception {
UI.Info("Проход " + Utils.Brackets(getDescription()) + " не разрешено прерывать.");
UI.Info("Проход " + CommonUtils.Brackets(getDescription()) + " не разрешено прерывать.");
}
public boolean needsConfirmations() {
return false;
@@ -382,11 +383,11 @@ public class Pass_2021<T> {
Global.Log.Print(DebugPrintLevel.Passes,
getDescription() +
" окончен за " + timer.Print() +
" состояние " + Utils.Brackets(state.getDescription())
" состояние " + CommonUtils.Brackets(state.getDescription())
);
if (!Log.isEmpty() && Current.hasUI())
UI.Error(
"проход " + Utils.Brackets(getDescription()) + "\n" + state.getDescription() + "\n\n" +
"проход " + CommonUtils.Brackets(getDescription()) + "\n" + state.getDescription() + "\n\n" +
Log.toString());
}
//------------------------------->
@@ -407,17 +408,17 @@ public class Pass_2021<T> {
form.fields.ProgressBar.setValue((data.length > 1) ? Integer.parseInt(data[1]) : 0);
break;
}
} else System.out.println(Utils.Brackets(message));
} else System.out.println(CommonUtils.Brackets(message));
}
public void ShowMessage1(String message) {
if (form != null)
form.fields.Label1.setText((message.length() > 1) ? message : "");
else System.out.println(Utils.Brackets(message));
else System.out.println(CommonUtils.Brackets(message));
}
public void ShowMessage2(String message) {
if (form != null)
form.fields.Label2.setText((message.isEmpty() ? "" : message));
else System.out.println(Utils.Brackets(message));
else System.out.println(CommonUtils.Brackets(message));
}
public void ShowProgress(int total, int current, boolean auto) {
if (form != null) {