no message
This commit is contained in:
@@ -191,30 +191,30 @@ public class Pass_2021<T> {
|
||||
//-
|
||||
private void PerformCanNotStart() throws Exception {
|
||||
performCanNotStart();
|
||||
if (Current.hasUI())
|
||||
if (CommonUtils.hasUI())
|
||||
showCanNotStart();
|
||||
}
|
||||
protected void PerformPreparation() throws Exception {
|
||||
performPreparation();
|
||||
if (Current.hasUI())
|
||||
if (CommonUtils.hasUI())
|
||||
showPreparation();
|
||||
}
|
||||
private void PerformFinish() throws Exception {
|
||||
performFinish();
|
||||
//-
|
||||
if (Current.hasUI())
|
||||
if (CommonUtils.hasUI())
|
||||
showFinish();
|
||||
}
|
||||
private void PerformDone() throws Exception {
|
||||
performDone();
|
||||
//-
|
||||
if (Current.hasUI())
|
||||
if (CommonUtils.hasUI())
|
||||
showDone();
|
||||
}
|
||||
private void PerformFail() throws Exception {
|
||||
performFail();
|
||||
//-
|
||||
if (Current.hasUI())
|
||||
if (CommonUtils.hasUI())
|
||||
showFail();
|
||||
}
|
||||
//------
|
||||
@@ -298,11 +298,11 @@ public class Pass_2021<T> {
|
||||
timer.Start();
|
||||
//------------------------------->
|
||||
try {
|
||||
if (Current.hasUI()) FocusBeforeStart();
|
||||
if (CommonUtils.hasUI()) FocusBeforeStart();
|
||||
if (canStart(args)) {
|
||||
PerformPreparation();
|
||||
//todo тут должна быть вилка на анимацию?
|
||||
if (Current.hasUI() && needsAnimation()) {
|
||||
if (CommonUtils.hasUI() && needsAnimation()) {
|
||||
animation_sem = new Semaphore(1);
|
||||
animation_sem.acquire();
|
||||
//---
|
||||
@@ -386,7 +386,7 @@ public class Pass_2021<T> {
|
||||
" окончен за " + timer.Print() +
|
||||
" состояние " + CommonUtils.Brackets(state.getDescription())
|
||||
);
|
||||
if (!Log.isEmpty() && Current.hasUI())
|
||||
if (!Log.isEmpty() && CommonUtils.hasUI())
|
||||
UI.Error(
|
||||
"проход " + CommonUtils.Brackets(getDescription()) + "\n" + state.getDescription() + "\n\n" +
|
||||
Log.toString());
|
||||
@@ -396,7 +396,7 @@ public class Pass_2021<T> {
|
||||
}
|
||||
//--
|
||||
public void ShowSapforMessage(String message) {
|
||||
if (Current.hasUI() && form != null) {
|
||||
if (CommonUtils.hasUI() && form != null) {
|
||||
String[] data = message.split(":");
|
||||
switch (data[0]) {
|
||||
case "message_1":
|
||||
|
||||
Reference in New Issue
Block a user