no message

This commit is contained in:
2024-10-08 15:32:39 +03:00
parent 18ceb04325
commit e7939713e7
24 changed files with 82 additions and 155 deletions

104
.idea/workspace.xml generated
View File

@@ -7,96 +7,28 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment=""> <list default="true" id="e42177c3-2328-4b27-8a01-35779b2beb99" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/src/Common/Database/VisualiserDatabase.java" afterDir="false" /> <change afterPath="$PROJECT_DIR$/src/Common/Mode.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common/Utils/CommonUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Utils/CommonUtils.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Common/Utils/CommonUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Utils/CommonUtils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common/Utils/Loggable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Utils/Loggable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/FastAccessMenuBar/FastAccessMenuBar.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/FastAccessMenuBar/FastAccessMenuBar.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Common_old/Current.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/Current.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/MainMenuBar/LastOpenedProjectsMenu.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/MainMenuBar/LastOpenedProjectsMenu.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Common_old/GlobalProperties.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/GlobalProperties.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/MainMenuBar/VisualiserSettingsMenu/VisualiserSettingsMenu.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/MainMenuBar/VisualiserSettingsMenu/VisualiserSettingsMenu.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/ProjectMenuBar/ProjectSettingsMenu.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/ProjectMenuBar/ProjectSettingsMenu.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/SettingsSubmenu.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/SettingsSubmenu.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/UI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/UI.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Common_old/UI/UI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/UI.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Windows/Form.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Windows/Form.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/GlobalData/Grid/TableVisualData.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Grid/TableVisualData.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/Utils/Utils.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/Utils/Utils.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/Messages/Message.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/Messages/Message.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/DVMParameter/DVMParameterDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/DVMParameter/DVMParameterDBTable.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/Project/db_project_info.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/Project/db_project_info.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/EnvironmentValue/EnvironmentValuesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/EnvironmentValue/EnvironmentValuesDBTable.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Repository/Component/Sapfor/Sapfor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/Component/Sapfor/Sapfor.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/GlobalDatabase.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/GlobalDatabase.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/Group/Group.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/Group/Group.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Grid/GridsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Grid/TablesVisualDatasDBTable.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/MachineProcess/MachineProcess.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/MachineProcess/MachineProcess.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Machine/Machine.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Machine/Machine.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/Test/Test.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/Test/Test.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Makefile/Makefile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Makefile/Makefile.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/TestingPlanner.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/TestingPlanner.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Module/Module.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Module/Module.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforTestingPlanner.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforTestingPlanner.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Module/ModuleAnchestor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Module/ModuleAnchestor.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteVersion.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteVersion.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/RunConfiguration/RunConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/RunConfiguration/RunConfiguration.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_CreateParallelVariant.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_CreateParallelVariant.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/RunConfiguration/RunConfigurationsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/RunConfiguration/RunConfigurationsDBTable.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_ParseFilesWithOrder.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_ParseFilesWithOrder.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Tasks/CompilationTask/CompilationTask.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Tasks/CompilationTask/CompilationTask.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Tasks/RunTask/RunTask.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Tasks/RunTask/RunTask.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Tasks/Supervisor/Local/Windows/WindowsLocalCompilationSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Tasks/Supervisor/Local/Windows/WindowsLocalCompilationSupervisor.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Tasks/Supervisor/TaskSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Tasks/Supervisor/TaskSupervisor.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Tasks/Task.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Tasks/Task.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ProjectData/Files/UI/Editor/SPFEditor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/Files/UI/Editor/SPFEditor.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ProjectData/SapforData/Arrays/ArraysSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Arrays/ArraysSet.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Repository/BugReport/BugReport.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/BugReport/BugReport.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Repository/Component/Visualiser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/Component/Visualiser.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddBugReport.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddBugReport.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddCompiler.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddCompiler.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddDVMParameter.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddDVMParameter.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddEnvironmentValue.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddEnvironmentValue.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddMachine.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddMachine.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddMakefile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddMakefile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddRunConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddRunConfiguration.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AddUser.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ApplyProfile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ApplyProfile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/Compile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/Compile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DVMConvertProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DVMConvertProject.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteCompiler.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteCompiler.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteDVMParameter.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteDVMParameter.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteDebugResults.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteDebugResults.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteEnvironmentValue.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteEnvironmentValue.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteMachine.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteMachine.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteMakefile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteMakefile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteProfile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteProfile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteRunConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteRunConfiguration.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteSelectedCompilationTasks.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteSelectedCompilationTasks.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteSelectedRunTasks.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteSelectedRunTasks.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteUser.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DropFastAccess.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DropFastAccess.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DropLastProjects.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DropLastProjects.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditAccount.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditAccount.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditCompiler.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditCompiler.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditDVMParameter.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditDVMParameter.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditEnvironmentValue.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditEnvironmentValue.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditMachine.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditMachine.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditMakefile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditMakefile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditModule.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditModule.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditProfile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditProfile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditRunConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditRunConfiguration.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/EditUser.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/InitialiseUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/InitialiseUser.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/LocalInitaliseUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/LocalInitaliseUser.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/OpenCurrentProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/OpenCurrentProject.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PickCompilerEnvironments.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PickCompilerEnvironments.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/Precompilation.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/Precompilation.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ResetCurrentProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ResetCurrentProject.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/Run.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/Run.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_GetArrayDistribution.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_GetArrayDistribution.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_GetArrayDistributionOnlyAnalysis.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_GetArrayDistributionOnlyAnalysis.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SaveProfile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SaveProfile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowCompilerVersion.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowCompilerVersion.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/UpdateSetting.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/UpdateSetting.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Pass_2021.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Pass_2021.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Pass_2021.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Pass_2021.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Interface/FormWithSplitters.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Interface/FormWithSplitters.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/SapforAnalysis.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/SapforAnalysis.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/CallbackForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/CallbackForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/DebugForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/DebugForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/FileForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/FileForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/MainForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/MainForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/ProfilesFields.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/ProfilesFields.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/ProfilesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/ProfilesForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/ProjectForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/ProjectForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/SapforVersionsComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/SapforVersionsComparisonForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/TasksComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/TasksComparisonForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/TestingForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/TestingForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/VersionsComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/VersionsComparisonForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Global.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Global.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/_VisualDVM/Global.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Global.java" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
@@ -119,8 +51,8 @@
<list> <list>
<option value="FxmlFile" /> <option value="FxmlFile" />
<option value="Interface" /> <option value="Interface" />
<option value="Enum" />
<option value="Class" /> <option value="Class" />
<option value="Enum" />
</list> </list>
</option> </option>
</component> </component>

