Сделал сворачивание через меню настроек.
This commit is contained in:
@@ -135,6 +135,9 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
Global.testingServer.db.sapforConfigurationCommands.mountUI(sapforConfigurationCommandsPanel);
|
||||
Global.testingServer.db.serverSapfors.mountUI(serverSapforsPanel);
|
||||
Global.testingServer.db.sapforPackages.mountUI(sapforPackagesPanel);
|
||||
//--
|
||||
if (Global.properties.collapseCredentials)
|
||||
CollapseCredentials();
|
||||
}
|
||||
//-
|
||||
@Override
|
||||
@@ -305,7 +308,6 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
credentialsPanel.add(UI.credentialsBar);
|
||||
SC71.setDividerLocation(30);
|
||||
SC71.setDividerSize(0);
|
||||
//SC71.setEnabled(false);
|
||||
credentialsPanel.revalidate();
|
||||
credentialsPanel.repaint();
|
||||
}
|
||||
@@ -314,19 +316,8 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user