рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -2,6 +2,7 @@ package Visual_DVM_2021.Passes.All;
|
||||
import Common.Current_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Windows.Dialog.Text.ReadOnlyMultilineTextForm;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
@@ -23,8 +24,8 @@ public class ShowCompilerHelp extends Pass<String> {
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = null;
|
||||
if (args.length == 0) {
|
||||
if (Current_.Check(Log, Current.Compiler)) {
|
||||
compiler = Current.getCompiler();
|
||||
if (Global.mainModule.Check(Log, Current.Compiler)) {
|
||||
compiler = Global.mainModule.getCompiler();
|
||||
needsShow = true;
|
||||
return true;
|
||||
}
|
||||
@@ -39,7 +40,7 @@ public class ShowCompilerHelp extends Pass<String> {
|
||||
protected void body() throws Exception {
|
||||
subpass = null;
|
||||
compiler.ResetHelp();
|
||||
if (Current.getMachine().type.equals(MachineType.Local)) {
|
||||
if (Global.mainModule.getMachine().type.equals(MachineType.Local)) {
|
||||
subpass = passes.get(PassCode.LocalSingleCommand);
|
||||
} else {
|
||||
subpass = passes.get(PassCode.RemoteSingleCommand);
|
||||
|
||||
Reference in New Issue
Block a user