постепенное выведение старой концепции текущих объектов, касаемо табличных лучше держать их в интерфейсе таблиц, чтобы не писать описание объекта дважды и не мучиться с типом. некоторые фиксы
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
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 +25,8 @@ public class ShowCompilerHelp 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 +41,7 @@ public class ShowCompilerHelp extends Pass<String> {
|
||||
protected void body() throws Exception {
|
||||
subpass = null;
|
||||
compiler.ResetHelp();
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user