постепенное выведение старой концепции текущих объектов, касаемо табличных лучше держать их в интерфейсе таблиц, чтобы не писать описание объекта дважды и не мучиться с типом. некоторые фиксы
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import Common.Utils.Utils_;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import _VisualDVM.Passes.Server.ComponentsRepositoryPass;
|
||||
@@ -25,12 +24,12 @@ public class UpdateBugReportField extends ComponentsRepositoryPass<BugReport> {
|
||||
}
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
if (!Global.mainModule.Check(Log, Current.BugReport))
|
||||
if (!Global.componentsServer.db.bugReports.getUI().Check(Log))
|
||||
return false;
|
||||
old_description = "";
|
||||
old_comment = "";
|
||||
//--
|
||||
target = Global.mainModule.getBugReport();
|
||||
target = Global.componentsServer.db.bugReports.getUI().getCurrent();
|
||||
fieldNames.clear();
|
||||
fieldValues.clear();
|
||||
for (int i = 0; i < args.length; ++i) {
|
||||
@@ -51,7 +50,7 @@ public class UpdateBugReportField extends ComponentsRepositoryPass<BugReport> {
|
||||
BugReport.class.getField(fieldNames.get(i)).set(target, fieldValues.get(i));
|
||||
target.change_date = new Date().getTime();
|
||||
server.db.Update(target);
|
||||
server.db.bugReports.getUI().Refresh();
|
||||
server.db.bugReports.RefreshUI();
|
||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||
} else
|
||||
return canUpdate();
|
||||
@@ -83,7 +82,7 @@ public class UpdateBugReportField extends ComponentsRepositoryPass<BugReport> {
|
||||
}
|
||||
@Override
|
||||
protected void showFinish() throws Exception {
|
||||
Global.componentsServer.db.bugReports.getUI().Refresh();
|
||||
Global.componentsServer.db.bugReports.RefreshUI();
|
||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||
}
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user