сворачивание машин v++
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
package Visual_DVM_2021.UI.Main;
|
||||
import Common.Constants;
|
||||
import Common.Current;
|
||||
import Common.Global;
|
||||
import Common.UI.TextField.StyledTextField;
|
||||
import Common.UI.UI;
|
||||
import GlobalData.Compiler.CompilerType;
|
||||
import GlobalData.Credentials.Credentials;
|
||||
import TestingSystem.Common.TestingServer;
|
||||
import TestingSystem.DVM.DVMPackage.DVMPackage;
|
||||
import TestingSystem.DVM.DVMTasks.DVMRunTask;
|
||||
@@ -55,6 +57,7 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
private JPanel compilersPanel;
|
||||
private JPanel machinesPanel;
|
||||
private JPanel usersPanel;
|
||||
private JPanel credentialsPanel;
|
||||
private JPanel testsRunTasksBackground;
|
||||
private JCheckBox filterFinished;
|
||||
private JButton bTest;
|
||||
@@ -81,6 +84,9 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
);
|
||||
//--->>>
|
||||
RefreshTabsNames();
|
||||
if (Global.properties.collapseCredentials) {
|
||||
CollapseCredentials();
|
||||
}
|
||||
//-
|
||||
SC50.setLeftComponent(dvmTestingRunMaster.getContent());
|
||||
SC50.setRightComponent(dvmTestingRunSlave.getContent());
|
||||
@@ -115,6 +121,8 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
Global.testingServer.db.sapforConfigurations.ShowUI();
|
||||
Global.testingServer.db.dvmRunTasks.ShowUI();
|
||||
//---
|
||||
RestoreLastCredentials();
|
||||
//---
|
||||
if (Global.properties.AutoCheckTesting)
|
||||
TestingServer.TimerOn();
|
||||
}
|
||||
@@ -213,7 +221,7 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
dvmTestingRunMaster.ApplyObject(master);
|
||||
dvmTestingRunSlave.ApplyObject(slave);
|
||||
dvmTestingRunMaster.DoComparePass(true);
|
||||
// testingTabs.setSelectedIndex(1);
|
||||
// testingTabs.setSelectedIndex(1);
|
||||
}
|
||||
@Override
|
||||
public void CompareSapforPackages(SapforPackage master, SapforPackage slave) {
|
||||
@@ -222,10 +230,38 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
sapforPackageTreeMaster.DoComparePass();
|
||||
testingTabs.setSelectedIndex(3);
|
||||
}
|
||||
@Override
|
||||
public void CollapseCredentials() {
|
||||
UI.Clear(credentialsPanel);
|
||||
credentialsPanel.add(UI.credentialsBar);
|
||||
SC71.setDividerLocation(30);
|
||||
SC71.setDividerSize(0);
|
||||
//SC71.setEnabled(false);
|
||||
credentialsPanel.revalidate();
|
||||
credentialsPanel.repaint();
|
||||
}
|
||||
@Override
|
||||
public void ExpandCredentials() {
|
||||
UI.Clear(credentialsPanel);
|
||||
credentialsPanel.add(SC18);
|
||||
SC71.setDividerLocation(200);
|
||||
//SC71.setEnabled(true);
|
||||
SC71.setDividerSize(3);
|
||||
credentialsPanel.revalidate();
|
||||
credentialsPanel.repaint();
|
||||
}
|
||||
@Override
|
||||
public void SwitchCredentials(boolean flag) {
|
||||
if (flag) {
|
||||
ExpandCredentials();
|
||||
} else {
|
||||
CollapseCredentials();
|
||||
}
|
||||
Global.properties.collapseCredentials = !flag;
|
||||
Global.properties.Update();
|
||||
}
|
||||
|
||||
/*
|
||||
public void RestoreLastCredentials() {
|
||||
|
||||
Credentials credentials = (Credentials) Current.get(Current.Credentials);
|
||||
if (credentials.machine_id != Constants.Nan) {
|
||||
if (Global.db.machines.containsKey(credentials.machine_id)) {
|
||||
@@ -267,5 +303,4 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user