упраздение лишних енумов в оформлении таблиц и деревьев.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package _VisualDVM.GlobalData.Module.UI;
|
||||
import Common.Passes.Pass;
|
||||
import Common.Visual.Controls.StyledTextComboBox;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.UI;
|
||||
import Common.Visual.Windows.Dialog.DialogFields;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
@@ -32,14 +32,14 @@ public class ModuleAnchestorFields implements DialogFields {
|
||||
bHelp.addActionListener(e -> {
|
||||
if (cbCompilers.getSelectedItem() != null) {
|
||||
Global.mainModule.getPass(PassCode.ShowCompilerHelp).Do(compiler, true);
|
||||
} else UI_.Info("Компилятор не выбран");
|
||||
} else UI.Info("Компилятор не выбран");
|
||||
});
|
||||
BPickOptions.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
Pass<String> pass = Global.mainModule.getPass(PassCode.PickCompilerOptions);
|
||||
if (pass.Do(compiler)) {
|
||||
UI_.TrySelect(cbFlags, pass.target);
|
||||
UI.TrySelect(cbFlags, pass.target);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -58,7 +58,7 @@ public class ModuleAnchestorFields implements DialogFields {
|
||||
cbCompilers.addActionListener(e -> {
|
||||
if (cbCompilers.getSelectedItem() instanceof Compiler) {
|
||||
Compiler compiler = ((Compiler) cbCompilers.getSelectedItem());
|
||||
UI_.TrySelect(cbCommands,
|
||||
UI.TrySelect(cbCommands,
|
||||
linker ? compiler.getSpecialLinkCommand(languageName) : compiler.getSpecialCompilationCommand(languageName));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package _VisualDVM.GlobalData.Module.UI;
|
||||
import Common.CommonConstants;
|
||||
import Common.Visual.UI_;
|
||||
import Common.Visual.UI;
|
||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||
import _VisualDVM.Global;
|
||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||
@@ -93,9 +93,9 @@ public class ModuleAnchestorForm<T extends ModuleAnchestor> extends DBObjectDial
|
||||
}
|
||||
@Override
|
||||
public void fillFields() {
|
||||
UI_.TrySelect(fields.cbFlags, Result.flags);
|
||||
UI_.TrySelect(fields.cbCommands, Result.command);
|
||||
UI_.TrySelect(fields.cbCompilers, Result.getCompiler());
|
||||
UI.TrySelect(fields.cbFlags, Result.flags);
|
||||
UI.TrySelect(fields.cbCommands, Result.command);
|
||||
UI.TrySelect(fields.cbCompilers, Result.getCompiler());
|
||||
//--------------------------------------------
|
||||
fields.setListeners(Result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user