рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -3,6 +3,7 @@ import Common.Visual.UI_;
|
||||
import _VisualDVM.Current;
|
||||
import Common.Visual.Controls.StyledTextComboBox;
|
||||
import Common.Visual.Windows.Dialog.DialogFields;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||
import _VisualDVM.GlobalData.Module.Module;
|
||||
@@ -27,7 +28,7 @@ public class ModuleAnchestorFields implements DialogFields {
|
||||
//считаем что машина есть.
|
||||
public ModuleAnchestorFields() {
|
||||
//-
|
||||
LinkedHashMap<Integer, Compiler> compilers = Current.getMachine().getCompilers();
|
||||
LinkedHashMap<Integer, Compiler> compilers = Global.mainModule.getMachine().getCompilers();
|
||||
compilers.values().forEach(compiler -> cbCompilers.addItem(compiler));
|
||||
bHelp.addActionListener(e -> {
|
||||
if (cbCompilers.getSelectedItem() != null) {
|
||||
@@ -53,7 +54,7 @@ public class ModuleAnchestorFields implements DialogFields {
|
||||
public void setListeners(ModuleAnchestor target) {
|
||||
boolean linker = (target instanceof Makefile);
|
||||
LanguageName languageName = linker ?
|
||||
(Current.HasProject() ? Current.getProject().languageName : LanguageName.n) :
|
||||
(Global.mainModule.HasProject() ? Global.mainModule.getProject().languageName : LanguageName.n) :
|
||||
((Module) target).language;
|
||||
cbCompilers.addActionListener(e -> {
|
||||
if (cbCompilers.getSelectedItem() instanceof Compiler) {
|
||||
|
||||
Reference in New Issue
Block a user