no message
This commit is contained in:
@@ -9,9 +9,7 @@ import _VisualDVM.GlobalData.Settings.SettingName;
|
||||
import _VisualDVM.Passes.PassCode;
|
||||
import _VisualDVM.ProjectData.ProjectView;
|
||||
import _VisualDVM.Repository.Component.*;
|
||||
import _VisualDVM.Repository.Component.PerformanceAnalyzer.PerformanceAnalyzer;
|
||||
import _VisualDVM.Repository.Component.Sapfor.MessagesServer;
|
||||
import _VisualDVM.Repository.Component.Sapfor.Sapfor_F;
|
||||
import _VisualDVM.Repository.Server.ComponentsServer;
|
||||
import _VisualDVM.TestingSystem.Common.TestingServer;
|
||||
import _VisualDVM.TestingSystem.DVM.RemoteDVMTestingPlanner;
|
||||
@@ -53,10 +51,6 @@ public class Global {
|
||||
public static File SapforPackagesDirectory;
|
||||
public static File MachinesDirectory;
|
||||
//------------------------------------------------------------------
|
||||
public static Visualiser visualiser = null;
|
||||
public static Visualizer_2 visualizer_2 = null;
|
||||
public static PerformanceAnalyzer performanceAnalyzer = null;
|
||||
//------------------------------------------------------------------
|
||||
public static ComponentsServer componentsServer = new ComponentsServer();
|
||||
public static TestingServer testingServer = new TestingServer();
|
||||
public static void SynschronizeProperties() {
|
||||
@@ -144,12 +138,12 @@ public class Global {
|
||||
componentsServer.db.Disconnect();
|
||||
if (testingServer.db != null)
|
||||
testingServer.db.Disconnect();
|
||||
if (visualizer_2 != null)
|
||||
visualizer_2.Shutdown();
|
||||
if (ComponentsSet.visualizer_2 != null)
|
||||
ComponentsSet.visualizer_2.Shutdown();
|
||||
if (messagesServer != null)
|
||||
messagesServer.Shutdown();
|
||||
if (performanceAnalyzer != null)
|
||||
performanceAnalyzer.Shutdown();
|
||||
if (ComponentsSet.performanceAnalyzer != null)
|
||||
ComponentsSet.performanceAnalyzer.Shutdown();
|
||||
} catch (Exception ex) {
|
||||
if (Utils_.MainLog != null) {
|
||||
Utils_.MainLog.PrintException(ex);
|
||||
@@ -185,9 +179,9 @@ public class Global {
|
||||
CheckVisualiserDirectories();
|
||||
CreateLogAtComponentsPath();
|
||||
//-
|
||||
visualizer_2 = new Visualizer_2(port);
|
||||
visualizer_2.Connect();
|
||||
visualizer_2.refreshPid();
|
||||
ComponentsSet.visualizer_2 = new Visualizer_2(port);
|
||||
ComponentsSet.visualizer_2.Connect();
|
||||
ComponentsSet.visualizer_2.refreshPid();
|
||||
//если делать раньше, то не удастся убить сервер.
|
||||
if (Utils_.ContainsCyrillic(Utils_.getHomePath())) {
|
||||
UI.Info("В пути к корневой папке " + Utils_.DQuotes(Utils_.getHomePath()) + "\n" +
|
||||
@@ -197,31 +191,19 @@ public class Global {
|
||||
}
|
||||
messagesServer = new MessagesServer();
|
||||
messagesServer.Start();
|
||||
|
||||
components = new ComponentsSet();
|
||||
mainModule.set(Current.ProjectView, ProjectView.Files);
|
||||
components.put(ComponentType.Visualiser, visualiser = new Visualiser());
|
||||
components.put(ComponentType.Sapfor_F, (Component) mainModule.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());
|
||||
//-
|
||||
components.initialVersionsCheck();
|
||||
//-
|
||||
AbstractTokenMakerFactory atmf = (AbstractTokenMakerFactory) TokenMakerFactory.getDefaultInstance();
|
||||
atmf.putMapping("text/FortranSPF", "_VisualDVM.Visual.Syntax.FortranSPFTokenMaker");
|
||||
atmf.putMapping("text/FreeFortranSPF", "_VisualDVM.Visual.Syntax.FreeFortranSPFTokenMaker");
|
||||
// FoldParserManager.get().addFoldParserMapping("text/FortranSPF", new FortranFolder()); блоки кода. todo
|
||||
//light_editor.xml-------->>
|
||||
//-------->>
|
||||
if (properties.AutoUpdateSearch)
|
||||
Global.mainModule.getPass(PassCode.GetComponentsActualVersions).Do();
|
||||
components.validateStates();
|
||||
if (components.needWindow()) {
|
||||
if (components.needChanges()) {
|
||||
boolean flag = true;
|
||||
do {
|
||||
Global.mainModule.getUI().getComponentsWindow().ShowDialog("");
|
||||
if (flag = (!components.validateStates())) {
|
||||
if (!UI.Question("Найдено " + components.bad_state + " некорректных необходимых компонент.Работа визуализатора невозможна.\n" +
|
||||
if (!UI.Question("Обнаружены некорректные компоненты.Работа визуализатора невозможна.\n" +
|
||||
"Вернуться к окну компонент"
|
||||
)) {
|
||||
UI.Info("Визуализатор завершает работу.");
|
||||
@@ -230,6 +212,14 @@ public class Global {
|
||||
}
|
||||
} while (flag);
|
||||
}
|
||||
//--
|
||||
//-
|
||||
mainModule.set(Current.ProjectView, ProjectView.Files);
|
||||
AbstractTokenMakerFactory atmf = (AbstractTokenMakerFactory) TokenMakerFactory.getDefaultInstance();
|
||||
atmf.putMapping("text/FortranSPF", "_VisualDVM.Visual.Syntax.FortranSPFTokenMaker");
|
||||
atmf.putMapping("text/FreeFortranSPF", "_VisualDVM.Visual.Syntax.FreeFortranSPFTokenMaker");
|
||||
// FoldParserManager.get().addFoldParserMapping("text/FortranSPF", new FortranFolder()); блоки кода. todo
|
||||
//light_editor.xml-------->>
|
||||
mainModule.ActivateDB();
|
||||
mainModule.set(Current.Account, new Account() {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user