продолжение рефакторинга. создал предка для класса current
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
package _VisualDVM;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common_old.Constants;
|
||||
import Common_old.Current;
|
||||
@@ -275,15 +276,14 @@ public class Global {
|
||||
messagesServer = new MessagesServer();
|
||||
messagesServer.Start();
|
||||
//создание списков служебных объектов
|
||||
Current.CreateAll();
|
||||
UI.CreateAll();
|
||||
Pass_2021.CreateAll();
|
||||
//единственное меню до остальных.
|
||||
CommonUI.menuBars.put(ComponentsSet.class, new ComponentsMenuBar());
|
||||
Components = new ComponentsSet();
|
||||
Current.set(Current.ProjectView, ProjectView.Files);
|
||||
CurrentAnchestor.set(Current.ProjectView, ProjectView.Files);
|
||||
Components.put(ComponentType.Visualiser, visualiser = new Visualiser());
|
||||
Components.put(ComponentType.Sapfor_F, (Component) Current.set(Current.Sapfor, new Sapfor_F()));
|
||||
Components.put(ComponentType.Sapfor_F, (Component) CurrentAnchestor.set(Current.Sapfor, new Sapfor_F()));
|
||||
Components.put(ComponentType.Visualizer_2, visualizer_2);
|
||||
Components.put(ComponentType.PerformanceAnalyzer, performanceAnalyzer = new PerformanceAnalyzer());
|
||||
Components.put(ComponentType.Instruction, new Instruction());
|
||||
@@ -319,7 +319,7 @@ public class Global {
|
||||
ActivateDB(); //тут current getAccount; роль по умолчанию всегда неизвестна.
|
||||
///--------------
|
||||
|
||||
Current.set(Current.Account, new Account(){
|
||||
CurrentAnchestor.set(Current.Account, new Account(){
|
||||
{
|
||||
name = "M";
|
||||
email= "vmk-post@yandex.ru";
|
||||
|
||||
Reference in New Issue
Block a user