View File

@@ -34,7 +34,6 @@
"InstructionPath": "", "InstructionPath": "",
"PerformanceAnalyzerPath": "", "PerformanceAnalyzerPath": "",
"ComponentsBackUpsCount": 10, "ComponentsBackUpsCount": 10,
"TestingKernels": 64,
"AutoCheckTesting": true, "AutoCheckTesting": true,
"CheckTestingIntervalSeconds": 10, "CheckTestingIntervalSeconds": 10,
"EmailOnTestingProgress": true, "EmailOnTestingProgress": true,

10
src/Common/Mode.java Normal file
View File

@@ -0,0 +1,10 @@
package Common;
public enum Mode {
Undefined,
Normal,
Server,
Testing,
Package,
MachineQueue,
LocalMachineQueue
}

View File

@@ -1,7 +1,8 @@
package Common.Utils; package Common.Utils;
import Common.CommonConstants; import Common.CommonConstants;
import Common.Database.Database;
import Common.Database.VisualiserDatabase; import Common.Database.VisualiserDatabase;
import Common.Mode;
import Common_old.Current;
import com.google.gson.Gson; import com.google.gson.Gson;
import com.google.gson.GsonBuilder; import com.google.gson.GsonBuilder;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
@@ -23,6 +24,11 @@ import java.util.concurrent.Semaphore;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.stream.Collectors; import java.util.stream.Collectors;
public class CommonUtils { public class CommonUtils {
//Режим
public static Mode mode= Mode.Undefined;
public static boolean hasUI() {
return mode.equals(Mode.Normal);
}
//Текущая оперционная система //Текущая оперционная система
public static boolean isWindows=true; public static boolean isWindows=true;
//Домашняя папка. //Домашняя папка.

View File

@@ -1,6 +1,4 @@
package Common.Utils; package Common.Utils;
import Common.Utils.CommonUtils;
import Common_old.Current;
import Common_old.UI.DebugPrintLevel; import Common_old.UI.DebugPrintLevel;
import Common_old.UI.UI; import Common_old.UI.UI;
import Common_old.Utils.Utils; import Common_old.Utils.Utils;
@@ -42,7 +40,7 @@ public interface Loggable {
ex.printStackTrace(writer); ex.printStackTrace(writer);
writer.flush(); writer.flush();
Print(out.toString()); Print(out.toString());
if (Current.hasUI()) if (CommonUtils.hasUI())
UI.Error("Возникло исключение. Подробности в файле журнала\n" + UI.Error("Возникло исключение. Подробности в файле журнала\n" +
CommonUtils.Brackets(getLogFile().getAbsolutePath())); CommonUtils.Brackets(getLogFile().getAbsolutePath()));
} }

View File

@@ -68,7 +68,6 @@ public class DataSetControlForm extends ControlWithCurrentForm<DataTable> {
try { try {
if ((CurrentName() != null)) { if ((CurrentName() != null)) {
String tableName= CurrentName().toString(); String tableName= CurrentName().toString();
System.out.println(tableName+" savingColumns...");
Vector<String> widths = IntStream.range(0, columns.size()).mapToObj(i -> String.valueOf(control.getColumnModel().getColumn(i).getWidth())).collect(Collectors.toCollection(Vector::new)); Vector<String> widths = IntStream.range(0, columns.size()).mapToObj(i -> String.valueOf(control.getColumnModel().getColumn(i).getWidth())).collect(Collectors.toCollection(Vector::new));
String packed = String.join("|", widths); String packed = String.join("|", widths);
TableVisualData tableVisualData; TableVisualData tableVisualData;
@@ -80,7 +79,6 @@ public class DataSetControlForm extends ControlWithCurrentForm<DataTable> {
} }
tableVisualData.sizes = packed; tableVisualData.sizes = packed;
CommonUtils.db.Update(tableVisualData); CommonUtils.db.Update(tableVisualData);
System.out.println("done");
} }
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();

View File

@@ -108,10 +108,6 @@ public enum Current implements CurrentAnchestor {
SapforSettings, SapforSettings,
SapforSettingsCommand, SapforSettingsCommand,
DVMSettings; DVMSettings;
public static Mode mode;
public static boolean hasUI() {
return Current.mode.equals(Current.Mode.Normal);
}
public static boolean HasProject() { public static boolean HasProject() {
return CurrentAnchestor.get(Project) != null; return CurrentAnchestor.get(Project) != null;
} }
@@ -463,14 +459,4 @@ public enum Current implements CurrentAnchestor {
return ""; return "";
} }
} }
//---
public enum Mode {
Undefined,
Normal,
Server,
Testing,
Package,
MachineQueue,
LocalMachineQueue
}
} }

