Доделал восстановление позиции разделителя при распахивании области.
This commit is contained in:
@@ -368,11 +368,9 @@ public class FileForm implements FileWindow, FormWithSplitters {
|
||||
//--
|
||||
@Override
|
||||
public void CollapseGraphs() {
|
||||
Global.db.splitters.get("SC12").position = SC12.getDividerLocation();
|
||||
UI.Clear(editorBackground);
|
||||
editorBackground.add(editorPanel);
|
||||
content.updateUI();
|
||||
SC1.updateUI();
|
||||
SC12.updateUI();
|
||||
}
|
||||
@Override
|
||||
public void ExpandGraphs() {
|
||||
@@ -381,19 +379,13 @@ public class FileForm implements FileWindow, FormWithSplitters {
|
||||
editorBackground.add(SC12);
|
||||
//--
|
||||
SC12.setDividerLocation(Global.db.splitters.get("SC12").position);
|
||||
//--
|
||||
content.updateUI();
|
||||
SC1.updateUI();
|
||||
SC12.updateUI();
|
||||
}
|
||||
@Override
|
||||
public void CollapseMessages() {
|
||||
Global.db.splitters.get("SC1").position = SC1.getDividerLocation();
|
||||
UI.Clear(content);
|
||||
content.add(editorBackground);
|
||||
//--
|
||||
content.updateUI();
|
||||
SC1.updateUI();
|
||||
SC12.updateUI();
|
||||
}
|
||||
@Override
|
||||
public void ExpandMessages() {
|
||||
@@ -401,9 +393,6 @@ public class FileForm implements FileWindow, FormWithSplitters {
|
||||
SC1.setLeftComponent(editorBackground);
|
||||
content.add(SC1);
|
||||
SC1.setDividerLocation(Global.db.splitters.get("SC1").position);
|
||||
//--
|
||||
content.updateUI();
|
||||
SC1.updateUI();
|
||||
SC12.updateUI();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -304,6 +304,7 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
}
|
||||
@Override
|
||||
public void CollapseCredentials() {
|
||||
Global.db.splitters.get("SC71").position = SC71.getDividerLocation();
|
||||
UI.Clear(credentialsPanel);
|
||||
credentialsPanel.add(UI.credentialsBar);
|
||||
SC71.setDividerLocation(30);
|
||||
@@ -315,7 +316,7 @@ public class TestingForm implements FormWithSplitters, TestingWindow {
|
||||
public void ExpandCredentials() {
|
||||
UI.Clear(credentialsPanel);
|
||||
credentialsPanel.add(SC18);
|
||||
SC71.setDividerLocation(200);
|
||||
SC71.setDividerLocation(Global.db.splitters.get("SC71").position);
|
||||
SC71.setDividerSize(3);
|
||||
credentialsPanel.revalidate();
|
||||
credentialsPanel.repaint();
|
||||
|
||||
Reference in New Issue
Block a user