продолжение рефакторинга. создал предка для класса current

This commit is contained in:
2024-10-08 00:39:13 +03:00
parent 3516b58127
commit d0c08a2c7e
157 changed files with 648 additions and 421 deletions

175
.idea/workspace.xml generated
View File

@@ -7,40 +7,163 @@
</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/CurrentAnchestor.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/Database/Objects/nDBObject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/Objects/nDBObject.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Common/Database/Tables/DataSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/Tables/DataSet.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common/Database/SQLITE/SQLiteDatabase.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/SQLITE/SQLiteDatabase.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/CommonUtils.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Utils/CommonUtils.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/Constants.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/Constants.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/ComboBox/StyledTextComboBox.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/Controls/StyledTextComboBox.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/ControlForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/ControlForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/ControlWithCurrentForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/ControlWithCurrentForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/DataControl.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/DataControl.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/DataControl_OLD.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/DataControl_OLD.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/DataSetControlForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Menus/SelectionTreeMenu.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Menus/SelectionTreeMenu.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/ProjectMenuBar/ProjectViewMenu.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Menus_2023/ProjectMenuBar/ProjectViewMenu.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Tables/DBObjectEditor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Tables/DBObjectEditor.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Tables/DBObjectRenderer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Tables/DBObjectRenderer.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Tables/DataTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Tables/DataTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Trees/DataTree.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Trees/DataTree.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Trees/SelectableTree.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Trees/SelectableTree.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Common_old/UI/Trees/TreeForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/UI/Trees/TreeForm.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/Utils/Utils.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common_old/Utils/Utils.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/GlobalData/Tasks/Supervisor/Local/Linux/LinuxLocalCompilationSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Tasks/Supervisor/Local/Linux/LinuxLocalCompilationSupervisor.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/GlobalData/Compiler/CompilersDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Compiler/CompilersDBTable.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/CompilerEnvironment/CompilerEnvironmentsSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/CompilerEnvironment/CompilerEnvironmentsSet.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Tasks/Supervisor/Remote/RemoteCompilationSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Tasks/Supervisor/Remote/RemoteCompilationSupervisor.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/GlobalData/CompilerOption/CompilerOptionsSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/CompilerOption/CompilerOptionsSet.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/GlobalData/DVMParameter/UI/DVMParameterFields.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/DVMParameter/UI/DVMParameterFields.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/GlobalData/FileObject/DirInfosDataSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/FileObject/DirInfosDataSet.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/GlobalData/Grid/Grid.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Grid/TableVisualData.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Grid/GridsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Grid/GridsDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Machine/MachinesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Machine/MachinesDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Makefile/MakefilesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Makefile/MakefilesDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Module/ModulesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Module/ModulesDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Module/UI/ModuleAnchestorFields.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Module/UI/ModuleAnchestorFields.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/RemoteFile/UI/RemoteFileChooser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/RemoteFile/UI/RemoteFileChooser.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/GlobalData/SapforProfile/SapforProfilesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/SapforProfile/SapforProfilesDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/SapforProfileSetting/SapforProfileSettingsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/SapforProfileSetting/SapforProfileSettingsDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Tasks/CompilationTask/CompilationTasksDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Tasks/CompilationTask/CompilationTasksDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/Tasks/RunTask/RunTasksDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/Tasks/RunTask/RunTasksDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/GlobalData/User/UsersDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/GlobalData/User/UsersDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ProjectData/DBArray/ArraysDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/DBArray/ArraysDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ProjectData/Files/ProjectFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/Files/ProjectFile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ProjectData/Files/UI/FileGraphTree.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/Files/UI/FileGraphTree.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ProjectData/Files/UI/FilesTree.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/Files/UI/FilesTree.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/ProjectData/Messages/MessagesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/Messages/MessagesDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ProjectData/Messages/Recommendations/RecommendationsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/Messages/Recommendations/RecommendationsDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ProjectData/Project/UI/VersionsTree.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/Project/UI/VersionsTree.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/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/Repository/Component/Sapfor/Sapfor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/Component/Sapfor/Sapfor.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/RepositoryClient.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/RepositoryClient.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/SapforData/Arrays/UI/DimensionsTableForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Arrays/UI/DimensionsTableForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Repository/RepositoryServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/RepositoryServer.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/SapforData/Arrays/UI/RulesTree.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Arrays/UI/RulesTree.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Repository/Server/ComponentsServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/Server/ComponentsServer.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/SapforData/Functions/UI/Graph/FunctionsGraphForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Functions/UI/Graph/FunctionsGraphForm.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/ProjectData/SapforData/Functions/UI/Graph/FunctionsGraphMenu.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Functions/UI/Graph/FunctionsGraphMenu.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/TestingServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/TestingServer.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/SapforData/Functions/UI/Graph/FunctionsGraphUI.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Functions/UI/Graph/FunctionsGraphUI.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMConfiguration/UI/ConfigurationFields.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMConfiguration/UI/ConfigurationFields.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/SapforData/Functions/UI/InlineTree.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Functions/UI/InlineTree.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/DVM/RemoteDVMTestingPlanner.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/DVM/RemoteDVMTestingPlanner.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/SapforData/Functions/UI/InlineTree2.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Functions/UI/InlineTree2.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/DVM/UserConnection.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/DVM/UserConnection.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/SapforData/Regions/RegionsSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Regions/RegionsSet.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/Json/SapforVersion_json.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/Json/SapforVersion_json.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/ProjectData/SapforData/Variants/VariantsSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/ProjectData/SapforData/Variants/VariantsSet.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/PackageModeSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/PackageModeSupervisor.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Repository/BugReport/BugReportsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/BugReport/BugReportsDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforConfiguration/UI/SapforConfigurationFields.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforConfiguration/UI/SapforConfigurationFields.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Repository/Component/ComponentsSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/Component/ComponentsSet.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/Repository/SubscriberWorkspace/SubscriberWorkspaceDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/SubscriberWorkspace/SubscriberWorkspaceDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Repository/Subscribes/SubsribersDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Repository/Subscribes/SubsribersDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/Group/GroupsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/Group/GroupsDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/Common/Test/TestDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/Common/Test/TestDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMConfiguration/DVMConfigurationDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMConfiguration/DVMConfigurationDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMPackage/DVMPackageDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMPackage/DVMPackageDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMSettings/DVMSettingsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMSettings/DVMSettingsDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMTasks/DVMRunTasksSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/DVM/DVMTasks/DVMRunTasksSet.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforConfiguration/SapforConfigurationDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforConfiguration/SapforConfigurationDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforPackage/SapforPackageDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforPackage/SapforPackageDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforSettings/SapforSettingsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforSettings/SapforSettingsDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforSettingsCommand/SapforSettingsCommandsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforSettingsCommand/SapforSettingsCommandsDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforTasksPackage/UI/SapforTasksPackageTree.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/SapforTasksPackage/UI/SapforTasksPackageTree.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/ServerSapfor/ServerSapforsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/TestingSystem/SAPFOR/ServerSapfor/ServerSapforsDBTable.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/AbortTestingPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/AbortTestingPackage.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AppendBugReportField.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/AppendBugReportField.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ApplyBugReportSettings.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ApplyBugReportSettings.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ApplyCurrentFunction.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ApplyCurrentFunction.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/CloneDVMPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CloneDVMPackage.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CloneSapforPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CloneSapforPackage.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CloseCurrentFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CloseCurrentFile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CloseCurrentProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CloseCurrentProject.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CloseProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CloseProject.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/ConvertCorrectnessTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ConvertCorrectnessTests.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestFromDirectory.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestFromDirectory.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestFromDirectory.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestFromDirectory.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestFromFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestFromFile.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestFromProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestFromProject.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestsFromFiles.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestsFromFiles.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestsGroupFromSelectedVersions.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/CreateTestsGroupFromSelectedVersions.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/DeleteDirectory.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteDirectory.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteFile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteLonelyM.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteLonelyM.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteSelectedFiles.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteSelectedFiles.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteSelectedVersions.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DeleteSelectedVersions.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/Visual_DVM_2021/Passes/All/DownloadAllBugReportsArchives.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadAllBugReportsArchives.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadDVMPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadDVMPackage.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadProject.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadProject.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadTaskTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadTaskTest.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/DownloadTest.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ExcludeFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ExcludeFile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ExportDVMPackageToExcel.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ExportDVMPackageToExcel.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ExportDVMPackageToExcel.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ExportDVMPackageToExcel.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/MakeScreenShot.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/MakeScreenShot.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/GetComponentsBackupsFromServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/GetComponentsBackupsFromServer.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/IncludeFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/IncludeFile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PrepareForModulesAssembly.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PrepareForModulesAssembly.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/OpenBugReportTestProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/OpenBugReportTestProject.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/OpenCurrentFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/OpenCurrentFile.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/OpenProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/OpenProject.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/PublishBugReport.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PublishBugReport.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PublishComponent.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PublishComponent.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PublishSapforSettingsCommand.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/PublishSapforSettingsCommand.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RemoteInitialiseUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RemoteInitialiseUser.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RemoteInitialiseUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RemoteInitialiseUser.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RemoteSingleCommand.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RemoteSingleCommand.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RenameDirectory.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RenameDirectory.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RenameFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/RenameFile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ReplaceTestProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ReplaceTestProject.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ReplaceTestsFromFiles.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ReplaceTestsFromFiles.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/ResurrectComponentFromServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ResurrectComponentFromServer.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_ChangeSpfIntervals.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_ChangeSpfIntervals.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_GetGraphFunctions.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_GetGraphFunctions.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_LoopUnionCurrent.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_LoopUnionCurrent.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_ModifyArrayDistribution.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SPF_ModifyArrayDistribution.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SaveBugReportExecutor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SaveBugReportExecutor.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SelectRemoteFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/SelectRemoteFile.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowCompilerHelp.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowCompilerHelp.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/ShowComponentChangesLog.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowComponentChangesLog.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowMakefilePreview.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowMakefilePreview.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowSapforCompilationErr.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowSapforCompilationErr.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowSapforCompilationOut.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/ShowSapforCompilationOut.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/StartSelectedDVMConfigurations.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/StartSelectedDVMConfigurations.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/StartSelectedSAPFORConfigurations.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/StartSelectedSAPFORConfigurations.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/UpdateBugReportField.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/UpdateBugReportField.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/UpdateBugReportProgress.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/All/UpdateBugReportProgress.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/CurrentComponentPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/CurrentComponentPass.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/OpenSapforVersionPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/OpenSapforVersionPass.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/OpenSapforVersionPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/OpenSapforVersionPass.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/SSH/RepositoryServerSSHPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/SSH/RepositoryServerSSHPass.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/SSH/CurrentConnectionPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/SSH/CurrentConnectionPass.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/SapforTransformation.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/SapforTransformation.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/SaveCurrentConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/SaveCurrentConfiguration.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Server/CloneServerObject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Server/CloneServerObject.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Server/DeleteServerObjects.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Server/DeleteServerObjects.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/ShowCurrentConfigurationTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/ShowCurrentConfigurationTests.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/StartTestingPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/StartTestingPackage.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Transformation.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/Passes/Transformation.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/ComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/ComparisonForm.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/SapforPackagesComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Visual_DVM_2021/UI/Main/SapforPackagesComparisonForm.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/_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" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -139,11 +262,11 @@
<recent name="C:\Users\misha\Documents\visual_sapfor_2023\src\files" /> <recent name="C:\Users\misha\Documents\visual_sapfor_2023\src\files" />
</key> </key>
<key name="MoveMembersDialog.RECENTS_KEY"> <key name="MoveMembersDialog.RECENTS_KEY">
<recent name="Common.CurrentAnchestor" />
<recent name="Common.Utils.CommonUtils" /> <recent name="Common.Utils.CommonUtils" />
<recent name="Common.CommonConstants" /> <recent name="Common.CommonConstants" />
<recent name="Common.Visual.CommonUI" /> <recent name="Common.Visual.CommonUI" />
<recent name="Common_old.Constants" /> <recent name="Common_old.Constants" />
<recent name="Common.Constants" />
</key> </key>
<key name="MoveFile.RECENT_KEYS"> <key name="MoveFile.RECENT_KEYS">
<recent name="C:\Users\misha\Documents\visual_sapfor_2023\src\_VisualDVM\Syntax" /> <recent name="C:\Users\misha\Documents\visual_sapfor_2023\src\_VisualDVM\Syntax" />

View File

@@ -0,0 +1,30 @@
package Common;
import Common.Utils.TextLog;
import Common_old.Current;
import java.util.LinkedHashMap;
public interface CurrentAnchestor {
//-
LinkedHashMap<CurrentAnchestor, Object> objects = new LinkedHashMap<>();
static Object get(CurrentAnchestor name) {
if (!objects.containsKey(name))
objects.put(name,null);
return objects.get(name);
}
static Object set(CurrentAnchestor name, Object object) {
if (objects.containsKey(name))
objects.replace(name, object);
else objects.put(name, object);
return object;
}
default String getDescription(){
return "?";
}
static boolean Check(TextLog Log, CurrentAnchestor... names) {
for (CurrentAnchestor name : names)
if (CurrentAnchestor.get(name) == null)
Log.Writeln_(name.getDescription() + " не выбран(а)");
return Log.isEmpty();
}
}

