постепенное выведение старой концепции текущих объектов, касаемо табличных лучше держать их в интерфейсе таблиц, чтобы не писать описание объекта дважды и не мучиться с типом. некоторые фиксы
This commit is contained in:
165
.idea/workspace.xml
generated
165
.idea/workspace.xml
generated
@@ -7,23 +7,160 @@
|
|||||||
</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 beforePath="$PROJECT_DIR$/src/_VisualDVM/Global.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Global.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddBugReport.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddBugReport.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/properties" beforeDir="false" afterPath="$PROJECT_DIR$/properties" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CopyProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CopyProject.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/_VisualDVM/Passes/All/CreateEmptyProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateEmptyProject.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/_VisualDVM/Passes/All/DownloadProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadProject.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Common/Database/VisualiserDatabase.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/VisualiserDatabase.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/MainModule_.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/MainModule_.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/Passes/AddObjectPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Passes/AddObjectPass.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/Passes/DeleteObjectPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Passes/DeleteObjectPass.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/Passes/EditObjectPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Passes/EditObjectPass.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/Visual/ControlForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/ControlForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Current.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Current.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Compiler/UI/CompilerDialog.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Compiler/UI/CompilerDialog.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Compiler/UI/CompilerFields.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Compiler/UI/CompilerFields.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Compiler/UI/CompilersForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Compiler/UI/CompilersForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Credentials/CredentialsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Credentials/CredentialsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/DVMParameter/UI/DVMParameterDialog.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/DVMParameter/UI/DVMParameterDialog.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/DVMParameter/UI/DVMParametersForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/DVMParameter/UI/DVMParametersForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/EnvironmentValue/UI/EnvironmentValueDialog.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/EnvironmentValue/UI/EnvironmentValueDialog.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/EnvironmentValue/UI/EnvironmentsValuesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/EnvironmentValue/UI/EnvironmentsValuesForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/GlobalDatabase.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/GlobalDatabase.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Machine/UI/MachinesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Machine/UI/MachinesForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Makefile/UI/MakefilesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Makefile/UI/MakefilesForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Module/UI/ModuleAnchestorFields.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Module/UI/ModuleAnchestorFields.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Module/UI/ModuleAnchestorForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Module/UI/ModuleAnchestorForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Module/UI/ModulesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Module/UI/ModulesForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/RunConfiguration/UI/RunConfigurationDialog.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/RunConfiguration/UI/RunConfigurationDialog.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/RunConfiguration/UI/RunConfigurationsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/RunConfiguration/UI/RunConfigurationsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/SapforProfile/UI/SapforProfilesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/SapforProfile/UI/SapforProfilesForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/SapforProfileSetting/UI/SapforProfileSettingsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/SapforProfileSetting/UI/SapforProfileSettingsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/CompilationTask/UI/CompilationTasksForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/CompilationTask/UI/CompilationTasksForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/RunTask/UI/RunTasksForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/RunTask/UI/RunTasksForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/Supervisor/Local/Linux/LinuxLocalRunSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/Supervisor/Local/Linux/LinuxLocalRunSupervisor.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/Supervisor/Local/Windows/WindowsLocalRunSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/Supervisor/Local/Windows/WindowsLocalRunSupervisor.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/Supervisor/Remote/MVSRunSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/Supervisor/Remote/MVSRunSupervisor.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/Supervisor/Remote/ServerRunSupervisor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/Supervisor/Remote/ServerRunSupervisor.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/User/UI/UserDialog.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/User/UI/UserDialog.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/User/UI/UsersForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/User/UI/UsersForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/MainModule.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/MainModule.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AbortDVMPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AbortDVMPackage.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AbortSapforPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AbortSapforPackage.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddCompiler.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddCompiler.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddDVMParameter.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddDVMParameter.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddMakefile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddMakefile.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddRunConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddRunConfiguration.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AddUser.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AppendBugReportField.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/AppendBugReportField.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ApplyBugReportSettings.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ApplyBugReportSettings.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ApplyProfile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ApplyProfile.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/BuildComponent.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/BuildComponent.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CheckAccount.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CheckAccount.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CheckRemoteWorkspace.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CheckRemoteWorkspace.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CloneDVMSettings.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CloneDVMSettings.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CloneSapforSettings.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CloneSapforSettings.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CompareDVMRunTasks.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CompareDVMRunTasks.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CompareSapforPackages.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CompareSapforPackages.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/Compile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/Compile.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ConvertCorrectnessTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ConvertCorrectnessTests.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateGroupFromDirectory.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateGroupFromDirectory.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateGroupFromFiles.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateGroupFromFiles.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateTestFromDirectory.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateTestFromDirectory.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateTestFromProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateTestFromProject.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateTestsFromFiles.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateTestsFromFiles.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateTestsGroupFromSelectedVersions.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/CreateTestsGroupFromSelectedVersions.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadComponent.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadComponent.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadDVMPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadDVMPackage.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadTaskTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadTaskTest.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadTest.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/DownloadTest.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/GetOldBugReports.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/GetOldBugReports.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ExportDVMPackageToExcel.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ExportDVMPackageToExcel.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/GetComponentsBackupsFromServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/GetComponentsBackupsFromServer.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/InitialiseUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/InitialiseUser.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/LocalInitaliseUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/LocalInitaliseUser.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/OpenBugReportTestProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/OpenBugReportTestProject.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/OpenBugReportTestProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/OpenBugReportTestProject.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishComponentsServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishComponentsServer.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PickCompilerEnvironments.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PickCompilerEnvironments.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishTestingServer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishTestingServer.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PickCompilerEnvironmentsForTesting.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PickCompilerEnvironmentsForTesting.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SaveGraph.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SaveGraph.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishBugReport.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishBugReport.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/BugReport/BugReport.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/BugReport/BugReport.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishComponent.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishComponent.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishSapforSettingsCommand.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/PublishSapforSettingsCommand.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/RemoteInitialiseUser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/RemoteInitialiseUser.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ReplaceTestProject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ReplaceTestProject.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ReplaceTestsFromFiles.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ReplaceTestsFromFiles.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/Run.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/Run.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SPF_ModifyArrayDistribution.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SPF_ModifyArrayDistribution.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SaveBugReportExecutor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SaveBugReportExecutor.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SaveCurrentDVMConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SaveCurrentDVMConfiguration.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SaveCurrentSAPFORConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SaveCurrentSAPFORConfiguration.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SelectRemoteFile.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SelectRemoteFile.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SendBugReport.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SendBugReport.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowCompilerHelp.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowCompilerHelp.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowCompilerVersion.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowCompilerVersion.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowComponentChangesLog.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowComponentChangesLog.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowCurrentDVMConfigurationTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowCurrentDVMConfigurationTests.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowCurrentSAPFORConfigurationTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowCurrentSAPFORConfigurationTests.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowMakefilePreview.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowMakefilePreview.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowSapforCompilationErr.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowSapforCompilationErr.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowSapforCompilationOut.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ShowSapforCompilationOut.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/StartSelectedDVMConfigurations.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/StartSelectedDVMConfigurations.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/StartSelectedSAPFORConfigurations.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/StartSelectedSAPFORConfigurations.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/UpdateBugReportField.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/UpdateBugReportField.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/UpdateBugReportProgress.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/UpdateBugReportProgress.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/UpdateComponent.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/UpdateComponent.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/CurrentComponentPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/CurrentComponentPass.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/SSH/CurrentConnectionPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/SSH/CurrentConnectionPass.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/Server/CloneServerObject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Server/CloneServerObject.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/Server/DeleteServerObject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Server/DeleteServerObject.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/Server/EditServerObject.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Server/EditServerObject.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/AbortTestingPackage.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/AbortTestingPackage.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/ActualizeTestingPackages.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/ActualizeTestingPackages.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/SaveCurrentConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/SaveCurrentConfiguration.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/ShowCurrentConfigurationTests.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/ShowCurrentConfigurationTests.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/DBArray/UI/DBArraysForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/DBArray/UI/DBArraysForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Errors/ErrorsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Errors/ErrorsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/MessagesControlForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/MessagesControlForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/MessagesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/MessagesDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Notes/NotesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Notes/NotesDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Recommendations/UI/RecommendationsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Recommendations/UI/RecommendationsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Warnings/WarningsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Warnings/WarningsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Project/db_project_info.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Project/db_project_info.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Arrays/UI/ProjectArraysForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Arrays/UI/ProjectArraysForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Arrays/UI/RulesTree.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Arrays/UI/RulesTree.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Regions/UI/ArrayAlignmentBar.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Regions/UI/ArrayAlignmentBar.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Regions/UI/ParallelRegionsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Regions/UI/ParallelRegionsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Variants/UI/ParallelVariantsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Variants/UI/ParallelVariantsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/BugReport/UI/BugReportsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/BugReport/UI/BugReportsForm.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/ComponentsSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/ComponentsSet.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/ComponentsSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/ComponentsSet.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/PerformanceAnalyzer/PerformanceAnalyzer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/PerformanceAnalyzer/PerformanceAnalyzer.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/UI/ComponentsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/UI/ComponentsForm.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/Sapfor/Sapfor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/Sapfor/Sapfor.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/SubscriberWorkspace/UI/SubscriberWorkspacesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/SubscriberWorkspace/UI/SubscriberWorkspacesForm.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/Visualiser.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/Component/Visualiser.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Repository/Subscribes/UI/SubsribersForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/Subscribes/UI/SubsribersForm.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Test/Test.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Test/Test.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Group/UI/GroupsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Group/UI/GroupsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Test/UI/TestDialog.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Test/UI/TestDialog.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Test/UI/TestsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Test/UI/TestsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMConfiguration/UI/DVMConfigurationsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMConfiguration/UI/DVMConfigurationsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMPackage/UI/DVMPackagesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMPackage/UI/DVMPackagesForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMSettings/UI/DVMSettingsFields.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMSettings/UI/DVMSettingsFields.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMSettings/UI/DVMSettingsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMSettings/UI/DVMSettingsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMTasks/UI/DVMRunTasksForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMTasks/UI/DVMRunTasksForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforConfiguration/UI/SapforConfigurationsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforConfiguration/UI/SapforConfigurationsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforPackage/UI/SapforPackagesForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforPackage/UI/SapforPackagesForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforSettings/UI/SapforSettingsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforSettings/UI/SapforSettingsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforSettingsCommand/UI/SapforSettingsCommandDialog.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforSettingsCommand/UI/SapforSettingsCommandDialog.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforSettingsCommand/UI/SapforSettingsCommandsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforSettingsCommand/UI/SapforSettingsCommandsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/ServerSapfor/UI/ServerSapforsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/ServerSapfor/UI/ServerSapforsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Menus/CredentialsBar/CredentialsMenuBar.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Menus/CredentialsBar/CredentialsMenuBar.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CallbackForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/ComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/ComparisonForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CompilationTasksComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/CompilationTasksComparisonForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/DVMRunTasksComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/DVMRunTasksComparisonForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/ProjectForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/ProjectForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/RunTasksComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/RunTasksComparisonForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/SapforPackagesComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/SapforPackagesComparisonForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/SapforVersionsComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/SapforVersionsComparisonForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/TestingForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/TestingForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/VariantsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/VariantsForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/VersionsComparisonForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/VersionsComparisonForm.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" />
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import Common.Database.Objects.DBObject;
|
|||||||
import Common.Database.Tables.DBTable;
|
import Common.Database.Tables.DBTable;
|
||||||
import Common.Database.Tables.DBTableColumn;
|
import Common.Database.Tables.DBTableColumn;
|
||||||
import Common.Passes.PassException;
|
import Common.Passes.PassException;
|
||||||
|
import Common.Utils.TextLog;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import javafx.util.Pair;
|
import javafx.util.Pair;
|
||||||
@@ -255,4 +256,14 @@ public abstract class SQLiteDatabase extends Database {
|
|||||||
}
|
}
|
||||||
//--
|
//--
|
||||||
//https://stackoverflow.com/questions/8558099/sqlite-query-with-byte-where-clause
|
//https://stackoverflow.com/questions/8558099/sqlite-query-with-byte-where-clause
|
||||||
|
//получение "текущих" объектов. скорее временная мера.
|
||||||
|
public boolean Check(TextLog log, Class... tablesClasses) {
|
||||||
|
for (Class tableClass : tablesClasses) {
|
||||||
|
getTable(tableClass).getUI().Check(log);
|
||||||
|
}
|
||||||
|
return log.isEmpty();
|
||||||
|
}
|
||||||
|
public boolean matchCurrentID(Class tableClass, int id_in) {
|
||||||
|
return getTable(tableClass).getUI().matchCurrentID(id_in);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -64,6 +64,10 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
|
|||||||
ui.Show(key);
|
ui.Show(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public void RefreshUI(){
|
||||||
|
if ((ui != null) && ui.isShown())
|
||||||
|
ui.RedrawControl();
|
||||||
|
}
|
||||||
//СОДЕРЖИМОЕ
|
//СОДЕРЖИМОЕ
|
||||||
public D getFirstRecord() {
|
public D getFirstRecord() {
|
||||||
return Data.values().stream().findFirst().orElse(null);
|
return Data.values().stream().findFirst().orElse(null);
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import Common.Database.Objects.PassStats.PassStatsDBTable;
|
|||||||
import Common.Database.Objects.Splitter.SplittersDBTable;
|
import Common.Database.Objects.Splitter.SplittersDBTable;
|
||||||
import Common.Database.SQLITE.SQLiteDatabase;
|
import Common.Database.SQLITE.SQLiteDatabase;
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
|
import Common.Utils.TextLog;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
public class VisualiserDatabase extends SQLiteDatabase {
|
public class VisualiserDatabase extends SQLiteDatabase {
|
||||||
@@ -26,4 +27,5 @@ public class VisualiserDatabase extends SQLiteDatabase {
|
|||||||
public PassCode_ getSynchronizePassCode() {
|
public PassCode_ getSynchronizePassCode() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ public abstract class MainModule_<D extends VisualiserDatabase, U extends UIModu
|
|||||||
//--
|
//--
|
||||||
D db = null;
|
D db = null;
|
||||||
Class<D> db_class = null;
|
Class<D> db_class = null;
|
||||||
LinkedHashMap<Current_, Object> objects = null; //Current
|
LinkedHashMap<Current_, Object> objects = null; //Current/ большинство выведено
|
||||||
//--
|
//--
|
||||||
LinkedHashMap<PassCode_, Pass> passes = null;
|
LinkedHashMap<PassCode_, Pass> passes = null;
|
||||||
//--
|
//--
|
||||||
@@ -87,9 +87,11 @@ public abstract class MainModule_<D extends VisualiserDatabase, U extends UIModu
|
|||||||
Log.Writeln_(name.getDescription() + " не выбран(а)");
|
Log.Writeln_(name.getDescription() + " не выбран(а)");
|
||||||
return Log.isEmpty();
|
return Log.isEmpty();
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
public boolean matchCurrentID(Current_ name, int id) {
|
public boolean matchCurrentID(Current_ name, int id) {
|
||||||
return (get(name) != null) && (((iDBObject) get(name)).id == id);
|
return (get(name) != null) && (((iDBObject) get(name)).id == id);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
//ПРОХОДЫ
|
//ПРОХОДЫ
|
||||||
public abstract Class getPassCodesEnum();
|
public abstract Class getPassCodesEnum();
|
||||||
public abstract String getAllPassesClassPrefix();
|
public abstract String getAllPassesClassPrefix();
|
||||||
|
|||||||
@@ -4,9 +4,12 @@ public abstract class AddObjectPass<D extends DBObject> extends ObjectPass<D> {
|
|||||||
public AddObjectPass(Class<D> d_in) {
|
public AddObjectPass(Class<D> d_in) {
|
||||||
super(d_in);
|
super(d_in);
|
||||||
}
|
}
|
||||||
public Class<? extends DBObject> getOwner() {
|
protected Class<? extends DBObject> getOwnerClass() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
protected DBObject getOwner() {
|
||||||
|
return getDb().getTable(getOwnerClass()).getUI().getCurrent();
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getDescription_() {
|
public String getDescription_() {
|
||||||
return "добавление";
|
return "добавление";
|
||||||
@@ -14,9 +17,7 @@ public abstract class AddObjectPass<D extends DBObject> extends ObjectPass<D> {
|
|||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = d.newInstance();
|
target = d.newInstance();
|
||||||
return
|
return ((getOwnerClass() == null) || (getDb().getTable(getOwnerClass()).getUI().Check(Log))) && fillObjectFields();
|
||||||
((getOwner() == null) || (getDb().getTable(getOwner()).getUI().CheckCurrent(Log))) &&
|
|
||||||
fillObjectFields();
|
|
||||||
}
|
}
|
||||||
protected boolean fillObjectFields() throws Exception {
|
protected boolean fillObjectFields() throws Exception {
|
||||||
return getTable().getUI().ShowAddObjectDialog(target);
|
return getTable().getUI().ShowAddObjectDialog(target);
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ public abstract class DeleteObjectPass<D extends DBObject> extends ObjectPass<D>
|
|||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = (D) getTable().getUI().getCurrent();
|
target = (D) getTable().getUI().getCurrent();
|
||||||
return getTable().getUI().CheckCurrent(Log) && getTable().getUI().ShowDeleteObjectDialog(target);
|
return getTable().getUI().Check(Log) && getTable().getUI().ShowDeleteObjectDialog(target);
|
||||||
}
|
}
|
||||||
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ public abstract class EditObjectPass<D extends DBObject> extends ObjectPass<D> {
|
|||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = (D) getTable().getUI().getCurrent();
|
target = (D) getTable().getUI().getCurrent();
|
||||||
return getTable().getUI().CheckCurrent(Log) && getTable().getUI().ShowEditObjectDialog(target);
|
return getTable().getUI().Check(Log) && getTable().getUI().ShowEditObjectDialog(target);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
@@ -23,7 +23,8 @@ public abstract class EditObjectPass<D extends DBObject> extends ObjectPass<D> {
|
|||||||
@Override
|
@Override
|
||||||
protected void showFinish() throws Exception {
|
protected void showFinish() throws Exception {
|
||||||
getTable().ShowUI(target.getPK());
|
getTable().ShowUI(target.getPK());
|
||||||
for (Class dep : getTable().getFKDependencies().keySet())
|
for (Class dep : getTable().getFKDependencies().keySet()) {
|
||||||
getDb().getTable(dep).getUI().Refresh();
|
getDb().getTable(dep).RefreshUI();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ public class ControlForm<C extends Component> {
|
|||||||
UI.Clear(scrollPanel);
|
UI.Clear(scrollPanel);
|
||||||
control = null; //очищено.
|
control = null; //очищено.
|
||||||
}
|
}
|
||||||
public void Refresh() {
|
public void RedrawControl() {
|
||||||
if (control != null)
|
if (control != null)
|
||||||
redrawControl();
|
redrawControl();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package Common.Visual;
|
package Common.Visual;
|
||||||
import Common.CommonConstants;
|
import Common.CommonConstants;
|
||||||
import Common.Current_;
|
|
||||||
import Common.Database.Objects.DBObject;
|
import Common.Database.Objects.DBObject;
|
||||||
import Common.Database.Objects.Grid.TableVisualData;
|
import Common.Database.Objects.Grid.TableVisualData;
|
||||||
import Common.Database.Tables.DBTable;
|
import Common.Database.Tables.DBTable;
|
||||||
@@ -29,6 +28,7 @@ import java.util.stream.Collectors;
|
|||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTable> {
|
public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTable> {
|
||||||
protected DataSet<?, D> dataSource; //источник данных
|
protected DataSet<?, D> dataSource; //источник данных
|
||||||
|
protected D current = null; //заменить все обращения к мейн модулю.
|
||||||
protected DataMenuBar bar = null; //верхняя панель меню
|
protected DataMenuBar bar = null; //верхняя панель меню
|
||||||
protected int current_row_i; //индекс текущей строки.
|
protected int current_row_i; //индекс текущей строки.
|
||||||
protected boolean events_on = true;
|
protected boolean events_on = true;
|
||||||
@@ -99,15 +99,15 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
void SaveColumns() {
|
void SaveColumns() {
|
||||||
if (MainModule_.instance.getDb() != null) {
|
if (MainModule_.instance.getDb() != null) {
|
||||||
try {
|
try {
|
||||||
if (CurrentName() != null) {
|
if (needsCurrent()) {
|
||||||
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);
|
||||||
TableVisualData tableVisualData;
|
TableVisualData tableVisualData;
|
||||||
if (MainModule_.instance.getDb().tablesVisualData.containsKey(tableName)) {
|
//todo метод сохрания к бд отнести, как с окнами и проходами. (?)
|
||||||
tableVisualData = MainModule_.instance.getDb().tablesVisualData.get(tableName);
|
if (MainModule_.instance.getDb().tablesVisualData.containsKey(getCurrentName())) {
|
||||||
|
tableVisualData = MainModule_.instance.getDb().tablesVisualData.get(getCurrentName());
|
||||||
} else {
|
} else {
|
||||||
tableVisualData = new TableVisualData(tableName);
|
tableVisualData = new TableVisualData(getCurrentName());
|
||||||
MainModule_.instance.getDb().Insert(tableVisualData);
|
MainModule_.instance.getDb().Insert(tableVisualData);
|
||||||
}
|
}
|
||||||
tableVisualData.sizes = packed;
|
tableVisualData.sizes = packed;
|
||||||
@@ -202,10 +202,10 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
@Override
|
@Override
|
||||||
public void CorrectColumnsSizes() {
|
public void CorrectColumnsSizes() {
|
||||||
if ((MainModule_.instance.getDb() != null)
|
if ((MainModule_.instance.getDb() != null)
|
||||||
&& CurrentName() != null
|
&& needsCurrent()
|
||||||
&& MainModule_.instance.getDb().tablesVisualData.containsKey(CurrentName().toString())) {
|
&& MainModule_.instance.getDb().tablesVisualData.containsKey(getCurrentName())) {
|
||||||
if (!getColumnsProfile().equalsIgnoreCase(colNamesAndSizes)) {
|
if (!getColumnsProfile().equalsIgnoreCase(colNamesAndSizes)) {
|
||||||
TableVisualData grid = MainModule_.instance.getDb().tablesVisualData.get(CurrentName().toString());
|
TableVisualData grid = MainModule_.instance.getDb().tablesVisualData.get(getCurrentName());
|
||||||
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)) {
|
||||||
@@ -261,7 +261,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
//------------------------->>
|
//------------------------->>
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (CurrentName() != null) {
|
if (needsCurrent()) {
|
||||||
current_row_i = CommonConstants.Nan;
|
current_row_i = CommonConstants.Nan;
|
||||||
ListSelectionModel selModel = control.getSelectionModel();
|
ListSelectionModel selModel = control.getSelectionModel();
|
||||||
selModel.addListSelectionListener(e -> {
|
selModel.addListSelectionListener(e -> {
|
||||||
@@ -269,7 +269,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
if ((row >= 0)) {
|
if ((row >= 0)) {
|
||||||
if (row != current_row_i) {
|
if (row != current_row_i) {
|
||||||
current_row_i = row;
|
current_row_i = row;
|
||||||
MainModule_.instance.set(CurrentName(), control.getRowObject(row));
|
setCurrent((D) control.getRowObject(row));
|
||||||
if (events_on) {
|
if (events_on) {
|
||||||
try {
|
try {
|
||||||
ShowCurrentObject();
|
ShowCurrentObject();
|
||||||
@@ -390,12 +390,8 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
protected boolean hasMenuBar() {
|
protected boolean hasMenuBar() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//-
|
public void dropCurrent() {
|
||||||
protected Current_ CurrentName() {
|
current = null;
|
||||||
return null;
|
|
||||||
}
|
|
||||||
void dropCurrent() {
|
|
||||||
MainModule_.instance.set(CurrentName(), null);
|
|
||||||
}
|
}
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
protected DBObjectDialog getDialog() {
|
protected DBObjectDialog getDialog() {
|
||||||
@@ -428,7 +424,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
public void SaveLastCurrent() {
|
public void SaveLastCurrent() {
|
||||||
savedCurrentKey = null;
|
savedCurrentKey = null;
|
||||||
savedSelectedKeys.clear();
|
savedSelectedKeys.clear();
|
||||||
if ((CurrentName() != null) && (getCurrent() != null)) {
|
if (needsCurrent() && (getCurrent() != null)) {
|
||||||
savedCurrentKey = getCurrent().getPK();
|
savedCurrentKey = getCurrent().getPK();
|
||||||
}
|
}
|
||||||
savedSelectedKeys = getSelectedKeys();
|
savedSelectedKeys = getSelectedKeys();
|
||||||
@@ -454,26 +450,43 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
public Vector<Object> getSelectedKeys() {
|
public Vector<Object> getSelectedKeys() {
|
||||||
return dataSource.Data.values().stream().filter(DBObject::isSelected).map(d -> d.getPK()).collect(Collectors.toCollection(Vector::new));
|
return dataSource.Data.values().stream().filter(DBObject::isSelected).map(d -> d.getPK()).collect(Collectors.toCollection(Vector::new));
|
||||||
}
|
}
|
||||||
public boolean CheckCurrent(TextLog log) {
|
//переименовать в CheckCurrent
|
||||||
return MainModule_.instance.Check(log, CurrentName());
|
public boolean Check(TextLog log) {
|
||||||
|
if (current == null) {
|
||||||
|
log.Writeln_(dataSource.getSingleDescription() + " не выбран(а)");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public boolean matchCurrentID(int id_in) {
|
||||||
|
return (current != null) && (((int) current.getPK()) == id_in);
|
||||||
}
|
}
|
||||||
public boolean CheckSelectedOrCurrent(TextLog log) {
|
public boolean CheckSelectedOrCurrent(TextLog log) {
|
||||||
if ((getSelectedCount() == 0) && (CurrentName() == null || (getCurrent() == null))) {
|
if ((getSelectedCount() == 0) && (!needsCurrent() || (getCurrent() == null))) {
|
||||||
log.Writeln_(dataSource.getPluralDescription() + ":");
|
log.Writeln_(dataSource.getPluralDescription() + ":");
|
||||||
log.Writeln_("Отсутствуют отмеченные объекты, или текущий объект!");
|
log.Writeln_("Отсутствуют отмеченные объекты, или текущий объект!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
protected boolean needsCurrent() {
|
||||||
|
return false;
|
||||||
|
} //нужно ли отслеживать текущий объект.
|
||||||
|
protected String getCurrentName() {
|
||||||
|
return dataSource.d.getSimpleName();
|
||||||
|
}
|
||||||
public D getCurrent() {
|
public D getCurrent() {
|
||||||
return (D) MainModule_.instance.get(CurrentName());
|
return current;
|
||||||
|
}
|
||||||
|
public D setCurrent(D object) {
|
||||||
|
return current = object;
|
||||||
}
|
}
|
||||||
public Vector<D> getSelectedOrCurrent() {
|
public Vector<D> getSelectedOrCurrent() {
|
||||||
Vector<D> res = new Vector<>();
|
Vector<D> res = new Vector<>();
|
||||||
if (getSelectedCount() > 0)
|
if (getSelectedCount() > 0)
|
||||||
res = getSelectedItems();
|
res = getSelectedItems();
|
||||||
else {
|
else {
|
||||||
if ((CurrentName() != null) && (getCurrent() != null)) {
|
if (needsCurrent() && (getCurrent() != null)) {
|
||||||
res.add(getCurrent());
|
res.add(getCurrent());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -484,7 +497,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
if (getSelectedCount() > 0)
|
if (getSelectedCount() > 0)
|
||||||
res = getSelectedKeys();
|
res = getSelectedKeys();
|
||||||
else {
|
else {
|
||||||
if ((CurrentName() != null) && (getCurrent() != null)) {
|
if (needsCurrent() && (getCurrent() != null)) {
|
||||||
res.add(getCurrent().getPK());
|
res.add(getCurrent().getPK());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -502,7 +515,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
if (isObjectVisible(object))
|
if (isObjectVisible(object))
|
||||||
object.Select(flag);
|
object.Select(flag);
|
||||||
}
|
}
|
||||||
Refresh();
|
RedrawControl();
|
||||||
}
|
}
|
||||||
//ДИАЛОГИ
|
//ДИАЛОГИ
|
||||||
public boolean ShowAddObjectDialog(D object) {
|
public boolean ShowAddObjectDialog(D object) {
|
||||||
|
|||||||
@@ -1,39 +1,20 @@
|
|||||||
package _VisualDVM;
|
package _VisualDVM;
|
||||||
import Common.Current_;
|
import Common.Current_;
|
||||||
public enum Current implements Current_ {
|
public enum Current implements Current_ {
|
||||||
|
Account, //нет формы таблиц.
|
||||||
//--
|
//--
|
||||||
DVMPackage,
|
|
||||||
SapforPackage,
|
|
||||||
//--
|
|
||||||
ServerSapfor,
|
|
||||||
SapforEtalonVersion,
|
SapforEtalonVersion,
|
||||||
SapforVersion,
|
SapforVersion,
|
||||||
//--
|
//--
|
||||||
ComponentServerBackup,
|
ComponentServerBackup,
|
||||||
Subscriber,
|
|
||||||
FileGraphElement,
|
FileGraphElement,
|
||||||
InlineGraphElement,
|
InlineGraphElement,
|
||||||
InlineGraphElement2,
|
InlineGraphElement2,
|
||||||
IncludeGraphElement,
|
IncludeGraphElement,
|
||||||
Component,
|
|
||||||
Project,
|
Project,
|
||||||
File,
|
File,
|
||||||
Root,
|
Root,
|
||||||
Version,
|
Version,
|
||||||
BugReport,
|
|
||||||
Account,
|
|
||||||
DBArray,
|
|
||||||
ProjectArray,
|
|
||||||
ParallelRegionInfo,
|
|
||||||
ParallelVariant,
|
|
||||||
Machine,
|
|
||||||
User,
|
|
||||||
Compiler,
|
|
||||||
Makefile,
|
|
||||||
Module,
|
|
||||||
RunConfiguration,
|
|
||||||
EnvironmentValue,
|
|
||||||
CompilationTask,
|
|
||||||
RunTask,
|
RunTask,
|
||||||
ProjectNode, //узел в дереве проекта. нужен для отображения добавленных файлов
|
ProjectNode, //узел в дереве проекта. нужен для отображения добавленных файлов
|
||||||
SelectedDirectory,
|
SelectedDirectory,
|
||||||
@@ -42,120 +23,42 @@ public enum Current implements Current_ {
|
|||||||
RemoteFile,
|
RemoteFile,
|
||||||
RunStsRecord,
|
RunStsRecord,
|
||||||
//только для того, чтобы закодировать таблицу.
|
//только для того, чтобы закодировать таблицу.
|
||||||
Array,
|
|
||||||
ParallelRegion,
|
|
||||||
Dimensions,
|
|
||||||
//----------
|
|
||||||
Warnings,
|
|
||||||
Errors,
|
|
||||||
Notes,
|
|
||||||
Recommendations,
|
|
||||||
//-
|
//-
|
||||||
Sapfor,
|
Sapfor,
|
||||||
//-
|
//-
|
||||||
Scenario,
|
|
||||||
ScenarioCommand,
|
|
||||||
//-
|
|
||||||
DVMConfiguration,
|
|
||||||
Group,
|
|
||||||
//-
|
|
||||||
DVMParameterValue,
|
|
||||||
Test,
|
|
||||||
Function,
|
Function,
|
||||||
SelectedFunction,
|
SelectedFunction,
|
||||||
//-
|
//-
|
||||||
Credentials,
|
|
||||||
//-
|
|
||||||
PackageVersion,
|
PackageVersion,
|
||||||
SapforConfiguration,
|
|
||||||
SapforProfile,
|
|
||||||
SapforProfileSetting,
|
|
||||||
//--
|
//--
|
||||||
ProjectView,
|
ProjectView, Credentials;
|
||||||
SubscriberWorkspace,
|
|
||||||
DVMRunTask,
|
|
||||||
SapforSettings,
|
|
||||||
SapforSettingsCommand,
|
|
||||||
DVMSettings;
|
|
||||||
@Override
|
@Override
|
||||||
public String getDescription() {
|
public String getDescription() {
|
||||||
switch (this) {
|
switch (this) {
|
||||||
case DVMSettings:
|
|
||||||
return "Параметры тестирования DVM системы";
|
|
||||||
case SapforSettings:
|
|
||||||
return "Параметры тестирования системы SAPFOR";
|
|
||||||
case SapforSettingsCommand:
|
|
||||||
return "Команда SAPFOR";
|
|
||||||
case DVMRunTask:
|
|
||||||
return "Задача DVM тестирования";
|
|
||||||
case SapforPackage:
|
|
||||||
return "Пакет тестирования SAPFOR";
|
|
||||||
case DVMPackage:
|
|
||||||
return "Пакет тестирования DVM";
|
|
||||||
case DVMConfiguration:
|
|
||||||
return "Конфигурация тестирования";
|
|
||||||
case ServerSapfor:
|
|
||||||
return "тестовая версия SAPFOR";
|
|
||||||
case SubscriberWorkspace:
|
|
||||||
return "рабочее пространство пользователя";
|
|
||||||
case SapforProfile:
|
|
||||||
return "Профиль SAPFOR";
|
|
||||||
case SapforProfileSetting:
|
|
||||||
return "Настройка профиля SAPFOR";
|
|
||||||
case SapforEtalonVersion:
|
case SapforEtalonVersion:
|
||||||
return "Версия SAPFOR(Эталон)";
|
return "Версия SAPFOR(Эталон)";
|
||||||
case SapforVersion:
|
case SapforVersion:
|
||||||
return "Версия SAPFOR";
|
return "Версия SAPFOR";
|
||||||
case ComponentServerBackup:
|
case ComponentServerBackup:
|
||||||
return "Версия компонента для восстановления с сервера";
|
return "Версия компонента для восстановления с сервера";
|
||||||
case Subscriber:
|
|
||||||
return "Адресат";
|
|
||||||
case SelectedFunction:
|
case SelectedFunction:
|
||||||
return "Выбранный узел графа процедур";
|
return "Выбранный узел графа процедур";
|
||||||
case SapforConfiguration:
|
|
||||||
return "Конфигурация тестирования SAPFOR";
|
|
||||||
case PackageVersion:
|
case PackageVersion:
|
||||||
return "Версия пакетного режима";
|
return "Версия пакетного режима";
|
||||||
case Credentials:
|
|
||||||
return "Учётные данные";
|
|
||||||
case Function:
|
case Function:
|
||||||
return "Функция";
|
return "Функция";
|
||||||
case DVMParameterValue:
|
|
||||||
return "Параметр DVM системы";
|
|
||||||
case ParallelRegion:
|
|
||||||
return "Область распараллеливания";
|
|
||||||
case Group:
|
|
||||||
return "Группа тестов DVM";
|
|
||||||
case Scenario:
|
|
||||||
return "Сценарий";
|
|
||||||
case ScenarioCommand:
|
|
||||||
return "Команда сценария";
|
|
||||||
case ProjectNode:
|
case ProjectNode:
|
||||||
return "текущий узел дерева проектов"; //служебка
|
return "текущий узел дерева проектов"; //служебка
|
||||||
case Test:
|
|
||||||
return "Тест";
|
|
||||||
case Sapfor:
|
case Sapfor:
|
||||||
return "SAPFOR";
|
return "SAPFOR";
|
||||||
case EnvironmentValue:
|
|
||||||
return "Значение переменной окружения";
|
|
||||||
case SelectedDirectory:
|
case SelectedDirectory:
|
||||||
return "Папка проекта";
|
return "Папка проекта";
|
||||||
case SelectedFile:
|
case SelectedFile:
|
||||||
return "Файл проекта";
|
return "Файл проекта";
|
||||||
case RunConfiguration:
|
|
||||||
return "Конфигурация запуска";
|
|
||||||
case RunTask:
|
case RunTask:
|
||||||
return "Задача на запуск";
|
return "Задача на запуск";
|
||||||
case CompilationTask:
|
|
||||||
return "Задача на компиляцию";
|
|
||||||
case Makefile:
|
|
||||||
return "Мейкфайл";
|
|
||||||
case Module:
|
|
||||||
return "Языковой модуль мейкфайла";
|
|
||||||
case RemoteFile:
|
case RemoteFile:
|
||||||
return "Удалённый файл";
|
return "Удалённый файл";
|
||||||
case Component:
|
|
||||||
return "Компонент";
|
|
||||||
case Project:
|
case Project:
|
||||||
return "Проект";
|
return "Проект";
|
||||||
case File:
|
case File:
|
||||||
@@ -164,16 +67,6 @@ public enum Current implements Current_ {
|
|||||||
return "Корень дерева версий";
|
return "Корень дерева версий";
|
||||||
case Version:
|
case Version:
|
||||||
return "Версия";
|
return "Версия";
|
||||||
case BugReport:
|
|
||||||
return "Отчёт об ошибке";
|
|
||||||
case Account:
|
|
||||||
return "Аккаунт";
|
|
||||||
case Machine:
|
|
||||||
return "Машина";
|
|
||||||
case User:
|
|
||||||
return "Пользователь";
|
|
||||||
case Compiler:
|
|
||||||
return "Компилятор";
|
|
||||||
default:
|
default:
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import Common.Visual.Windows.Dialog.DBObjectDialog;
|
|||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.Utils;
|
import _VisualDVM.Utils;
|
||||||
import _VisualDVM.Validators.PathValidator;
|
import _VisualDVM.Validators.PathValidator;
|
||||||
public class CompilerDialog extends DBObjectDialog<Compiler, CompilerFields> {
|
public class CompilerDialog extends DBObjectDialog<Compiler, CompilerFields> {
|
||||||
@@ -75,7 +76,7 @@ public class CompilerDialog extends DBObjectDialog<Compiler, CompilerFields> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void ProcessResult() {
|
public void ProcessResult() {
|
||||||
Result.machine_id = Global.mainModule.getMachine().id;
|
Result.machine_id = Global.mainModule.getDb().getTable(Machine.class).getUI().getCurrent().id;
|
||||||
Result.description = fields.tfDescription.getText();
|
Result.description = fields.tfDescription.getText();
|
||||||
Result.call_command = fields.tfCallCommand.getText();
|
Result.call_command = fields.tfCallCommand.getText();
|
||||||
Result.help_command = fields.tfHelpCommand.getText();
|
Result.help_command = fields.tfHelpCommand.getText();
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import Common.Visual.Windows.Dialog.DialogFields;
|
|||||||
import Common.Visual.Windows.Dialog.VDirectoryChooser;
|
import Common.Visual.Windows.Dialog.VDirectoryChooser;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
@@ -30,7 +31,7 @@ public class CompilerFields implements DialogFields {
|
|||||||
CompilerType type = (CompilerType) cbCompilerType.getSelectedItem();
|
CompilerType type = (CompilerType) cbCompilerType.getSelectedItem();
|
||||||
if (type == CompilerType.dvm) {
|
if (type == CompilerType.dvm) {
|
||||||
String dst = null;
|
String dst = null;
|
||||||
if (Global.mainModule.getMachine().type.equals(MachineType.Local)) {
|
if (Global.mainModule.getDb().getTable(Machine.class).getUI().getCurrent().type.equals(MachineType.Local)) {
|
||||||
File file = directoryChooser.ShowDialog();
|
File file = directoryChooser.ShowDialog();
|
||||||
if (file != null)
|
if (file != null)
|
||||||
dst = file.getAbsolutePath();
|
dst = file.getAbsolutePath();
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import Common.Visual.Windows.Dialog.DBObjectDialog;
|
|||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -15,8 +16,8 @@ public class CompilersForm extends DataSetControlForm<Compiler> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.Compiler;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasCheckBox() {
|
protected boolean hasCheckBox() {
|
||||||
@@ -68,7 +69,8 @@ public class CompilersForm extends DataSetControlForm<Compiler> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(Compiler object) {
|
public boolean isObjectVisible(Compiler object) {
|
||||||
return super.isObjectVisible(object) && MainModule_.instance.matchCurrentID(Current.Machine, object.machine_id);
|
return super.isObjectVisible(object) &&
|
||||||
|
Global.mainModule.getDb().getTable(Machine.class).getUI().matchCurrentID(object.machine_id);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected DBObjectDialog getDialog() {
|
protected DBObjectDialog getDialog() {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package _VisualDVM.GlobalData.Credentials;
|
package _VisualDVM.GlobalData.Credentials;
|
||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
|
//todo реализовать стандартно для выбранных объектов (?)
|
||||||
public class CredentialsDBTable extends iDBTable<Credentials> {
|
public class CredentialsDBTable extends iDBTable<Credentials> {
|
||||||
public CredentialsDBTable() {
|
public CredentialsDBTable() {
|
||||||
super(Credentials.class);
|
super(Credentials.class);
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
package _VisualDVM.GlobalData.DVMParameter.UI;
|
package _VisualDVM.GlobalData.DVMParameter.UI;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
import _VisualDVM.Utils;
|
import _VisualDVM.Utils;
|
||||||
public class DVMParameterDialog extends DBObjectDialog<DVMParameter, DVMParameterFields> {
|
public class DVMParameterDialog extends DBObjectDialog<DVMParameter, DVMParameterFields> {
|
||||||
public DVMParameterDialog() {
|
public DVMParameterDialog() {
|
||||||
@@ -45,8 +48,8 @@ public class DVMParameterDialog extends DBObjectDialog<DVMParameter, DVMParamete
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void ProcessResult() {
|
public void ProcessResult() {
|
||||||
Result.machine_id = Global.mainModule.getMachine().id;
|
Result.machine_id = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().id;
|
||||||
Result.run_configuration_id = Global.mainModule.getRunConfiguration().id;
|
Result.run_configuration_id = MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent().id;
|
||||||
Result.name = (String) fields.cbName.getSelectedItem();
|
Result.name = (String) fields.cbName.getSelectedItem();
|
||||||
Result.value = fields.tfValue.getText();
|
Result.value = fields.tfValue.getText();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ public class DVMParametersForm extends DataSetControlForm<DVMParameter> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.DVMParameterValue;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
package _VisualDVM.GlobalData.EnvironmentValue.UI;
|
package _VisualDVM.GlobalData.EnvironmentValue.UI;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValue;
|
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValue;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
import _VisualDVM.Utils;
|
import _VisualDVM.Utils;
|
||||||
public class EnvironmentValueDialog extends DBObjectDialog<EnvironmentValue, EnvironmentValueFields> {
|
public class EnvironmentValueDialog extends DBObjectDialog<EnvironmentValue, EnvironmentValueFields> {
|
||||||
public EnvironmentValueDialog() {
|
public EnvironmentValueDialog() {
|
||||||
@@ -40,8 +43,8 @@ public class EnvironmentValueDialog extends DBObjectDialog<EnvironmentValue, Env
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void ProcessResult() {
|
public void ProcessResult() {
|
||||||
Result.machine_id = Global.mainModule.getMachine().id;
|
Result.machine_id = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().id;
|
||||||
Result.run_configuration_id = Global.mainModule.getRunConfiguration().id;
|
Result.run_configuration_id = MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent().id;
|
||||||
Result.name = (String) fields.cbName.getSelectedItem();
|
Result.name = (String) fields.cbName.getSelectedItem();
|
||||||
Result.value = fields.tfValue.getText();
|
Result.value = fields.tfValue.getText();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import Common.Visual.Windows.Dialog.DBObjectDialog;
|
|||||||
import Common.Visual.Windows.Dialog.DialogFields;
|
import Common.Visual.Windows.Dialog.DialogFields;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValue;
|
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValue;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -15,8 +16,8 @@ public class EnvironmentsValuesForm extends DataSetControlForm<EnvironmentValue>
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.EnvironmentValue;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
@@ -48,7 +49,8 @@ public class EnvironmentsValuesForm extends DataSetControlForm<EnvironmentValue>
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(EnvironmentValue object) {
|
public boolean isObjectVisible(EnvironmentValue object) {
|
||||||
return super.isObjectVisible(object) && MainModule_.instance.matchCurrentID(Current.RunConfiguration, object.run_configuration_id);
|
return super.isObjectVisible(object) &&
|
||||||
|
MainModule_.instance.getDb().matchCurrentID(RunConfiguration.class,object.run_configuration_id );
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected DBObjectDialog<EnvironmentValue, ? extends DialogFields> getDialog() {
|
protected DBObjectDialog<EnvironmentValue, ? extends DialogFields> getDialog() {
|
||||||
|
|||||||
@@ -6,15 +6,19 @@ import _VisualDVM.Current;
|
|||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Account.Account;
|
import _VisualDVM.GlobalData.Account.Account;
|
||||||
import _VisualDVM.GlobalData.Account.AccountsDBTable;
|
import _VisualDVM.GlobalData.Account.AccountsDBTable;
|
||||||
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
import _VisualDVM.GlobalData.Compiler.CompilersDBTable;
|
import _VisualDVM.GlobalData.Compiler.CompilersDBTable;
|
||||||
import _VisualDVM.GlobalData.Credentials.Credentials;
|
import _VisualDVM.GlobalData.Credentials.Credentials;
|
||||||
import _VisualDVM.GlobalData.Credentials.CredentialsDBTable;
|
import _VisualDVM.GlobalData.Credentials.CredentialsDBTable;
|
||||||
import _VisualDVM.GlobalData.DBLastProject.LastProjectsDBTable;
|
import _VisualDVM.GlobalData.DBLastProject.LastProjectsDBTable;
|
||||||
import _VisualDVM.GlobalData.DVMParameter.DVMParameterDBTable;
|
import _VisualDVM.GlobalData.DVMParameter.DVMParameterDBTable;
|
||||||
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValuesDBTable;
|
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValuesDBTable;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Machine.MachinesDBTable;
|
import _VisualDVM.GlobalData.Machine.MachinesDBTable;
|
||||||
|
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||||
import _VisualDVM.GlobalData.Makefile.MakefilesDBTable;
|
import _VisualDVM.GlobalData.Makefile.MakefilesDBTable;
|
||||||
import _VisualDVM.GlobalData.Module.ModulesDBTable;
|
import _VisualDVM.GlobalData.Module.ModulesDBTable;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
import _VisualDVM.GlobalData.RunConfiguration.RunConfigurationsDBTable;
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfigurationsDBTable;
|
||||||
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
||||||
import _VisualDVM.GlobalData.SapforProfile.SapforProfilesDBTable;
|
import _VisualDVM.GlobalData.SapforProfile.SapforProfilesDBTable;
|
||||||
@@ -25,6 +29,7 @@ import _VisualDVM.GlobalData.Settings.SettingName;
|
|||||||
import _VisualDVM.GlobalData.Settings.SettingsDBTable;
|
import _VisualDVM.GlobalData.Settings.SettingsDBTable;
|
||||||
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTasksDBTable;
|
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTasksDBTable;
|
||||||
import _VisualDVM.GlobalData.Tasks.RunTask.RunTasksDBTable;
|
import _VisualDVM.GlobalData.Tasks.RunTask.RunTasksDBTable;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.GlobalData.User.UsersDBTable;
|
import _VisualDVM.GlobalData.User.UsersDBTable;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Repository.Component.ComponentType;
|
import _VisualDVM.Repository.Component.ComponentType;
|
||||||
@@ -97,30 +102,46 @@ public class GlobalDatabase extends VisualiserDatabase {
|
|||||||
public PassCode getSynchronizePassCode() {
|
public PassCode getSynchronizePassCode() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//todo централизованное сохранение текущих объектов в базах
|
||||||
|
|
||||||
public void SaveCredentials() {
|
public void SaveCredentials() {
|
||||||
|
/*
|
||||||
try {
|
try {
|
||||||
Credentials credentials = Global.mainModule.getCredentials();
|
|
||||||
if (Global.mainModule.HasMachine())
|
|
||||||
credentials.machine_id = Global.mainModule.getMachine().id;
|
Credentials credentials = MainModule_.instance.getDb().getTable(Credentials.class).getUI().getCurrent();
|
||||||
if (Global.mainModule.HasUser())
|
if (MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent()!=null)
|
||||||
credentials.user_id = Global.mainModule.getUser().id;
|
credentials.machine_id = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().id;
|
||||||
if (Global.mainModule.HasCompiler())
|
|
||||||
credentials.compiler_id = Global.mainModule.getCompiler().id;
|
if (MainModule_.instance.getDb().getTable(User.class).getUI().getCurrent()!=null)
|
||||||
if (Global.mainModule.HasMakefile())
|
credentials.user_id = MainModule_.instance.getDb().getTable(User.class).getUI().getCurrent().id;
|
||||||
credentials.makefile_id = Global.mainModule.getMakefile().id;
|
|
||||||
if (Global.mainModule.HasRunConfiguration())
|
if (MainModule_.instance.getDb().getTable(Compiler.class).getUI().getCurrent()!=null)
|
||||||
credentials.runconfiguration_id = Global.mainModule.getRunConfiguration().id;
|
credentials.compiler_id = MainModule_.instance.getDb().getTable(Compiler.class).getUI().getCurrent().id;
|
||||||
|
|
||||||
|
if (MainModule_.instance.getDb().getTable(Makefile.class).getUI().getCurrent()!=null)
|
||||||
|
credentials.makefile_id =MainModule_.instance.getDb().getTable(Makefile.class).getUI().getCurrent().id;
|
||||||
|
|
||||||
|
if (MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent()!=null)
|
||||||
|
credentials.runconfiguration_id = MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent().id;
|
||||||
Update(credentials);
|
Update(credentials);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void UpdateCredentials() {
|
public void UpdateCredentials() {
|
||||||
|
/*
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
Update(Global.mainModule.getCredentials());
|
Update(MainModule_.instance.getDb().getTable(Credentials.class).getUI().getCurrent());
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Utils_.MainLog.PrintException(ex);
|
Utils_.MainLog.PrintException(ex);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
//--
|
//--
|
||||||
public LinkedHashMap<SettingName, String> getSapforSettingsForProfile() {
|
public LinkedHashMap<SettingName, String> getSapforSettingsForProfile() {
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ public class MachinesForm extends DataSetControlForm<Machine> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.Machine;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasCheckBox() {
|
protected boolean hasCheckBox() {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import Common.Visual.DataSetControlForm;
|
|||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Makefile.Makefile;
|
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||||
import _VisualDVM.GlobalData.Module.UI.ModuleAnchestorFields;
|
import _VisualDVM.GlobalData.Module.UI.ModuleAnchestorFields;
|
||||||
import _VisualDVM.GlobalData.Module.UI.ModuleAnchestorForm;
|
import _VisualDVM.GlobalData.Module.UI.ModuleAnchestorForm;
|
||||||
@@ -16,8 +17,8 @@ public class MakefilesForm extends DataSetControlForm<Makefile> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.Makefile;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasCheckBox() {
|
protected boolean hasCheckBox() {
|
||||||
@@ -64,7 +65,7 @@ public class MakefilesForm extends DataSetControlForm<Makefile> {
|
|||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(Makefile object) {
|
public boolean isObjectVisible(Makefile object) {
|
||||||
return super.isObjectVisible(object) &&
|
return super.isObjectVisible(object) &&
|
||||||
MainModule_.instance.matchCurrentID(Current.Machine, object.machine_id);
|
MainModule_.instance.getDb().getTable(Machine.class).getUI().matchCurrentID(object.machine_id);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected DBObjectDialog<Makefile, ModuleAnchestorFields> getDialog() {
|
protected DBObjectDialog<Makefile, ModuleAnchestorFields> getDialog() {
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
package _VisualDVM.GlobalData.Module.UI;
|
package _VisualDVM.GlobalData.Module.UI;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Passes.Pass;
|
import Common.Passes.Pass;
|
||||||
import Common.Visual.Controls.StyledTextComboBox;
|
import Common.Visual.Controls.StyledTextComboBox;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DialogFields;
|
import Common.Visual.Windows.Dialog.DialogFields;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Makefile.Makefile;
|
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||||
import _VisualDVM.GlobalData.Module.Module;
|
import _VisualDVM.GlobalData.Module.Module;
|
||||||
import _VisualDVM.GlobalData.Module.ModuleAnchestor;
|
import _VisualDVM.GlobalData.Module.ModuleAnchestor;
|
||||||
@@ -27,7 +29,7 @@ public class ModuleAnchestorFields implements DialogFields {
|
|||||||
//считаем что машина есть.
|
//считаем что машина есть.
|
||||||
public ModuleAnchestorFields() {
|
public ModuleAnchestorFields() {
|
||||||
//-
|
//-
|
||||||
LinkedHashMap<Integer, Compiler> compilers = Global.mainModule.getMachine().getCompilers();
|
LinkedHashMap<Integer, Compiler> compilers = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().getCompilers();
|
||||||
compilers.values().forEach(compiler -> cbCompilers.addItem(compiler));
|
compilers.values().forEach(compiler -> cbCompilers.addItem(compiler));
|
||||||
bHelp.addActionListener(e -> {
|
bHelp.addActionListener(e -> {
|
||||||
if (cbCompilers.getSelectedItem() != null) {
|
if (cbCompilers.getSelectedItem() != null) {
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
package _VisualDVM.GlobalData.Module.UI;
|
package _VisualDVM.GlobalData.Module.UI;
|
||||||
import Common.CommonConstants;
|
import Common.CommonConstants;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Makefile.Makefile;
|
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||||
import _VisualDVM.GlobalData.Module.Module;
|
import _VisualDVM.GlobalData.Module.Module;
|
||||||
import _VisualDVM.GlobalData.Module.ModuleAnchestor;
|
import _VisualDVM.GlobalData.Module.ModuleAnchestor;
|
||||||
@@ -101,7 +103,7 @@ public class ModuleAnchestorForm<T extends ModuleAnchestor> extends DBObjectDial
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void ProcessResult() {
|
public void ProcessResult() {
|
||||||
Result.machine_id = Global.mainModule.getMachine().id;
|
Result.machine_id = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().id;
|
||||||
Compiler compiler = (Compiler) fields.cbCompilers.getSelectedItem();
|
Compiler compiler = (Compiler) fields.cbCompilers.getSelectedItem();
|
||||||
Result.compiler_id = (compiler != null) ? compiler.id : CommonConstants.Nan;
|
Result.compiler_id = (compiler != null) ? compiler.id : CommonConstants.Nan;
|
||||||
Result.command = command;
|
Result.command = command;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ import Common.Visual.Menus.DataMenuBar;
|
|||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import Common.Visual.Windows.Dialog.DialogFields;
|
import Common.Visual.Windows.Dialog.DialogFields;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
|
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||||
import _VisualDVM.GlobalData.Module.Module;
|
import _VisualDVM.GlobalData.Module.Module;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
@@ -15,8 +16,8 @@ public class ModulesForm extends DataSetControlForm<Module> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.Module;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasCheckBox() {
|
protected boolean hasCheckBox() {
|
||||||
@@ -56,7 +57,8 @@ public class ModulesForm extends DataSetControlForm<Module> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(Module object) {
|
public boolean isObjectVisible(Module object) {
|
||||||
return super.isObjectVisible(object) && MainModule_.instance.matchCurrentID(Current.Makefile, object.makefile_id);
|
return super.isObjectVisible(object) &&
|
||||||
|
MainModule_.instance.getDb().getTable(Makefile.class).getUI().matchCurrentID(object.makefile_id);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected DBObjectDialog<Module, ? extends DialogFields> getDialog() {
|
protected DBObjectDialog<Module, ? extends DialogFields> getDialog() {
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
package _VisualDVM.GlobalData.RunConfiguration.UI;
|
package _VisualDVM.GlobalData.RunConfiguration.UI;
|
||||||
import Common.CommonConstants;
|
import Common.CommonConstants;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -45,7 +47,7 @@ public class RunConfigurationDialog extends DBObjectDialog<RunConfiguration, Run
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void ProcessResult() {
|
public void ProcessResult() {
|
||||||
Result.machine_id = Global.mainModule.getMachine().id;
|
Result.machine_id = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().id;
|
||||||
Result.LauncherCall = fields.cbLauncherCall.getSelectedItem().toString();
|
Result.LauncherCall = fields.cbLauncherCall.getSelectedItem().toString();
|
||||||
Result.LauncherOptions = (String) fields.cbLaunchOptions.getSelectedItem();
|
Result.LauncherOptions = (String) fields.cbLaunchOptions.getSelectedItem();
|
||||||
if (fields.cbLauncherCall.getSelectedItem() instanceof Compiler) {
|
if (fields.cbLauncherCall.getSelectedItem() instanceof Compiler) {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import Common.Visual.DataSetControlForm;
|
|||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
@@ -14,8 +15,8 @@ public class RunConfigurationsForm extends DataSetControlForm<RunConfiguration>
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.RunConfiguration;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
@@ -69,7 +70,8 @@ public class RunConfigurationsForm extends DataSetControlForm<RunConfiguration>
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(RunConfiguration object) {
|
public boolean isObjectVisible(RunConfiguration object) {
|
||||||
return super.isObjectVisible(object) && MainModule_.instance.matchCurrentID(Current.Machine, object.machine_id);
|
return super.isObjectVisible(object) &&
|
||||||
|
MainModule_.instance.getDb().getTable(Machine.class).getUI().matchCurrentID(object.machine_id);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected DBObjectDialog getDialog() {
|
protected DBObjectDialog getDialog() {
|
||||||
|
|||||||
@@ -15,10 +15,6 @@ public class SapforProfilesForm extends DataSetControlForm<SapforProfile> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
|
||||||
return Current.SapforProfile;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected boolean hasCheckBox() {
|
protected boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ import Common.Database.Tables.DataSet;
|
|||||||
import Common.MainModule_;
|
import Common.MainModule_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
|
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
||||||
import _VisualDVM.GlobalData.SapforProfileSetting.SapforProfileSetting;
|
import _VisualDVM.GlobalData.SapforProfileSetting.SapforProfileSetting;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -11,8 +13,8 @@ public class SapforProfileSettingsForm extends DataSetControlForm<SapforProfileS
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.SapforProfileSetting;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
@@ -42,6 +44,7 @@ public class SapforProfileSettingsForm extends DataSetControlForm<SapforProfileS
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(SapforProfileSetting object) {
|
public boolean isObjectVisible(SapforProfileSetting object) {
|
||||||
return super.isObjectVisible(object) && MainModule_.instance.matchCurrentID(Current.SapforProfile, object.sapforprofile_id);
|
return super.isObjectVisible(object) &&
|
||||||
|
MainModule_.instance.getDb().getTable(SapforProfile.class).getUI().matchCurrentID(object.sapforprofile_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,10 @@ import Common.Visual.DataSetControlForm;
|
|||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
import Common.Visual.Tables.RendererDate;
|
import Common.Visual.Tables.RendererDate;
|
||||||
import Common.Visual.Tables.RendererStatusEnum;
|
import Common.Visual.Tables.RendererStatusEnum;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -16,8 +17,8 @@ public class CompilationTasksForm extends DataSetControlForm<CompilationTask> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.CompilationTask;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasCheckBox() {
|
protected boolean hasCheckBox() {
|
||||||
@@ -62,8 +63,8 @@ public class CompilationTasksForm extends DataSetControlForm<CompilationTask> {
|
|||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(CompilationTask object) {
|
public boolean isObjectVisible(CompilationTask object) {
|
||||||
return super.isObjectVisible(object) &&
|
return super.isObjectVisible(object) &&
|
||||||
MainModule_.instance.matchCurrentID(Current.Machine, object.machine_id) &&
|
MainModule_.instance.getDb().matchCurrentID(Machine.class, object.machine_id) &&
|
||||||
MainModule_.instance.matchCurrentID(Current.User, object.user_id) &&
|
MainModule_.instance.getDb().matchCurrentID(User.class, object.user_id) &&
|
||||||
Global.mainModule.HasProject() &&
|
Global.mainModule.HasProject() &&
|
||||||
object.belongsToProject(Global.mainModule.getProject());
|
object.belongsToProject(Global.mainModule.getProject());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import Common.Visual.Tables.RendererDate;
|
|||||||
import Common.Visual.Tables.RendererStatusEnum;
|
import Common.Visual.Tables.RendererStatusEnum;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
|
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
||||||
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -16,8 +20,8 @@ public class RunTasksForm extends DataSetControlForm<RunTask> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.RunTask;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasCheckBox() {
|
protected boolean hasCheckBox() {
|
||||||
@@ -74,11 +78,11 @@ public class RunTasksForm extends DataSetControlForm<RunTask> {
|
|||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(RunTask object) {
|
public boolean isObjectVisible(RunTask object) {
|
||||||
return super.isObjectVisible(object) &&
|
return super.isObjectVisible(object) &&
|
||||||
MainModule_.instance.matchCurrentID(Current.Machine, object.machine_id) &&
|
MainModule_.instance.getDb().getTable(Machine.class).getUI().matchCurrentID(object.machine_id) &&
|
||||||
MainModule_.instance.matchCurrentID(Current.User, object.user_id) &&
|
MainModule_.instance.getDb().getTable(User.class).getUI().matchCurrentID(object.user_id) &&
|
||||||
MainModule_.instance.matchCurrentID(Current.RunConfiguration, object.run_configuration_id) &&
|
MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().matchCurrentID(object.run_configuration_id) &&
|
||||||
Global.mainModule.HasProject() &&
|
Global.mainModule.HasProject() &&
|
||||||
object.belongsToProject(Global.mainModule.getProject()) &&
|
object.belongsToProject(Global.mainModule.getProject()) &&
|
||||||
MainModule_.instance.matchCurrentID(Current.CompilationTask, object.compilation_task_id);
|
MainModule_.instance.getDb().getTable(CompilationTask.class).getUI().matchCurrentID(object.compilation_task_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
package _VisualDVM.GlobalData.Tasks.Supervisor.Local.Linux;
|
package _VisualDVM.GlobalData.Tasks.Supervisor.Local.Linux;
|
||||||
|
import Common.MainModule_;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -16,7 +19,7 @@ public class LinuxLocalRunSupervisor extends LinuxLocalTaskSupervisor<RunTask> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Map<String, String> getEnvs() {
|
protected Map<String, String> getEnvs() {
|
||||||
return Global.mainModule.getRunConfiguration().getEnvMap();
|
return MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent().getEnvMap();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected String getScriptText() {
|
protected String getScriptText() {
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
package _VisualDVM.GlobalData.Tasks.Supervisor.Local.Windows;
|
package _VisualDVM.GlobalData.Tasks.Supervisor.Local.Windows;
|
||||||
|
import Common.MainModule_;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -25,7 +28,7 @@ public class WindowsLocalRunSupervisor extends WindowsLocalTaskSupervisor<RunTas
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Map<String, String> getEnvs() {
|
protected Map<String, String> getEnvs() {
|
||||||
return Global.mainModule.getRunConfiguration().getEnvMap();
|
return MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent().getEnvMap();
|
||||||
}
|
}
|
||||||
void kill_mpi() throws Exception {
|
void kill_mpi() throws Exception {
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
package _VisualDVM.GlobalData.Tasks.Supervisor.Remote;
|
package _VisualDVM.GlobalData.Tasks.Supervisor.Remote;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
import _VisualDVM.GlobalData.Tasks.QueueSystem.MVS;
|
import _VisualDVM.GlobalData.Tasks.QueueSystem.MVS;
|
||||||
import _VisualDVM.GlobalData.Tasks.TaskState;
|
import _VisualDVM.GlobalData.Tasks.TaskState;
|
||||||
public class MVSRunSupervisor extends ServerRunSupervisor {
|
public class MVSRunSupervisor extends ServerRunSupervisor {
|
||||||
@@ -29,7 +32,7 @@ public class MVSRunSupervisor extends ServerRunSupervisor {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void StartTask() throws Exception {
|
protected void StartTask() throws Exception {
|
||||||
String env = String.join(" ", Global.mainModule.getRunConfiguration().getEnvList());
|
String env = String.join(" ", MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent().getEnvList());
|
||||||
mvs_time = (task.maxtime / 60); //в минутах
|
mvs_time = (task.maxtime / 60); //в минутах
|
||||||
if (task.maxtime % 60 > 0) mvs_time += 1;
|
if (task.maxtime % 60 > 0) mvs_time += 1;
|
||||||
String res = "maxtime=" + Utils_.DQuotes(mvs_time) + " ./run";
|
String res = "maxtime=" + Utils_.DQuotes(mvs_time) + " ./run";
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
package _VisualDVM.GlobalData.Tasks.Supervisor.Remote;
|
package _VisualDVM.GlobalData.Tasks.Supervisor.Remote;
|
||||||
|
import Common.MainModule_;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
||||||
import _VisualDVM.GlobalData.Tasks.TaskState;
|
import _VisualDVM.GlobalData.Tasks.TaskState;
|
||||||
import _VisualDVM.Utils;
|
import _VisualDVM.Utils;
|
||||||
@@ -14,7 +17,7 @@ public class ServerRunSupervisor extends RemoteTaskSupervisor<RunTask> {
|
|||||||
@Override
|
@Override
|
||||||
protected void StartTask() throws Exception {
|
protected void StartTask() throws Exception {
|
||||||
String res = "./run";
|
String res = "./run";
|
||||||
String env = String.join(" ", Global.mainModule.getRunConfiguration().getEnvList());
|
String env = String.join(" ", MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent().getEnvList());
|
||||||
if (!env.isEmpty()) res = env + " " + res;
|
if (!env.isEmpty()) res = env + " " + res;
|
||||||
//--
|
//--
|
||||||
task.PID = pass.user.connection.startShellProcess(getRemoteProject(), "PID",
|
task.PID = pass.user.connection.startShellProcess(getRemoteProject(), "PID",
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package _VisualDVM.GlobalData.User.UI;
|
package _VisualDVM.GlobalData.User.UI;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||||
import _VisualDVM.GlobalData.User.User;
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.GlobalData.User.UserAuthentication;
|
import _VisualDVM.GlobalData.User.UserAuthentication;
|
||||||
@@ -14,7 +16,7 @@ public class UserDialog extends DBObjectDialog<User, UserFields> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void fillFields() {
|
public void fillFields() {
|
||||||
if (Global.mainModule.getMachine().type.equals(MachineType.Local)) {
|
if (MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().type.equals(MachineType.Local)) {
|
||||||
Result.login = "этот пользователь";
|
Result.login = "этот пользователь";
|
||||||
fields.tfLogin.setEditable(false);
|
fields.tfLogin.setEditable(false);
|
||||||
}
|
}
|
||||||
@@ -29,7 +31,7 @@ public class UserDialog extends DBObjectDialog<User, UserFields> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public void ProcessResult() {
|
public void ProcessResult() {
|
||||||
Result.machine_id = Global.mainModule.getMachine().id;
|
Result.machine_id = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().id;
|
||||||
Result.login = fields.tfLogin.getText();
|
Result.login = fields.tfLogin.getText();
|
||||||
Result.authentication = UserAuthentication.password;
|
Result.authentication = UserAuthentication.password;
|
||||||
Result.password = new String(fields.tfPassword.getPassword());
|
Result.password = new String(fields.tfPassword.getPassword());
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import Common.Visual.Tables.RendererStatusEnum;
|
|||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.User.User;
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
@@ -16,8 +17,8 @@ public class UsersForm extends DataSetControlForm<User> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current CurrentName() {
|
protected boolean needsCurrent() {
|
||||||
return Current.User;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean hasCheckBox() {
|
protected boolean hasCheckBox() {
|
||||||
@@ -65,7 +66,8 @@ public class UsersForm extends DataSetControlForm<User> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(User object) {
|
public boolean isObjectVisible(User object) {
|
||||||
return super.isObjectVisible(object) && super.isObjectVisible(object) && MainModule_.instance.matchCurrentID(Current.Machine, object.machine_id);
|
return super.isObjectVisible(object) &&
|
||||||
|
MainModule_.instance.getDb().getTable(Machine.class).getUI().matchCurrentID(object.machine_id);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected DBObjectDialog getDialog() {
|
protected DBObjectDialog getDialog() {
|
||||||
|
|||||||
@@ -2,39 +2,15 @@ package _VisualDVM;
|
|||||||
import Common.MainModule_;
|
import Common.MainModule_;
|
||||||
import Common.Utils.Vector_;
|
import Common.Utils.Vector_;
|
||||||
import _VisualDVM.GlobalData.Account.Account;
|
import _VisualDVM.GlobalData.Account.Account;
|
||||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
|
||||||
import _VisualDVM.GlobalData.Credentials.Credentials;
|
|
||||||
import _VisualDVM.GlobalData.GlobalDatabase;
|
import _VisualDVM.GlobalData.GlobalDatabase;
|
||||||
import _VisualDVM.GlobalData.Machine.Machine;
|
|
||||||
import _VisualDVM.GlobalData.Makefile.Makefile;
|
|
||||||
import _VisualDVM.GlobalData.Module.Module;
|
|
||||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||||
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
|
||||||
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
|
||||||
import _VisualDVM.GlobalData.Settings.SettingName;
|
import _VisualDVM.GlobalData.Settings.SettingName;
|
||||||
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
|
||||||
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
|
||||||
import _VisualDVM.GlobalData.User.User;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
import _VisualDVM.ProjectData.Files.DBProjectFile;
|
||||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||||
import _VisualDVM.ProjectData.ProjectView;
|
import _VisualDVM.ProjectData.ProjectView;
|
||||||
import _VisualDVM.ProjectData.SapforData.Functions.FuncInfo;
|
import _VisualDVM.ProjectData.SapforData.Functions.FuncInfo;
|
||||||
import _VisualDVM.ProjectData.SapforData.Regions.ParallelRegion;
|
|
||||||
import _VisualDVM.Repository.BugReport.BugReport;
|
|
||||||
import _VisualDVM.Repository.Component.Component;
|
|
||||||
import _VisualDVM.Repository.Component.Sapfor.Sapfor;
|
import _VisualDVM.Repository.Component.Sapfor.Sapfor;
|
||||||
import _VisualDVM.Repository.SubscriberWorkspace.SubscriberWorkspace;
|
|
||||||
import _VisualDVM.Repository.Subscribes.Subscriber;
|
|
||||||
import _VisualDVM.TestingSystem.Common.Group.Group;
|
|
||||||
import _VisualDVM.TestingSystem.Common.Test.Test;
|
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMConfiguration.DVMConfiguration;
|
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMPackage.DVMPackage;
|
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMTasks.DVMRunTask;
|
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforConfiguration.SapforConfiguration;
|
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforPackage.SapforPackage;
|
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.ServerSapfor.ServerSapfor;
|
|
||||||
import _VisualDVM.Visual.MainUI;
|
import _VisualDVM.Visual.MainUI;
|
||||||
|
|
||||||
import javax.swing.tree.DefaultMutableTreeNode;
|
import javax.swing.tree.DefaultMutableTreeNode;
|
||||||
@@ -73,6 +49,8 @@ public class MainModule extends MainModule_<GlobalDatabase, MainUI> {
|
|||||||
return "_VisualDVM.Passes.All.";
|
return "_VisualDVM.Passes.All.";
|
||||||
}
|
}
|
||||||
//--
|
//--
|
||||||
|
public boolean HasAccount(){return get(Current.Account)!=null; } //Бессмысленно. аккаунт всегда подразумевается. вывести.
|
||||||
|
public Account getAccount(){return (Account) get(Current.Account);} //временно
|
||||||
public boolean HasProject() {
|
public boolean HasProject() {
|
||||||
return get(Current.Project) != null;
|
return get(Current.Project) != null;
|
||||||
}
|
}
|
||||||
@@ -83,54 +61,15 @@ public class MainModule extends MainModule_<GlobalDatabase, MainUI> {
|
|||||||
public boolean HasFile() {
|
public boolean HasFile() {
|
||||||
return get(Current.File) != null;
|
return get(Current.File) != null;
|
||||||
}
|
}
|
||||||
public boolean HasAccount() {
|
|
||||||
return get(Current.Account) != null;
|
|
||||||
}
|
|
||||||
public boolean HasMachine() {
|
|
||||||
return get(Current.Machine) != null;
|
|
||||||
}
|
|
||||||
public boolean HasUser() {
|
|
||||||
return get(Current.User) != null;
|
|
||||||
}
|
|
||||||
public boolean HasCompiler() {
|
|
||||||
return get(Current.Compiler) != null;
|
|
||||||
}
|
|
||||||
public boolean HasRemoteFile() {
|
public boolean HasRemoteFile() {
|
||||||
return get(Current.RemoteFile) != null;
|
return get(Current.RemoteFile) != null;
|
||||||
}
|
}
|
||||||
public boolean HasMakefile() {
|
|
||||||
return get(Current.Makefile) != null;
|
|
||||||
}
|
|
||||||
public boolean HasRunConfiguration() {
|
|
||||||
return get(Current.RunConfiguration) != null;
|
|
||||||
}
|
|
||||||
public boolean HasCompilationTask() {
|
|
||||||
return get(Current.CompilationTask) != null;
|
|
||||||
}
|
|
||||||
public boolean HasRunTask() {
|
|
||||||
return get(Current.RunTask) != null;
|
|
||||||
}
|
|
||||||
public boolean HasProjectView() {
|
public boolean HasProjectView() {
|
||||||
return get(Current.ProjectView) != null;
|
return get(Current.ProjectView) != null;
|
||||||
}
|
}
|
||||||
public Credentials getCredentials() {
|
|
||||||
return (Credentials) get(Current.Credentials);
|
|
||||||
}
|
|
||||||
public SapforSettings getSapforSettings() {
|
|
||||||
return (SapforSettings) get(Current.SapforSettings);
|
|
||||||
}
|
|
||||||
public boolean HasSapforSettings() {
|
|
||||||
return get(Current.SapforSettings) != null;
|
|
||||||
}
|
|
||||||
public DBProjectFile getFile() {
|
public DBProjectFile getFile() {
|
||||||
return (DBProjectFile) get(Current.File);
|
return (DBProjectFile) get(Current.File);
|
||||||
}
|
}
|
||||||
public Component getComponent() {
|
|
||||||
return (Component) get(Current.Component);
|
|
||||||
}
|
|
||||||
public BugReport getBugReport() {
|
|
||||||
return (BugReport) get(Current.BugReport);
|
|
||||||
}
|
|
||||||
public db_project_info getRoot() {
|
public db_project_info getRoot() {
|
||||||
return (db_project_info) get(Current.Root);
|
return (db_project_info) get(Current.Root);
|
||||||
}
|
}
|
||||||
@@ -140,66 +79,12 @@ public class MainModule extends MainModule_<GlobalDatabase, MainUI> {
|
|||||||
public db_project_info getVersion() {
|
public db_project_info getVersion() {
|
||||||
return (db_project_info) get(Current.Version);
|
return (db_project_info) get(Current.Version);
|
||||||
}
|
}
|
||||||
public Account getAccount() {
|
|
||||||
return (Account) get(Current.Account);
|
|
||||||
}
|
|
||||||
public boolean HasSubscriber() {
|
|
||||||
return get(Current.Subscriber) != null;
|
|
||||||
}
|
|
||||||
public Subscriber getSubscriber() {
|
|
||||||
return (Subscriber) get(Current.Subscriber);
|
|
||||||
}
|
|
||||||
public Machine getMachine() {
|
|
||||||
return (Machine) get(Current.Machine);
|
|
||||||
}
|
|
||||||
public User getUser() {
|
|
||||||
return (User) get(Current.User);
|
|
||||||
}
|
|
||||||
public Compiler getCompiler() {
|
|
||||||
return (Compiler) get(Current.Compiler);
|
|
||||||
}
|
|
||||||
public CompilationTask getCompilationTask() {
|
|
||||||
return (CompilationTask) get(Current.CompilationTask);
|
|
||||||
}
|
|
||||||
public RunTask getRunTask() {
|
|
||||||
return (RunTask) get(Current.RunTask);
|
|
||||||
}
|
|
||||||
public RemoteFile getRemoteFile() {
|
public RemoteFile getRemoteFile() {
|
||||||
return (RemoteFile) get(Current.RemoteFile);
|
return (RemoteFile) get(Current.RemoteFile);
|
||||||
}
|
}
|
||||||
public Makefile getMakefile() {
|
|
||||||
return (Makefile) get(Current.Makefile);
|
|
||||||
}
|
|
||||||
public Module getModule() {
|
|
||||||
return (Module) get(Current.Module);
|
|
||||||
}
|
|
||||||
public RunConfiguration getRunConfiguration() {
|
|
||||||
return (RunConfiguration) get(Current.RunConfiguration);
|
|
||||||
}
|
|
||||||
public Sapfor getSapfor() {
|
public Sapfor getSapfor() {
|
||||||
return (Sapfor) get(Current.Sapfor);
|
return (Sapfor) get(Current.Sapfor);
|
||||||
}
|
}
|
||||||
public boolean HasGroup() {
|
|
||||||
return get(Current.Group) != null;
|
|
||||||
}
|
|
||||||
public Group getGroup() {
|
|
||||||
return (Group) get(Current.Group);
|
|
||||||
}
|
|
||||||
public boolean HasConfiguration() {
|
|
||||||
return get(Current.DVMConfiguration) != null;
|
|
||||||
}
|
|
||||||
public DVMConfiguration getDVMConfiguration() {
|
|
||||||
return (DVMConfiguration) get(Current.DVMConfiguration);
|
|
||||||
}
|
|
||||||
public SapforConfiguration getSapforConfiguration() {
|
|
||||||
return (SapforConfiguration) get(Current.SapforConfiguration);
|
|
||||||
}
|
|
||||||
public Test getTest() {
|
|
||||||
return (Test) get(Current.Test);
|
|
||||||
}
|
|
||||||
public boolean HasTest() {
|
|
||||||
return get(Current.Test) != null;
|
|
||||||
}
|
|
||||||
public boolean HasVersion() {
|
public boolean HasVersion() {
|
||||||
return get(Current.Version) != null;
|
return get(Current.Version) != null;
|
||||||
}
|
}
|
||||||
@@ -225,15 +110,6 @@ public class MainModule extends MainModule_<GlobalDatabase, MainUI> {
|
|||||||
public DBProjectFile getSelectedFile() {
|
public DBProjectFile getSelectedFile() {
|
||||||
return (DBProjectFile) get(Current.SelectedFile);
|
return (DBProjectFile) get(Current.SelectedFile);
|
||||||
}
|
}
|
||||||
public boolean HasBugReport() {
|
|
||||||
return get(Current.BugReport) != null;
|
|
||||||
}
|
|
||||||
public ParallelRegion getParallelRegion() {
|
|
||||||
return (ParallelRegion) get(Current.ParallelRegion);
|
|
||||||
}
|
|
||||||
public boolean HasParallelRegion() {
|
|
||||||
return get(Current.ParallelRegion) != null;
|
|
||||||
}
|
|
||||||
public boolean HasFunction() {
|
public boolean HasFunction() {
|
||||||
return get(Current.Function) != null;
|
return get(Current.Function) != null;
|
||||||
}
|
}
|
||||||
@@ -246,63 +122,18 @@ public class MainModule extends MainModule_<GlobalDatabase, MainUI> {
|
|||||||
public FuncInfo getSelectionFunction() {
|
public FuncInfo getSelectionFunction() {
|
||||||
return (FuncInfo) get(Current.SelectedFunction);
|
return (FuncInfo) get(Current.SelectedFunction);
|
||||||
}
|
}
|
||||||
public boolean HasScenario() {
|
|
||||||
return get(Current.Scenario) != null;
|
|
||||||
}
|
|
||||||
public db_project_info getPackageVersion() {
|
public db_project_info getPackageVersion() {
|
||||||
return (db_project_info) get(Current.PackageVersion);
|
return (db_project_info) get(Current.PackageVersion);
|
||||||
}
|
}
|
||||||
public boolean HasPackageVersion() {
|
public boolean HasPackageVersion() {
|
||||||
return get(Current.PackageVersion) != null;
|
return get(Current.PackageVersion) != null;
|
||||||
}
|
}
|
||||||
public boolean HasSapforConfiguration() {
|
|
||||||
return get(Current.SapforConfiguration) != null;
|
|
||||||
}
|
|
||||||
public ProjectView getProjectView() {
|
public ProjectView getProjectView() {
|
||||||
return (ProjectView) get(Current.ProjectView);
|
return (ProjectView) get(Current.ProjectView);
|
||||||
}
|
}
|
||||||
public boolean HasSapforProfile() {
|
|
||||||
return get(Current.SapforProfile) != null;
|
|
||||||
}
|
|
||||||
public SapforProfile getSapforProfile() {
|
|
||||||
return (SapforProfile) get(Current.SapforProfile);
|
|
||||||
}
|
|
||||||
public boolean HasServerSapfor() {
|
|
||||||
return get(Current.ServerSapfor) != null;
|
|
||||||
}
|
|
||||||
public ServerSapfor getServerSapfor() {
|
|
||||||
return (ServerSapfor) get(Current.ServerSapfor);
|
|
||||||
}
|
|
||||||
public boolean HasSubscriberWorkspace() {
|
|
||||||
return get(Current.SubscriberWorkspace) != null;
|
|
||||||
}
|
|
||||||
public SubscriberWorkspace getSubscriberWorkspace() {
|
|
||||||
return (SubscriberWorkspace) get(Current.SubscriberWorkspace);
|
|
||||||
}
|
|
||||||
public boolean HasDVMPackage() {
|
|
||||||
return get(Current.DVMPackage) != null;
|
|
||||||
}
|
|
||||||
public DVMPackage getDVMPackage() {
|
|
||||||
return (DVMPackage) get(Current.DVMPackage);
|
|
||||||
}
|
|
||||||
public boolean HasSapforPackage() {
|
|
||||||
return get(Current.SapforPackage) != null;
|
|
||||||
}
|
|
||||||
public SapforPackage getSapforPackage() {
|
|
||||||
return (SapforPackage) get(Current.SapforPackage);
|
|
||||||
}
|
|
||||||
public boolean HasDVMRunTask() {
|
|
||||||
return get(Current.DVMRunTask) != null;
|
|
||||||
}
|
|
||||||
public DVMRunTask getDVMRunTask() {
|
|
||||||
return (DVMRunTask) get(Current.DVMRunTask);
|
|
||||||
}
|
|
||||||
public void DropCurrentFile() {
|
public void DropCurrentFile() {
|
||||||
set(Current.File, null);
|
set(Current.File, null);
|
||||||
set(Current.FileGraphElement, null);
|
set(Current.FileGraphElement, null);
|
||||||
set(Current.Notes, null);
|
|
||||||
set(Current.Warnings, null);
|
|
||||||
set(Current.Errors, null);
|
|
||||||
}
|
}
|
||||||
public void DropCurrentProject() {
|
public void DropCurrentProject() {
|
||||||
set(Current.Project, null);
|
set(Current.Project, null);
|
||||||
@@ -312,10 +143,6 @@ public class MainModule extends MainModule_<GlobalDatabase, MainUI> {
|
|||||||
set(Current.ProjectNode, null);
|
set(Current.ProjectNode, null);
|
||||||
set(Current.SelectedFile, null);
|
set(Current.SelectedFile, null);
|
||||||
set(Current.SelectedDirectory, null);
|
set(Current.SelectedDirectory, null);
|
||||||
set(Current.ParallelVariant, null);
|
|
||||||
set(Current.Dimensions, null);
|
|
||||||
set(Current.Array, null);
|
|
||||||
set(Current.DBArray, null);
|
|
||||||
}
|
}
|
||||||
public void SetUserPassesAccess() {
|
public void SetUserPassesAccess() {
|
||||||
for (PassCode code : accountRoleDependentPasses)
|
for (PassCode code : accountRoleDependentPasses)
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.Testing.AbortTestingPackage;
|
import _VisualDVM.Passes.Testing.AbortTestingPackage;
|
||||||
|
import _VisualDVM.TestingSystem.DVM.DVMPackage.DVMPackage;
|
||||||
public class AbortDVMPackage extends AbortTestingPackage {
|
public class AbortDVMPackage extends AbortTestingPackage {
|
||||||
@Override
|
@Override
|
||||||
public Current currentName() {
|
public Class currentClass() {
|
||||||
return Current.DVMPackage;
|
return DVMPackage.class;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public int getAbortType() {
|
public int getAbortType() {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.Testing.AbortTestingPackage;
|
import _VisualDVM.Passes.Testing.AbortTestingPackage;
|
||||||
|
import _VisualDVM.TestingSystem.SAPFOR.SapforPackage.SapforPackage;
|
||||||
public class AbortSapforPackage extends AbortTestingPackage {
|
public class AbortSapforPackage extends AbortTestingPackage {
|
||||||
@Override
|
@Override
|
||||||
public Current currentName() {
|
public Class currentClass() {
|
||||||
return Current.SapforPackage;
|
return SapforPackage.class;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public int getAbortType() {
|
public int getAbortType() {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ public class AddCompiler extends AddObjectPass<Compiler> {
|
|||||||
super(Compiler.class);
|
super(Compiler.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends DBObject> getOwner() {
|
protected Class<? extends DBObject> getOwnerClass() {
|
||||||
return Machine.class;
|
return Machine.class;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ public class AddDVMParameter extends AddObjectPass<DVMParameter> {
|
|||||||
super(DVMParameter.class);
|
super(DVMParameter.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends DBObject> getOwner() {
|
protected Class<? extends DBObject> getOwnerClass() {
|
||||||
return RunConfiguration.class;
|
return RunConfiguration.class;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ public class AddMakefile extends AddObjectPass<Makefile> {
|
|||||||
super(Makefile.class);
|
super(Makefile.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends DBObject> getOwner() {
|
protected Class<? extends DBObject> getOwnerClass() {
|
||||||
return Machine.class;
|
return Machine.class;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ public class AddRunConfiguration extends AddObjectPass<RunConfiguration> {
|
|||||||
super(RunConfiguration.class);
|
super(RunConfiguration.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends DBObject> getOwner() {
|
protected Class<? extends DBObject> getOwnerClass() {
|
||||||
return Machine.class;
|
return Machine.class;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,13 +11,13 @@ public class AddUser extends AddObjectPass<User> {
|
|||||||
super(User.class);
|
super(User.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Class<? extends DBObject> getOwner() {
|
protected Class<? extends DBObject> getOwnerClass() {
|
||||||
return Machine.class;
|
return Machine.class;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (super.canStart(args)) {
|
if (super.canStart(args)) {
|
||||||
Machine machine = Global.mainModule.getMachine();
|
Machine machine = (Machine) getOwner();
|
||||||
if (machine.type.equals(MachineType.Local) && (machine.getUsers().size() > 0)) {
|
if (machine.type.equals(MachineType.Local) && (machine.getUsers().size() > 0)) {
|
||||||
Log.Writeln_("У локальной машины может быть только один пользователь");
|
Log.Writeln_("У локальной машины может быть только один пользователь");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Passes.Server.ComponentsRepositoryPass;
|
import _VisualDVM.Passes.Server.ComponentsRepositoryPass;
|
||||||
@@ -29,8 +28,8 @@ public class AppendBugReportField extends ComponentsRepositoryPass<BugReport> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (Global.mainModule.Check(Log, Current.BugReport)) {
|
if (server.db.bugReports.getUI().Check(Log)) {
|
||||||
target = Global.mainModule.getBugReport();
|
target = server.db.bugReports.getUI().getCurrent();
|
||||||
if (!target.CheckNotDraft(Log))
|
if (!target.CheckNotDraft(Log))
|
||||||
return false;
|
return false;
|
||||||
fieldName = (String) args[0];
|
fieldName = (String) args[0];
|
||||||
@@ -61,7 +60,7 @@ public class AppendBugReportField extends ComponentsRepositoryPass<BugReport> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void showFinish() throws Exception {
|
protected void showFinish() throws Exception {
|
||||||
server.db.bugReports.getUI().Refresh();
|
server.db.bugReports.RefreshUI();
|
||||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ public class ApplyBugReportSettings extends Pass<BugReport> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) {
|
protected boolean canStart(Object... args) {
|
||||||
if (Global.mainModule.Check(Log, Current.BugReport)) {
|
if (Global.componentsServer.db.bugReports.getUI().Check(Log)) {
|
||||||
target = Global.mainModule.getBugReport();
|
target = Global.componentsServer.db.bugReports.getUI().getCurrent();
|
||||||
long vv = target.visualiser_version;
|
long vv = target.visualiser_version;
|
||||||
if (vv < 500) {
|
if (vv < 500) {
|
||||||
Log.Writeln_("Автоматическое применение настроек поддерживается только в отчётах об ошибках,\n" +
|
Log.Writeln_("Автоматическое применение настроек поддерживается только в отчётах об ошибках,\n" +
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Passes.Pass;
|
import Common.Passes.Pass;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
@@ -22,8 +23,8 @@ public class ApplyProfile extends Pass<SapforProfile> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (Global.mainModule.Check(Log, Current.SapforProfile)) {
|
if (MainModule_.instance.getDb().getTable(SapforProfile.class).getUI().Check(Log)) {
|
||||||
target = (SapforProfile) Global.mainModule.get(Current.SapforProfile);
|
target = MainModule_.instance.getDb().getTable(SapforProfile.class).getUI().getCurrent();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ public class BuildComponent extends ProcessPass<Component> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = Global.mainModule.getComponent();
|
target = Global.components.getUI().getCurrent();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class CheckAccount extends Pass<Boolean> {
|
|||||||
protected void showDone() throws Exception {
|
protected void showDone() throws Exception {
|
||||||
if (Global.mainModule.getUI().getMainWindow() != null) {
|
if (Global.mainModule.getUI().getMainWindow() != null) {
|
||||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowAccount();
|
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowAccount();
|
||||||
if (Global.mainModule.HasBugReport())
|
if (Global.componentsServer.db.bugReports.getUI().getCurrent()!=null)
|
||||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||||
}
|
}
|
||||||
if (Global.mainModule.getAccount().isAdmin())
|
if (Global.mainModule.getAccount().isAdmin())
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.Passes.Server.ComponentsRepositoryPass;
|
import _VisualDVM.Passes.Server.ComponentsRepositoryPass;
|
||||||
import _VisualDVM.Repository.Server.ServerCode;
|
import _VisualDVM.Repository.Server.ServerCode;
|
||||||
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
|
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
|
||||||
@@ -13,8 +16,8 @@ public class CheckRemoteWorkspace extends ComponentsRepositoryPass<SubscriberWor
|
|||||||
@Override
|
@Override
|
||||||
protected void ServerAction() throws Exception {
|
protected void ServerAction() throws Exception {
|
||||||
String email = Global.mainModule.getAccount().email;
|
String email = Global.mainModule.getAccount().email;
|
||||||
String machineURL = Global.mainModule.getMachine().getURL();
|
String machineURL = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().getURL();
|
||||||
String login = Global.mainModule.getUser().login;
|
String login = MainModule_.instance.getDb().getTable(User.class).getUI().getCurrent().login;
|
||||||
Command(new ServerExchangeUnit_2021(ServerCode.CheckURLRegistered,
|
Command(new ServerExchangeUnit_2021(ServerCode.CheckURLRegistered,
|
||||||
email + "\n" + machineURL + "\n" + login));
|
email + "\n" + machineURL + "\n" + login));
|
||||||
target = (SubscriberWorkspace) response.object;
|
target = (SubscriberWorkspace) response.object;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ public class CloneDVMSettings extends CloneServerObject<TestingServer, DVMSettin
|
|||||||
super(Global.testingServer, DVMSettings.class);
|
super(Global.testingServer, DVMSettings.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current currentName() {
|
protected Class currentClass() {
|
||||||
return Current.DVMSettings;
|
return DVMSettings.class;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,8 +16,8 @@ public class CloneSapforSettings extends CloneServerObject<TestingServer, Sapfor
|
|||||||
super(Global.testingServer, SapforSettings.class);
|
super(Global.testingServer, SapforSettings.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected Current currentName() {
|
protected Class currentClass() {
|
||||||
return Current.SapforSettings;
|
return SapforSettings.class;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void ServerAction() throws Exception {
|
protected void ServerAction() throws Exception {
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ public class CompareDVMRunTasks extends Pass<Vector<DVMRunTask>> {
|
|||||||
master = target.get(0);
|
master = target.get(0);
|
||||||
slave = null;
|
slave = null;
|
||||||
return UI.Question("Отобразить задачу " + Utils_.Brackets(master.getPK()));
|
return UI.Question("Отобразить задачу " + Utils_.Brackets(master.getPK()));
|
||||||
} else if ((target.size() == 0) && (Global.mainModule.HasDVMRunTask())) {
|
} else if ((target.size() == 0) && (Global.testingServer.db.dvmRunTasks.getUI().getCurrent()!=null)) {
|
||||||
master = Global.mainModule.getDVMRunTask();
|
master = Global.testingServer.db.dvmRunTasks.getUI().getCurrent();
|
||||||
slave = null;
|
slave = null;
|
||||||
return UI.Question("Отобразить задачу " + Utils_.Brackets(master.getPK()));
|
return UI.Question("Отобразить задачу " + Utils_.Brackets(master.getPK()));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ public class CompareSapforPackages extends Pass<Vector<SapforPackage>> {
|
|||||||
master = target.get(0);
|
master = target.get(0);
|
||||||
slave = null;
|
slave = null;
|
||||||
return UI.Question("Отобразить пакет " + Utils_.Brackets(master.getPK()));
|
return UI.Question("Отобразить пакет " + Utils_.Brackets(master.getPK()));
|
||||||
} else if ((target.size() == 0) && (Global.mainModule.HasSapforPackage())) {
|
} else if ((target.size() == 0) && ( (Global.testingServer.db.sapforPackages.getUI().getCurrent()!=null))) {
|
||||||
master = Global.mainModule.getSapforPackage();
|
master = Global.testingServer.db.sapforPackages.getUI().getCurrent();
|
||||||
slave = null;
|
slave = null;
|
||||||
return UI.Question("Отобразить пакет " + Utils_.Brackets(master.getPK()));
|
return UI.Question("Отобразить пакет " + Utils_.Brackets(master.getPK()));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -4,8 +4,11 @@ import Common.Passes.PassException;
|
|||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
|
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||||
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
||||||
import _VisualDVM.GlobalData.Tasks.TaskState;
|
import _VisualDVM.GlobalData.Tasks.TaskState;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.GlobalData.User.UserState;
|
import _VisualDVM.GlobalData.User.UserState;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.LanguageName;
|
import _VisualDVM.ProjectData.LanguageName;
|
||||||
@@ -13,6 +16,9 @@ import _VisualDVM.ProjectData.Project.db_project_info;
|
|||||||
public class Compile extends Pass<db_project_info> {
|
public class Compile extends Pass<db_project_info> {
|
||||||
Pass subpass = null;
|
Pass subpass = null;
|
||||||
CompilationTask compilationTask = null;
|
CompilationTask compilationTask = null;
|
||||||
|
Machine machine = null;
|
||||||
|
User user = null;
|
||||||
|
Makefile makefile = null;
|
||||||
@Override
|
@Override
|
||||||
protected PassCode necessary() {
|
protected PassCode necessary() {
|
||||||
return Global.mainModule.getProject().languageName.equals(LanguageName.fortran) ? PassCode.SPF_ParseFilesWithOrder : null;
|
return Global.mainModule.getProject().languageName.equals(LanguageName.fortran) ? PassCode.SPF_ParseFilesWithOrder : null;
|
||||||
@@ -27,15 +33,23 @@ public class Compile extends Pass<db_project_info> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) {
|
protected boolean canStart(Object... args) {
|
||||||
if (Global.mainModule.Check(Log, Current.Project, Current.Machine, Current.User, Current.Makefile)) {
|
if (Global.mainModule.Check(Log, Current.Project) && Global.mainModule.getDb().Check(Log, Machine.class, User.class, Makefile.class)) {
|
||||||
target = Global.mainModule.getProject();
|
target = Global.mainModule.getProject();
|
||||||
|
//--
|
||||||
|
machine = Global.mainModule.getDb().getTable(Machine.class).getUI().getCurrent();
|
||||||
|
user= Global.mainModule.getDb().getTable(User.class).getUI().getCurrent();
|
||||||
|
makefile= Global.mainModule.getDb().getTable(Makefile.class).getUI().getCurrent();
|
||||||
|
//--
|
||||||
subpass = null;
|
subpass = null;
|
||||||
compilationTask = null;
|
compilationTask = null;
|
||||||
if (Global.mainModule.getUser().state != UserState.ready_to_work)
|
if (user.state != UserState.ready_to_work)
|
||||||
Log.Writeln_("Пользователь " + Utils_.Brackets(Global.mainModule.getUser().login) +
|
Log.Writeln_("Пользователь " +
|
||||||
|
Utils_.Brackets(
|
||||||
|
user.login
|
||||||
|
) +
|
||||||
" не проинициализирован\nПерейдите на вкладку 'Настройки компиляции и запуска',\n" +
|
" не проинициализирован\nПерейдите на вкладку 'Настройки компиляции и запуска',\n" +
|
||||||
" и выполните команду 'Инициализация пользователя'\n");
|
" и выполните команду 'Инициализация пользователя'\n");
|
||||||
Global.mainModule.getMakefile().Validate(Log);
|
makefile.Validate(Log);
|
||||||
return Log.isEmpty();
|
return Log.isEmpty();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@@ -43,9 +57,9 @@ public class Compile extends Pass<db_project_info> {
|
|||||||
@Override
|
@Override
|
||||||
protected void performPreparation() throws Exception {
|
protected void performPreparation() throws Exception {
|
||||||
compilationTask = new CompilationTask();
|
compilationTask = new CompilationTask();
|
||||||
compilationTask.machine_id = Global.mainModule.getMachine().id;
|
compilationTask.machine_id = machine.id;
|
||||||
compilationTask.user_id = Global.mainModule.getUser().id;
|
compilationTask.user_id = user.id;
|
||||||
compilationTask.makefile_id = Global.mainModule.getMakefile().id;
|
compilationTask.makefile_id = makefile.id;
|
||||||
compilationTask.project_path = target.Home.getAbsolutePath();
|
compilationTask.project_path = target.Home.getAbsolutePath();
|
||||||
compilationTask.project_description = target.description;
|
compilationTask.project_description = target.description;
|
||||||
//------------------------------------------
|
//------------------------------------------
|
||||||
@@ -60,7 +74,7 @@ public class Compile extends Pass<db_project_info> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
switch (Global.mainModule.getMachine().type) {
|
switch (machine.type) {
|
||||||
case Local:
|
case Local:
|
||||||
if (Utils_.isWindows()) {
|
if (Utils_.isWindows()) {
|
||||||
subpass = Global.mainModule.getPass(PassCode.WindowsLocalCompilation);
|
subpass = Global.mainModule.getPass(PassCode.WindowsLocalCompilation);
|
||||||
@@ -69,12 +83,13 @@ public class Compile extends Pass<db_project_info> {
|
|||||||
break;
|
break;
|
||||||
case Undefined:
|
case Undefined:
|
||||||
case MVS_cluster:
|
case MVS_cluster:
|
||||||
throw new PassException("Компиляция не реализована для типа машины " + Utils_.DQuotes(Global.mainModule.getMachine().type));
|
throw new PassException("Компиляция не реализована для типа машины " +
|
||||||
|
Utils_.DQuotes(machine.type));
|
||||||
default:
|
default:
|
||||||
subpass = Global.mainModule.getPass(PassCode.RemoteCompilation);
|
subpass = Global.mainModule.getPass(PassCode.RemoteCompilation);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
subpass.Do(Global.mainModule.getCompilationTask(), Global.mainModule.getProject());
|
subpass.Do(compilationTask, Global.mainModule.getProject());
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean validate() {
|
protected boolean validate() {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class ConvertCorrectnessTests extends TestingSystemPass<File> {
|
|||||||
Log.Writeln_("Вы не являетесь администратором");
|
Log.Writeln_("Вы не являетесь администратором");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Global.mainModule.Check(Log, Current.ServerSapfor)) {
|
if (! Global.testingServer.db.serverSapfors.getUI().Check(Log)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return UI.Warning("Загрузить полный пакет DVM тестов на корректность и производительность.");
|
return UI.Warning("Загрузить полный пакет DVM тестов на корректность и производительность.");
|
||||||
@@ -49,7 +49,8 @@ public class ConvertCorrectnessTests extends TestingSystemPass<File> {
|
|||||||
@Override
|
@Override
|
||||||
protected void ServerAction() throws Exception {
|
protected void ServerAction() throws Exception {
|
||||||
Command(new ServerExchangeUnit_2021(ServerCode.RefreshDVMTests,
|
Command(new ServerExchangeUnit_2021(ServerCode.RefreshDVMTests,
|
||||||
String.valueOf(Global.mainModule.getServerSapfor().id), Global.mainModule.getAccount()));
|
String.valueOf(
|
||||||
|
Global.testingServer.db.serverSapfors.getUI().getCurrent().id), Global.mainModule.getAccount()));
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void performFinish() throws Exception {
|
protected void performFinish() throws Exception {
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class CreateGroupFromDirectory extends PublishTests {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Global.mainModule.getPass(PassCode.PublishGroup).Do(dir.getName().toUpperCase())) {
|
if (Global.mainModule.getPass(PassCode.PublishGroup).Do(dir.getName().toUpperCase())) {
|
||||||
group = Global.mainModule.getGroup();
|
group = Global.testingServer.db.groups.getUI().getCurrent();
|
||||||
} else return false;
|
} else return false;
|
||||||
//---------------
|
//---------------
|
||||||
Vector<File> files = new Vector<>(Arrays.asList(files_));
|
Vector<File> files = new Vector<>(Arrays.asList(files_));
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ public class CreateGroupFromFiles extends PublishTests {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Global.mainModule.getPass(PassCode.PublishGroup).Do(dir.getName().toUpperCase())) {
|
if (Global.mainModule.getPass(PassCode.PublishGroup).Do(dir.getName().toUpperCase())) {
|
||||||
group = Global.mainModule.getGroup();
|
group = Global.testingServer.db.groups.getUI().getCurrent();
|
||||||
} else return false;
|
} else return false;
|
||||||
//--
|
//--
|
||||||
return super.canStart(files, group);
|
return super.canStart(files, group);
|
||||||
|
|||||||
@@ -71,9 +71,9 @@ public class CreateTestFromDirectory extends Pass<Test> {
|
|||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
//--
|
//--
|
||||||
from_files_chooser = true;
|
from_files_chooser = true;
|
||||||
if (!Global.mainModule.Check(Log, Current.Group))
|
if (!Global.testingServer.db.groups.getUI().Check(Log))
|
||||||
return false;
|
return false;
|
||||||
group = Global.mainModule.getGroup();
|
group = Global.testingServer.db.groups.getUI().getCurrent();
|
||||||
if (!selectFiles())
|
if (!selectFiles())
|
||||||
return false;
|
return false;
|
||||||
//-
|
//-
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ 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 (Global.mainModule.Check(Log, Current.Group, Current.Project)) {
|
if (Global.testingServer.db.groups.getUI().Check(Log) && Global.mainModule.Check(Log, Current.Project)) {
|
||||||
project = Global.mainModule.getProject();
|
project = Global.mainModule.getProject();
|
||||||
if (super.canStart(Global.mainModule.getProject().Home, Global.mainModule.getGroup())) {
|
if (super.canStart(Global.testingServer.db.groups.getUI().getCurrent())) {
|
||||||
from_files_chooser = true; //чтобы опубликовал.
|
from_files_chooser = true; //чтобы опубликовал.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class CreateTestsFromFiles extends PublishTests {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (Global.mainModule.Check(Log, Current.Group)) {
|
if (Global.testingServer.db.groups.getUI().Check(Log)) {
|
||||||
Utils.RestoreSelectedDirectory(fileChooser);
|
Utils.RestoreSelectedDirectory(fileChooser);
|
||||||
Vector<File> files = fileChooser.ShowMultiDialog();
|
Vector<File> files = fileChooser.ShowMultiDialog();
|
||||||
if (files.isEmpty()) {
|
if (files.isEmpty()) {
|
||||||
@@ -28,7 +28,7 @@ public class CreateTestsFromFiles extends PublishTests {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Global.mainModule.getPass(PassCode.UpdateSetting).Do(SettingName.ProjectsSearchDirectory, fileChooser.getCurrentDirectory());
|
Global.mainModule.getPass(PassCode.UpdateSetting).Do(SettingName.ProjectsSearchDirectory, fileChooser.getCurrentDirectory());
|
||||||
return super.canStart(files, Global.mainModule.getGroup());
|
return super.canStart(files, Global.testingServer.db.groups.getUI().getCurrent());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ 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 (Global.mainModule.Check(Log, Current.Group)) {
|
if (Global.testingServer.db.groups.getUI().Check(Log)) {
|
||||||
group = Global.mainModule.getGroup();
|
group = Global.testingServer.db.groups.getUI().getCurrent();
|
||||||
} else
|
} else
|
||||||
return false;
|
return false;
|
||||||
//---------------------
|
//---------------------
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
|
|||||||
public class DownloadComponent extends ComponentsRepositoryPass<Component> {
|
public class DownloadComponent extends ComponentsRepositoryPass<Component> {
|
||||||
@Override
|
@Override
|
||||||
protected void ServerAction() throws Exception {
|
protected void ServerAction() throws Exception {
|
||||||
target = Global.mainModule.getComponent();
|
target = Global.components.getUI().getCurrent();
|
||||||
String packed = target.getComponentType() + "\n" + target.getFileName();
|
String packed = target.getComponentType() + "\n" + target.getFileName();
|
||||||
Command(new ServerExchangeUnit_2021(ServerCode.ReceiveComponent, packed));
|
Command(new ServerExchangeUnit_2021(ServerCode.ReceiveComponent, packed));
|
||||||
Utils_.bytesToFile((byte[]) response.object, target.getNewFile());
|
Utils_.bytesToFile((byte[]) response.object, target.getNewFile());
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ public class DownloadDVMPackage extends DownloadDVMPackages {
|
|||||||
return "/icons/Comparsion.png";
|
return "/icons/Comparsion.png";
|
||||||
}
|
}
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (Global.mainModule.Check(Log, Current.DVMPackage)) {
|
if (Global.testingServer.db.dvmPackages.getUI().Check(Log)) {
|
||||||
//--
|
//--
|
||||||
dvmPackage = Global.mainModule.getDVMPackage();
|
dvmPackage = Global.testingServer.db.dvmPackages.getUI().getCurrent();
|
||||||
//--
|
//--
|
||||||
if (!dvmPackage.state.isDone()
|
if (!dvmPackage.state.isDone()
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -11,8 +11,9 @@ public class DownloadTaskTest extends DownloadTest {
|
|||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = null;
|
target = null;
|
||||||
if (Global.mainModule.getAccount().CheckRegistered(Log) && Global.mainModule.Check(Log, Current.DVMRunTask)) {
|
if (Global.mainModule.getAccount().CheckRegistered(Log) &&
|
||||||
DVMRunTask task = Global.mainModule.getDVMRunTask();
|
Global.testingServer.db.dvmRunTasks.getUI().Check(Log)) {
|
||||||
|
DVMRunTask task = Global.testingServer.db.dvmRunTasks.getUI().getCurrent();
|
||||||
//-- квазиобъект, нам от него нужно только имя.
|
//-- квазиобъект, нам от него нужно только имя.
|
||||||
target = new Test();
|
target = new Test();
|
||||||
target.id = task.test_id;
|
target.id = task.test_id;
|
||||||
|
|||||||
@@ -20,8 +20,10 @@ public class DownloadTest extends TestingSystemPass<Test> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (Global.mainModule.getAccount().CheckRegistered(Log) && Global.mainModule.Check(Log, Current.Test)) {
|
if (Global.mainModule.getAccount().CheckRegistered(Log) &&
|
||||||
target = Global.mainModule.getTest();
|
Global.testingServer.db.tests.getUI().Check(Log)
|
||||||
|
) {
|
||||||
|
target = Global.testingServer.db.tests.getUI().getCurrent();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -61,9 +61,11 @@ public class ExportDVMPackageToExcel extends Pass<Vector<DVMPackage>> {
|
|||||||
if (Global.testingServer.db.dvmPackages.getUI().getSelectedCount() > 0) {
|
if (Global.testingServer.db.dvmPackages.getUI().getSelectedCount() > 0) {
|
||||||
target = Global.testingServer.db.dvmPackages.getUI().getSelectedItems();
|
target = Global.testingServer.db.dvmPackages.getUI().getSelectedItems();
|
||||||
} else {
|
} else {
|
||||||
if (Global.mainModule.Check(Log, Current.DVMPackage)) {
|
if (Global.testingServer.db.dvmPackages.getUI().Check(Log)) {
|
||||||
target = new Vector<>();
|
target = new Vector<>();
|
||||||
target.add(Global.mainModule.getDVMPackage());
|
target.add(
|
||||||
|
Global.testingServer.db.dvmPackages.getUI().getCurrent()
|
||||||
|
);
|
||||||
} else return false;
|
} else return false;
|
||||||
}
|
}
|
||||||
Vector<Integer> packagesToDownload = new Vector<>();
|
Vector<Integer> packagesToDownload = new Vector<>();
|
||||||
|
|||||||
@@ -11,17 +11,19 @@ public class GetComponentsBackupsFromServer extends ComponentsRepositoryPass<Vec
|
|||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = new Vector<>();
|
target = new Vector<>();
|
||||||
return (Global.mainModule.Check(Log, Current.Component));
|
return Global.components.getUI().Check(Log);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void ServerAction() throws Exception {
|
protected void ServerAction() throws Exception {
|
||||||
Command(new ServerExchangeUnit_2021(ServerCode.GetComponentsBackups, Global.mainModule.getComponent().getComponentType().toString()));
|
Command(new ServerExchangeUnit_2021(ServerCode.GetComponentsBackups,
|
||||||
|
Global.components.getUI().getCurrent().getComponentType().toString()));
|
||||||
target = (Vector<File>) response.object;
|
target = (Vector<File>) response.object;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean validate() {
|
protected boolean validate() {
|
||||||
if (target.isEmpty()) {
|
if (target.isEmpty()) {
|
||||||
Log.Writeln_("Не найдено резервных копий на сервере для компонента " + Global.mainModule.getComponent().getComponentType().getDescription());
|
Log.Writeln_("Не найдено резервных копий на сервере для компонента "
|
||||||
|
+ Global.components.getUI().getCurrent().getComponentType().getDescription());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Passes.Pass;
|
import Common.Passes.Pass;
|
||||||
import Common.Passes.PassException;
|
import Common.Passes.PassException;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.GlobalData.User.UserState;
|
import _VisualDVM.GlobalData.User.UserState;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Repository.SubscriberWorkspace.SubscriberWorkspace;
|
import _VisualDVM.Repository.SubscriberWorkspace.SubscriberWorkspace;
|
||||||
@@ -18,11 +20,13 @@ public class InitialiseUser extends Pass {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
return Global.mainModule.Check(Log, Current.Machine, Current.User);
|
return MainModule_.instance.getDb().Check(Log, Machine.class, User.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
switch (Global.mainModule.getMachine().type) {
|
Machine machine = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent();
|
||||||
|
User user = MainModule_.instance.getDb().getTable(User.class).getUI().getCurrent();
|
||||||
|
switch (machine.type) {
|
||||||
case Local:
|
case Local:
|
||||||
Global.mainModule.getPass(PassCode.LocalInitaliseUser).Do();
|
Global.mainModule.getPass(PassCode.LocalInitaliseUser).Do();
|
||||||
break;
|
break;
|
||||||
@@ -34,21 +38,21 @@ public class InitialiseUser extends Pass {
|
|||||||
if (Global.mainModule.getPass(PassCode.RemoteInitialiseUser).Do()) {
|
if (Global.mainModule.getPass(PassCode.RemoteInitialiseUser).Do()) {
|
||||||
workspace = new SubscriberWorkspace();
|
workspace = new SubscriberWorkspace();
|
||||||
workspace.email = Global.mainModule.getAccount().email;
|
workspace.email = Global.mainModule.getAccount().email;
|
||||||
workspace.URL = Global.mainModule.getMachine().getURL();
|
workspace.URL = machine.getURL();
|
||||||
workspace.login = Global.mainModule.getUser().login;
|
workspace.login = user.login;
|
||||||
workspace.path = ((RemoteFile) Global.mainModule.getPass(PassCode.RemoteInitialiseUser).target).full_name;
|
workspace.path = ((RemoteFile) Global.mainModule.getPass(PassCode.RemoteInitialiseUser).target).full_name;
|
||||||
//---
|
//---
|
||||||
if (Global.mainModule.getPass(PassCode.PublishRemoteWorkspace).Do(workspace)) {
|
if (Global.mainModule.getPass(PassCode.PublishRemoteWorkspace).Do(workspace)) {
|
||||||
Global.mainModule.getUser().workspace = workspace.path;
|
user.workspace = workspace.path;
|
||||||
Global.mainModule.getUser().state = UserState.ready_to_work;
|
user.state = UserState.ready_to_work;
|
||||||
Global.mainModule.getDb().Update(Global.mainModule.getUser());
|
Global.mainModule.getDb().Update(user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//рега была. просто заносим то что там пользователю
|
//рега была. просто заносим то что там пользователю
|
||||||
Global.mainModule.getUser().workspace = workspace.path;
|
user.workspace = workspace.path;
|
||||||
Global.mainModule.getUser().state = UserState.ready_to_work;
|
user.state = UserState.ready_to_work;
|
||||||
Global.mainModule.getDb().Update(Global.mainModule.getUser());
|
Global.mainModule.getDb().Update(user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -58,6 +62,6 @@ public class InitialiseUser extends Pass {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void showFinish() throws Exception {
|
protected void showFinish() throws Exception {
|
||||||
Global.mainModule.getDb().users.getUI().Refresh();
|
Global.mainModule.getDb().users.getUI().RedrawControl();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.User.User;
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.GlobalData.User.UserState;
|
import _VisualDVM.GlobalData.User.UserState;
|
||||||
import _VisualDVM.Passes.ProcessPass;
|
import _VisualDVM.Passes.ProcessPass;
|
||||||
@@ -11,7 +13,7 @@ import java.io.File;
|
|||||||
public class LocalInitaliseUser extends ProcessPass<User> {
|
public class LocalInitaliseUser extends ProcessPass<User> {
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = Global.mainModule.getUser();
|
target = MainModule_.instance.getDb().getTable(User.class).getUI().getCurrent();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ public class OpenBugReportTestProject extends Pass<BugReport> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (Global.mainModule.Check(Log, Current.BugReport) &&
|
if (Global.componentsServer.db.Check(Log, BugReport.class) &&
|
||||||
(target = Global.mainModule.getBugReport()).CheckNotDraft(Log)) {
|
(target = Global.componentsServer.db.bugReports.getUI().getCurrent()).CheckNotDraft(Log)) {
|
||||||
if (!target.project_version.isEmpty()) {
|
if (!target.project_version.isEmpty()) {
|
||||||
root = Paths.get(ComponentsSet.visualiser.getWorkspace().getAbsolutePath(),
|
root = Paths.get(ComponentsSet.visualiser.getWorkspace().getAbsolutePath(),
|
||||||
target.id).toFile();
|
target.id).toFile();
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import javax.swing.*;
|
|||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
public class PickCompilerEnvironments extends Pass<String> {
|
public class PickCompilerEnvironments extends Pass<String> {
|
||||||
Compiler compiler = null;
|
Compiler compiler = null;
|
||||||
|
RunConfiguration configuration = null;
|
||||||
@Override
|
@Override
|
||||||
public String getIconPath() {
|
public String getIconPath() {
|
||||||
return "/icons/Menu/Regions.png";
|
return "/icons/Menu/Regions.png";
|
||||||
@@ -27,8 +28,8 @@ public class PickCompilerEnvironments extends Pass<String> {
|
|||||||
//-
|
//-
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (Global.mainModule.Check(Log, Current.RunConfiguration)) {
|
if (Global.mainModule.getDb().runConfigurations.getUI().Check(Log)) {
|
||||||
RunConfiguration configuration = Global.mainModule.getRunConfiguration();
|
configuration = Global.mainModule.getDb().runConfigurations.getUI().getCurrent();
|
||||||
if (configuration.compiler_id == CommonConstants.Nan) {
|
if (configuration.compiler_id == CommonConstants.Nan) {
|
||||||
Log.Writeln_("Отсутвует DVM компилятор, связанный с текущей конфигурацией запуска.\n" +
|
Log.Writeln_("Отсутвует DVM компилятор, связанный с текущей конфигурацией запуска.\n" +
|
||||||
"Если конфигурация содержит вызов DVM компилятора, но была создана на версии 801 и ниже,\n" +
|
"Если конфигурация содержит вызов DVM компилятора, но была создана на версии 801 и ниже,\n" +
|
||||||
@@ -70,14 +71,14 @@ public class PickCompilerEnvironments extends Pass<String> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
LinkedHashMap<String, String> envValues = Global.mainModule.getRunConfiguration().getEnvMap();
|
LinkedHashMap<String, String> envValues = configuration.getEnvMap();
|
||||||
for (CompilerEnvironment compilerEnv : compiler.environments.Data.values()) {
|
for (CompilerEnvironment compilerEnv : compiler.environments.Data.values()) {
|
||||||
if (compilerEnv.isSelected()) {
|
if (compilerEnv.isSelected()) {
|
||||||
EnvironmentValue confEnv;
|
EnvironmentValue confEnv;
|
||||||
if (!envValues.containsKey(compilerEnv.name)) {
|
if (!envValues.containsKey(compilerEnv.name)) {
|
||||||
confEnv = new EnvironmentValue();
|
confEnv = new EnvironmentValue();
|
||||||
confEnv.machine_id = Global.mainModule.getRunConfiguration().machine_id;
|
confEnv.machine_id = configuration.machine_id;
|
||||||
confEnv.run_configuration_id = Global.mainModule.getRunConfiguration().id;
|
confEnv.run_configuration_id = configuration.id;
|
||||||
confEnv.name = compilerEnv.name;
|
confEnv.name = compilerEnv.name;
|
||||||
confEnv.value = compilerEnv.value;
|
confEnv.value = compilerEnv.value;
|
||||||
Global.mainModule.getDb().Insert(confEnv);
|
Global.mainModule.getDb().Insert(confEnv);
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ public class PickCompilerEnvironmentsForTesting extends Pass<String> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
target = "";
|
target = "";
|
||||||
compiler = Global.mainModule.getCompiler();
|
compiler = Global.mainModule.getDb().compilers.getUI().getCurrent();
|
||||||
if (!compiler.type.equals(CompilerType.dvm)) {
|
if (!compiler.type.equals(CompilerType.dvm)) {
|
||||||
Log.Writeln_("Выбор переменных окружения возможен только для DVM компилятора,");
|
Log.Writeln_("Выбор переменных окружения возможен только для DVM компилятора,");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package _VisualDVM.Passes.All;
|
|||||||
import Common.Passes.Pass;
|
import Common.Passes.Pass;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Repository.BugReport.BugReport;
|
import _VisualDVM.Repository.BugReport.BugReport;
|
||||||
@@ -22,8 +21,8 @@ public class PublishBugReport extends Pass<BugReport> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) {
|
protected boolean canStart(Object... args) {
|
||||||
if (Global.mainModule.Check(Log, Current.BugReport)) {
|
if ( Global.componentsServer.db.bugReports.getUI().Check(Log)) {
|
||||||
target = Global.mainModule.getBugReport();
|
target = Global.componentsServer.db.bugReports.getUI().getCurrent();
|
||||||
if (!target.state.equals(BugReportState.draft)) {
|
if (!target.state.equals(BugReportState.draft)) {
|
||||||
Log.Writeln_("Отчёт об ошибке " + target.id + " уже опубликован!");
|
Log.Writeln_("Отчёт об ошибке " + target.id + " уже опубликован!");
|
||||||
return false;
|
return false;
|
||||||
@@ -69,7 +68,7 @@ public class PublishBugReport extends Pass<BugReport> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void showDone() throws Exception {
|
protected void showDone() throws Exception {
|
||||||
Global.componentsServer.db.bugReports.getUI().Refresh();
|
Global.componentsServer.db.bugReports.RefreshUI();
|
||||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,8 +41,8 @@ public class PublishComponent extends ComponentsRepositoryPass<Component> {
|
|||||||
Log.Writeln_("Вы не являетесь администратором");
|
Log.Writeln_("Вы не являетесь администратором");
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
if (Global.mainModule.Check(Log, Current.Component)) {
|
if (Global.components.getUI().Check(Log)) {
|
||||||
target = Global.mainModule.getComponent();
|
target = Global.components.getUI().getCurrent();
|
||||||
target.needs_update_minimal_version = false;
|
target.needs_update_minimal_version = false;
|
||||||
f.fields.cbUpdateMinimalVersion.setSelected(false);
|
f.fields.cbUpdateMinimalVersion.setSelected(false);
|
||||||
f.fields.lMinimalVersion.setText(String.valueOf(target.minimal_version));
|
f.fields.lMinimalVersion.setText(String.valueOf(target.minimal_version));
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import _VisualDVM.Current;
|
|||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.Server.PublishServerObject;
|
import _VisualDVM.Passes.Server.PublishServerObject;
|
||||||
import _VisualDVM.TestingSystem.Common.TestingServer;
|
import _VisualDVM.TestingSystem.Common.TestingServer;
|
||||||
|
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforSettingsCommand.SapforSettingsCommand;
|
import _VisualDVM.TestingSystem.SAPFOR.SapforSettingsCommand.SapforSettingsCommand;
|
||||||
public class PublishSapforSettingsCommand extends PublishServerObject<TestingServer, SapforSettingsCommand> {
|
public class PublishSapforSettingsCommand extends PublishServerObject<TestingServer, SapforSettingsCommand> {
|
||||||
public PublishSapforSettingsCommand() {
|
public PublishSapforSettingsCommand() {
|
||||||
@@ -10,11 +11,11 @@ public class PublishSapforSettingsCommand extends PublishServerObject<TestingSer
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean fillObjectFields() throws Exception {
|
public boolean fillObjectFields() throws Exception {
|
||||||
target.sapforsettings_id = Global.mainModule.getSapforSettings().id;
|
target.sapforsettings_id = Global.testingServer.db.getTable(SapforSettings.class).getUI().getCurrent().id;
|
||||||
return super.fillObjectFields();
|
return super.fillObjectFields();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
return Global.mainModule.Check(Log, Current.SapforSettings) && super.canStart(args);
|
return Global.testingServer.db.getTable(SapforSettings.class).getUI().Check(Log) && super.canStart(args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Passes.PassException;
|
import Common.Passes.PassException;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import _VisualDVM.Constants;
|
import _VisualDVM.Constants;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
import _VisualDVM.GlobalData.RemoteFile.RemoteFile;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.Passes.SSH.ConnectionPass;
|
import _VisualDVM.Passes.SSH.ConnectionPass;
|
||||||
|
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
@@ -16,12 +19,12 @@ public class RemoteInitialiseUser extends ConnectionPass<RemoteFile> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) {
|
protected boolean canStart(Object... args) {
|
||||||
return Global.mainModule.Check(Log, Current.User);
|
return MainModule_.instance.getDb().getTable(User.class).getUI().Check(Log);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void Connect() throws Exception {
|
protected void Connect() throws Exception {
|
||||||
machine = Global.mainModule.getMachine();
|
machine = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent();
|
||||||
user = Global.mainModule.getUser();
|
user = MainModule_.instance.getDb().getTable(User.class).getUI().getCurrent();
|
||||||
super.Connect();
|
super.Connect();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ public class ReplaceTestProject extends CreateTestFromProject {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean initTarget() throws Exception {
|
protected boolean initTarget() throws Exception {
|
||||||
if (Global.mainModule.Check(Log, Current.Test)) {
|
if (Global.testingServer.db.tests.getUI().Check(Log)) {
|
||||||
target = Global.mainModule.getTest();
|
target = Global.testingServer.db.tests.getUI().getCurrent();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ public class ReplaceTestsFromFiles extends TestingSystemPass<Vector<Test>> {
|
|||||||
//-
|
//-
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (!Global.mainModule.Check(Log, Current.Group))
|
if (!Global.testingServer.db.groups.getUI().Check(Log))
|
||||||
return false;
|
return false;
|
||||||
group = Global.mainModule.getGroup();
|
group = Global.testingServer.db.groups.getUI().getCurrent();
|
||||||
//--->>>
|
//--->>>
|
||||||
Utils.RestoreSelectedDirectory(fileChooser);
|
Utils.RestoreSelectedDirectory(fileChooser);
|
||||||
Vector<File> files = fileChooser.ShowMultiDialog();
|
Vector<File> files = fileChooser.ShowMultiDialog();
|
||||||
|
|||||||
@@ -1,12 +1,18 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Passes.Pass;
|
import Common.Passes.Pass;
|
||||||
import Common.Passes.PassException;
|
import Common.Passes.PassException;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||||
|
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||||
|
import _VisualDVM.GlobalData.RunConfiguration.RunConfiguration;
|
||||||
|
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
||||||
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
||||||
import _VisualDVM.GlobalData.Tasks.TaskState;
|
import _VisualDVM.GlobalData.Tasks.TaskState;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||||
|
|
||||||
@@ -24,7 +30,9 @@ public class Run extends Pass<db_project_info> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void performPreparation() throws Exception {
|
protected void performPreparation() throws Exception {
|
||||||
runTasks = Global.mainModule.getRunConfiguration().generateRunTasks(target, Global.mainModule.getCompilationTask());
|
runTasks = MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent().generateRunTasks(target,
|
||||||
|
MainModule_.instance.getDb().getTable(CompilationTask.class).getUI().getCurrent()
|
||||||
|
);
|
||||||
for (RunTask runTask : runTasks) {
|
for (RunTask runTask : runTasks) {
|
||||||
Global.mainModule.getDb().Insert(runTask);
|
Global.mainModule.getDb().Insert(runTask);
|
||||||
Utils_.forceDeleteWithCheck(runTask.getLocalWorkspace());
|
Utils_.forceDeleteWithCheck(runTask.getLocalWorkspace());
|
||||||
@@ -37,17 +45,17 @@ public class Run extends Pass<db_project_info> {
|
|||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) {
|
protected boolean canStart(Object... args) {
|
||||||
subpass = null;
|
subpass = null;
|
||||||
if (Global.mainModule.Check(Log, Current.Project, Current.Machine, Current.User, Current.Makefile, Current.RunConfiguration,
|
if ((Global.mainModule.Check(Log, Current.Project))&&
|
||||||
Current.CompilationTask)) {
|
MainModule_.instance.getDb().Check(Log,Machine.class, User.class, Makefile.class, RunConfiguration.class,CompilationTask.class)) {
|
||||||
//-
|
//-
|
||||||
target = Global.mainModule.getProject();
|
target = Global.mainModule.getProject();
|
||||||
//-
|
//-
|
||||||
if (Global.mainModule.getMachine().type.equals(MachineType.MVS_cluster) &&
|
if (MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().type.equals(MachineType.MVS_cluster) &&
|
||||||
Global.mainModule.getRunConfiguration().LauncherCall.isEmpty()
|
MainModule_.instance.getDb().getTable(RunConfiguration.class).getUI().getCurrent().LauncherCall.isEmpty()
|
||||||
) {
|
) {
|
||||||
Log.Writeln_("Запуск напрямую на кластере запрещён.Используйте для запуска DVM систему или MPI");
|
Log.Writeln_("Запуск напрямую на кластере запрещён.Используйте для запуска DVM систему или MPI");
|
||||||
}
|
}
|
||||||
if (!Global.mainModule.getCompilationTask().state.equals(TaskState.Done))
|
if (!MainModule_.instance.getDb().getTable(CompilationTask.class).getUI().getCurrent().state.equals(TaskState.Done))
|
||||||
Log.Writeln_("Текущая задача на компиляцию еще не выполнялась, или была завершена с ошибками");
|
Log.Writeln_("Текущая задача на компиляцию еще не выполнялась, или была завершена с ошибками");
|
||||||
return Log.isEmpty();
|
return Log.isEmpty();
|
||||||
}
|
}
|
||||||
@@ -55,7 +63,7 @@ public class Run extends Pass<db_project_info> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
switch (Global.mainModule.getMachine().type) {
|
switch (MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().type) {
|
||||||
case Local:
|
case Local:
|
||||||
if (Utils_.isWindows()) {
|
if (Utils_.isWindows()) {
|
||||||
subpass = Global.mainModule.getPass(PassCode.WindowsLocalRun);
|
subpass = Global.mainModule.getPass(PassCode.WindowsLocalRun);
|
||||||
@@ -64,7 +72,9 @@ public class Run extends Pass<db_project_info> {
|
|||||||
break;
|
break;
|
||||||
case Undefined:
|
case Undefined:
|
||||||
case MVS_cluster:
|
case MVS_cluster:
|
||||||
throw new PassException("Запуск не реализован для типа машины " + Utils_.DQuotes(Global.mainModule.getMachine().type));
|
throw new PassException("Запуск не реализован для типа машины "
|
||||||
|
+ Utils_.DQuotes(
|
||||||
|
MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().type));
|
||||||
/*
|
/*
|
||||||
case MVS_cluster:
|
case MVS_cluster:
|
||||||
subpass = passes.get(PassCode_2021.MVSRun);
|
subpass = passes.get(PassCode_2021.MVSRun);
|
||||||
@@ -81,7 +91,7 @@ public class Run extends Pass<db_project_info> {
|
|||||||
boolean task_completed = false;
|
boolean task_completed = false;
|
||||||
task.setProgress(i, runTasks.size());
|
task.setProgress(i, runTasks.size());
|
||||||
//-
|
//-
|
||||||
Global.mainModule.getDb().runTasks.getUI().Refresh();
|
Global.mainModule.getDb().runTasks.getUI().RedrawControl();
|
||||||
Global.mainModule.getDb().runTasks.getUI().SetCurrentByPK(task.id);
|
Global.mainModule.getDb().runTasks.getUI().SetCurrentByPK(task.id);
|
||||||
//-
|
//-
|
||||||
subpass.Do(task, target);
|
subpass.Do(task, target);
|
||||||
@@ -102,7 +112,7 @@ public class Run extends Pass<db_project_info> {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//-
|
//-
|
||||||
Global.mainModule.getDb().runTasks.getUI().Refresh();
|
Global.mainModule.getDb().runTasks.getUI().RedrawControl();
|
||||||
Global.mainModule.getUI().getDebugWindow().ShowCurrentRunTask();
|
Global.mainModule.getUI().getDebugWindow().ShowCurrentRunTask();
|
||||||
//-
|
//-
|
||||||
if (!task_completed) break;
|
if (!task_completed) break;
|
||||||
|
|||||||
@@ -22,8 +22,10 @@ public class SPF_ModifyArrayDistribution extends SapforModification {
|
|||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
region = null;
|
region = null;
|
||||||
if (Global.mainModule.Check(Log, Current.ParallelRegion) && super.canStart(args) && Global.mainModule.getPass(PassCode.SPF_GetArrayLinks).Do()) {
|
if (
|
||||||
region = Global.mainModule.getParallelRegion();
|
Global.mainModule.getProject().parallelRegions.getUI().Check(Log)
|
||||||
|
&& super.canStart(args) && Global.mainModule.getPass(PassCode.SPF_GetArrayLinks).Do()) {
|
||||||
|
region = Global.mainModule.getProject().parallelRegions.getUI().getCurrent();
|
||||||
DBObjectDialog dialog = new DBObjectDialog<ParallelRegion, ParallelRegionFields>(ParallelRegionFields.class) {
|
DBObjectDialog dialog = new DBObjectDialog<ParallelRegion, ParallelRegionFields>(ParallelRegionFields.class) {
|
||||||
@Override
|
@Override
|
||||||
public int getDefaultHeight() {
|
public int getDefaultHeight() {
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ public class SaveBugReportExecutor extends UpdateBugReportField {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
return (Global.mainModule.Check(Log, Current.Subscriber)) &&
|
return Global.componentsServer.db.subscribers.getUI().Check(Log) &&
|
||||||
super.canStart("executor", Global.mainModule.getSubscriber().name,
|
super.canStart("executor",Global.componentsServer.db.subscribers.getUI().getCurrent().name,
|
||||||
"executor_address", Global.mainModule.getSubscriber().address
|
"executor_address", Global.componentsServer.db.subscribers.getUI().getCurrent().address
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ public class SaveCurrentDVMConfiguration extends SaveCurrentConfiguration<DVMCon
|
|||||||
super(DVMConfiguration.class, DVMSettings.class);
|
super(DVMConfiguration.class, DVMSettings.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current currentName() {
|
protected Class currentClass() {
|
||||||
return Current.DVMConfiguration;
|
return DVMConfiguration.class;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ public class SaveCurrentSAPFORConfiguration extends SaveCurrentConfiguration<Sap
|
|||||||
super(SapforConfiguration.class, SapforSettings.class);
|
super(SapforConfiguration.class, SapforSettings.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current currentName() {
|
protected Class currentClass() {
|
||||||
return Current.SapforConfiguration;
|
return SapforConfiguration.class;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.Passes.SSH.CurrentConnectionPass;
|
import _VisualDVM.Passes.SSH.CurrentConnectionPass;
|
||||||
public class SelectRemoteFile extends CurrentConnectionPass {
|
public class SelectRemoteFile extends CurrentConnectionPass {
|
||||||
boolean dialogOK;
|
boolean dialogOK;
|
||||||
boolean needs_directory = false;
|
boolean needs_directory = false;
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) {
|
protected boolean canStart(Object... args) {
|
||||||
if (Global.mainModule.Check(Log, Current.Machine, Current.User)) {
|
if (Global.mainModule.getDb().Check(Log, Machine.class, User.class)) {
|
||||||
needs_directory = (boolean) args[0];
|
needs_directory = (boolean) args[0];
|
||||||
Global.mainModule.set(Current.RemoteFile, null);
|
Global.mainModule.set(Current.RemoteFile, null);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -2,24 +2,26 @@ package _VisualDVM.Passes.All;
|
|||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.Server.ComponentsRepositoryPass;
|
import _VisualDVM.Passes.Server.ComponentsRepositoryPass;
|
||||||
|
import _VisualDVM.Repository.BugReport.BugReport;
|
||||||
import _VisualDVM.Repository.BugReport.BugReportState;
|
import _VisualDVM.Repository.BugReport.BugReportState;
|
||||||
import _VisualDVM.Repository.Server.ServerCode;
|
import _VisualDVM.Repository.Server.ServerCode;
|
||||||
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
|
import _VisualDVM.Repository.Server.ServerExchangeUnit_2021;
|
||||||
public class SendBugReport extends ComponentsRepositoryPass {
|
public class SendBugReport extends ComponentsRepositoryPass<BugReport> {
|
||||||
@Override
|
@Override
|
||||||
protected void ServerAction() throws Exception {
|
protected void ServerAction() throws Exception {
|
||||||
if (!Global.mainModule.getBugReport().project_version.isEmpty()) {
|
target = Global.componentsServer.db.bugReports.getUI().getCurrent();
|
||||||
|
if (!target.project_version.isEmpty()) {
|
||||||
//отправить архив.
|
//отправить архив.
|
||||||
Command(new ServerExchangeUnit_2021(ServerCode.SendBugReport,
|
Command(new ServerExchangeUnit_2021(ServerCode.SendBugReport,
|
||||||
Global.mainModule.getBugReport().id,
|
target.id,
|
||||||
Utils_.fileToBytes(Global.mainModule.getBugReport().getArchiveFile())
|
Utils_.fileToBytes(target.getArchiveFile())
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
// синхрон бд
|
// синхрон бд
|
||||||
Command(new ServerExchangeUnit_2021(ServerCode.PublishObject, "", Global.mainModule.getBugReport()));
|
Command(new ServerExchangeUnit_2021(ServerCode.PublishObject, "", target));
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void performFail() throws Exception {
|
protected void performFail() throws Exception {
|
||||||
Global.mainModule.getBugReport().state = BugReportState.draft;
|
target.state = BugReportState.draft;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Passes.Pass;
|
import Common.Passes.Pass;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Visual.Windows.ReadOnlyMultilineTextForm;
|
import _VisualDVM.Visual.Windows.ReadOnlyMultilineTextForm;
|
||||||
@@ -23,8 +25,8 @@ public class ShowCompilerHelp extends Pass<String> {
|
|||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = null;
|
target = null;
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
if (Global.mainModule.Check(Log, Current.Compiler)) {
|
if (MainModule_.instance.getDb().getTable(Compiler.class).getUI().Check(Log)) {
|
||||||
compiler = Global.mainModule.getCompiler();
|
compiler = MainModule_.instance.getDb().getTable(Compiler.class).getUI().getCurrent();
|
||||||
needsShow = true;
|
needsShow = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -39,7 +41,7 @@ public class ShowCompilerHelp extends Pass<String> {
|
|||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
subpass = null;
|
subpass = null;
|
||||||
compiler.ResetHelp();
|
compiler.ResetHelp();
|
||||||
if (Global.mainModule.getMachine().type.equals(MachineType.Local)) {
|
if (MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().type.equals(MachineType.Local)) {
|
||||||
subpass = Global.mainModule.getPass(PassCode.LocalSingleCommand);
|
subpass = Global.mainModule.getPass(PassCode.LocalSingleCommand);
|
||||||
} else {
|
} else {
|
||||||
subpass = Global.mainModule.getPass(PassCode.RemoteSingleCommand);
|
subpass = Global.mainModule.getPass(PassCode.RemoteSingleCommand);
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Passes.Pass;
|
import Common.Passes.Pass;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Visual.Windows.ReadOnlyMultilineTextForm;
|
import _VisualDVM.Visual.Windows.ReadOnlyMultilineTextForm;
|
||||||
@@ -23,8 +24,8 @@ public class ShowCompilerVersion extends Pass<String> {
|
|||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = null;
|
target = null;
|
||||||
if (args.length == 0) {
|
if (args.length == 0) {
|
||||||
if (Global.mainModule.Check(Log, Current.Compiler)) {
|
if (MainModule_.instance.getDb().getTable(Compiler.class).getUI().Check(Log)) {
|
||||||
compiler = Global.mainModule.getCompiler();
|
compiler = MainModule_.instance.getDb().getTable(Compiler.class).getUI().getCurrent();
|
||||||
needsShow = true;
|
needsShow = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -39,7 +40,7 @@ public class ShowCompilerVersion extends Pass<String> {
|
|||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
subpass = null;
|
subpass = null;
|
||||||
compiler.ResetVersion();
|
compiler.ResetVersion();
|
||||||
if (Global.mainModule.getMachine().type.equals(MachineType.Local)) {
|
if (MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent().type.equals(MachineType.Local)) {
|
||||||
subpass = Global.mainModule.getPass(PassCode.LocalSingleCommand);
|
subpass = Global.mainModule.getPass(PassCode.LocalSingleCommand);
|
||||||
} else {
|
} else {
|
||||||
subpass = Global.mainModule.getPass(PassCode.RemoteSingleCommand);
|
subpass = Global.mainModule.getPass(PassCode.RemoteSingleCommand);
|
||||||
@@ -59,7 +60,7 @@ public class ShowCompilerVersion extends Pass<String> {
|
|||||||
@Override
|
@Override
|
||||||
protected void showDone() throws Exception {
|
protected void showDone() throws Exception {
|
||||||
if (needsShow) {
|
if (needsShow) {
|
||||||
(Global.mainModule.getDb()).compilers.getUI().Refresh();
|
(Global.mainModule.getDb()).compilers.RefreshUI();
|
||||||
ReadOnlyMultilineTextForm ff = new ReadOnlyMultilineTextForm();
|
ReadOnlyMultilineTextForm ff = new ReadOnlyMultilineTextForm();
|
||||||
ff.ShowDialog("Версия", target);
|
ff.ShowDialog("Версия", target);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ public class ShowComponentChangesLog extends ComponentsRepositoryPass<Component>
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (Global.mainModule.Check(Log, Current.Component)) {
|
if (Global.components.getUI().Check(Log)) {
|
||||||
target = Global.mainModule.getComponent();
|
target = Global.components.getUI().getCurrent();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import _VisualDVM.TestingSystem.DVM.DVMSettings.DVMSettings;
|
|||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
public class ShowCurrentDVMConfigurationTests extends ShowCurrentConfigurationTests<DVMConfiguration> {
|
public class ShowCurrentDVMConfigurationTests extends ShowCurrentConfigurationTests<DVMConfiguration> {
|
||||||
@Override
|
@Override
|
||||||
public Current currentName() {
|
public Class currentClass() {
|
||||||
return Current.DVMConfiguration;
|
return DVMConfiguration.class;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void showDone() throws Exception {
|
protected void showDone() throws Exception {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
|||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
public class ShowCurrentSAPFORConfigurationTests extends ShowCurrentConfigurationTests<SapforConfiguration> {
|
public class ShowCurrentSAPFORConfigurationTests extends ShowCurrentConfigurationTests<SapforConfiguration> {
|
||||||
@Override
|
@Override
|
||||||
public Current currentName() {
|
public Class currentClass() {
|
||||||
return Current.SapforConfiguration;
|
return SapforConfiguration.class;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void showDone() throws Exception {
|
protected void showDone() throws Exception {
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Passes.Pass;
|
import Common.Passes.Pass;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Makefile.Makefile;
|
||||||
import _VisualDVM.GlobalData.Makefile.UI.MakefilePreviewForm;
|
import _VisualDVM.GlobalData.Makefile.UI.MakefilePreviewForm;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||||
@@ -20,7 +22,7 @@ public class ShowMakefilePreview extends Pass<db_project_info> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) {
|
protected boolean canStart(Object... args) {
|
||||||
if (Global.mainModule.Check(Log, Current.Project, Current.Makefile)) {
|
if (Global.mainModule.Check(Log, Current.Project) &&MainModule_.instance.getDb().getTable(Makefile.class).getUI().Check(Log) ) {
|
||||||
target = Global.mainModule.getProject();
|
target = Global.mainModule.getProject();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -29,6 +31,6 @@ public class ShowMakefilePreview extends Pass<db_project_info> {
|
|||||||
@Override
|
@Override
|
||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
new MakefilePreviewForm().ShowDialog("Предпросмотр мейкфайла для текущего проекта",
|
new MakefilePreviewForm().ShowDialog("Предпросмотр мейкфайла для текущего проекта",
|
||||||
Global.mainModule.getMakefile().Generate(target));
|
MainModule_.instance.getDb().getTable(Makefile.class).getUI().getCurrent().Generate(target));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,9 +18,10 @@ public class ShowSapforCompilationErr extends ShowTestingServerFile {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (!Global.mainModule.Check(Log, Current.ServerSapfor)) {
|
if (!Global.testingServer.db.serverSapfors.getUI().Check(Log)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return super.canStart("Поток ошибок", new RemoteFile(Global.mainModule.getServerSapfor().home_path, Constants.err_file));
|
return super.canStart("Поток ошибок", new RemoteFile(
|
||||||
|
Global.testingServer.db.serverSapfors.getUI().getCurrent().home_path, Constants.err_file));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,9 +18,10 @@ public class ShowSapforCompilationOut extends ShowTestingServerFile {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (!Global.mainModule.Check(Log, Current.ServerSapfor)) {
|
if (!Global.testingServer.db.serverSapfors.getUI().Check(Log)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return super.canStart("Поток вывода", new RemoteFile(Global.mainModule.getServerSapfor().home_path, Constants.out_file));
|
return super.canStart("Поток вывода", new RemoteFile(
|
||||||
|
Global.testingServer.db.serverSapfors.getUI().getCurrent().home_path, Constants.out_file));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
|
import Common.MainModule_;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
import _VisualDVM.GlobalData.Compiler.CompilerType;
|
||||||
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||||
|
import _VisualDVM.GlobalData.User.User;
|
||||||
import _VisualDVM.GlobalData.User.UserState;
|
import _VisualDVM.GlobalData.User.UserState;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Passes.Server.PublishServerObject;
|
import _VisualDVM.Passes.Server.PublishServerObject;
|
||||||
@@ -26,22 +29,27 @@ public class StartSelectedDVMConfigurations extends PublishServerObject<TestingS
|
|||||||
if (!Global.mainModule.getAccount().CheckRegistered(Log)) {
|
if (!Global.mainModule.getAccount().CheckRegistered(Log)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Global.mainModule.Check(Log, Current.Machine, Current.User, Current.Compiler))
|
if (!MainModule_.instance.getDb().Check(Log, Machine.class, User.class, Compiler.class))
|
||||||
return false;
|
return false;
|
||||||
if (!Global.mainModule.getMachine().type.equals(MachineType.Server)) {
|
//--
|
||||||
|
Machine machine = MainModule_.instance.getDb().getTable(Machine.class).getUI().getCurrent();
|
||||||
|
User user = MainModule_.instance.getDb().getTable(User.class).getUI().getCurrent();
|
||||||
|
Compiler compiler = MainModule_.instance.getDb().getTable(Compiler.class).getUI().getCurrent();
|
||||||
|
//--
|
||||||
|
if (!machine.type.equals(MachineType.Server)) {
|
||||||
Log.Writeln_("Тестирование поддерживается только на одиночном удалённом сервере.");
|
Log.Writeln_("Тестирование поддерживается только на одиночном удалённом сервере.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Global.mainModule.getUser().state.equals(UserState.ready_to_work)) {
|
if (!user.state.equals(UserState.ready_to_work)) {
|
||||||
Log.Writeln_("Пользователь не готов к работе. Выполните инициализацию пользователя!");
|
Log.Writeln_("Пользователь не готов к работе. Выполните инициализацию пользователя!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Global.mainModule.getCompiler().type.equals(CompilerType.dvm)) {
|
if (!compiler.type.equals(CompilerType.dvm)) {
|
||||||
Log.Writeln_("Тестирование поддерживается только для DVM компиляторов.");
|
Log.Writeln_("Тестирование поддерживается только для DVM компиляторов.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Global.mainModule.getCompiler().versionLoaded)
|
if (!compiler.versionLoaded)
|
||||||
Global.mainModule.getPass(PassCode.ShowCompilerVersion).Do(Global.mainModule.getCompiler(), false);
|
Global.mainModule.getPass(PassCode.ShowCompilerVersion).Do(compiler, false);
|
||||||
//-----
|
//-----
|
||||||
if (!Global.testingServer.db.dvm_configurations.getUI().CheckSelectedOrCurrent(Log)) {
|
if (!Global.testingServer.db.dvm_configurations.getUI().CheckSelectedOrCurrent(Log)) {
|
||||||
return false;
|
return false;
|
||||||
@@ -50,9 +58,9 @@ public class StartSelectedDVMConfigurations extends PublishServerObject<TestingS
|
|||||||
//---
|
//---
|
||||||
target = new DVMPackage(
|
target = new DVMPackage(
|
||||||
Global.mainModule.getAccount(),
|
Global.mainModule.getAccount(),
|
||||||
Global.mainModule.getMachine(),
|
machine,
|
||||||
Global.mainModule.getUser(),
|
user,
|
||||||
Global.mainModule.getCompiler(),
|
compiler,
|
||||||
configurations,
|
configurations,
|
||||||
Global.properties.EmailOnTestingProgress ? 1 : 0
|
Global.properties.EmailOnTestingProgress ? 1 : 0
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -27,10 +27,10 @@ public class StartSelectedSAPFORConfigurations extends PublishServerObject<Testi
|
|||||||
if (!Global.mainModule.getAccount().CheckRegistered(Log)) {
|
if (!Global.mainModule.getAccount().CheckRegistered(Log)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Global.mainModule.Check(Log, Current.ServerSapfor)) {
|
if (!Global.testingServer.db.serverSapfors.getUI().Check(Log)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!Global.mainModule.getServerSapfor().state.equals(ServerSapforState.Done)) {
|
if (!Global.testingServer.db.serverSapfors.getUI().getCurrent().state.equals(ServerSapforState.Done)) {
|
||||||
Log.Writeln_("Выбранная версия SAPFOR не собрана!");
|
Log.Writeln_("Выбранная версия SAPFOR не собрана!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -40,7 +40,7 @@ public class StartSelectedSAPFORConfigurations extends PublishServerObject<Testi
|
|||||||
}
|
}
|
||||||
configurations = Global.testingServer.db.sapforConfigurations.getUI().getSelectedOrCurrent();
|
configurations = Global.testingServer.db.sapforConfigurations.getUI().getSelectedOrCurrent();
|
||||||
target = new SapforPackage(Global.mainModule.getAccount(),
|
target = new SapforPackage(Global.mainModule.getAccount(),
|
||||||
Global.mainModule.getServerSapfor(),
|
Global.testingServer.db.serverSapfors.getUI().getCurrent(),
|
||||||
configurations,
|
configurations,
|
||||||
Global.properties.EmailOnTestingProgress ? 1 : 0,
|
Global.properties.EmailOnTestingProgress ? 1 : 0,
|
||||||
Log);
|
Log);
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package _VisualDVM.Passes.All;
|
package _VisualDVM.Passes.All;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Passes.Server.ComponentsRepositoryPass;
|
import _VisualDVM.Passes.Server.ComponentsRepositoryPass;
|
||||||
@@ -25,12 +24,12 @@ public class UpdateBugReportField extends ComponentsRepositoryPass<BugReport> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (!Global.mainModule.Check(Log, Current.BugReport))
|
if (!Global.componentsServer.db.bugReports.getUI().Check(Log))
|
||||||
return false;
|
return false;
|
||||||
old_description = "";
|
old_description = "";
|
||||||
old_comment = "";
|
old_comment = "";
|
||||||
//--
|
//--
|
||||||
target = Global.mainModule.getBugReport();
|
target = Global.componentsServer.db.bugReports.getUI().getCurrent();
|
||||||
fieldNames.clear();
|
fieldNames.clear();
|
||||||
fieldValues.clear();
|
fieldValues.clear();
|
||||||
for (int i = 0; i < args.length; ++i) {
|
for (int i = 0; i < args.length; ++i) {
|
||||||
@@ -51,7 +50,7 @@ public class UpdateBugReportField extends ComponentsRepositoryPass<BugReport> {
|
|||||||
BugReport.class.getField(fieldNames.get(i)).set(target, fieldValues.get(i));
|
BugReport.class.getField(fieldNames.get(i)).set(target, fieldValues.get(i));
|
||||||
target.change_date = new Date().getTime();
|
target.change_date = new Date().getTime();
|
||||||
server.db.Update(target);
|
server.db.Update(target);
|
||||||
server.db.bugReports.getUI().Refresh();
|
server.db.bugReports.RefreshUI();
|
||||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||||
} else
|
} else
|
||||||
return canUpdate();
|
return canUpdate();
|
||||||
@@ -83,7 +82,7 @@ public class UpdateBugReportField extends ComponentsRepositoryPass<BugReport> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void showFinish() throws Exception {
|
protected void showFinish() throws Exception {
|
||||||
Global.componentsServer.db.bugReports.getUI().Refresh();
|
Global.componentsServer.db.bugReports.RefreshUI();
|
||||||
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
Global.mainModule.getUI().getMainWindow().getCallbackWindow().ShowCurrentBugReport();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -13,10 +13,11 @@ public class UpdateBugReportProgress extends UpdateBugReportField {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (!Global.mainModule.Check(Log, Current.BugReport))
|
if (!Global.componentsServer.db.bugReports.getUI().Check(Log))
|
||||||
return false;
|
return false;
|
||||||
PercentsForm f = new PercentsForm();
|
PercentsForm f = new PercentsForm();
|
||||||
if (f.ShowDialog("Завершённость работы над ошибкой", Global.mainModule.getBugReport().percentage))
|
if (f.ShowDialog("Завершённость работы над ошибкой",
|
||||||
|
Global.componentsServer.db.bugReports.getUI().getCurrent().percentage))
|
||||||
return super.canStart("percentage", f.Result);
|
return super.canStart("percentage", f.Result);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,9 +16,10 @@ public class UpdateComponent extends Pass<Component> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
|
target = Global.components.getUI().getCurrent();
|
||||||
PassCode subPassCode = null;
|
PassCode subPassCode = null;
|
||||||
//<editor-fold desc="получение нового файла компонента">
|
//<editor-fold desc="получение нового файла компонента">
|
||||||
switch (Global.mainModule.getComponent().getComponentType()) {
|
switch (target.getComponentType()) {
|
||||||
case Sapfor_F:
|
case Sapfor_F:
|
||||||
case Visualizer_2:
|
case Visualizer_2:
|
||||||
subPassCode = Utils_.isWindows() ? PassCode.DownloadComponent : PassCode.BuildComponent;
|
subPassCode = Utils_.isWindows() ? PassCode.DownloadComponent : PassCode.BuildComponent;
|
||||||
@@ -31,15 +32,15 @@ public class UpdateComponent extends Pass<Component> {
|
|||||||
}
|
}
|
||||||
if ((subPassCode != null) && Global.mainModule.getPass(subPassCode).Do()) {
|
if ((subPassCode != null) && Global.mainModule.getPass(subPassCode).Do()) {
|
||||||
//</editor-fold>
|
//</editor-fold>
|
||||||
if (!Global.mainModule.getComponent().getNewFile().exists())
|
if (!target.getNewFile().exists())
|
||||||
throw new PassException("Не удалось получить новый файл для компонента " + Global.mainModule.getComponent().getComponentType().getDescription());
|
throw new PassException("Не удалось получить новый файл для компонента " + target.getComponentType().getDescription());
|
||||||
//непосредственное обновление.
|
//непосредственное обновление.
|
||||||
Global.mainModule.getComponent().Update();
|
target.Update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void performFinish() throws Exception {
|
protected void performFinish() throws Exception {
|
||||||
Global.mainModule.getComponent().CheckIfNeedsUpdateOrPublish();
|
target.CheckIfNeedsUpdateOrPublish();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void showDone() throws Exception {
|
protected void showDone() throws Exception {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user