no message
This commit is contained in:
@@ -8,7 +8,7 @@ import Common.Visual.Controls.PassControl;
|
||||
import Common.Visual.Controls.StablePassMenuItem;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.Windows.PassForm;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Global; //избавиться когда мейн модуль станет обязательным
|
||||
|
||||
import javax.swing.*;
|
||||
import java.awt.event.ActionEvent;
|
||||
@@ -90,11 +90,11 @@ public class Pass<T> {
|
||||
public void UpdateStatsIfNeed() {
|
||||
if (hasStats()) {
|
||||
try {
|
||||
MainModule_.object.getDb().passStats.IncPassStat(getName());
|
||||
MainModule_.instance.getDb().passStats.IncPassStat(getName());
|
||||
} catch (Exception ex) {
|
||||
Utils_.MainLog.PrintException(ex);
|
||||
}
|
||||
MainModule_.object.fastAccessMenuBar.Refresh(); //todo все бары в мейн модуль. или уи.мейн модуль
|
||||
MainModule_.instance.fastAccessMenuBar.Refresh(); //todo все бары в мейн модуль. или уи.мейн модуль
|
||||
}
|
||||
}
|
||||
public boolean isDone() {
|
||||
@@ -107,7 +107,7 @@ public class Pass<T> {
|
||||
return getClass().getSimpleName();
|
||||
}
|
||||
public String getDescription() {
|
||||
return MainModule_.object.getPassDescription(getName());
|
||||
return MainModule_.instance.getPassDescription(getName());
|
||||
}
|
||||
public String getStartDescription() {
|
||||
return getDescription();
|
||||
@@ -195,7 +195,7 @@ public class Pass<T> {
|
||||
ToPrint.add(this.getStartDescription());
|
||||
}
|
||||
if (necessary() != null) {
|
||||
Pass next = MainModule_.object.getPass(necessary());
|
||||
Pass next = MainModule_.instance.getPass(necessary());
|
||||
if (resetsNecessary() || !next.isDone())
|
||||
next.createStack_r(ToDo, ToPrint);
|
||||
}
|
||||
@@ -266,10 +266,10 @@ public class Pass<T> {
|
||||
animation_sem.acquire();
|
||||
//---
|
||||
form = null;
|
||||
MainModule_.object.passForm = null;
|
||||
MainModule_.instance.passForm = null;
|
||||
System.gc();
|
||||
//--
|
||||
MainModule_.object.passForm = form = new PassForm(this);
|
||||
MainModule_.instance.passForm = form = new PassForm(this);
|
||||
dispatcher = new SwingWorker() {
|
||||
@Override
|
||||
protected Object doInBackground() {
|
||||
|
||||
Reference in New Issue
Block a user