Доделал восстановление позиции разделителя при распахивании области.

This commit is contained in:
2024-03-21 00:15:41 +03:00
parent 34df30fcd5
commit a707ceaabd
4 changed files with 10 additions and 32 deletions

View File

@@ -106,7 +106,6 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
inlineForm = new TreeForm(InlineTree.class);
inlineForm2 = new TreeForm(InlineTree2.class);
}
@Override
public void RefreshProjectFiles() {
filesForm.Refresh();
@@ -168,7 +167,7 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
@Override
public void ShowNoFile() {
// projectTabs.setTitleAt(0, "Файл: -");
projectTabs.setTabComponentAt(0, new TabToolBar("Файл: -"){
projectTabs.setTabComponentAt(0, new TabToolBar("Файл: -") {
@Override
public void leftMouseAction() {
projectTabs.setSelectedIndex(0);
@@ -283,7 +282,7 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
UI.getVersionsWindow().getContent(),
"Версии", 5);
}
private void InstallDebugPanel(){
private void InstallDebugPanel() {
projectTabs.insertTab("",
Utils.getIcon("/icons/Command.png"),
UI.getDebugWindow().getContent(),
@@ -296,14 +295,16 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
//--
@Override
public void CollapseProjectTrees() {
Global.db.splitters.get("SC3").position = SC3.getDividerLocation();
//---
UI.Clear(projectBackground);
projectBackground.add(fileBackground);
projectBackground.updateUI();
}
@Override
public void ExpandProjectTrees() {
SC3.setLeftComponent(fileBackground);
projectBackground.add(SC3);
projectBackground.updateUI();
SC3.setDividerLocation(Global.db.splitters.get("SC3").position);
SC3.updateUI();
}
}