View File

@@ -26,7 +26,7 @@ public class GlobalProperties extends Properties {
} }
} }
@Expose @Expose
public Current.Mode Mode = Current.Mode.Normal; public Common.Mode Mode = Common.Mode.Normal;
@Expose @Expose
public String ServerAddress = "alex-freenas.ddns.net"; public String ServerAddress = "alex-freenas.ddns.net";
@Expose @Expose
@@ -105,8 +105,6 @@ public class GlobalProperties extends Properties {
public int ComponentsBackUpsCount = 10; public int ComponentsBackUpsCount = 10;
//- тестирование. //- тестирование.
@Expose @Expose
public int TestingKernels = 4; //число ядер для тестирования
@Expose
public boolean AutoCheckTesting = false; // проверять ли задачи тестирования при включенном визуализаторе. public boolean AutoCheckTesting = false; // проверять ли задачи тестирования при включенном визуализаторе.
@Expose @Expose
public int CheckTestingIntervalSeconds = 10; //интервал автопроверки тестирования public int CheckTestingIntervalSeconds = 10; //интервал автопроверки тестирования
@@ -159,7 +157,6 @@ public class GlobalProperties extends Properties {
InstructionPath = p.InstructionPath; InstructionPath = p.InstructionPath;
PerformanceAnalyzerPath = p.PerformanceAnalyzerPath; PerformanceAnalyzerPath = p.PerformanceAnalyzerPath;
ComponentsBackUpsCount = p.ComponentsBackUpsCount; ComponentsBackUpsCount = p.ComponentsBackUpsCount;
TestingKernels = p.TestingKernels;
AutoCheckTesting = p.AutoCheckTesting; AutoCheckTesting = p.AutoCheckTesting;
CheckTestingIntervalSeconds = p.CheckTestingIntervalSeconds; CheckTestingIntervalSeconds = p.CheckTestingIntervalSeconds;
EmailOnTestingProgress = p.EmailOnTestingProgress; EmailOnTestingProgress = p.EmailOnTestingProgress;

View File

@@ -319,7 +319,7 @@ public class UI {
} }
//--------------- //---------------
public static boolean Question(Component parent, String text) { public static boolean Question(Component parent, String text) {
return !Current.hasUI() || (JOptionPane.showConfirmDialog(parent, return !CommonUtils.hasUI() || (JOptionPane.showConfirmDialog(parent,
text + "?", text + "?",
"Подтверждение", "Подтверждение",
JOptionPane.YES_NO_OPTION, JOptionPane.YES_NO_OPTION,
@@ -330,16 +330,16 @@ public class UI {
} }
public static void Info(String message) { public static void Info(String message) {
CommonUtils.CopyToClipboard(message); CommonUtils.CopyToClipboard(message);
if (Current.hasUI()) if (CommonUtils.hasUI())
JOptionPane.showMessageDialog(getFrontWindow(), message, "", 1); JOptionPane.showMessageDialog(getFrontWindow(), message, "", 1);
} }
public static void Error(String message) { public static void Error(String message) {
CommonUtils.CopyToClipboard(message); CommonUtils.CopyToClipboard(message);
if (Current.hasUI()) if (CommonUtils.hasUI())
JOptionPane.showMessageDialog(getFrontWindow(), message, "", 0); JOptionPane.showMessageDialog(getFrontWindow(), message, "", 0);
} }
public static boolean Warning(String text) { public static boolean Warning(String text) {
return !Current.hasUI() || return !CommonUtils.hasUI() ||
JOptionPane.showConfirmDialog(getFrontWindow(), JOptionPane.showConfirmDialog(getFrontWindow(),
text + "\nВы уверены?", text + "\nВы уверены?",
"Подтверждение", "Подтверждение",

View File

@@ -9,6 +9,8 @@ import java.util.stream.Collectors;
public class TableVisualData extends DBObject { public class TableVisualData extends DBObject {
@Description("PRIMARY KEY, UNIQUE") //имя таблицы @Description("PRIMARY KEY, UNIQUE") //имя таблицы
public String name = null; public String name = null;
//todo запаковать в json (?)
@Description("DEFAULT ''") @Description("DEFAULT ''")
public String sizes = ""; //ширины столбцов запакованные через |. вводить объекты ради них нецелесообразно. public String sizes = ""; //ширины столбцов запакованные через |. вводить объекты ради них нецелесообразно.
public TableVisualData() { public TableVisualData() {

View File

@@ -1,13 +1,14 @@
package ProjectData.Messages; package ProjectData.Messages;
import Common.CurrentAnchestor; import Common.CurrentAnchestor;
import Common.Mode;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Constants; import Common_old.Constants;
import Common_old.Current; import Common_old.Current;
import _VisualDVM.Global;
import GlobalData.Settings.SettingName; import GlobalData.Settings.SettingName;
import ProjectData.SapforData.FileObject; import ProjectData.SapforData.FileObject;
import ProjectData.SapforData.FileObjectWithMessages; import ProjectData.SapforData.FileObjectWithMessages;
import Visual_DVM_2021.Passes.PassException; import Visual_DVM_2021.Passes.PassException;
import _VisualDVM.Global;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
@@ -26,7 +27,7 @@ public class Message extends FileObject {
setGroup(group_in); setGroup(group_in);
if ((group == Constants.parser_group) || if ((group == Constants.parser_group) ||
(group == Constants.compiler_group) || (group == Constants.compiler_group) ||
(Current.mode != Current.Mode.Normal)) { (CommonUtils.mode != Mode.Normal)) {
value = value_in; value = value_in;
} else { } else {
value = !Global.getSetting(SettingName.TRANSLATE_MESSAGES).toBoolean() ? value_in : decodeRussianMessage(value_in); value = !Global.getSetting(SettingName.TRANSLATE_MESSAGES).toBoolean() ? value_in : decodeRussianMessage(value_in);

View File

@@ -691,7 +691,7 @@ public class db_project_info extends DBObject {
Utils.forceDeleteWithCheck(file); Utils.forceDeleteWithCheck(file);
} }
public void CreateInterruptFile() throws Exception { public void CreateInterruptFile() throws Exception {
FileUtils.write(getInterruptFile(), Current.mode.toString()); FileUtils.write(getInterruptFile(), CommonUtils.mode.toString());
} }
public void AppendScenario(String line_in) { public void AppendScenario(String line_in) {
Scenario += (line_in + "\n"); Scenario += (line_in + "\n");

View File

@@ -351,13 +351,13 @@ public abstract class Sapfor extends OSDComponent {
for (PassCode_2021 code : getAnalysesCodes()) for (PassCode_2021 code : getAnalysesCodes())
(Pass_2021.passes.get(code)).Reset(); (Pass_2021.passes.get(code)).Reset();
//------------------------------------------------------------------------------------------>>>> пакетный режим. //------------------------------------------------------------------------------------------>>>> пакетный режим.
if (Current.hasUI()) { if (CommonUtils.hasUI()) {
Pass_2021.passes.get(PassCode_2021.Precompilation).Reset(); Pass_2021.passes.get(PassCode_2021.Precompilation).Reset();
Pass_2021.passes.get(PassCode_2021.SPF_GetGCovInfo).Reset(); Pass_2021.passes.get(PassCode_2021.SPF_GetGCovInfo).Reset();
} }
Global.enable_text_changed = false; Global.enable_text_changed = false;
Global.transformationPermission = TransformationPermission.None; Global.transformationPermission = TransformationPermission.None;
if ((Current.hasUI()) && (UI.getMainWindow() != null) && (UI.getVersionsWindow() != null)) if ((CommonUtils.hasUI()) && (UI.getMainWindow() != null) && (UI.getVersionsWindow() != null))
UI.getVersionsWindow().BlockVariants(); UI.getVersionsWindow().BlockVariants();
} }
//--------------------------------------------------------------------------->> //--------------------------------------------------------------------------->>

View File

@@ -45,7 +45,7 @@ public class Group extends riDBObject {
@Override @Override
public void select(boolean flag) { public void select(boolean flag) {
super.select(flag); super.select(flag);
if (Current.hasUI()) if (CommonUtils.hasUI())
UI.getMainWindow().ShowCheckedTestsCount(); UI.getMainWindow().ShowCheckedTestsCount();
} }
//-- //--

View File

@@ -1,13 +1,13 @@
package TestingSystem.Common.MachineProcess; package TestingSystem.Common.MachineProcess;
import Common.CommonConstants; import Common.CommonConstants;
import Common.Database.Objects.DBObject;
import Common.Mode;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Constants; import Common_old.Constants;
import Common_old.Current;
import Common.Database.Objects.DBObject;
import _VisualDVM.Global;
import Common_old.GlobalProperties; import Common_old.GlobalProperties;
import Common_old.Utils.Utils; import Common_old.Utils.Utils;
import TestingSystem.DVM.DVMPackage.DVMPackage; import TestingSystem.DVM.DVMPackage.DVMPackage;
import _VisualDVM.Global;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
import java.io.File; import java.io.File;
@@ -101,8 +101,7 @@ public class MachineProcess extends DBObject {
FileUtils.copyFile(src, supervisor); FileUtils.copyFile(src, supervisor);
//создание настроек //создание настроек
GlobalProperties properties = new GlobalProperties(Global.properties); GlobalProperties properties = new GlobalProperties(Global.properties);
properties.Mode = //isLocal()?Current.Mode.LocalMachineQueue: properties.Mode = Mode.MachineQueue;
Current.Mode.MachineQueue;
CommonUtils.jsonToFile(properties, new File(workspace, "properties")); CommonUtils.jsonToFile(properties, new File(workspace, "properties"));
Vector<String> args = new Vector<>(); Vector<String> args = new Vector<>();
args.add(CommonUtils.DQuotes(machineAddress)); args.add(CommonUtils.DQuotes(machineAddress));

View File

@@ -53,7 +53,7 @@ public class Test extends riDBObject {
@Override @Override
public void select(boolean flag) { public void select(boolean flag) {
super.select(flag); super.select(flag);
if (Current.hasUI()) if (CommonUtils.hasUI())
UI.getMainWindow().ShowCheckedTestsCount(); UI.getMainWindow().ShowCheckedTestsCount();
} }
//--- //---

View File

@@ -2,7 +2,6 @@ package TestingSystem.Common;
import Common.CommonConstants; import Common.CommonConstants;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Constants; import Common_old.Constants;
import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.Utils.Utils; import Common_old.Utils.Utils;
import GlobalData.Machine.Machine; import GlobalData.Machine.Machine;
@@ -206,7 +205,7 @@ public abstract class TestingPlanner<P extends TestingPackage> extends Repositor
} }
@Override @Override
public String getLogName() { public String getLogName() {
return Current.mode.toString(); return CommonUtils.mode.toString();
} }
}; };
CommonUtils.MainLog.ClearLog(); CommonUtils.MainLog.ClearLog();

View File

@@ -1,9 +1,8 @@
package TestingSystem.SAPFOR; package TestingSystem.SAPFOR;
import Common.CommonConstants; import Common.CommonConstants;
import Common.Mode;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Constants; import Common_old.Constants;
import Common_old.Current;
import _VisualDVM.Global;
import Common_old.GlobalProperties; import Common_old.GlobalProperties;
import Common_old.Utils.Utils; import Common_old.Utils.Utils;
import ProjectData.LanguageName; import ProjectData.LanguageName;
@@ -18,6 +17,7 @@ import TestingSystem.SAPFOR.Json.SapforTestingSet_json;
import TestingSystem.SAPFOR.SapforPackage.SapforPackage; import TestingSystem.SAPFOR.SapforPackage.SapforPackage;
import TestingSystem.SAPFOR.ServerSapfor.ServerSapfor; import TestingSystem.SAPFOR.ServerSapfor.ServerSapfor;
import TestingSystem.SAPFOR.ServerSapfor.ServerSapforState; import TestingSystem.SAPFOR.ServerSapfor.ServerSapforState;
import _VisualDVM.Global;
import javafx.util.Pair; import javafx.util.Pair;
import org.apache.commons.io.FileUtils; import org.apache.commons.io.FileUtils;
@@ -94,7 +94,7 @@ public class SapforTestingPlanner extends TestingPlanner<SapforPackage> {
FileUtils.copyFile(new File(CommonUtils.Home, "TestingSystem.jar"), visualiser); FileUtils.copyFile(new File(CommonUtils.Home, "TestingSystem.jar"), visualiser);
//создание настроек //создание настроек
GlobalProperties properties = new GlobalProperties(Global.properties); GlobalProperties properties = new GlobalProperties(Global.properties);
properties.Mode = Current.Mode.Package; properties.Mode = Mode.Package;
CommonUtils.jsonToFile(properties, new File(workspace, "properties")); CommonUtils.jsonToFile(properties, new File(workspace, "properties"));
//подготовка пакетного режима. Запустит его уже очередь. //подготовка пакетного режима. Запустит его уже очередь.
Utils.createScript(workspace, workspace, "start", "java -jar VisualSapfor.jar"); Utils.createScript(workspace, workspace, "start", "java -jar VisualSapfor.jar");

View File

@@ -21,7 +21,7 @@ public class DeleteVersion extends Pass_2021<db_project_info> {
current = (Current.getVersion() != null) && Current.getVersion().Home.equals(target.Home); current = (Current.getVersion() != null) && Current.getVersion().Home.equals(target.Home);
return true; return true;
} else { } else {
if (((target = Current.getVersion()) != null) && (!Current.hasUI() || if (((target = Current.getVersion()) != null) && (!CommonUtils.hasUI() ||
UI.Warning("Удалить " + UI.Warning("Удалить " +
((Current.HasProject() && target.Home.equals(Current.getProject().Home)) ? "текущий проект" : "версию ") ((Current.HasProject() && target.Home.equals(Current.getProject().Home)) ? "текущий проект" : "версию ")
+ CommonUtils.Brackets(target.name)))) { + CommonUtils.Brackets(target.name)))) {
@@ -39,7 +39,7 @@ public class DeleteVersion extends Pass_2021<db_project_info> {
if ((Current.getProject().Home.getAbsolutePath().startsWith(target.Home.getAbsolutePath()))) if ((Current.getProject().Home.getAbsolutePath().startsWith(target.Home.getAbsolutePath())))
passes.get(PassCode_2021.CloseCurrentProject).Do(); passes.get(PassCode_2021.CloseCurrentProject).Do();
} }
if (Current.hasUI()) { if (CommonUtils.hasUI()) {
UI.getVersionsWindow().RemoveVersionFromComparison(target); UI.getVersionsWindow().RemoveVersionFromComparison(target);
} }
} }

View File

@@ -1,10 +1,11 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common_old.Current; import Common.Mode;
import _VisualDVM.Global; import Common.Utils.CommonUtils;
import ProjectData.SapforData.Variants.ParallelVariant; import ProjectData.SapforData.Variants.ParallelVariant;
import Repository.Component.Sapfor.TransformationPermission; import Repository.Component.Sapfor.TransformationPermission;
import Visual_DVM_2021.Passes.PassCode_2021; import Visual_DVM_2021.Passes.PassCode_2021;
import Visual_DVM_2021.Passes.SapforTransformation; import Visual_DVM_2021.Passes.SapforTransformation;
import _VisualDVM.Global;
public class SPF_CreateParallelVariant extends SapforTransformation { public class SPF_CreateParallelVariant extends SapforTransformation {
ParallelVariant variant = null; ParallelVariant variant = null;
@Override @Override
@@ -65,13 +66,13 @@ public class SPF_CreateParallelVariant extends SapforTransformation {
protected void performDone() throws Exception { protected void performDone() throws Exception {
Global.transformationPermission = TransformationPermission.VariantsOnly; Global.transformationPermission = TransformationPermission.VariantsOnly;
target.migrateFilesSettings(target.last_version, true, true); target.migrateFilesSettings(target.last_version, true, true);
if (Current.hasUI()) if (CommonUtils.hasUI())
variant.UpdateStats(sapfor.getPredictorStats(), target.last_version.name); variant.UpdateStats(sapfor.getPredictorStats(), target.last_version.name);
} }
@Override @Override
protected void performFinish() throws Exception { protected void performFinish() throws Exception {
//в пакетном режиме вариант всегда один. поэтому, сообщения надо распаковать сразу. //в пакетном режиме вариант всегда один. поэтому, сообщения надо распаковать сразу.
if (Current.mode.equals(Current.Mode.Package)) if (CommonUtils.mode.equals(Mode.Package))
super.performFinish(); super.performFinish();
} }
@Override @Override

View File

@@ -111,7 +111,7 @@ public class SPF_ParseFilesWithOrder extends SapforAnalysis {
protected void performPreparation() throws Exception { protected void performPreparation() throws Exception {
super.performPreparation(); //удаление интеррупта. super.performPreparation(); //удаление интеррупта.
//------------------------------------------------------------------------------------------>>> пакетный режим. //------------------------------------------------------------------------------------------>>> пакетный режим.
if (!precompilation_done && Current.hasUI()) { if (!precompilation_done && CommonUtils.hasUI()) {
passes.get(PassCode_2021.Save).Do(); passes.get(PassCode_2021.Save).Do();
target.CleanAnalyses(); target.CleanAnalyses();
} }

View File

@@ -191,30 +191,30 @@ public class Pass_2021<T> {
//- //-
private void PerformCanNotStart() throws Exception { private void PerformCanNotStart() throws Exception {
performCanNotStart(); performCanNotStart();
if (Current.hasUI()) if (CommonUtils.hasUI())
showCanNotStart(); showCanNotStart();
} }
protected void PerformPreparation() throws Exception { protected void PerformPreparation() throws Exception {
performPreparation(); performPreparation();
if (Current.hasUI()) if (CommonUtils.hasUI())
showPreparation(); showPreparation();
} }
private void PerformFinish() throws Exception { private void PerformFinish() throws Exception {
performFinish(); performFinish();
//- //-
if (Current.hasUI()) if (CommonUtils.hasUI())
showFinish(); showFinish();
} }
private void PerformDone() throws Exception { private void PerformDone() throws Exception {
performDone(); performDone();
//- //-
if (Current.hasUI()) if (CommonUtils.hasUI())
showDone(); showDone();
} }
private void PerformFail() throws Exception { private void PerformFail() throws Exception {
performFail(); performFail();
//- //-
if (Current.hasUI()) if (CommonUtils.hasUI())
showFail(); showFail();
} }
//------ //------
@@ -298,11 +298,11 @@ public class Pass_2021<T> {
timer.Start(); timer.Start();
//-------------------------------> //------------------------------->
try { try {
if (Current.hasUI()) FocusBeforeStart(); if (CommonUtils.hasUI()) FocusBeforeStart();
if (canStart(args)) { if (canStart(args)) {
PerformPreparation(); PerformPreparation();
//todo тут должна быть вилка на анимацию? //todo тут должна быть вилка на анимацию?
if (Current.hasUI() && needsAnimation()) { if (CommonUtils.hasUI() && needsAnimation()) {
animation_sem = new Semaphore(1); animation_sem = new Semaphore(1);
animation_sem.acquire(); animation_sem.acquire();
//--- //---
@@ -386,7 +386,7 @@ public class Pass_2021<T> {
" окончен за " + timer.Print() + " окончен за " + timer.Print() +
" состояние " + CommonUtils.Brackets(state.getDescription()) " состояние " + CommonUtils.Brackets(state.getDescription())
); );
if (!Log.isEmpty() && Current.hasUI()) if (!Log.isEmpty() && CommonUtils.hasUI())
UI.Error( UI.Error(
"проход " + CommonUtils.Brackets(getDescription()) + "\n" + state.getDescription() + "\n\n" + "проход " + CommonUtils.Brackets(getDescription()) + "\n" + state.getDescription() + "\n\n" +
Log.toString()); Log.toString());
@@ -396,7 +396,7 @@ public class Pass_2021<T> {
} }
//-- //--
public void ShowSapforMessage(String message) { public void ShowSapforMessage(String message) {
if (Current.hasUI() && form != null) { if (CommonUtils.hasUI() && form != null) {
String[] data = message.split(":"); String[] data = message.split(":");
switch (data[0]) { switch (data[0]) {
case "message_1": case "message_1":

View File

@@ -1,6 +1,5 @@
package Visual_DVM_2021.Passes; package Visual_DVM_2021.Passes;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.DebugPrintLevel; import Common_old.UI.DebugPrintLevel;
import Common_old.UI.Menus_2023.PassControl; import Common_old.UI.Menus_2023.PassControl;
@@ -49,7 +48,7 @@ public class SapforAnalysis extends SapforPass {
@Override @Override
protected void PerformPreparation() throws Exception { protected void PerformPreparation() throws Exception {
//- //-
if (Current.hasUI()) if (CommonUtils.hasUI())
showPreparation(); // отображение пустых данных showPreparation(); // отображение пустых данных
//- //-
performPreparation(); //в данном случае удаление данных performPreparation(); //в данном случае удаление данных

View File

@@ -146,7 +146,7 @@ public class Global {
} }
@Override @Override
public String getLogName() { public String getLogName() {
return Current.mode.toString(); return CommonUtils.mode.toString();
} }
}; };
CommonUtils.MainLog.ClearLog(); CommonUtils.MainLog.ClearLog();
@@ -216,7 +216,7 @@ public class Global {
} }
//возможно заменить settings на properties //возможно заменить settings на properties
public static DBSetting getSetting(SettingName settingName) throws Exception { public static DBSetting getSetting(SettingName settingName) throws Exception {
switch (Current.mode) { switch (CommonUtils.mode) {
case Normal: case Normal:
return ((GlobalDatabase)CommonUtils.db).settings.get(settingName); return ((GlobalDatabase)CommonUtils.db).settings.get(settingName);
default: default:
@@ -386,10 +386,10 @@ public class Global {
System.out.println("home directory is" + CommonUtils.Brackets(CommonUtils.Home)); System.out.println("home directory is" + CommonUtils.Brackets(CommonUtils.Home));
//--- //---
SynschronizeProperties(); SynschronizeProperties();
Current.mode = properties.Mode; CommonUtils.mode = properties.Mode;
System.out.println("mode is " + Current.mode); System.out.println("mode is " + CommonUtils.mode);
try { try {
switch (Current.mode) { switch (CommonUtils.mode) {
case Normal: case Normal:
NormalMode(Integer.parseInt(args[1])); NormalMode(Integer.parseInt(args[1]));
break; break;