упраздение лишних енумов в оформлении таблиц и деревьев.
This commit is contained in:
@@ -6,7 +6,7 @@ import Common.Utils.Utils_;
|
||||
import Common.Visual.Controls.PassButton;
|
||||
import Common.Visual.Controls.PassControl;
|
||||
import Common.Visual.Controls.StablePassMenuItem;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.UI;
|
||||
import Common.Visual.Windows.PassForm;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Settings.SettingName;
|
||||
@@ -151,30 +151,30 @@ public class Pass<T> {
|
||||
//-
|
||||
private void PerformCanNotStart() throws Exception {
|
||||
performCanNotStart();
|
||||
if (UI_.isActive())
|
||||
if (UI.isActive())
|
||||
showCanNotStart();
|
||||
}
|
||||
protected void PerformPreparation() throws Exception {
|
||||
performPreparation();
|
||||
if (UI_.isActive())
|
||||
if (UI.isActive())
|
||||
showPreparation();
|
||||
}
|
||||
private void PerformFinish() throws Exception {
|
||||
performFinish();
|
||||
//-
|
||||
if (UI_.isActive())
|
||||
if (UI.isActive())
|
||||
showFinish();
|
||||
}
|
||||
private void PerformDone() throws Exception {
|
||||
performDone();
|
||||
//-
|
||||
if (UI_.isActive())
|
||||
if (UI.isActive())
|
||||
showDone();
|
||||
}
|
||||
private void PerformFail() throws Exception {
|
||||
performFail();
|
||||
//-
|
||||
if (UI_.isActive())
|
||||
if (UI.isActive())
|
||||
showFail();
|
||||
}
|
||||
//------
|
||||
@@ -207,7 +207,7 @@ public class Pass<T> {
|
||||
Vector<String> ToPrint = new Vector<>();
|
||||
createStack_r(ToDo, ToPrint);
|
||||
if (Global.properties.ConfirmPassesStart && !ToPrint.isEmpty() &&
|
||||
!UI_.Question("Выполнить проход(ы):\n" + String.join("\n", ToPrint))
|
||||
!UI.Question("Выполнить проход(ы):\n" + String.join("\n", ToPrint))
|
||||
) return false;
|
||||
while (ToDo.size() > 1) {
|
||||
if (!ToDo.pop().start()) return false;
|
||||
@@ -218,7 +218,7 @@ public class Pass<T> {
|
||||
//-
|
||||
if (Global.properties.ShowPassesDone && !ToPrint.isEmpty()
|
||||
) {
|
||||
UI_.Info("Проход(ы)\n\n" + String.join("\n", ToPrint) +
|
||||
UI.Info("Проход(ы)\n\n" + String.join("\n", ToPrint) +
|
||||
"\nуспешно выполнен(ы)!");
|
||||
}
|
||||
//-
|
||||
@@ -232,7 +232,7 @@ public class Pass<T> {
|
||||
return false;
|
||||
}
|
||||
public void Interrupt() throws Exception {
|
||||
UI_.Info("Проход " + Utils_.Brackets(getDescription()) + " не разрешено прерывать.");
|
||||
UI.Info("Проход " + Utils_.Brackets(getDescription()) + " не разрешено прерывать.");
|
||||
}
|
||||
public boolean needsConfirmations() {
|
||||
return false;
|
||||
@@ -259,10 +259,10 @@ public class Pass<T> {
|
||||
timer.Start();
|
||||
//------------------------------->
|
||||
try {
|
||||
if (UI_.isActive()) FocusBeforeStart();
|
||||
if (UI.isActive()) FocusBeforeStart();
|
||||
if (canStart(args)) {
|
||||
PerformPreparation();
|
||||
if (UI_.isActive() && needsAnimation()) {
|
||||
if (UI.isActive() && needsAnimation()) {
|
||||
animation_sem = new Semaphore(1);
|
||||
animation_sem.acquire();
|
||||
//---
|
||||
@@ -343,8 +343,8 @@ public class Pass<T> {
|
||||
" окончен за " + timer.Print() +
|
||||
" состояние " + Utils_.Brackets(state.getDescription())
|
||||
);
|
||||
if (!Log.isEmpty() && UI_.isActive())
|
||||
UI_.Error(
|
||||
if (!Log.isEmpty() && UI.isActive())
|
||||
UI.Error(
|
||||
"проход " + Utils_.Brackets(getDescription()) + "\n" + state.getDescription() + "\n\n" +
|
||||
Log.toString());
|
||||
}
|
||||
@@ -353,7 +353,7 @@ public class Pass<T> {
|
||||
}
|
||||
//--
|
||||
public void ShowSapforMessage(String message) {
|
||||
if (UI_.isActive() && form != null) {
|
||||
if (UI.isActive() && form != null) {
|
||||
String[] data = message.split(":");
|
||||
switch (data[0]) {
|
||||
case "message_1":
|
||||
|
||||
Reference in New Issue
Block a user