no message
This commit is contained in:
@@ -3,17 +3,18 @@ import Common.Database.Objects.DBObject;
|
||||
import Common.Database.Tables.DBTable;
|
||||
import Common.Database.Database;
|
||||
import Common.Passes.Pass;
|
||||
import MainModule_.MainModule_;
|
||||
import _VisualDVM.Global;
|
||||
public abstract class ObjectPass<D extends DBObject> extends Pass<D> {
|
||||
protected Class<D> d; //класс объектов.
|
||||
public ObjectPass(Class<D> d_in) {
|
||||
d = d_in;
|
||||
}
|
||||
protected Database getDb(){ return Global.mainModule.getDb();}; //источник данных
|
||||
protected Database getDb(){ return MainModule_.object.getDb();}; //источник данных
|
||||
public DBTable getTable() {
|
||||
return getDb().tables.get(d);
|
||||
} //таблица в источнике данных
|
||||
@Override
|
||||
@Override//sorted
|
||||
public String getButtonText() {
|
||||
return "";
|
||||
}
|
||||
|
||||
@@ -98,17 +98,17 @@ public class Pass<T> {
|
||||
} catch (Exception ex) {
|
||||
Utils_.MainLog.PrintException(ex);
|
||||
}
|
||||
UI.fastAccessMenuBar.Refresh();
|
||||
UI.fastAccessMenuBar.Refresh(); //todo все бары в мейн модуль. или уи.мейн модуль
|
||||
}
|
||||
}
|
||||
public PassCode code() {
|
||||
return PassCode.valueOf(getClass().getSimpleName());
|
||||
}
|
||||
public boolean isDone() {
|
||||
return state == PassState.Done;
|
||||
return state.equals(PassState.Done);
|
||||
}
|
||||
public void setDone() {
|
||||
state = PassState.Done;
|
||||
state.equals(PassState.Done);
|
||||
}
|
||||
public String getDescription() {
|
||||
return code().getDescription();
|
||||
|
||||
Reference in New Issue
Block a user