no message
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user