View File

@@ -1,7 +1,8 @@
package Common.Database.Tables; package Common.Database.Tables;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common.Visual.DataSetFilter; import Common.Visual.DataSetFilter;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common.Visual.DataMenuBar; import Common.Visual.DataMenuBar;
import Common_old.UI.Tables.ColumnFilter; import Common_old.UI.Tables.ColumnFilter;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -90,7 +91,6 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
ui_.Select(pk); ui_.Select(pk);
} }
} }
//столбы/ потом переименовать обратно в getUIColumnNames.сейчас так для скорости переноса.
public String[] getUIColumnNames() { public String[] getUIColumnNames() {
return new String[]{}; return new String[]{};
} }
@@ -149,25 +149,6 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
public String getSingleDescription() { public String getSingleDescription() {
return ""; return "";
} }
//времянки
public Current CurrentName() {
return Current.Undefined;
}
public boolean CheckCurrent(TextLog log) {
return Current.Check(log, CurrentName());
}
public boolean hasCurrent() {
return Current.get(CurrentName()) != null;
}
public void dropCurrent() {
Current.set(CurrentName(), null);
}
public D getCurrent() {
return (D) Current.get(CurrentName());
}
public void setCurrent(D o) {
Current.set(CurrentName(), o);
}
//- //-
public void put(Object key, D object) { public void put(Object key, D object) {
Data.put((K) key, object); Data.put((K) key, object);
@@ -220,25 +201,6 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
return Data.values().stream().filter(DBObject::isSelected).map(d -> (K) d.getPK()).collect(Collectors.toCollection(Vector::new)); return Data.values().stream().filter(DBObject::isSelected).map(d -> (K) d.getPK()).collect(Collectors.toCollection(Vector::new));
} }
//-- //--
public void SaveLastSelections() {
if (hasUI()) {
Object lastPk = null;
if ((CurrentName() != Current.Undefined) && (getCurrent() != null))
lastPk = getCurrent().getPK();
if (!selections.containsKey(getClass()))
selections.put(getClass(), lastPk);
else selections.replace(getClass(), lastPk);
}
}
public void RestoreLastSelections() {
if (hasUI()) {
Object lastPk = selections.get(getClass());
if ((CurrentName() != Current.Undefined) && (lastPk != null)) {
ui_.Select(lastPk);
}
}
}
//---
// применить значение фильтра к фильру объекта напирмер Message.filterValue = text; // применить значение фильтра к фильру объекта напирмер Message.filterValue = text;
public void changeColumnFilterValue(int columnIndex, String text) { public void changeColumnFilterValue(int columnIndex, String text) {
} }
@@ -279,13 +241,31 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
} }
return true; return true;
} }
//-- //------------------------------------------------------------------------------------
public CurrentAnchestor CurrentName() {
return null;
}
public boolean CheckCurrent(TextLog log) {
return CurrentAnchestor.Check(log, CurrentName());
}
public boolean hasCurrent() {
return CurrentAnchestor.get(CurrentName()) != null;
}
public void dropCurrent() {
CurrentAnchestor.set(CurrentName(), null);
}
public D getCurrent() {
return (D) CurrentAnchestor.get(CurrentName());
}
public void setCurrent(D o) {
CurrentAnchestor.set(CurrentName(), o);
}
public Vector<D> getCheckedOrCurrent() { public Vector<D> getCheckedOrCurrent() {
Vector<D> res = new Vector<>(); Vector<D> res = new Vector<>();
if (getCheckedCount() > 0) if (getCheckedCount() > 0)
res = getCheckedItems(); res = getCheckedItems();
else { else {
if (!CurrentName().equals(Current.Undefined)) { if (CurrentName()!=null) {
if (getCurrent() != null) { if (getCurrent() != null) {
res.add(getCurrent()); res.add(getCurrent());
} }
@@ -293,4 +273,23 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
} }
return res; return res;
} }
public void SaveLastSelections() {
if (hasUI()) {
Object lastPk = null;
if ((CurrentName() != null) && (getCurrent() != null))
lastPk = getCurrent().getPK();
if (!selections.containsKey(getClass()))
selections.put(getClass(), lastPk);
else selections.replace(getClass(), lastPk);
}
}
public void RestoreLastSelections() {
if (hasUI()) {
Object lastPk = selections.get(getClass());
if ((CurrentName() != null) && (lastPk != null)) {
ui_.Select(lastPk);
}
}
}
//-------------------------------------------------------------------------------------
} }

View File

