рефакторинг. вынес в обобщенную часть бд, но еще не все
This commit is contained in:
@@ -2,6 +2,7 @@ package Visual_DVM_2021.UI.Main;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common_old.Current;
|
||||
import GlobalData.GlobalDatabase;
|
||||
import _VisualDVM.Global;
|
||||
import Common_old.UI.Editor.Viewer;
|
||||
import Common_old.UI.Menus_2023.ProjectMenuBar.ProjectMenuBar;
|
||||
@@ -83,7 +84,7 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
|
||||
UI.getDebugWindow().ShowAll();
|
||||
ShowAllAnalyses();
|
||||
ShowProjectView();
|
||||
SwitchScreen(Global.db.settings.get(SettingName.SmallScreen).toBoolean());
|
||||
SwitchScreen(((GlobalDatabase)CommonUtils.db).settings.get(SettingName.SmallScreen).toBoolean());
|
||||
RefreshTabsNames();
|
||||
//--
|
||||
if (Global.properties.collapseProjectTrees)
|
||||
@@ -293,7 +294,7 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
|
||||
//--
|
||||
@Override
|
||||
public void CollapseProjectTrees() {
|
||||
Global.db.splitters.get("SC3").position = SC3.getDividerLocation();
|
||||
CommonUtils.db.splitters.get("SC3").position = SC3.getDividerLocation();
|
||||
//---
|
||||
CommonUI.Clear(projectBackground);
|
||||
projectBackground.add(fileBackground);
|
||||
@@ -302,7 +303,7 @@ public class ProjectForm implements FormWithSplitters, ProjectWindow {
|
||||
public void ExpandProjectTrees() {
|
||||
SC3.setLeftComponent(fileBackground);
|
||||
projectBackground.add(SC3);
|
||||
SC3.setDividerLocation(Global.db.splitters.get("SC3").position);
|
||||
SC3.setDividerLocation(CommonUtils.db.splitters.get("SC3").position);
|
||||
SC3.updateUI();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user