рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -4,6 +4,7 @@ import _VisualDVM.Current;
|
||||
import Common.Visual.TextField.StyledTextField;
|
||||
import Common.Visual.Windows.Dialog.DialogFields;
|
||||
import Common.Visual.Windows.Dialog.VDirectoryChooser;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||
import Visual_DVM_2021.Passes.PassCode;
|
||||
@@ -31,13 +32,13 @@ public class CompilerFields implements DialogFields {
|
||||
CompilerType type = (CompilerType) cbCompilerType.getSelectedItem();
|
||||
if (type == CompilerType.dvm) {
|
||||
String dst = null;
|
||||
if (Current.getMachine().type.equals(MachineType.Local)) {
|
||||
if (Global.mainModule.getMachine().type.equals(MachineType.Local)) {
|
||||
File file = directoryChooser.ShowDialog();
|
||||
if (file != null)
|
||||
dst = file.getAbsolutePath();
|
||||
} else {
|
||||
if (Pass.passes.get(PassCode.SelectRemoteFile).Do(true))
|
||||
dst = Current.getRemoteFile().full_name;
|
||||
dst = Global.mainModule.getRemoteFile().full_name;
|
||||
}
|
||||
if (dst != null)
|
||||
tfHome.setText(dst);
|
||||
|
||||
Reference in New Issue
Block a user