@@ -148,7 +148,7 @@ public class CommonUtils {
.mapToObj(Character.UnicodeBlock::of) .mapToObj(Character.UnicodeBlock::of)
.anyMatch(b -> b.equals(Character.UnicodeBlock.CYRILLIC)); .anyMatch(b -> b.equals(Character.UnicodeBlock.CYRILLIC));
} }
public static boolean isDigit(String s) { public static boolean isIntegerValue(String s) {
try { try {
Integer.parseInt(s); Integer.parseInt(s);
return true; return true;
@@ -445,4 +445,7 @@ public class CommonUtils {
public static String getDateName(String name_) { public static String getDateName(String name_) {
return name_ + "_" + getDateNumber(); return name_ + "_" + getDateNumber();
} }
public static int fromBoolean(boolean flag) {
return flag ? 1 : 0;
}
} }

View File

@@ -1,4 +1,4 @@
package Common_old.UI; package Common.Visual;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import javax.swing.*; import javax.swing.*;

View File

@@ -1,4 +1,5 @@
package Common_old.UI; package Common.Visual;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import java.awt.*; import java.awt.*;
@@ -7,8 +8,8 @@ public class ControlWithCurrentForm<C extends Component> extends ControlForm<C>
super(class_in); super(class_in);
} }
//- //-
public Current CurrentName() { public CurrentAnchestor CurrentName() {
return Current.Undefined; return null;
} }
public void ShowCurrentObject() throws Exception { public void ShowCurrentObject() throws Exception {
} }

View File

@@ -1,4 +1,4 @@
package Common_old.UI.ComboBox; package Common.Visual.Controls;
import Common_old.UI.Menus.TextComboBoxMenu; import Common_old.UI.Menus.TextComboBoxMenu;
import javax.swing.*; import javax.swing.*;

View File

@@ -1,4 +1,4 @@
package Common_old.UI; package Common.Visual;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
public interface DataControl { public interface DataControl {
DBObject getRowObject(int rowIndex); //получить объект, сответствующий данной строке. DBObject getRowObject(int rowIndex); //получить объект, сответствующий данной строке.

View File

@@ -1,9 +1,10 @@
package Common_old.UI; package Common.Visual;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
public interface DataControl_OLD { public interface DataControl_OLD {
//todo скорее всего устареет. //todo скорее всего устареет.
default Current getCurrent() { default CurrentAnchestor getCurrent() {
return Current.Undefined; return null;
} }
//-? //-?
default void ShowCurrentObject() throws Exception { default void ShowCurrentObject() throws Exception {

View File

@@ -1,18 +1,18 @@
package Common_old.UI; package Common.Visual;
import Common.CommonConstants; import Common.CommonConstants;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common.Visual.CommonUI;
import Common_old.Current;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common.Database.Tables.DBTable; import Common.Database.Tables.DBTable;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import Common.Database.Tables.FKBehaviour; import Common.Database.Tables.FKBehaviour;
import Common_old.UI.UI;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.Menus.TableMenu; import Common_old.UI.Menus.TableMenu;
import Common_old.UI.Tables.ColumnInfo; import Common_old.UI.Tables.ColumnInfo;
import Common_old.UI.Tables.DataTable; import Common_old.UI.Tables.DataTable;
import Common_old.UI.Tables.Grid.GridAnchestor; import Common_old.UI.Tables.Grid.GridAnchestor;
import GlobalData.Grid.Grid; import GlobalData.Grid.TableVisualData;
import javax.swing.*; import javax.swing.*;
import javax.swing.table.TableColumn; import javax.swing.table.TableColumn;
@@ -61,24 +61,25 @@ public class DataSetControlForm extends ControlWithCurrentForm<DataTable> {
return dataSource; return dataSource;
} }
@Override @Override
public Current CurrentName() { public CurrentAnchestor CurrentName() {
return getDataSource().CurrentName(); return getDataSource().CurrentName();
} }
public void SaveColumns() { public void SaveColumns() {
if (Global.db != null) { if (Global.db != null) {
try { try {
if ((CurrentName() != Current.Undefined)) { if ((CurrentName() != null)) {
String tableName= CurrentName().toString();
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);
Grid grid; TableVisualData tableVisualData;
if (Global.db.grids.containsKey(CurrentName())) { if (Global.db.tablesVisualData.containsKey(tableName)) {
grid = Global.db.grids.get(CurrentName()); tableVisualData = Global.db.tablesVisualData.get(tableName);
} else { } else {
grid = new Grid(CurrentName()); tableVisualData = new TableVisualData(tableName);
Global.db.Insert(grid); Global.db.Insert(tableVisualData);
} }
grid.sizes = packed; tableVisualData.sizes = packed;
Global.db.Update(grid); Global.db.Update(tableVisualData);
} }
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
@@ -149,10 +150,10 @@ public class DataSetControlForm extends ControlWithCurrentForm<DataTable> {
//-----------------------------NEW------------------------------------- //-----------------------------NEW-------------------------------------
@Override @Override
public void CorrectColumnsSizes() { public void CorrectColumnsSizes() {
if ((Global.db != null) && CurrentName() != Current.Undefined && Global.db.grids.containsKey(CurrentName())) { if ((Global.db != null) && CurrentName() != null && Global.db.tablesVisualData.containsKey(CurrentName())) {
//Undefined может оказаться в таблице, например если енум устарел. Поэтому надо проверять. //Undefined может оказаться в таблице, например если енум устарел. Поэтому надо проверять.
if (!getColumnsProfile().equalsIgnoreCase(colNamesAndSizes)) { if (!getColumnsProfile().equalsIgnoreCase(colNamesAndSizes)) {
Grid grid = Global.db.grids.get(CurrentName()); TableVisualData grid = Global.db.tablesVisualData.get(CurrentName());
String[] data = grid.sizes.split("\\|"); String[] data = grid.sizes.split("\\|");
for (int i = 0; i < columns.size(); ++i) { for (int i = 0; i < columns.size(); ++i) {
if (i <= (data.length - 1)) { if (i <= (data.length - 1)) {
@@ -208,7 +209,7 @@ public class DataSetControlForm extends ControlWithCurrentForm<DataTable> {
//------------------------->> //------------------------->>
} }
}; };
if (CurrentName() != Current.Undefined) { if (CurrentName() != null) {
current_row_i = CommonConstants.Nan; current_row_i = CommonConstants.Nan;
ListSelectionModel selModel = control.getSelectionModel(); ListSelectionModel selModel = control.getSelectionModel();
selModel.addListSelectionListener(e -> { selModel.addListSelectionListener(e -> {

View File

@@ -1,7 +1,7 @@
package Common_old; package Common_old;
import Common.CurrentAnchestor;
import Common.Database.Objects.iDBObject; import Common.Database.Objects.iDBObject;
import _VisualDVM.Syntax.VisualiserTheme; import _VisualDVM.Syntax.VisualiserTheme;
import Common.Utils.TextLog;
import GlobalData.Account.Account; import GlobalData.Account.Account;
import GlobalData.Compiler.Compiler; import GlobalData.Compiler.Compiler;
import GlobalData.Machine.Machine; import GlobalData.Machine.Machine;
@@ -26,15 +26,13 @@ import Visual_DVM_2021.Passes.UI.PassForm;
import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultMutableTreeNode;
import java.io.File; import java.io.File;
import java.util.LinkedHashMap; public enum Current implements CurrentAnchestor {
public enum Current {
Undefined,
//-- //--
DVMPackage, DVMPackage,
SapforPackage, SapforPackage,
//-- //--
ServerSapfor, ServerSapfor,
SapforEtalonVersion,//самый левый пакет SapforEtalonVersion,
SapforVersion, SapforVersion,
//-- //--
//-- //--
@@ -109,159 +107,155 @@ public enum Current {
DVMRunTask, DVMRunTask,
SapforSettings, SapforSettings,
SapforSettingsCommand, SapforSettingsCommand,
DVMSettings, DVMSettings;
;
//-
private static final LinkedHashMap<Current, Object> objects = new LinkedHashMap<>();
public static Mode mode; public static Mode mode;
public static boolean hasUI() { public static boolean hasUI() {
return Current.mode.equals(Current.Mode.Normal); return Current.mode.equals(Current.Mode.Normal);
} }
public static boolean HasProject() { public static boolean HasProject() {
return get(Project) != null; return CurrentAnchestor.get(Project) != null;
} }
public static boolean HasFile() { public static boolean HasFile() {
return get(File) != null; return CurrentAnchestor.get(File) != null;
} }
public static boolean HasSelectedFile() { public static boolean HasSelectedFile() {
return get(SelectedFile) != null; return CurrentAnchestor.get(SelectedFile) != null;
} }
public static boolean HasAccount() { public static boolean HasAccount() {
return get(Account) != null; return CurrentAnchestor.get(Account) != null;
} }
public static boolean HasMachine() { public static boolean HasMachine() {
return get(Machine) != null; return CurrentAnchestor.get(Machine) != null;
} }
public static boolean HasUser() { public static boolean HasUser() {
return get(User) != null; return CurrentAnchestor.get(User) != null;
} }
public static boolean HasCompiler() { public static boolean HasCompiler() {
return get(Compiler) != null; return CurrentAnchestor.get(Compiler) != null;
} }
public static boolean HasRemoteFile() { public static boolean HasRemoteFile() {
return get(RemoteFile) != null; return CurrentAnchestor.get(RemoteFile) != null;
} }
public static boolean HasMakefile() { public static boolean HasMakefile() {
return get(Makefile) != null; return CurrentAnchestor.get(Makefile) != null;
} }
public static boolean HasRunConfiguration() { public static boolean HasRunConfiguration() {
return get(RunConfiguration) != null; return CurrentAnchestor.get(RunConfiguration) != null;
} }
public static boolean HasCompilationTask() { public static boolean HasCompilationTask() {
return get(CompilationTask) != null; return CurrentAnchestor.get(CompilationTask) != null;
} }
public static boolean HasRunTask() { public static boolean HasRunTask() {
return get(RunTask) != null; return CurrentAnchestor.get(RunTask) != null;
} }
public static boolean HasPassForm() { public static boolean HasPassForm() {
return get(PassForm) != null; return CurrentAnchestor.get(PassForm) != null;
} }
public static boolean HasProjectView() { public static boolean HasProjectView() {
return get(ProjectView) != null; return CurrentAnchestor.get(ProjectView) != null;
} }
//для быстрого доступа на чтение. слишком много на нем завязано. //для быстрого доступа на чтение. слишком много на нем завязано.
public static SapforSettings getSapforSettings() { public static SapforSettings getSapforSettings() {
return (SapforSettings) get(SapforSettings); return (SapforSettings) CurrentAnchestor.get(SapforSettings);
} }
public static boolean HasSapforSettings() { public static boolean HasSapforSettings() {
return get(SapforSettings) != null; return CurrentAnchestor.get(SapforSettings) != null;
} }
public static db_project_info getProject() { public static db_project_info getProject() {
return (db_project_info) get(Project); return (db_project_info) CurrentAnchestor.get(Project);
} }
public static DBProjectFile getFile() { public static DBProjectFile getFile() {
return (DBProjectFile) get(File); return (DBProjectFile) CurrentAnchestor.get(File);
} }
public static Repository.Component.Component getComponent() { public static Repository.Component.Component getComponent() {
return (Repository.Component.Component) get(Component); return (Repository.Component.Component) CurrentAnchestor.get(Component);
} }
public static Repository.BugReport.BugReport getBugReport() { public static Repository.BugReport.BugReport getBugReport() {
return (BugReport) get(BugReport); return (BugReport) CurrentAnchestor.get(BugReport);
} }
public static db_project_info getRoot() { public static db_project_info getRoot() {
return (db_project_info) get(Root); return (db_project_info) CurrentAnchestor.get(Root);
} }
public static boolean HasRoot() { public static boolean HasRoot() {
return get(Root) != null; return CurrentAnchestor.get(Root) != null;
} }
public static db_project_info getVersion() { public static db_project_info getVersion() {
return (db_project_info) get(Version); return (db_project_info) CurrentAnchestor.get(Version);
} }
public static Account getAccount() { public static Account getAccount() {
return (Account) get(Account); return (Account) CurrentAnchestor.get(Account);
} }
public static boolean HasSubscriber() { public static boolean HasSubscriber() {
return get(Current.Subscriber) != null; return CurrentAnchestor.get(Current.Subscriber) != null;
} }
public static Repository.Subscribes.Subscriber getSubscriber() { public static Repository.Subscribes.Subscriber getSubscriber() {
return (Subscriber) get(Current.Subscriber); return (Subscriber) CurrentAnchestor.get(Current.Subscriber);
} }
public static Machine getMachine() { public static Machine getMachine() {
return (Machine) get(Current.Machine); return (Machine) CurrentAnchestor.get(Current.Machine);
} }
public static User getUser() { public static User getUser() {
return (User) get(Current.User); return (User) CurrentAnchestor.get(Current.User);
} }
public static Compiler getCompiler() { public static Compiler getCompiler() {
return (Compiler) get(Current.Compiler); return (Compiler) CurrentAnchestor.get(Current.Compiler);
} }
public static CompilationTask getCompilationTask() { public static CompilationTask getCompilationTask() {
return (CompilationTask) get(Current.CompilationTask); return (CompilationTask) CurrentAnchestor.get(Current.CompilationTask);
} }
public static RunTask getRunTask() { public static RunTask getRunTask() {
return (RunTask) get(Current.RunTask); return (RunTask) CurrentAnchestor.get(Current.RunTask);
} }
public static RemoteFile getRemoteFile() { public static RemoteFile getRemoteFile() {
return (RemoteFile) get(Current.RemoteFile); return (RemoteFile) CurrentAnchestor.get(Current.RemoteFile);
} }
public static Makefile getMakefile() { public static Makefile getMakefile() {
return (Makefile) get(Current.Makefile); return (Makefile) CurrentAnchestor.get(Current.Makefile);
} }
public static Module getModule() { public static Module getModule() {
return (Module) get(Current.Module); return (Module) CurrentAnchestor.get(Current.Module);
} }
public static RunConfiguration getRunConfiguration() { public static RunConfiguration getRunConfiguration() {
return (RunConfiguration) get(Current.RunConfiguration); return (RunConfiguration) CurrentAnchestor.get(Current.RunConfiguration);
} }
public static Repository.Component.Sapfor.Sapfor getSapfor() { public static Repository.Component.Sapfor.Sapfor getSapfor() {
return (Repository.Component.Sapfor.Sapfor) get(Current.Sapfor); return (Repository.Component.Sapfor.Sapfor) CurrentAnchestor.get(Current.Sapfor);
} }
public static boolean HasGroup() { public static boolean HasGroup() {
return get(Current.Group) != null; return CurrentAnchestor.get(Current.Group) != null;
} }
public static TestingSystem.Common.Group.Group getGroup() { public static TestingSystem.Common.Group.Group getGroup() {
return (TestingSystem.Common.Group.Group) get(Current.Group); return (TestingSystem.Common.Group.Group) CurrentAnchestor.get(Current.Group);
} }
//-- //--
public static boolean HasConfiguration() { public static boolean HasConfiguration() {
return get(Current.DVMConfiguration) != null; return CurrentAnchestor.get(Current.DVMConfiguration) != null;
} }
public static DVMConfiguration getDVMConfiguration() { public static DVMConfiguration getDVMConfiguration() {
return (DVMConfiguration) get(Current.DVMConfiguration); return (DVMConfiguration) CurrentAnchestor.get(Current.DVMConfiguration);
} }
public static SapforConfiguration getSapforConfiguration() { public static SapforConfiguration getSapforConfiguration() {
return (TestingSystem.SAPFOR.SapforConfiguration.SapforConfiguration) get(Current.SapforConfiguration); return (TestingSystem.SAPFOR.SapforConfiguration.SapforConfiguration) CurrentAnchestor.get(Current.SapforConfiguration);
} }
//--
public static Test getTest() { public static Test getTest() {
return (TestingSystem.Common.Test.Test) get(Current.Test); return (TestingSystem.Common.Test.Test) CurrentAnchestor.get(Current.Test);
} }
public static boolean HasTest() { public static boolean HasTest() {
return get(Current.Test) != null; return CurrentAnchestor.get(Current.Test) != null;
} }
public static boolean HasVersion() { public static boolean HasVersion() {
return get(Current.Version) != null; return CurrentAnchestor.get(Current.Version) != null;
} }
public static RemoteFile getComponentServerBackup() { public static RemoteFile getComponentServerBackup() {
return (RemoteFile) get(Current.ComponentServerBackup); return (RemoteFile) CurrentAnchestor.get(Current.ComponentServerBackup);
} }
public static boolean HasComponentServerBackup() { public static boolean HasComponentServerBackup() {
return get(Current.ComponentServerBackup) != null; return CurrentAnchestor.get(Current.ComponentServerBackup) != null;
} }
//- //-
public static DefaultMutableTreeNode getProjectNode() { public static DefaultMutableTreeNode getProjectNode() {
return (DefaultMutableTreeNode) get(Current.ProjectNode); return (DefaultMutableTreeNode) CurrentAnchestor.get(Current.ProjectNode);
} }
public static DefaultMutableTreeNode getProjectCurrentParentNode() { public static DefaultMutableTreeNode getProjectCurrentParentNode() {
DefaultMutableTreeNode node = Current.getProjectNode(); DefaultMutableTreeNode node = Current.getProjectNode();
@@ -271,116 +265,100 @@ public enum Current {
return (node.getUserObject() instanceof DBProjectFile) ? (DefaultMutableTreeNode) node.getParent() : node; return (node.getUserObject() instanceof DBProjectFile) ? (DefaultMutableTreeNode) node.getParent() : node;
} }
public static File getSelectedDirectory() { public static File getSelectedDirectory() {
return (File) get(Current.SelectedDirectory); return (File) CurrentAnchestor.get(Current.SelectedDirectory);
} }
public static DBProjectFile getSelectedFile() { public static DBProjectFile getSelectedFile() {
return (DBProjectFile) get(Current.SelectedFile); return (DBProjectFile) CurrentAnchestor.get(Current.SelectedFile);
} }
//- //-
public static boolean HasBugReport() { public static boolean HasBugReport() {
return get(Current.BugReport) != null; return CurrentAnchestor.get(Current.BugReport) != null;
} }
public static PassForm getPassForm() { public static PassForm getPassForm() {
return (Visual_DVM_2021.Passes.UI.PassForm) get(Current.PassForm); return (Visual_DVM_2021.Passes.UI.PassForm) CurrentAnchestor.get(Current.PassForm);
} }
public static VisualiserTheme getTheme() { public static VisualiserTheme getTheme() {
return (VisualiserTheme) get(Current.Theme); return (VisualiserTheme) CurrentAnchestor.get(Current.Theme);
} }
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
public static ParallelRegion getParallelRegion() { public static ParallelRegion getParallelRegion() {
return (ParallelRegion) get(Current.ParallelRegion); return (ParallelRegion) CurrentAnchestor.get(Current.ParallelRegion);
} }
public static boolean HasParallelRegion() { public static boolean HasParallelRegion() {
return get(Current.ParallelRegion) != null; return CurrentAnchestor.get(Current.ParallelRegion) != null;
} }
public static boolean HasFunction() { public static boolean HasFunction() {
return get(Current.Function) != null; return CurrentAnchestor.get(Current.Function) != null;
} }
public static boolean HasSelectedFunction() { public static boolean HasSelectedFunction() {
return get(Current.SelectedFunction) != null; return CurrentAnchestor.get(Current.SelectedFunction) != null;
} }
public static FuncInfo getFunction() { public static FuncInfo getFunction() {
return (FuncInfo) get(Current.Function); return (FuncInfo) CurrentAnchestor.get(Current.Function);
} }
public static FuncInfo getSelectionFunction() { public static FuncInfo getSelectionFunction() {
return (FuncInfo) get(Current.SelectedFunction); return (FuncInfo) CurrentAnchestor.get(Current.SelectedFunction);
} }
public static boolean HasScenario() { public static boolean HasScenario() {
return get(Current.Scenario) != null; return CurrentAnchestor.get(Current.Scenario) != null;
} }
public static db_project_info getPackageVersion() { public static db_project_info getPackageVersion() {
return (db_project_info) get(Current.PackageVersion); return (db_project_info) CurrentAnchestor.get(Current.PackageVersion);
} }
public static boolean HasPackageVersion() { public static boolean HasPackageVersion() {
return get(Current.PackageVersion) != null; return CurrentAnchestor.get(Current.PackageVersion) != null;
} }
public static boolean HasSapforConfiguration() { public static boolean HasSapforConfiguration() {
return get(Current.SapforConfiguration) != null; return CurrentAnchestor.get(Current.SapforConfiguration) != null;
} }
public static ProjectData.ProjectView getProjectView() { public static ProjectData.ProjectView getProjectView() {
return (ProjectData.ProjectView) get(ProjectView); return (ProjectData.ProjectView) CurrentAnchestor.get(ProjectView);
}
public static boolean Check(TextLog Log, Current... names) {
for (Current name : names)
if (get(name) == null)
Log.Writeln_(name.getDescription() + " не выбран(а)");
return Log.isEmpty();
}
public static void CreateAll() {
for (Current c : values())
objects.put(c, null);
} }
//----------------------------------------- //-----------------------------------------
public static Object get(Current name) {
return objects.get(name);
}
public static Object set(Current name, Object object) {
objects.replace(name, object);
return object;
}
//применять только для наследников iDBObject //применять только для наследников iDBObject
public static boolean CheckID(Current name, int id) { public static boolean CheckID(Current name, int id) {
return (get(name) != null) && (((iDBObject) get(name)).id == id); return (CurrentAnchestor.get(name) != null) && (((iDBObject) CurrentAnchestor.get(name)).id == id);
} }
public static boolean HasSapforProfile() { public static boolean HasSapforProfile() {
return get(Current.SapforProfile) != null; return CurrentAnchestor.get(Current.SapforProfile) != null;
} }
public static GlobalData.SapforProfile.SapforProfile getSapforProfile() { public static GlobalData.SapforProfile.SapforProfile getSapforProfile() {
return (GlobalData.SapforProfile.SapforProfile) get(Current.SapforProfile); return (GlobalData.SapforProfile.SapforProfile) CurrentAnchestor.get(Current.SapforProfile);
} }
//сапфоры установленные на тестовый сервер. //сапфоры установленные на тестовый сервер.
public static boolean HasServerSapfor() { public static boolean HasServerSapfor() {
return get(Current.ServerSapfor) != null; return CurrentAnchestor.get(Current.ServerSapfor) != null;
} }
public static TestingSystem.SAPFOR.ServerSapfor.ServerSapfor getServerSapfor() { public static TestingSystem.SAPFOR.ServerSapfor.ServerSapfor getServerSapfor() {
return (TestingSystem.SAPFOR.ServerSapfor.ServerSapfor) get(Current.ServerSapfor); return (TestingSystem.SAPFOR.ServerSapfor.ServerSapfor) CurrentAnchestor.get(Current.ServerSapfor);
} }
public static boolean HasSubscriberWorkspace() { public static boolean HasSubscriberWorkspace() {
return get(Current.SubscriberWorkspace) != null; return CurrentAnchestor.get(Current.SubscriberWorkspace) != null;
} }
public static Repository.SubscriberWorkspace.SubscriberWorkspace getSubscriberWorkspace() { public static Repository.SubscriberWorkspace.SubscriberWorkspace getSubscriberWorkspace() {
return (Repository.SubscriberWorkspace.SubscriberWorkspace) get(Current.SubscriberWorkspace); return (Repository.SubscriberWorkspace.SubscriberWorkspace) CurrentAnchestor.get(Current.SubscriberWorkspace);
} }
//----->> //----->>
public static boolean HasDVMPackage() { public static boolean HasDVMPackage() {
return get(Current.DVMPackage) != null; return CurrentAnchestor.get(Current.DVMPackage) != null;
} }
public static TestingSystem.DVM.DVMPackage.DVMPackage getDVMPackage() { public static TestingSystem.DVM.DVMPackage.DVMPackage getDVMPackage() {
return (TestingSystem.DVM.DVMPackage.DVMPackage) get(Current.DVMPackage); return (TestingSystem.DVM.DVMPackage.DVMPackage) CurrentAnchestor.get(Current.DVMPackage);
} }
public static boolean HasSapforPackage() { public static boolean HasSapforPackage() {
return get(Current.SapforPackage) != null; return CurrentAnchestor.get(Current.SapforPackage) != null;
} }
public static TestingSystem.SAPFOR.SapforPackage.SapforPackage getSapforPackage() { public static TestingSystem.SAPFOR.SapforPackage.SapforPackage getSapforPackage() {
return (TestingSystem.SAPFOR.SapforPackage.SapforPackage) get(Current.SapforPackage); return (TestingSystem.SAPFOR.SapforPackage.SapforPackage) CurrentAnchestor.get(Current.SapforPackage);
} }
public static boolean HasDVMRunTask() { public static boolean HasDVMRunTask() {
return get(Current.DVMRunTask) != null; return CurrentAnchestor.get(Current.DVMRunTask) != null;
} }
public static TestingSystem.DVM.DVMTasks.DVMRunTask getDVMRunTask() { public static TestingSystem.DVM.DVMTasks.DVMRunTask getDVMRunTask() {
return (TestingSystem.DVM.DVMTasks.DVMRunTask) Current.get(Current.DVMRunTask); return (TestingSystem.DVM.DVMTasks.DVMRunTask) CurrentAnchestor.get(Current.DVMRunTask);
} }
//-------------------------------------------- //--------------------------------------------
@Override
public String getDescription() { public String getDescription() {
switch (this) { switch (this) {
case DVMSettings: case DVMSettings:

View File

@@ -1,4 +1,5 @@
package Common_old.UI.Menus; package Common_old.UI.Menus;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.Menus_2023.StableMenuItem; import Common_old.UI.Menus_2023.StableMenuItem;
@@ -41,7 +42,7 @@ public abstract class SelectionTreeMenu extends GraphMenu<DataTree> {
m_select_for_current.addActionListener(new AbstractAction() { m_select_for_current.addActionListener(new AbstractAction() {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
Object o = Current.get(tree.getCurrent()); Object o = CurrentAnchestor.get(tree.getCurrent());
if (o instanceof Selectable) { if (o instanceof Selectable) {
((Selectable) o).SelectAllChildren(true); ((Selectable) o).SelectAllChildren(true);
} }
@@ -54,7 +55,7 @@ public abstract class SelectionTreeMenu extends GraphMenu<DataTree> {
m_unselect_for_current.addActionListener(new AbstractAction() { m_unselect_for_current.addActionListener(new AbstractAction() {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
Object o = Current.get(tree.getCurrent()); Object o = CurrentAnchestor.get(tree.getCurrent());
if (o instanceof Selectable) { if (o instanceof Selectable) {
((Selectable) o).SelectAllChildren(false); ((Selectable) o).SelectAllChildren(false);
} }
@@ -68,7 +69,7 @@ public abstract class SelectionTreeMenu extends GraphMenu<DataTree> {
public abstract void SelectAll(boolean select); public abstract void SelectAll(boolean select);
@Override @Override
public void CheckElementsVisibility() { public void CheckElementsVisibility() {
Object current = Current.get(tree.getCurrent()); Object current = CurrentAnchestor.get(tree.getCurrent());
if ((current != null) && (current.getClass().equals(getTargetClass()))) { if ((current != null) && (current.getClass().equals(getTargetClass()))) {
String name = ((Selectable) current).getSelectionText(); String name = ((Selectable) current).getSelectionText();
m_select_for_current.setText("Выбрать всё для " + m_select_for_current.setText("Выбрать всё для " +

View File

@@ -1,4 +1,5 @@
package Common_old.UI.Menus_2023.ProjectMenuBar; package Common_old.UI.Menus_2023.ProjectMenuBar;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.Menus_2023.VisualiserMenu; import Common_old.UI.Menus_2023.VisualiserMenu;
@@ -19,7 +20,7 @@ public class ProjectViewMenu extends VisualiserMenu {
setIcon(CommonUtils.getIcon(view.getIcon())); setIcon(CommonUtils.getIcon(view.getIcon()));
setFont(Current.getTheme().Fonts.get(VisualiserFonts.TreeItalic)); setFont(Current.getTheme().Fonts.get(VisualiserFonts.TreeItalic));
addActionListener(e -> { addActionListener(e -> {
Current.set(Current.ProjectView, view); CurrentAnchestor.set(Current.ProjectView, view);
UI.getMainWindow().getProjectWindow().ShowProjectView(); UI.getMainWindow().getProjectWindow().ShowProjectView();
}); });
} }

View File

@@ -1,6 +1,6 @@
package Common_old.UI.Tables; package Common_old.UI.Tables;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common_old.UI.DataControl; import Common.Visual.DataControl;
import javax.swing.*; import javax.swing.*;
import javax.swing.event.CellEditorListener; import javax.swing.event.CellEditorListener;

View File

@@ -1,6 +1,6 @@
package Common_old.UI.Tables; package Common_old.UI.Tables;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common_old.UI.DataControl; import Common.Visual.DataControl;
import javax.swing.*; import javax.swing.*;
public abstract class DBObjectRenderer extends RendererCell<DBObject> { public abstract class DBObjectRenderer extends RendererCell<DBObject> {

View File

@@ -1,6 +1,6 @@
package Common_old.UI.Tables; package Common_old.UI.Tables;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common_old.UI.DataControl; import Common.Visual.DataControl;
import javax.swing.table.AbstractTableModel; import javax.swing.table.AbstractTableModel;
public abstract class DataTable extends StyledTable implements DataControl { public abstract class DataTable extends StyledTable implements DataControl {

View File

@@ -1,7 +1,8 @@
package Common_old.UI.Trees; package Common_old.UI.Trees;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataControl_OLD; import Common.Visual.DataControl_OLD;
import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreePath; import javax.swing.tree.TreePath;
@@ -10,8 +11,8 @@ public class DataTree extends StyledTree implements DataControl_OLD {
super(root_in); super(root_in);
} }
public void ChangeCurrentObject(DefaultMutableTreeNode node) { public void ChangeCurrentObject(DefaultMutableTreeNode node) {
if (getCurrent() != Current.Undefined) if (getCurrent() != null)
Current.set(getCurrent(), node.getUserObject()); CurrentAnchestor.set(getCurrent(), node.getUserObject());
} }
@Override @Override
public void ShowCurrentObject() throws Exception { public void ShowCurrentObject() throws Exception {

View File

@@ -1,4 +1,5 @@
package Common_old.UI.Trees; package Common_old.UI.Trees;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common.Visual.Selectable; import Common.Visual.Selectable;
@@ -9,7 +10,7 @@ public class SelectableTree extends DataTree {
} }
@Override @Override
public void LeftMouseAction1() { public void LeftMouseAction1() {
Object element = Current.get(getCurrent()); Object element = CurrentAnchestor.get(getCurrent());
if ((element instanceof Selectable)) { if ((element instanceof Selectable)) {
((Selectable) element).SwitchSelection(); ((Selectable) element).SwitchSelection();
updateUI(); updateUI();

View File

@@ -1,6 +1,6 @@
package Common_old.UI.Trees; package Common_old.UI.Trees;
import Common.Visual.CommonUI; import Common.Visual.CommonUI;
import Common_old.UI.ControlForm; import Common.Visual.ControlForm;
import java.awt.*; import java.awt.*;
public class TreeForm<C extends StyledTree> extends ControlForm<C> { public class TreeForm<C extends StyledTree> extends ControlForm<C> {

View File

@@ -1,4 +1,5 @@
package Common_old.UI; package Common_old.UI;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.Menus_2023.CredentialsBar.CredentialsBar; import Common_old.UI.Menus_2023.CredentialsBar.CredentialsBar;
@@ -240,9 +241,8 @@ public class UI {
//</editor-fold> //</editor-fold>
//<editor-fold desc="Темы(всегда создавать первыми)"> //<editor-fold desc="Темы(всегда создавать первыми)">
themes.put(VisualiserThemeName.Light, new LightVisualiserTheme()); themes.put(VisualiserThemeName.Light, new LightVisualiserTheme());
themes.put(VisualiserThemeName.Dark, new DarkVisualiserTheme());
//по умолчанию поставить светлую тему. потому что до загрузки бд работаем с таблицей компонент. //по умолчанию поставить светлую тему. потому что до загрузки бд работаем с таблицей компонент.
Current.set(Current.Theme, themes.get(VisualiserThemeName.Light)); CurrentAnchestor.set(Current.Theme, themes.get(VisualiserThemeName.Light));
//</editor-fold> //</editor-fold>
//<editor-fold desc="Объекты отрисовки и редактирования деревьев и таблиц"> //<editor-fold desc="Объекты отрисовки и редактирования деревьев и таблиц">
TableRenderers.put(RendererDate, new DateRenderer_()); TableRenderers.put(RendererDate, new DateRenderer_());

View File

@@ -558,15 +558,12 @@ public class Utils {
} }
//--- //---
for (int i = 1; i < letters.length; ++i) { for (int i = 1; i < letters.length; ++i) {
if (!(CommonUtils.isEnglishLetter(letters[i]) || letters[i] == '_' || CommonUtils.isDigit(String.valueOf(letters[i])))) { if (!(CommonUtils.isEnglishLetter(letters[i]) || letters[i] == '_' || CommonUtils.isIntegerValue(String.valueOf(letters[i])))) {
return false; return false;
} }
} }
return true; return true;
} }
public static int fromBoolean(boolean flag) {
return flag ? 1 : 0;
}
public static void keepNewFiles(File directory, int count) throws Exception { public static void keepNewFiles(File directory, int count) throws Exception {
if (count > 0) { if (count > 0) {
File[] old_ = directory.listFiles(pathname -> pathname.isFile()); File[] old_ = directory.listFiles(pathname -> pathname.isFile());

View File

@@ -2,7 +2,7 @@ package GlobalData.Compiler;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common.Visual.CommonUI; import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.UI; import Common_old.UI.UI;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common_old.Utils.Utils; import Common_old.Utils.Utils;

View File

@@ -1,6 +1,6 @@
package GlobalData.CompilerEnvironment; package GlobalData.CompilerEnvironment;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Tables.TableEditors; import Common_old.UI.Tables.TableEditors;
import Common_old.UI.Tables.TableRenderers; import Common_old.UI.Tables.TableRenderers;

View File

@@ -1,6 +1,6 @@
package GlobalData.CompilerOption; package GlobalData.CompilerOption;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Tables.TableEditors; import Common_old.UI.Tables.TableEditors;
import Common_old.UI.Tables.TableRenderers; import Common_old.UI.Tables.TableRenderers;

View File

@@ -4,7 +4,7 @@ import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common_old.Utils.Utils; import Common_old.Utils.Utils;
import GlobalData.DVMParameter.UI.DVMParameterFields; import GlobalData.DVMParameter.UI.DVMParameterFields;

View File

@@ -1,5 +1,5 @@
package GlobalData.DVMParameter.UI; package GlobalData.DVMParameter.UI;
import Common_old.UI.ComboBox.StyledTextComboBox; import Common.Visual.Controls.StyledTextComboBox;
import Common_old.UI.TextField.StyledTextField; import Common_old.UI.TextField.StyledTextField;
import Common_old.UI.Windows.Dialog.DialogFields; import Common_old.UI.Windows.Dialog.DialogFields;

View File

@@ -4,7 +4,7 @@ import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common_old.Utils.Utils; import Common_old.Utils.Utils;
import GlobalData.EnvironmentValue.UI.EnvironmentValueFields; import GlobalData.EnvironmentValue.UI.EnvironmentValueFields;

View File

@@ -1,6 +1,6 @@
package GlobalData.FileObject; package GlobalData.FileObject;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import static Common_old.UI.Tables.TableRenderers.*; import static Common_old.UI.Tables.TableRenderers.*;
public class DirInfosDataSet extends DataSet<String, DirInfo> { public class DirInfosDataSet extends DataSet<String, DirInfo> {

View File

@@ -1,4 +1,5 @@
package GlobalData; package GlobalData;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
@@ -58,7 +59,7 @@ public class GlobalDatabase extends SQLiteDatabase {
public AccountsDBTable accounts; public AccountsDBTable accounts;
public PassStatsDBTable passStats; public PassStatsDBTable passStats;
public SplittersDBTable splitters; public SplittersDBTable splitters;
public GridsDBTable grids; public GridsDBTable tablesVisualData;
//- //-
public SapforProfilesDBTable sapforProfiles = null; public SapforProfilesDBTable sapforProfiles = null;
//--------- //---------
@@ -87,18 +88,18 @@ public class GlobalDatabase extends SQLiteDatabase {
addTable(passStats = new PassStatsDBTable()); addTable(passStats = new PassStatsDBTable());
addTable(splitters = new SplittersDBTable()); addTable(splitters = new SplittersDBTable());
addTable(dvmParameters = new DVMParameterDBTable()); addTable(dvmParameters = new DVMParameterDBTable());
addTable(grids = new GridsDBTable()); addTable(tablesVisualData = new GridsDBTable());
addTable(sapforProfiles = new SapforProfilesDBTable()); addTable(sapforProfiles = new SapforProfilesDBTable());
addTable(sapforProfilesSettings = new SapforProfileSettingsDBTable()); addTable(sapforProfilesSettings = new SapforProfileSettingsDBTable());
} }
//--------------------------------------------------------------------------------- //---------------------------------------------------------------------------------
@Override @Override
public void Init() throws Exception { public void Init() throws Exception {
Current.set(Current.Account, CurrentAnchestor.set(Current.Account,
accounts.Data.isEmpty() ? Insert(new Account()) : accounts.Data.isEmpty() ? Insert(new Account()) :
accounts.getFirstRecord() accounts.getFirstRecord()
); );
Current.set(Current.Credentials, CurrentAnchestor.set(Current.Credentials,
credentials.Data.isEmpty() ? Insert(new Credentials()) : credentials.Data.isEmpty() ? Insert(new Credentials()) :
credentials.getFirstRecord()); credentials.getFirstRecord());
//настройки компонент //настройки компонент
@@ -111,7 +112,7 @@ public class GlobalDatabase extends SQLiteDatabase {
} }
public void SaveCredentials(){ public void SaveCredentials(){
try { try {
Credentials credentials = (Credentials) Current.get(Current.Credentials); Credentials credentials = (Credentials) CurrentAnchestor.get(Current.Credentials);
if (Current.HasMachine()) if (Current.HasMachine())
credentials.machine_id = Current.getMachine().id; credentials.machine_id = Current.getMachine().id;
if (Current.HasUser()) if (Current.HasUser())
@@ -130,7 +131,7 @@ public class GlobalDatabase extends SQLiteDatabase {
} }
public void UpdateCredentials() { public void UpdateCredentials() {
try { try {
Global.db.Update((DBObject) Current.get(Current.Credentials)); Global.db.Update((DBObject) CurrentAnchestor.get(Current.Credentials));
} catch (Exception ex) { } catch (Exception ex) {
CommonUtils.MainLog.PrintException(ex); CommonUtils.MainLog.PrintException(ex);
} }

View File

@@ -1,8 +1,7 @@
package GlobalData.Grid; package GlobalData.Grid;
import Common_old.Current;
import Common.Database.Tables.DBTable; import Common.Database.Tables.DBTable;
public class GridsDBTable extends DBTable<Current, Grid> { public class GridsDBTable extends DBTable<String, TableVisualData> {
public GridsDBTable() { public GridsDBTable() {
super(Current.class, Grid.class); super(String.class, TableVisualData.class);
} }
} }

View File

@@ -1,19 +1,19 @@
package GlobalData.Grid; package GlobalData.Grid;
import Common_old.Current; import Common.CurrentAnchestor;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import com.sun.org.glassfish.gmbal.Description; import com.sun.org.glassfish.gmbal.Description;
import java.util.Arrays; import java.util.Arrays;
import java.util.Vector; import java.util.Vector;
import java.util.stream.Collectors; import java.util.stream.Collectors;
public class Grid extends DBObject { public class TableVisualData extends DBObject {
@Description("PRIMARY KEY, UNIQUE") //имя таблицы @Description("PRIMARY KEY, UNIQUE") //имя таблицы
public Current name = Current.Undefined; public String name = null;
@Description("DEFAULT ''") @Description("DEFAULT ''")
public String sizes = ""; //ширины столбцов запакованные через |. вводить объекты ради них нецелесообразно. public String sizes = ""; //ширины столбцов запакованные через |. вводить объекты ради них нецелесообразно.
public Grid() { public TableVisualData() {
} }
public Grid(Current name_in) { public TableVisualData(String name_in) {
name = name_in; name = name_in;
sizes = ""; sizes = "";
} }

View File

@@ -1,7 +1,7 @@
package GlobalData.Machine; package GlobalData.Machine;
import Common.Visual.CommonUI; import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.UI; import Common_old.UI.UI;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;

View File

@@ -1,6 +1,6 @@
package GlobalData.Makefile; package GlobalData.Makefile;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common.Database.Tables.FKBehaviour; import Common.Database.Tables.FKBehaviour;

View File

@@ -1,7 +1,7 @@
package GlobalData.Module; package GlobalData.Module;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common_old.UI.Windows.Dialog.DialogFields; import Common_old.UI.Windows.Dialog.DialogFields;
import GlobalData.Module.UI.ModuleAnchestorForm; import GlobalData.Module.UI.ModuleAnchestorForm;

View File

@@ -1,7 +1,7 @@
package GlobalData.Module.UI; package GlobalData.Module.UI;
import Common.Visual.CommonUI; import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.ComboBox.StyledTextComboBox; import Common.Visual.Controls.StyledTextComboBox;
import Common_old.UI.UI; import Common_old.UI.UI;
import Common_old.UI.Windows.Dialog.DialogFields; import Common_old.UI.Windows.Dialog.DialogFields;
import GlobalData.Compiler.Compiler; import GlobalData.Compiler.Compiler;

View File

@@ -1,4 +1,5 @@
package GlobalData.RemoteFile.UI; package GlobalData.RemoteFile.UI;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -39,7 +40,7 @@ public class RemoteFileChooser extends Dialog<String, RemoteFileChooserFields> {
} }
public void Refresh(String path) { public void Refresh(String path) {
try { try {
Current.set(Current.RemoteFile, null);//сброс текущего файла перед любым обновлением. CurrentAnchestor.set(Current.RemoteFile, null);//сброс текущего файла перед любым обновлением.
fields.lCurrentFile.setText("?"); fields.lCurrentFile.setText("?");
//------------------------------------------------------------------- //-------------------------------------------------------------------
root_file = new RemoteFile(path, true); root_file = new RemoteFile(path, true);

View File

@@ -3,7 +3,7 @@ import Common.CommonConstants;
import Common.Visual.CommonUI; import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common.Database.Tables.FKBehaviour; import Common.Database.Tables.FKBehaviour;

View File

@@ -1,6 +1,6 @@
package GlobalData.SapforProfile; package GlobalData.SapforProfile;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common.Database.Tables.FKBehaviour; import Common.Database.Tables.FKBehaviour;

View File

@@ -1,7 +1,7 @@
package GlobalData.SapforProfileSetting; package GlobalData.SapforProfileSetting;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
public class SapforProfileSettingsDBTable extends iDBTable<SapforProfileSetting> { public class SapforProfileSettingsDBTable extends iDBTable<SapforProfileSetting> {
public SapforProfileSettingsDBTable() { public SapforProfileSettingsDBTable() {
super(SapforProfileSetting.class); super(SapforProfileSetting.class);

View File

@@ -1,6 +1,6 @@
package GlobalData.Tasks.CompilationTask; package GlobalData.Tasks.CompilationTask;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Menus.TableMenu; import Common_old.UI.Menus.TableMenu;
import Common_old.UI.UI; import Common_old.UI.UI;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;

View File

@@ -1,7 +1,7 @@
package GlobalData.Tasks.RunTask; package GlobalData.Tasks.RunTask;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Menus.TableMenu; import Common_old.UI.Menus.TableMenu;
import Common_old.UI.UI; import Common_old.UI.UI;
import Visual_DVM_2021.Passes.PassCode_2021; import Visual_DVM_2021.Passes.PassCode_2021;

View File

@@ -1,6 +1,6 @@
package GlobalData.User; package GlobalData.User;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Tables.TableRenderers; import Common_old.UI.Tables.TableRenderers;
import Common_old.UI.UI; import Common_old.UI.UI;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;

View File

@@ -1,7 +1,7 @@
package ProjectData.DBArray; package ProjectData.DBArray;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.DBTable; import Common.Database.Tables.DBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
public class ArraysDBTable extends DBTable<String, DBArray> { public class ArraysDBTable extends DBTable<String, DBArray> {
public ArraysDBTable() { public ArraysDBTable() {
super(String.class, DBArray.class); super(String.class, DBArray.class);

View File

@@ -87,7 +87,7 @@ public class ProjectFile extends DBObject {
fileType = FileType.forbidden; fileType = FileType.forbidden;
break; break;
case "": case "":
if (CommonUtils.isDigit(name_in)) { if (CommonUtils.isIntegerValue(name_in)) {
fileType = FileType.forbidden; fileType = FileType.forbidden;
} else { } else {
state = FileState.Excluded; state = FileState.Excluded;

View File

@@ -1,4 +1,5 @@
package ProjectData.Files.UI; package ProjectData.Files.UI;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.Trees.DataTree; import Common_old.UI.Trees.DataTree;
import Common_old.UI.Trees.TreeRenderers; import Common_old.UI.Trees.TreeRenderers;
@@ -22,7 +23,7 @@ public class FileGraphTree extends DataTree {
@Override @Override
public void ShowCurrentObject() throws Exception { public void ShowCurrentObject() throws Exception {
Current.getFile().form.EventsOff(); Current.getFile().form.EventsOff();
Object o = Current.get(getCurrent()); Object o = CurrentAnchestor.get(getCurrent());
Current.getFile().form.getEditor().gotoLine((o instanceof FileObjectWithMessages) ? (((FileObjectWithMessages) o).line) : 1); Current.getFile().form.getEditor().gotoLine((o instanceof FileObjectWithMessages) ? (((FileObjectWithMessages) o).line) : 1);
Current.getFile().form.ShowMessages(); Current.getFile().form.ShowMessages();
Current.getFile().form.EventsOn(); Current.getFile().form.EventsOn();

View File

@@ -1,4 +1,5 @@
package ProjectData.Files.UI; package ProjectData.Files.UI;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.DragDrop.FileDrop; import Common_old.UI.DragDrop.FileDrop;
@@ -47,7 +48,7 @@ public class FilesTree extends StyledTree {
new FileDrop(System.out, this, files -> { new FileDrop(System.out, this, files -> {
Pass_2021.passes.get(PassCode_2021.ImportFiles).Do(files); Pass_2021.passes.get(PassCode_2021.ImportFiles).Do(files);
}); });
Current.set(Current.File, null); CurrentAnchestor.set(Current.File, null);
} }
private static void forkFD(PassCode_2021 file_pass, PassCode_2021 folder_pass) { private static void forkFD(PassCode_2021 file_pass, PassCode_2021 folder_pass) {
DefaultMutableTreeNode node = Current.getProjectNode(); DefaultMutableTreeNode node = Current.getProjectNode();
@@ -66,16 +67,16 @@ public class FilesTree extends StyledTree {
@Override @Override
public void SelectionAction(TreePath e) { public void SelectionAction(TreePath e) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) e.getLastPathComponent(); DefaultMutableTreeNode node = (DefaultMutableTreeNode) e.getLastPathComponent();
Current.set(Current.ProjectNode, node); CurrentAnchestor.set(Current.ProjectNode, node);
Object o = node.getUserObject(); Object o = node.getUserObject();
if (o instanceof File) { if (o instanceof File) {
Current.set(Current.SelectedDirectory, o); CurrentAnchestor.set(Current.SelectedDirectory, o);
Current.set(Current.SelectedFile, null); CurrentAnchestor.set(Current.SelectedFile, null);
UI.getMainWindow().getProjectWindow().ShowNoSelectedFile(); UI.getMainWindow().getProjectWindow().ShowNoSelectedFile();
} else if (o instanceof DBProjectFile) { } else if (o instanceof DBProjectFile) {
Current.set(Current.SelectedFile, o); CurrentAnchestor.set(Current.SelectedFile, o);
File file = ((DBProjectFile) o).file; File file = ((DBProjectFile) o).file;
Current.set(Current.SelectedDirectory, file.getParentFile()); CurrentAnchestor.set(Current.SelectedDirectory, file.getParentFile());
UI.getMainWindow().getProjectWindow().ShowSelectedFile(); UI.getMainWindow().getProjectWindow().ShowSelectedFile();
} }
UI.getMainWindow().getProjectWindow().ShowSelectedDirectory(); UI.getMainWindow().getProjectWindow().ShowSelectedDirectory();

View File

@@ -1,4 +1,5 @@
package ProjectData.Messages; package ProjectData.Messages;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Constants; import Common_old.Constants;
import Common_old.Current; import Common_old.Current;
@@ -447,7 +448,7 @@ public class Message extends FileObject {
@Override @Override
public boolean isVisible() { public boolean isVisible() {
if (Current.HasFile() && Current.getFile().name.equals(file)) { if (Current.HasFile() && Current.getFile().name.equals(file)) {
Object o = Current.get(Current.FileGraphElement); Object o = CurrentAnchestor.get(Current.FileGraphElement);
return !(o instanceof FileObjectWithMessages) || ((FileObjectWithMessages) o).HasMessage(this); return !(o instanceof FileObjectWithMessages) || ((FileObjectWithMessages) o).HasMessage(this);
} else return false; } else return false;
} }

View File

@@ -2,7 +2,7 @@ package ProjectData.Messages;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Tables.ColumnFilter; import Common_old.UI.Tables.ColumnFilter;
import Common_old.UI.Tables.TableRenderers; import Common_old.UI.Tables.TableRenderers;

View File

@@ -1,7 +1,7 @@
package ProjectData.Messages.Recommendations; package ProjectData.Messages.Recommendations;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Tables.TableRenderers; import Common_old.UI.Tables.TableRenderers;
import GlobalData.Settings.SettingName; import GlobalData.Settings.SettingName;
import Visual_DVM_2021.Passes.PassCode_2021; import Visual_DVM_2021.Passes.PassCode_2021;

View File

@@ -1,4 +1,5 @@
package ProjectData.Project.UI; package ProjectData.Project.UI;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.Menus.GraphMenu; import Common_old.UI.Menus.GraphMenu;
@@ -50,7 +51,7 @@ public class VersionsTree extends DataTree {
public void LeftMouseAction1() { public void LeftMouseAction1() {
if (Global.versions_multiselection) { if (Global.versions_multiselection) {
// только если есть режим выбора версий. // только если есть режим выбора версий.
Object element = Current.get(getCurrent()); Object element = CurrentAnchestor.get(getCurrent());
if ((element instanceof Selectable)) { if ((element instanceof Selectable)) {
((Selectable) element).SwitchSelection(); ((Selectable) element).SwitchSelection();
updateUI(); updateUI();

View File

@@ -1,5 +1,6 @@
package ProjectData.Project; package ProjectData.Project;
import Common.CommonConstants; import Common.CommonConstants;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Constants; import Common_old.Constants;
import Common_old.Current; import Common_old.Current;
@@ -311,7 +312,7 @@ public class db_project_info extends DBObject {
} }
public boolean IsMCopy() { public boolean IsMCopy() {
String lname = name.toLowerCase(); String lname = name.toLowerCase();
return (lname.startsWith("m") && CommonUtils.isDigit(lname.substring(1))); return (lname.startsWith("m") && CommonUtils.isIntegerValue(lname.substring(1)));
} }
public String getTitle() { public String getTitle() {
return name + " " + CommonUtils.DQuotes(description); return name + " " + CommonUtils.DQuotes(description);
@@ -432,8 +433,8 @@ public class db_project_info extends DBObject {
db.ResetAI(MessageWarning.class); db.ResetAI(MessageWarning.class);
db.ResetAI(MessageRecommendation.class); db.ResetAI(MessageRecommendation.class);
//- //-
Current.set(Current.Function, null); CurrentAnchestor.set(Current.Function, null);
Current.set(Current.SelectedFunction, null); CurrentAnchestor.set(Current.SelectedFunction, null);
} }
public void CleanVersions() throws Exception { public void CleanVersions() throws Exception {
node.removeAllChildren(); node.removeAllChildren();
@@ -845,7 +846,7 @@ public class db_project_info extends DBObject {
for (String key_ : versions.keySet()) { for (String key_ : versions.keySet()) {
String[] data_ = key_.split(letter); String[] data_ = key_.split(letter);
String last = data_[data_.length - 1]; String last = data_[data_.length - 1];
if (CommonUtils.isDigit(last)) { if (CommonUtils.isIntegerValue(last)) {
int vn = Integer.parseInt(last); int vn = Integer.parseInt(last);
if (vn > max_vn) if (vn > max_vn)
max_vn = vn; max_vn = vn;
@@ -1066,7 +1067,7 @@ public class db_project_info extends DBObject {
target.Close(); target.Close();
} }
public void undoLastTransformation() throws Exception { public void undoLastTransformation() throws Exception {
Current.set(Current.Version, null); CurrentAnchestor.set(Current.Version, null);
//--- //---
UI.getVersionsWindow().getVersionsForm().getTree().RemoveNode(last_version.node); UI.getVersionsWindow().getVersionsForm().getTree().RemoveNode(last_version.node);
Utils.forceDeleteWithCheck(last_version.Home); Utils.forceDeleteWithCheck(last_version.Home);

View File

@@ -2,7 +2,7 @@ package ProjectData.SapforData.Arrays;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import GlobalData.Settings.SettingName; import GlobalData.Settings.SettingName;
import Visual_DVM_2021.Passes.PassCode_2021; import Visual_DVM_2021.Passes.PassCode_2021;
import Visual_DVM_2021.Passes.Pass_2021; import Visual_DVM_2021.Passes.Pass_2021;

View File

@@ -1,7 +1,7 @@
package ProjectData.SapforData.Arrays.UI; package ProjectData.SapforData.Arrays.UI;
import Common.Visual.CommonUI; import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.ControlForm; import Common.Visual.ControlForm;
import Common_old.UI.Tables.Grid.GridAnchestor; import Common_old.UI.Tables.Grid.GridAnchestor;
import Common_old.UI.Tables.StyledTable; import Common_old.UI.Tables.StyledTable;
import Common_old.UI.UI; import Common_old.UI.UI;

View File

@@ -1,4 +1,5 @@
package ProjectData.SapforData.Arrays.UI; package ProjectData.SapforData.Arrays.UI;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.Menus.GraphMenu; import Common_old.UI.Menus.GraphMenu;
import Common_old.UI.Trees.StyledTree; import Common_old.UI.Trees.StyledTree;
@@ -15,7 +16,7 @@ public class RulesTree extends StyledTree {
setRootVisible(false); setRootVisible(false);
expandRow(0); expandRow(0);
ExpandAll(); ExpandAll();
Current.set(Current.ParallelRegion, null); CurrentAnchestor.set(Current.ParallelRegion, null);
} }
@Override @Override
protected GraphMenu createMenu() { protected GraphMenu createMenu() {
@@ -38,6 +39,6 @@ public class RulesTree extends StyledTree {
region = (ParallelRegion) o; region = (ParallelRegion) o;
} }
} }
Current.set(Current.ParallelRegion, region); CurrentAnchestor.set(Current.ParallelRegion, region);
} }
} }

View File

@@ -1,7 +1,7 @@
package ProjectData.SapforData.Functions.UI.Graph; package ProjectData.SapforData.Functions.UI.Graph;
import Common.Visual.CommonUI; import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.ControlForm; import Common.Visual.ControlForm;
import com.mxgraph.swing.mxGraphComponent; import com.mxgraph.swing.mxGraphComponent;
import java.awt.*; import java.awt.*;

View File

@@ -1,4 +1,5 @@
package ProjectData.SapforData.Functions.UI.Graph; package ProjectData.SapforData.Functions.UI.Graph;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.Menus.VisualiserMenuItem; import Common_old.UI.Menus.VisualiserMenuItem;
@@ -19,7 +20,7 @@ public class FunctionsGraphMenu extends StyledPopupMenu {
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
if (Current.HasSelectedFunction()) { if (Current.HasSelectedFunction()) {
Current.set(Current.Function, Current.getSelectionFunction()); CurrentAnchestor.set(Current.Function, Current.getSelectionFunction());
UI.getMainWindow().getProjectWindow().getFunctionsWindow().ShowCurrentFunction(); UI.getMainWindow().getProjectWindow().getFunctionsWindow().ShowCurrentFunction();
if (SPF_GetGraphFunctionPositions.showByCurrentFunction) { if (SPF_GetGraphFunctionPositions.showByCurrentFunction) {
Pass_2021.passes.get(PassCode_2021.SPF_GetGraphFunctionPositions).Do(); Pass_2021.passes.get(PassCode_2021.SPF_GetGraphFunctionPositions).Do();

View File

@@ -1,4 +1,5 @@
package ProjectData.SapforData.Functions.UI.Graph; package ProjectData.SapforData.Functions.UI.Graph;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -140,7 +141,7 @@ public class FunctionsGraphUI extends mxGraph {
funcInfo = Current.getProject().allFunctions.get(name); funcInfo = Current.getProject().allFunctions.get(name);
String vertexType = funcInfo.type.toString(); String vertexType = funcInfo.type.toString();
if (SPF_GetGraphFunctionPositions.showByCurrentFunction) { if (SPF_GetGraphFunctionPositions.showByCurrentFunction) {
FuncInfo current_fi = (FuncInfo) Current.get(Current.Function); FuncInfo current_fi = (FuncInfo) CurrentAnchestor.get(Current.Function);
if ((current_fi != null) && (funcInfo.funcName.equals(current_fi.funcName))) { if ((current_fi != null) && (funcInfo.funcName.equals(current_fi.funcName))) {
vertexType = "current"; vertexType = "current";
} }
@@ -233,7 +234,7 @@ public class FunctionsGraphUI extends mxGraph {
FuncInfo fi = Current.getProject().allFunctions.get(func_name); FuncInfo fi = Current.getProject().allFunctions.get(func_name);
switch (e.getClickCount()) { switch (e.getClickCount()) {
case 1: case 1:
Current.set(Current.SelectedFunction, fi); CurrentAnchestor.set(Current.SelectedFunction, fi);
break; break;
case 2: case 2:
switch (fi.type) { switch (fi.type) {

View File

@@ -1,4 +1,5 @@
package ProjectData.SapforData.Functions.UI; package ProjectData.SapforData.Functions.UI;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.Menus.GraphMenu; import Common_old.UI.Menus.GraphMenu;
import Common_old.UI.Trees.SelectableTree; import Common_old.UI.Trees.SelectableTree;
@@ -18,7 +19,7 @@ public class InlineTree extends SelectableTree {
} }
@Override @Override
public void ShowCurrentObject() { public void ShowCurrentObject() {
Object o = Current.get(getCurrent()); Object o = CurrentAnchestor.get(getCurrent());
if (o instanceof FileObject) { if (o instanceof FileObject) {
((FileObject) o).Show(false); ((FileObject) o).Show(false);
} }

View File

@@ -1,4 +1,5 @@
package ProjectData.SapforData.Functions.UI; package ProjectData.SapforData.Functions.UI;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.Menus.GraphMenu; import Common_old.UI.Menus.GraphMenu;
import Common_old.UI.Trees.SelectableTree; import Common_old.UI.Trees.SelectableTree;
@@ -22,7 +23,7 @@ public class InlineTree2 extends SelectableTree {
} }
@Override @Override
public void ShowCurrentObject() { public void ShowCurrentObject() {
Object o = Current.get(getCurrent()); Object o = CurrentAnchestor.get(getCurrent());
if (o instanceof FileObject) { if (o instanceof FileObject) {
((FileObject) o).Show(false); ((FileObject) o).Show(false);
} }

View File

@@ -1,7 +1,7 @@
package ProjectData.SapforData.Regions; package ProjectData.SapforData.Regions;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import java.math.BigInteger; import java.math.BigInteger;

View File

@@ -1,7 +1,7 @@
package ProjectData.SapforData.Variants; package ProjectData.SapforData.Variants;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import static Common_old.UI.Tables.TableRenderers.*; import static Common_old.UI.Tables.TableRenderers.*;
public class VariantsSet extends DataSet<String, ParallelVariant> { public class VariantsSet extends DataSet<String, ParallelVariant> {

View File

@@ -1,7 +1,7 @@
package Repository.BugReport; package Repository.BugReport;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.DBTable; import Common.Database.Tables.DBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.UI; import Common_old.UI.UI;
import Visual_DVM_2021.Passes.PassCode_2021; import Visual_DVM_2021.Passes.PassCode_2021;
import Visual_DVM_2021.Passes.Pass_2021; import Visual_DVM_2021.Passes.Pass_2021;

View File

@@ -1,7 +1,7 @@
package Repository.Component; package Repository.Component;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import java.util.Vector; import java.util.Vector;

View File

@@ -1,7 +1,7 @@
package Repository.SubscriberWorkspace; package Repository.SubscriberWorkspace;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
public class SubscriberWorkspaceDBTable extends iDBTable<SubscriberWorkspace> { public class SubscriberWorkspaceDBTable extends iDBTable<SubscriberWorkspace> {
public SubscriberWorkspaceDBTable() { public SubscriberWorkspaceDBTable() {
super(SubscriberWorkspace.class); super(SubscriberWorkspace.class);

View File

@@ -1,6 +1,6 @@
package Repository.Subscribes; package Repository.Subscribes;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common.Database.Tables.DBTable; import Common.Database.Tables.DBTable;

View File

@@ -1,7 +1,7 @@
package TestingSystem.Common.Group; package TestingSystem.Common.Group;
import Common.Visual.CommonUI; import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common.Database.Tables.FKBehaviour; import Common.Database.Tables.FKBehaviour;

View File

@@ -1,7 +1,7 @@
package TestingSystem.Common.Test; package TestingSystem.Common.Test;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import TestingSystem.Common.Group.Group; import TestingSystem.Common.Group.Group;
import TestingSystem.Common.Test.UI.TestFields; import TestingSystem.Common.Test.UI.TestFields;

View File

@@ -2,7 +2,7 @@ package TestingSystem.DVM.DVMConfiguration;
import Common_old.Current; import Common_old.Current;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Tables.TableRenderers; import Common_old.UI.Tables.TableRenderers;
import Common_old.UI.VisualCache.ConfigurationCache; import Common_old.UI.VisualCache.ConfigurationCache;
import Common_old.UI.VisualCache.VisualCaches; import Common_old.UI.VisualCache.VisualCaches;

View File

@@ -2,7 +2,7 @@ package TestingSystem.DVM.DVMPackage;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.UI; import Common_old.UI.UI;
import Common_old.UI.VisualCache.PackageCache; import Common_old.UI.VisualCache.PackageCache;
import Common_old.UI.VisualCache.VisualCaches; import Common_old.UI.VisualCache.VisualCaches;

View File

@@ -2,7 +2,7 @@ package TestingSystem.DVM.DVMSettings;
import Common_old.Current; import Common_old.Current;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import TestingSystem.DVM.DVMSettings.UI.DVMSettingsFields; import TestingSystem.DVM.DVMSettings.UI.DVMSettingsFields;
public class DVMSettingsDBTable extends iDBTable<DVMSettings> { public class DVMSettingsDBTable extends iDBTable<DVMSettings> {

View File

@@ -3,7 +3,7 @@ import Common_old.Current;
import Common.Visual.DBObjectFilter; import Common.Visual.DBObjectFilter;
import Common.Database.Tables.DataSet; import Common.Database.Tables.DataSet;
import Common.Visual.DataSetFilter; import Common.Visual.DataSetFilter;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import GlobalData.Tasks.TaskState; import GlobalData.Tasks.TaskState;
import TestingSystem.DVM.DVMPackage.DVMPackage; import TestingSystem.DVM.DVMPackage.DVMPackage;

View File

@@ -1,6 +1,6 @@
package TestingSystem.SAPFOR.SapforConfiguration; package TestingSystem.SAPFOR.SapforConfiguration;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Tables.TableEditors; import Common_old.UI.Tables.TableEditors;
import Common_old.UI.Tables.TableRenderers; import Common_old.UI.Tables.TableRenderers;
import Common_old.UI.VisualCache.ConfigurationCache; import Common_old.UI.VisualCache.ConfigurationCache;

View File

@@ -1,7 +1,7 @@
package TestingSystem.SAPFOR.SapforPackage; package TestingSystem.SAPFOR.SapforPackage;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.VisualCache.PackageCache; import Common_old.UI.VisualCache.PackageCache;
import Common_old.UI.VisualCache.VisualCaches; import Common_old.UI.VisualCache.VisualCaches;
import Visual_DVM_2021.Passes.PassCode_2021; import Visual_DVM_2021.Passes.PassCode_2021;

View File

@@ -1,8 +1,8 @@
package TestingSystem.SAPFOR.SapforSettings; package TestingSystem.SAPFOR.SapforSettings;
import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import Common_old.Utils.Utils;
import Common.Database.Objects.DBObject; import Common.Database.Objects.DBObject;
import Common.Database.Tables.FKBehaviour; import Common.Database.Tables.FKBehaviour;
import Common.Database.Tables.FKCurrentObjectBehaviuor; import Common.Database.Tables.FKCurrentObjectBehaviuor;
@@ -96,10 +96,10 @@ public class SapforSettingsDBTable extends iDBTable<SapforSettings> {
@Override @Override
public void ProcessResult() { public void ProcessResult() {
Result.description = fields.tfName.getText(); Result.description = fields.tfName.getText();
Result.FREE_FORM = Utils.fromBoolean(fields.cbFREE_FORM.isSelected()); Result.FREE_FORM = CommonUtils.fromBoolean(fields.cbFREE_FORM.isSelected());
Result.KEEP_DVM_DIRECTIVES = Utils.fromBoolean(fields.cbKEEP_DVM_DIRECTIVES.isSelected()); Result.KEEP_DVM_DIRECTIVES = CommonUtils.fromBoolean(fields.cbKEEP_DVM_DIRECTIVES.isSelected());
Result.KEEP_SPF_DIRECTIVES = Utils.fromBoolean(fields.cbKEEP_SPF_DIRECTIVES.isSelected()); Result.KEEP_SPF_DIRECTIVES = CommonUtils.fromBoolean(fields.cbKEEP_SPF_DIRECTIVES.isSelected());
Result.STATIC_SHADOW_ANALYSIS = Utils.fromBoolean(fields.cbSTATIC_SHADOW_ANALYSIS.isSelected()); Result.STATIC_SHADOW_ANALYSIS = CommonUtils.fromBoolean(fields.cbSTATIC_SHADOW_ANALYSIS.isSelected());
Result.MAX_SHADOW_WIDTH = fields.sMAX_SHADOW_WIDTH.getValue(); Result.MAX_SHADOW_WIDTH = fields.sMAX_SHADOW_WIDTH.getValue();
Result.packFlags(); Result.packFlags();
} }

View File

@@ -2,7 +2,7 @@ package TestingSystem.SAPFOR.SapforSettingsCommand;
import Common.Visual.CommonUI; import Common.Visual.CommonUI;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Windows.Dialog.DBObjectDialog; import Common_old.UI.Windows.Dialog.DBObjectDialog;
import TestingSystem.SAPFOR.SapforSettings.SapforSettings; import TestingSystem.SAPFOR.SapforSettings.SapforSettings;
import TestingSystem.SAPFOR.SapforSettings.UI.SapforSettingsCommandFields; import TestingSystem.SAPFOR.SapforSettings.UI.SapforSettingsCommandFields;

View File

@@ -1,4 +1,5 @@
package TestingSystem.SAPFOR.SapforTasksPackage.UI; package TestingSystem.SAPFOR.SapforTasksPackage.UI;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.Trees.DataTree; import Common_old.UI.Trees.DataTree;
import Common_old.UI.Trees.TreeRenderers; import Common_old.UI.Trees.TreeRenderers;
@@ -59,7 +60,7 @@ public class SapforTasksPackageTree extends DataTree {
//--- //---
if (o instanceof SapforVersion_json) { if (o instanceof SapforVersion_json) {
SapforVersion_json version = (SapforVersion_json) o; SapforVersion_json version = (SapforVersion_json) o;
Current.set(current, version); CurrentAnchestor.set(current, version);
if (current.equals(Current.SapforEtalonVersion)) if (current.equals(Current.SapforEtalonVersion))
UI.getMainWindow().getTestingWindow().ShowCurrentSapforPackageVersionEtalon(); UI.getMainWindow().getTestingWindow().ShowCurrentSapforPackageVersionEtalon();
else else

View File

@@ -1,7 +1,7 @@
package TestingSystem.SAPFOR.ServerSapfor; package TestingSystem.SAPFOR.ServerSapfor;
import Common_old.Current; import Common_old.Current;
import Common.Database.Tables.iDBTable; import Common.Database.Tables.iDBTable;
import Common_old.UI.DataSetControlForm; import Common.Visual.DataSetControlForm;
import Common_old.UI.Tables.TableRenderers; import Common_old.UI.Tables.TableRenderers;
import Common_old.UI.UI; import Common_old.UI.UI;

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes; package Visual_DVM_2021.Passes;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Repository.Server.ServerCode; import Repository.Server.ServerCode;
import Repository.Server.ServerExchangeUnit_2021; import Repository.Server.ServerExchangeUnit_2021;
@@ -20,8 +21,8 @@ public abstract class AbortTestingPackage extends TestingSystemPass<TestingPacka
@Override @Override
protected boolean canStart(Object... args) throws Exception { protected boolean canStart(Object... args) throws Exception {
packageToKill = null; packageToKill = null;
if (Current.Check(Log, currentName())) { if (CurrentAnchestor.Check(Log, currentName())) {
target = (TestingPackage) Current.get(currentName()); target = (TestingPackage) CurrentAnchestor.get(currentName());
switch (target.state) { switch (target.state) {
case Done: case Done:
case Aborted: case Aborted:

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -30,7 +31,7 @@ public class AppendBugReportField extends ComponentsRepositoryPass<BugReport> {
} }
@Override @Override
protected boolean canStart(Object... args) throws Exception { protected boolean canStart(Object... args) throws Exception {
if (Current.Check(Log, Current.BugReport)) { if (CurrentAnchestor.Check(Log, Current.BugReport)) {
target = Current.getBugReport(); target = Current.getBugReport();
if (!BugReportInterface.CheckNotDraft(target,Log)) if (!BugReportInterface.CheckNotDraft(target,Log))
return false; return false;

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import GlobalData.Settings.SettingName; import GlobalData.Settings.SettingName;
import Repository.BugReport.BugReport; import Repository.BugReport.BugReport;
@@ -21,7 +22,7 @@ public class ApplyBugReportSettings extends Pass_2021<BugReport> {
} }
@Override @Override
protected boolean canStart(Object... args) { protected boolean canStart(Object... args) {
if (Current.Check(Log, Current.BugReport)) { if (CurrentAnchestor.Check(Log, Current.BugReport)) {
target = Current.getBugReport(); target = Current.getBugReport();
long vv = target.visualiser_version; long vv = target.visualiser_version;
if (vv < 500) { if (vv < 500) {

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -28,7 +29,7 @@ public class ApplyCurrentFunction extends Pass_2021 {
String func_name = ff.Result; String func_name = ff.Result;
if (Current.getProject().allFunctions.containsKey(func_name)) { if (Current.getProject().allFunctions.containsKey(func_name)) {
FuncInfo fi = Current.getProject().allFunctions.get(func_name); FuncInfo fi = Current.getProject().allFunctions.get(func_name);
Current.set(Current.Function, fi); CurrentAnchestor.set(Current.Function, fi);
return true; return true;
} else { } else {
Log.Writeln_("Проект не содержит процедуры с именем " + CommonUtils.Brackets(func_name)); Log.Writeln_("Проект не содержит процедуры с именем " + CommonUtils.Brackets(func_name));

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
import GlobalData.SapforProfile.SapforProfile; import GlobalData.SapforProfile.SapforProfile;
@@ -22,8 +23,8 @@ public class ApplyProfile extends Pass_2021<SapforProfile> {
} }
@Override @Override
protected boolean canStart(Object... args) throws Exception { protected boolean canStart(Object... args) throws Exception {
if (Current.Check(Log, Current.SapforProfile)) { if (CurrentAnchestor.Check(Log, Current.SapforProfile)) {
target = (SapforProfile) Current.get(Current.SapforProfile); target = (SapforProfile) CurrentAnchestor.get(Current.SapforProfile);
return true; return true;
} }
return false; return false;

View File

@@ -1,5 +1,6 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CommonConstants; import Common.CommonConstants;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common.Database.Database; import Common.Database.Database;
@@ -139,7 +140,7 @@ public class CloneDVMPackage extends AddObjectPass<DVMPackage> {
return false; return false;
} }
//- //-
if (!Current.Check(Log, Current.Machine, Current.User, Current.Compiler)) if (!CurrentAnchestor.Check(Log, Current.Machine, Current.User, Current.Compiler))
return false; return false;
//--- //---
if (!Current.getMachine().type.equals(MachineType.Server)) { if (!Current.getMachine().type.equals(MachineType.Server)) {

View File

@@ -1,5 +1,6 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CommonConstants; import Common.CommonConstants;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common.Database.Database; import Common.Database.Database;
@@ -81,7 +82,7 @@ public class CloneSapforPackage extends AddObjectPass<SapforPackage> {
if (!Current.getAccount().CheckRegistered(Log)) if (!Current.getAccount().CheckRegistered(Log))
return false; return false;
//-- //--
if (!Current.Check(Log, Current.ServerSapfor)) if (!CurrentAnchestor.Check(Log, Current.ServerSapfor))
return false; return false;
if (!Current.getServerSapfor().state.equals(ServerSapforState.Done)) { if (!Current.getServerSapfor().state.equals(ServerSapforState.Done)) {
Log.Writeln_("Выбранная версия SAPFOR не собрана!"); Log.Writeln_("Выбранная версия SAPFOR не собрана!");

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -35,12 +36,12 @@ public class CloseCurrentFile extends Pass_2021<DBProjectFile> {
} }
@Override @Override
protected void performDone() throws Exception { protected void performDone() throws Exception {
Current.set(Current.File, null); CurrentAnchestor.set(Current.File, null);
Current.set(Current.FileGraphElement, null); CurrentAnchestor.set(Current.FileGraphElement, null);
//- //-
Current.set(Current.Notes, null); CurrentAnchestor.set(Current.Notes, null);
Current.set(Current.Warnings, null); CurrentAnchestor.set(Current.Warnings, null);
Current.set(Current.Errors, null); CurrentAnchestor.set(Current.Errors, null);
//- //-
} }
@Override @Override

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
@@ -41,18 +42,18 @@ public class CloseCurrentProject extends Pass_2021<db_project_info> {
//-- //--
Current.getSapfor().ResetAllAnalyses(); Current.getSapfor().ResetAllAnalyses();
Current.getSapfor().cd(new File(CommonUtils.Home)); Current.getSapfor().cd(new File(CommonUtils.Home));
Current.set(Current.Project, null); CurrentAnchestor.set(Current.Project, null);
Current.set(Current.File, null); CurrentAnchestor.set(Current.File, null);
Current.set(Current.Function, null); CurrentAnchestor.set(Current.Function, null);
Current.set(Current.SelectedFunction,null); CurrentAnchestor.set(Current.SelectedFunction,null);
Current.set(Current.ProjectNode, null); CurrentAnchestor.set(Current.ProjectNode, null);
Current.set(Current.SelectedFile, null); CurrentAnchestor.set(Current.SelectedFile, null);
Current.set(Current.SelectedDirectory, null); CurrentAnchestor.set(Current.SelectedDirectory, null);
//-мб перестраховка. мб и нет. //-мб перестраховка. мб и нет.
Current.set(Current.ParallelVariant, null); CurrentAnchestor.set(Current.ParallelVariant, null);
Current.set(Current.Dimensions, null); CurrentAnchestor.set(Current.Dimensions, null);
Current.set(Current.Array, null); CurrentAnchestor.set(Current.Array, null);
Current.set(Current.DBArray, null); CurrentAnchestor.set(Current.DBArray, null);
//- //-
} }
@Override @Override

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import ProjectData.Project.db_project_info; import ProjectData.Project.db_project_info;
@@ -18,7 +19,7 @@ public class CloseProject extends Pass_2021<db_project_info> {
protected void performDone() throws Exception { protected void performDone() throws Exception {
Current.getSapfor().ResetAllAnalyses(); Current.getSapfor().ResetAllAnalyses();
Current.getSapfor().cd(new File(CommonUtils.Home)); Current.getSapfor().cd(new File(CommonUtils.Home));
Current.set(Current.Project, null); CurrentAnchestor.set(Current.Project, null);
//- //-
} }
} }

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
@@ -29,7 +30,7 @@ public class Compile extends Pass_2021<db_project_info> {
} }
@Override @Override
protected boolean canStart(Object... args) { protected boolean canStart(Object... args) {
if (Current.Check(Log, Current.Project, Current.Machine, Current.User, Current.Makefile)) { if (CurrentAnchestor.Check(Log, Current.Project, Current.Machine, Current.User, Current.Makefile)) {
target = Current.getProject(); target = Current.getProject();
subpass = null; subpass = null;
compilationTask = null; compilationTask = null;

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
import Repository.Server.ServerCode; import Repository.Server.ServerCode;
@@ -26,7 +27,7 @@ public class ConvertCorrectnessTests extends TestingSystemPass<File> {
Log.Writeln_("Вы не являетесь администратором"); Log.Writeln_("Вы не являетесь администратором");
return false; return false;
} }
if (!Current.Check(Log, Current.ServerSapfor)){ if (!CurrentAnchestor.Check(Log, Current.ServerSapfor)){
return false; return false;
} }
return UI.Warning("Загрузить полный пакет DVM тестов на корректность и производительность."); return UI.Warning("Загрузить полный пакет DVM тестов на корректность и производительность.");
@@ -38,8 +39,8 @@ public class ConvertCorrectnessTests extends TestingSystemPass<File> {
@Override @Override
protected void performPreparation() throws Exception { protected void performPreparation() throws Exception {
passes.get(PassCode_2021.CloseCurrentProject); passes.get(PassCode_2021.CloseCurrentProject);
Current.set(Current.Root, null); CurrentAnchestor.set(Current.Root, null);
Current.set(Current.Version, null); CurrentAnchestor.set(Current.Version, null);
} }
@Override @Override
protected void showPreparation() throws Exception { protected void showPreparation() throws Exception {

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Constants; import Common_old.Constants;
import Common_old.Current; import Common_old.Current;
@@ -70,7 +71,7 @@ public class CreateTestFromDirectory extends Pass_2021<Test> {
if (args.length == 0) { if (args.length == 0) {
//-- //--
from_files_chooser = true; from_files_chooser = true;
if (!Current.Check(Log, Current.Group)) if (!CurrentAnchestor.Check(Log, Current.Group))
return false; return false;
group = Current.getGroup(); group = Current.getGroup();
if (!selectFiles()) if (!selectFiles())

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import ProjectData.Files.FileState; import ProjectData.Files.FileState;
import ProjectData.Files.ProjectFile; import ProjectData.Files.ProjectFile;
@@ -14,7 +15,7 @@ public class CreateTestFromProject extends CreateTestFromDirectory {
@Override @Override
protected boolean canStart(Object... args) throws Exception { protected boolean canStart(Object... args) throws Exception {
if (args.length == 0) { if (args.length == 0) {
if (Current.Check(Log, Current.Group, Current.Project)) { if (CurrentAnchestor.Check(Log, Current.Group, Current.Project)) {
project = Current.getProject(); project = Current.getProject();
if (super.canStart(Current.getProject().Home, Current.getGroup())){ if (super.canStart(Current.getProject().Home, Current.getGroup())){
from_files_chooser = true; //чтобы опубликовал. from_files_chooser = true; //чтобы опубликовал.

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common_old.Utils.Files.VFileChooser; import Common_old.Utils.Files.VFileChooser;
import Common_old.Utils.Utils; import Common_old.Utils.Utils;
@@ -20,7 +21,7 @@ public class CreateTestsFromFiles extends PublishTests {
} }
@Override @Override
protected boolean canStart(Object... args) throws Exception { protected boolean canStart(Object... args) throws Exception {
if (Current.Check(Log, Current.Group)){ if (CurrentAnchestor.Check(Log, Current.Group)){
Utils.RestoreSelectedDirectory(fileChooser); Utils.RestoreSelectedDirectory(fileChooser);
Vector<File> files = fileChooser.ShowMultiDialog(); Vector<File> files = fileChooser.ShowMultiDialog();
if (files.isEmpty()){ if (files.isEmpty()){

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -21,7 +22,7 @@ public class CreateTestsGroupFromSelectedVersions extends PublishTests {
protected boolean canStart(Object... args) throws Exception { protected boolean canStart(Object... args) throws Exception {
target = new Vector<>(); target = new Vector<>();
//--- //---
if (Current.Check(Log, Current.Group)) { if (CurrentAnchestor.Check(Log, Current.Group)) {
group = Current.getGroup(); group = Current.getGroup();
} else } else
return false; return false;

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
@@ -39,7 +40,7 @@ public class DVMConvertProject extends ComponentsRepositoryPass<db_project_info>
version = null; version = null;
badFiles = ""; badFiles = "";
//-- //--
if (Current.Check(Log, Current.Project)) { if (CurrentAnchestor.Check(Log, Current.Project)) {
target = Current.getProject(); target = Current.getProject();
programsToConvert = target.getPrograms().get(target.languageName); programsToConvert = target.getPrograms().get(target.languageName);
programsNames = new Vector<>(); programsNames = new Vector<>();

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -54,7 +55,7 @@ public class DeleteDirectory extends ChangeFilePass {
} }
@Override @Override
protected void performDone() throws Exception { protected void performDone() throws Exception {
Current.set(Current.SelectedDirectory, null); CurrentAnchestor.set(Current.SelectedDirectory, null);
Current.set(Current.ProjectNode, null); CurrentAnchestor.set(Current.ProjectNode, null);
} }
} }

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -14,7 +15,7 @@ public class DeleteFile extends ChangeFilePass<DBProjectFile> {
@Override @Override
protected boolean canStart(Object... args) { protected boolean canStart(Object... args) {
resetArgs(); resetArgs();
return (Current.Check(Log, Current.SelectedFile)) && return (CurrentAnchestor.Check(Log, Current.SelectedFile)) &&
UI.Warning("Удалить файл " UI.Warning("Удалить файл "
+ CommonUtils.Brackets((target = Current.getSelectedFile()).name)); + CommonUtils.Brackets((target = Current.getSelectedFile()).name));
} }
@@ -31,7 +32,7 @@ public class DeleteFile extends ChangeFilePass<DBProjectFile> {
} }
@Override @Override
protected void performDone() throws Exception { protected void performDone() throws Exception {
Current.set(Current.SelectedFile, null); CurrentAnchestor.set(Current.SelectedFile, null);
Current.set(Current.ProjectNode, null); CurrentAnchestor.set(Current.ProjectNode, null);
} }
} }

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import ProjectData.Project.db_project_info; import ProjectData.Project.db_project_info;
import Visual_DVM_2021.Passes.PassCode_2021; import Visual_DVM_2021.Passes.PassCode_2021;
@@ -8,7 +9,7 @@ import java.util.Vector;
public class DeleteLonelyM extends Pass_2021<db_project_info> { public class DeleteLonelyM extends Pass_2021<db_project_info> {
@Override @Override
protected boolean canStart(Object... args) throws Exception { protected boolean canStart(Object... args) throws Exception {
if (Current.Check(Log, Current.Root)) { if (CurrentAnchestor.Check(Log, Current.Root)) {
target = Current.getRoot(); target = Current.getRoot();
return true; return true;
} }

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
import Common_old.Utils.Utils; import Common_old.Utils.Utils;
@@ -33,8 +34,8 @@ public class DeleteSelectedFiles extends Pass_2021 {
if (hasCurrent) if (hasCurrent)
passes.get(PassCode_2021.CloseCurrentFile).Do(); passes.get(PassCode_2021.CloseCurrentFile).Do();
if (hasSelected) { if (hasSelected) {
Current.set(Current.SelectedFile, null); CurrentAnchestor.set(Current.SelectedFile, null);
Current.set(Current.ProjectNode, null); CurrentAnchestor.set(Current.ProjectNode, null);
} }
} }
@Override @Override

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common_old.Current; import Common_old.Current;
import _VisualDVM.Global; import _VisualDVM.Global;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -26,7 +27,7 @@ public class DeleteSelectedVersions extends Pass_2021<Vector<db_project_info>> {
Log.Writeln_("Нажмите правую клавишу мыши, и перейдите в режим выбора версий."); Log.Writeln_("Нажмите правую клавишу мыши, и перейдите в режим выбора версий.");
return false; return false;
} }
if (!Current.Check(Log, Current.Root)) { if (!CurrentAnchestor.Check(Log, Current.Root)) {
return false; return false;
} }
Vector<db_project_info> allVersions = new Vector<>(); Vector<db_project_info> allVersions = new Vector<>();

View File

@@ -1,4 +1,5 @@
package Visual_DVM_2021.Passes.All; package Visual_DVM_2021.Passes.All;
import Common.CurrentAnchestor;
import Common.Utils.CommonUtils; import Common.Utils.CommonUtils;
import Common_old.Current; import Common_old.Current;
import Common_old.UI.UI; import Common_old.UI.UI;
@@ -50,11 +51,11 @@ public class DeleteVersion extends Pass_2021<db_project_info> {
protected void performDone() throws Exception { protected void performDone() throws Exception {
parent = target.parent; parent = target.parent;
if (current) if (current)
Current.set(Current.Version, null); CurrentAnchestor.set(Current.Version, null);
if (parent != null) { if (parent != null) {
UI.getVersionsWindow().getVersionsForm().getTree().RemoveNode(target.node); UI.getVersionsWindow().getVersionsForm().getTree().RemoveNode(target.node);
parent.versions.remove(target.name); parent.versions.remove(target.name);
} else } else
Current.set(Current.Root, null); CurrentAnchestor.set(Current.Root, null);
} }
} }

Some files were not shown because too many files have changed in this diff Show More