постепенное выведение старой концепции текущих объектов, касаемо табличных лучше держать их в интерфейсе таблиц, чтобы не писать описание объекта дважды и не мучиться с типом. некоторые фиксы
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
package _VisualDVM.Passes.All;
|
||||
import Common.MainModule_;
|
||||
import Common.Passes.Pass;
|
||||
import _VisualDVM.Current;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
import _VisualDVM.GlobalData.Machine.Machine;
|
||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import _VisualDVM.Visual.Windows.ReadOnlyMultilineTextForm;
|
||||
@@ -23,8 +24,8 @@ public class ShowCompilerVersion extends Pass<String> {
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = null;
|
||||
if (args.length == 0) {
|
||||
if (Global.mainModule.Check(Log, Current.Compiler)) {
|
||||
compiler = Global.mainModule.getCompiler();
|
||||
if (MainModule_.instance.getDb().getTable(Compiler.class).getUI().Check(Log)) {
|
||||
compiler = MainModule_.instance.getDb().getTable(Compiler.class).getUI().getCurrent();
|
||||
needsShow = true;
|
||||
return true;
|
||||
}
|
||||
@@ -39,7 +40,7 @@ public class ShowCompilerVersion extends Pass<String> {
|
||||
protected void body() throws Exception {
|
||||
subpass = null;
|
||||
compiler.ResetVersion();
|
||||
if (Global.mainModule.getMachine().type.equals(MachineType.Local)) {
|
||||
if (MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().type.equals(MachineType.Local)) {
|
||||
subpass = Global.mainModule.getPass(PassCode.LocalSingleCommand);
|
||||
} else {
|
||||
subpass = Global.mainModule.getPass(PassCode.RemoteSingleCommand);
|
||||
@@ -59,7 +60,7 @@ public class ShowCompilerVersion extends Pass<String> {
|
||||
@Override
|
||||
protected void showDone() throws Exception {
|
||||
if (needsShow) {
|
||||
(Global.mainModule.getDb()).compilers.getUI().Refresh();
|
||||
(Global.mainModule.getDb()).compilers.RefreshUI();
|
||||
ReadOnlyMultilineTextForm ff = new ReadOnlyMultilineTextForm();
|
||||
ff.ShowDialog("Версия", target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user