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

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

5
.idea/workspace.xml generated
View File

@@ -6,7 +6,10 @@
</artifacts-to-build> </artifacts-to-build>
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="" /> <list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Machine/UI/MachinesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Machine/UI/MachinesForm.java" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />

View File

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