показ имени машины

This commit is contained in:
2025-02-06 21:39:19 +03:00
parent 0c2b716368
commit 407294c6ae
2 changed files with 11 additions and 4 deletions

View File

@@ -21,7 +21,13 @@ public class MachinesForm extends DataSetControlForm<Machine> {
@Override
protected void createColumns() {
AddColumns(
new ColumnInfo<Machine>("URL") {
new ColumnInfo<Machine>("имя") {
@Override
public Object getFieldAt(Machine object) {
return object.name;
}
},
new ColumnInfo<Machine>("URL") {
@Override
public Object getFieldAt(Machine object) {
return object.getURL();
@@ -34,14 +40,12 @@ public class MachinesForm extends DataSetControlForm<Machine> {
super.ShowCurrentObject();
Global.mainModule.getUI().getMainWindow().getTestingWindow().ShowCurrentCompiler();
Global.mainModule.getUI().mainMenuBar.ShowMachine(dataSource.getUI().getCurrent());
// Global.mainModule.getUI().getCredentialsMenuBar().ShowMachine();
}
@Override
protected void ShowNoCurrentObject() throws Exception {
super.ShowNoCurrentObject();
Global.mainModule.getUI().getMainWindow().getTestingWindow().ShowCurrentCompiler();
Global.mainModule.getUI().mainMenuBar.ShowNoMachine();
// Global.mainModule.getUI().getCredentialsMenuBar().ShowNoMachine();
}
@Override
public PassCode_ getDeletePassCode() {