окончательное разделение таблицы и функционала видимой ее формы
This commit is contained in:
101
.idea/workspace.xml
generated
101
.idea/workspace.xml
generated
@@ -8,12 +8,107 @@
|
|||||||
<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$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/Database/Objects/DBForm/FormsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/Objects/DBForm/FormsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/Database/Objects/PassStats/PassStatsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/Objects/PassStats/PassStatsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/Database/Tables/DataSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Database/Tables/DataSet.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/Common/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/DeleteObjectsPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Passes/DeleteObjectsPass.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/DataSetControlForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/DataSetControlForm.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Arrays/ProjectArray.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Arrays/ProjectArray.java" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/Common/Visual/Menus/DataMenuBar.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/Common/Visual/Menus/DataMenuBar.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Account/AccountsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Account/AccountsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Compiler/CompilersDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Compiler/CompilersDBTable.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/DBLastProject/LastProjectsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/DBLastProject/LastProjectsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/DVMParameter/DVMParameterDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/DVMParameter/DVMParameterDBTable.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/EnvironmentValuesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/EnvironmentValue/EnvironmentValuesDBTable.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/Machine/MachinesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Machine/MachinesDBTable.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/MakefilesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Makefile/MakefilesDBTable.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/ModulesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Module/ModulesDBTable.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/RunConfigurationsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/RunConfiguration/RunConfigurationsDBTable.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/SapforProfilesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/SapforProfile/SapforProfilesDBTable.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/SapforProfileSettingsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/SapforProfileSetting/SapforProfileSettingsDBTable.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/Settings/SettingsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Settings/SettingsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/CompilationTask/CompilationTasksDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/CompilationTask/CompilationTasksDBTable.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/RunTasksDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/Tasks/RunTask/RunTasksDBTable.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/User/UI/UsersForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/User/UI/UsersForm.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/User/UsersDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/GlobalData/User/UsersDBTable.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/ExportDVMPackageToExcel.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/ExportDVMPackageToExcel.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_GetArrayDistributionOnlyAnalysis.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/SPF_GetArrayDistributionOnlyAnalysis.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/UpdateSelectedComponents.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/All/UpdateSelectedComponents.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Passes/Sapfor/VariantsMassPass.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Sapfor/VariantsMassPass.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/DeleteServerObjects.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Server/DeleteServerObjects.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/SaveCurrentConfiguration.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Passes/Testing/SaveCurrentConfiguration.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/DBArray/ArraysDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/DBArray/ArraysDBTable.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/Files/FilesDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Files/FilesDBTable.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/RecommendationsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Messages/Recommendations/RecommendationsDBTable.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/PredictorStatistic/PredictorStatisticsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/PredictorStatistic/PredictorStatisticsDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Project/ProjectInfoDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/Project/ProjectInfoDBTable.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Arrays/ProjectArraysSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Arrays/ProjectArraysSet.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/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/Regions/ParallelRegionsSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Regions/ParallelRegionsSet.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/ParallelVariant.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Variants/ParallelVariant.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Variants/ParallelVariantsSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/ProjectData/SapforData/Variants/ParallelVariantsSet.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/BugReportsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/BugReport/BugReportsDBTable.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/BugReport/UI/BugReportsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/BugReport/UI/BugReportsForm.java" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/ArraysForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/ArraysForm.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/Visual/Windows/VariantsForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/VariantsForm.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/SubscriberWorkspace/SubscriberWorkspaceDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/SubscriberWorkspace/SubscriberWorkspaceDBTable.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/Subscribes/SubsribersDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Repository/Subscribes/SubsribersDBTable.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/Group/GroupsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Group/GroupsDBTable.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/TestDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/Test/TestDBTable.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/Common/TestsDatabase.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/Common/TestsDatabase.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMConfiguration/DVMConfigurationDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMConfiguration/DVMConfigurationDBTable.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/DVMPackageDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMPackage/DVMPackageDBTable.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/DVMSettingsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMSettings/DVMSettingsDBTable.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/DVMRunTasksSet.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/DVM/DVMTasks/DVMRunTasksSet.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/SapforConfigurationDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforConfiguration/SapforConfigurationDBTable.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/SapforPackageDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforPackage/SapforPackageDBTable.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/SapforSettingsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforSettings/SapforSettingsDBTable.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/SapforSettingsCommandsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/SapforSettingsCommand/SapforSettingsCommandsDBTable.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/ServerSapforsDBTable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/TestingSystem/SAPFOR/ServerSapfor/ServerSapforsDBTable.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/Interface/ProjectWindow.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Interface/ProjectWindow.java" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/MainForm.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/_VisualDVM/Visual/Windows/MainForm.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,8 +4,4 @@ public class FormsDBTable extends DBTable<String, DBForm> {
|
|||||||
public FormsDBTable() {
|
public FormsDBTable() {
|
||||||
super(String.class, DBForm.class);
|
super(String.class, DBForm.class);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "параметры окна";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,6 @@ public class PassStatsDBTable extends DBTable<String, PassStats> {
|
|||||||
public PassStatsDBTable() {
|
public PassStatsDBTable() {
|
||||||
super(String.class, PassStats.class);
|
super(String.class, PassStats.class);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "статистика выполнения прохода";
|
|
||||||
}
|
|
||||||
public void IncPassStat(String passName) throws Exception {
|
public void IncPassStat(String passName) throws Exception {
|
||||||
PassStats passStats = null;
|
PassStats passStats = null;
|
||||||
if (Data.containsKey(passName)) {
|
if (Data.containsKey(passName)) {
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
package Common.Database.Tables;
|
package Common.Database.Tables;
|
||||||
import Common.Current_;
|
|
||||||
import Common.Database.Objects.DBObject;
|
import Common.Database.Objects.DBObject;
|
||||||
import Common.MainModule_;
|
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Utils.TextLog;
|
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
@@ -13,7 +10,6 @@ import javax.swing.*;
|
|||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Vector;
|
import java.util.Vector;
|
||||||
import java.util.stream.Collectors;
|
|
||||||
public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
|
public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
|
||||||
public String Name;
|
public String Name;
|
||||||
public Class<K> k; //класс первичного ключа.
|
public Class<K> k; //класс первичного ключа.
|
||||||
@@ -46,22 +42,9 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
|
|||||||
public int getRowCountUI() {
|
public int getRowCountUI() {
|
||||||
return ui.getRowCount();
|
return ui.getRowCount();
|
||||||
}
|
}
|
||||||
public void SetCurrentObjectByUI(Object pk) {
|
|
||||||
if (ui != null) {
|
|
||||||
ui.ClearSelection(); //сброс текущего объекта и всего что с ним связано.
|
|
||||||
ui.SetCurrentByPK(pk);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
public void SelectAll(boolean flag) {
|
|
||||||
for (D object : Data.values()) {
|
|
||||||
if (getUI().isObjectVisible(object))
|
|
||||||
object.Select(flag);
|
|
||||||
}
|
|
||||||
RefreshUI();
|
|
||||||
}
|
|
||||||
public D getFirstRecord() {
|
public D getFirstRecord() {
|
||||||
return Data.values().stream().findFirst().orElse(null);
|
return Data.values().stream().findFirst().orElse(null);
|
||||||
}
|
}
|
||||||
@@ -70,30 +53,31 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
|
|||||||
res.sort(comparator);
|
res.sort(comparator);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
//todo все это тоже в уи?
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public DBObjectDialog<D, ? extends DialogFields> getDialog() {
|
public DBObjectDialog<D, ? extends DialogFields> getDialog() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
public boolean ShowAddObjectDialog(DBObject object) {
|
public boolean ShowAddObjectDialog(DBObject object) {
|
||||||
return getDialog().ShowDialog(getSingleDescription() + ": добавление", object);
|
return getDialog().ShowDialog(getUI().getSingleDescription() + ": добавление", object);
|
||||||
}
|
}
|
||||||
public boolean ShowEditObjectDialog(DBObject object) {
|
public boolean ShowEditObjectDialog(DBObject object) {
|
||||||
DBObjectDialog dialog = getDialog();
|
DBObjectDialog dialog = getDialog();
|
||||||
dialog.edit = true;
|
dialog.edit = true;
|
||||||
dialog.SetEditLimits();
|
dialog.SetEditLimits();
|
||||||
return dialog.ShowDialog(getSingleDescription() + ": редактирование", object);
|
return dialog.ShowDialog(getUI().getSingleDescription() + ": редактирование", object);
|
||||||
}
|
}
|
||||||
public boolean ViewObject(DBObject object) {
|
public boolean ViewObject(DBObject object) {
|
||||||
DBObjectDialog dialog = getDialog();
|
DBObjectDialog dialog = getDialog();
|
||||||
dialog.SetReadonly();
|
dialog.SetReadonly();
|
||||||
dialog.ShowDialog(getSingleDescription() + ": просмотр", object);
|
dialog.ShowDialog(getUI().getSingleDescription() + ": просмотр", object);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
public boolean ShowDeleteObjectDialog(DBObject object) {
|
public boolean ShowDeleteObjectDialog(DBObject object) {
|
||||||
return UI.Warning(getSingleDescription() + " " + object.getBDialogName() + " будет удален(а)");
|
return UI.Warning(getUI().getSingleDescription() + " " + object.getBDialogName() + " будет удален(а)");
|
||||||
}
|
}
|
||||||
public boolean ShowDeleteObjectsDialog(int toDeleteCount) {
|
public boolean ShowDeleteObjectsDialog(int toDeleteCount) {
|
||||||
return UI.Warning(getPluralDescription() + " в количестве " + toDeleteCount + " будут удалены)");
|
return UI.Warning(getUI().getPluralDescription() + " в количестве " + toDeleteCount + " будут удалены)");
|
||||||
}
|
}
|
||||||
public String QName() {
|
public String QName() {
|
||||||
return "\"" + Name + "\"";
|
return "\"" + Name + "\"";
|
||||||
@@ -101,12 +85,6 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
|
|||||||
public String getPKName() {
|
public String getPKName() {
|
||||||
return "";
|
return "";
|
||||||
} //получить имя ключевого поля. нужно для таблиц.
|
} //получить имя ключевого поля. нужно для таблиц.
|
||||||
public String getPluralDescription() {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
//-
|
//-
|
||||||
public void put(Object key, D object) {
|
public void put(Object key, D object) {
|
||||||
Data.put((K) key, object);
|
Data.put((K) key, object);
|
||||||
@@ -123,17 +101,6 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
|
|||||||
public boolean containsKey(Object key) {
|
public boolean containsKey(Object key) {
|
||||||
return Data.containsKey(key);
|
return Data.containsKey(key);
|
||||||
}
|
}
|
||||||
//-
|
|
||||||
public int getSelectedCount() {
|
|
||||||
return (int) Data.values().stream().filter(d -> getUI().isObjectVisible(d) && d.isSelected()).count();
|
|
||||||
}
|
|
||||||
public Vector<D> getSelectedItems() {
|
|
||||||
return Data.values().stream().filter(d -> getUI().isObjectVisible(d) && d.isSelected()).collect(Collectors.toCollection(Vector::new));
|
|
||||||
}
|
|
||||||
public Vector<K> getSelectedKeys() {
|
|
||||||
return Data.values().stream().filter(DBObject::isSelected).map(d -> (K) d.getPK()).collect(Collectors.toCollection(Vector::new));
|
|
||||||
}
|
|
||||||
//--
|
|
||||||
public void ShowUI() {
|
public void ShowUI() {
|
||||||
if (ui != null) {
|
if (ui != null) {
|
||||||
ui.Show();
|
ui.Show();
|
||||||
@@ -144,53 +111,6 @@ public class DataSet<K, D extends DBObject> extends DataSetAnchestor {
|
|||||||
ui.Show(key);
|
ui.Show(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------------
|
|
||||||
public Current_ CurrentName() {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
public boolean CheckCurrent(TextLog log) {
|
|
||||||
return MainModule_.instance.Check(log, CurrentName());
|
|
||||||
}
|
|
||||||
public boolean CheckSelectedOrCurrent(TextLog log) {
|
|
||||||
if ((getSelectedCount() == 0) && (CurrentName() == null || (getCurrent() == null))) {
|
|
||||||
log.Writeln_(getPluralDescription() + ":");
|
|
||||||
log.Writeln_("Отсутствуют отмеченные объекты, или текущий объект!");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
public void dropCurrent() {
|
|
||||||
MainModule_.instance.set(CurrentName(), null);
|
|
||||||
}
|
|
||||||
public D getCurrent() {
|
|
||||||
return (D) MainModule_.instance.get(CurrentName());
|
|
||||||
}
|
|
||||||
public void setCurrent(D o) {
|
|
||||||
MainModule_.instance.set(CurrentName(), o);
|
|
||||||
}
|
|
||||||
public Vector<D> getSelectedOrCurrent() {
|
|
||||||
Vector<D> res = new Vector<>();
|
|
||||||
if (getSelectedCount() > 0)
|
|
||||||
res = getSelectedItems();
|
|
||||||
else {
|
|
||||||
if ((CurrentName() != null) && (getCurrent() != null)) {
|
|
||||||
res.add(getCurrent());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
public Vector<K> getSelectedOrCurrentKeys() {
|
|
||||||
Vector<K> res = new Vector<>();
|
|
||||||
if (getSelectedCount() > 0)
|
|
||||||
res = getSelectedKeys();
|
|
||||||
else {
|
|
||||||
if ((CurrentName() != null) && (getCurrent() != null)) {
|
|
||||||
res.add((K) getCurrent().getPK());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
//-------------------------------------------------------------------------------------
|
|
||||||
public PassCode_ getDeletePassCode() {
|
public PassCode_ getDeletePassCode() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ public abstract class AddObjectPass<D extends DBObject> extends ObjectPass<D> {
|
|||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = d.newInstance();
|
target = d.newInstance();
|
||||||
return
|
return
|
||||||
((getOwner() == null) || (getDb().getTable(getOwner()).CheckCurrent(Log))) &&
|
((getOwner() == null) || (getDb().getTable(getOwner()).getUI().CheckCurrent(Log))) &&
|
||||||
fillObjectFields();
|
fillObjectFields();
|
||||||
}
|
}
|
||||||
protected boolean fillObjectFields() throws Exception {
|
protected boolean fillObjectFields() throws Exception {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ 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().getCurrent();
|
target = (D) getTable().getUI().getCurrent();
|
||||||
return getTable().CheckCurrent(Log) && getTable().ShowDeleteObjectDialog(target);
|
return getTable().getUI().CheckCurrent(Log) && getTable().ShowDeleteObjectDialog(target);
|
||||||
}
|
}
|
||||||
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ public abstract class DeleteObjectsPass<D extends DBObject> extends ObjectsPass<
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
if (!getTable().CheckSelectedOrCurrent(Log))
|
if (!getTable().getUI().CheckSelectedOrCurrent(Log))
|
||||||
return false;
|
return false;
|
||||||
target = getTable().getSelectedOrCurrent();
|
target = getTable().getUI().getSelectedOrCurrent();
|
||||||
return getTable().ShowDeleteObjectsDialog(target.size());
|
return getTable().ShowDeleteObjectsDialog(target.size());
|
||||||
}
|
}
|
||||||
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ 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().getCurrent();
|
target = (D) getTable().getUI().getCurrent();
|
||||||
return getTable().CheckCurrent(Log) && getTable().ShowEditObjectDialog(target);
|
return getTable().getUI().CheckCurrent(Log) && getTable().ShowEditObjectDialog(target);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void body() throws Exception {
|
protected void body() throws Exception {
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
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;
|
||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Database.Tables.FKBehaviour;
|
import Common.Database.Tables.FKBehaviour;
|
||||||
import Common.MainModule_;
|
import Common.MainModule_;
|
||||||
|
import Common.Utils.TextLog;
|
||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
import Common.Visual.Menus.TableMenu;
|
import Common.Visual.Menus.TableMenu;
|
||||||
@@ -72,6 +74,12 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
<M> Vector<M> getFilters(Class<M> f) {
|
<M> Vector<M> getFilters(Class<M> f) {
|
||||||
Vector<M> res = new Vector<>();
|
Vector<M> res = new Vector<>();
|
||||||
for (DBObjectFilter_ filter_ : allFilters) {
|
for (DBObjectFilter_ filter_ : allFilters) {
|
||||||
@@ -99,8 +107,8 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
public void SaveColumns() {
|
public void SaveColumns() {
|
||||||
if (MainModule_.instance.getDb() != null) {
|
if (MainModule_.instance.getDb() != null) {
|
||||||
try {
|
try {
|
||||||
if (dataSource.CurrentName() != null) {
|
if (CurrentName() != null) {
|
||||||
String tableName = dataSource.CurrentName().toString();
|
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;
|
||||||
@@ -206,10 +214,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)
|
||||||
&& dataSource.CurrentName() != null
|
&& CurrentName() != null
|
||||||
&& MainModule_.instance.getDb().tablesVisualData.containsKey(dataSource.CurrentName().toString())) {
|
&& MainModule_.instance.getDb().tablesVisualData.containsKey(CurrentName().toString())) {
|
||||||
if (!getColumnsProfile().equalsIgnoreCase(colNamesAndSizes)) {
|
if (!getColumnsProfile().equalsIgnoreCase(colNamesAndSizes)) {
|
||||||
TableVisualData grid = MainModule_.instance.getDb().tablesVisualData.get(dataSource.CurrentName().toString());
|
TableVisualData grid = MainModule_.instance.getDb().tablesVisualData.get(CurrentName().toString());
|
||||||
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)) {
|
||||||
@@ -265,7 +273,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
//------------------------->>
|
//------------------------->>
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (dataSource.CurrentName() != null) {
|
if (CurrentName() != null) {
|
||||||
current_row_i = CommonConstants.Nan;
|
current_row_i = CommonConstants.Nan;
|
||||||
ListSelectionModel selModel = control.getSelectionModel();
|
ListSelectionModel selModel = control.getSelectionModel();
|
||||||
selModel.addListSelectionListener(e -> {
|
selModel.addListSelectionListener(e -> {
|
||||||
@@ -273,7 +281,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;
|
||||||
dataSource.setCurrent((D) control.getRowObject(row));
|
MainModule_.instance.set(CurrentName(), control.getRowObject(row));
|
||||||
if (events_on) {
|
if (events_on) {
|
||||||
try {
|
try {
|
||||||
ShowCurrentObject();
|
ShowCurrentObject();
|
||||||
@@ -284,7 +292,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
current_row_i = CommonConstants.Nan;
|
current_row_i = CommonConstants.Nan;
|
||||||
dataSource.dropCurrent();
|
dropCurrent();
|
||||||
if (events_on) {
|
if (events_on) {
|
||||||
try {
|
try {
|
||||||
ShowNoCurrentObject();
|
ShowNoCurrentObject();
|
||||||
@@ -298,7 +306,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
control.addMouseListener(new MouseAdapter() {
|
control.addMouseListener(new MouseAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void mouseClicked(MouseEvent e) {
|
public void mouseClicked(MouseEvent e) {
|
||||||
if ((e.getClickCount() == 2) && (dataSource.getCurrent() != null)) {
|
if ((e.getClickCount() == 2) && (getCurrent() != null)) {
|
||||||
try {
|
try {
|
||||||
MouseAction2();
|
MouseAction2();
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
@@ -329,7 +337,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
);
|
);
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
//при переотображении таблицы скидываем текущий объект!!
|
//при переотображении таблицы скидываем текущий объект!!
|
||||||
dataSource.dropCurrent();
|
dropCurrent();
|
||||||
try {
|
try {
|
||||||
ShowNoCurrentObject();
|
ShowNoCurrentObject();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -340,7 +348,7 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
filter.Mount(getControl());
|
filter.Mount(getControl());
|
||||||
}
|
}
|
||||||
protected DataMenuBar createMenuBar() {
|
protected DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription());
|
return new DataMenuBar(getPluralDescription());
|
||||||
}
|
}
|
||||||
protected void createFilters() {
|
protected void createFilters() {
|
||||||
}
|
}
|
||||||
@@ -373,6 +381,13 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
public void ClearSelection() {
|
public void ClearSelection() {
|
||||||
if (isShown()) control.clearSelection(); //строка сбросится сама. благодаря сбросу события выбора
|
if (isShown()) control.clearSelection(); //строка сбросится сама. благодаря сбросу события выбора
|
||||||
}
|
}
|
||||||
|
public void SelectAll(boolean flag) {
|
||||||
|
for (D object : dataSource.Data.values()) {
|
||||||
|
if (isObjectVisible(object))
|
||||||
|
object.Select(flag);
|
||||||
|
}
|
||||||
|
Refresh();
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public void Clear() {
|
public void Clear() {
|
||||||
super.Clear();
|
super.Clear();
|
||||||
@@ -424,10 +439,10 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
public void SaveLastCurrent() {
|
public void SaveLastCurrent() {
|
||||||
savedCurrentKey = null;
|
savedCurrentKey = null;
|
||||||
savedSelectedKeys.clear();
|
savedSelectedKeys.clear();
|
||||||
if ((dataSource.CurrentName() != null) && (dataSource.getCurrent() != null)) {
|
if ((CurrentName() != null) && (getCurrent() != null)) {
|
||||||
savedCurrentKey = dataSource.getCurrent().getPK();
|
savedCurrentKey = getCurrent().getPK();
|
||||||
}
|
}
|
||||||
savedSelectedKeys = (Vector<Object>) dataSource.getSelectedKeys();
|
savedSelectedKeys = getSelectedKeys();
|
||||||
}
|
}
|
||||||
public void RestoreLastCurrent() {
|
public void RestoreLastCurrent() {
|
||||||
for (Object key : savedSelectedKeys) {
|
for (Object key : savedSelectedKeys) {
|
||||||
@@ -438,4 +453,56 @@ public class DataSetControlForm<D extends DBObject> extends ControlForm<DataTabl
|
|||||||
SetCurrentByPK(savedCurrentKey);
|
SetCurrentByPK(savedCurrentKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public int getSelectedCount() {
|
||||||
|
return (int) dataSource.Data.values().stream().filter(d -> isObjectVisible(d) && d.isSelected()).count();
|
||||||
|
}
|
||||||
|
public Vector<D> getSelectedItems() {
|
||||||
|
return dataSource.Data.values().stream().filter(d -> isObjectVisible(d) && d.isSelected()).collect(Collectors.toCollection(Vector::new));
|
||||||
|
}
|
||||||
|
public Vector<Object> getSelectedKeys() {
|
||||||
|
return dataSource.Data.values().stream().filter(DBObject::isSelected).map(d -> d.getPK()).collect(Collectors.toCollection(Vector::new));
|
||||||
|
}
|
||||||
|
//--
|
||||||
|
public Current_ CurrentName() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
public boolean CheckCurrent(TextLog log) {
|
||||||
|
return MainModule_.instance.Check(log, CurrentName());
|
||||||
|
}
|
||||||
|
public boolean CheckSelectedOrCurrent(TextLog log) {
|
||||||
|
if ((getSelectedCount() == 0) && (CurrentName() == null || (getCurrent() == null))) {
|
||||||
|
log.Writeln_(getPluralDescription() + ":");
|
||||||
|
log.Writeln_("Отсутствуют отмеченные объекты, или текущий объект!");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
public void dropCurrent() {
|
||||||
|
MainModule_.instance.set(CurrentName(), null);
|
||||||
|
}
|
||||||
|
public D getCurrent() {
|
||||||
|
return (D) MainModule_.instance.get(CurrentName());
|
||||||
|
}
|
||||||
|
public Vector<D> getSelectedOrCurrent() {
|
||||||
|
Vector<D> res = new Vector<>();
|
||||||
|
if (getSelectedCount() > 0)
|
||||||
|
res = getSelectedItems();
|
||||||
|
else {
|
||||||
|
if ((CurrentName() != null) && (getCurrent() != null)) {
|
||||||
|
res.add(getCurrent());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
public Vector<Object> getSelectedOrCurrentKeys() {
|
||||||
|
Vector<Object> res = new Vector<>();
|
||||||
|
if (getSelectedCount() > 0)
|
||||||
|
res = getSelectedKeys();
|
||||||
|
else {
|
||||||
|
if ((CurrentName() != null) && (getCurrent() != null)) {
|
||||||
|
res.add(getCurrent().getPK());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,10 +46,10 @@ public class DataMenuBar extends VisualiserMenuBar {
|
|||||||
if (selectAllListener != null) {
|
if (selectAllListener != null) {
|
||||||
selectAllButton.removeActionListener(selectAllListener);
|
selectAllButton.removeActionListener(selectAllListener);
|
||||||
}
|
}
|
||||||
selectAllButton.addActionListener(selectAllListener = e -> dataSet.SelectAll(true));
|
selectAllButton.addActionListener(selectAllListener = e -> dataSet.getUI().SelectAll(true));
|
||||||
if (unselectAllListener != null) {
|
if (unselectAllListener != null) {
|
||||||
unselectAllButton.removeActionListener(unselectAllListener);
|
unselectAllButton.removeActionListener(unselectAllListener);
|
||||||
}
|
}
|
||||||
unselectAllButton.addActionListener(unselectAllListener = e -> dataSet.SelectAll(false));
|
unselectAllButton.addActionListener(unselectAllListener = e -> dataSet.getUI().SelectAll(false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,4 @@ public class AccountsDBTable extends DBTable<Integer, Account> {
|
|||||||
public AccountsDBTable() {
|
public AccountsDBTable() {
|
||||||
super(Integer.class, Account.class);
|
super(Integer.class, Account.class);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "аккаунт";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import Common.Utils.Utils_;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Compiler.UI.CompilerFields;
|
import _VisualDVM.GlobalData.Compiler.UI.CompilerFields;
|
||||||
import _VisualDVM.GlobalData.Compiler.UI.CompilersForm;
|
import _VisualDVM.GlobalData.Compiler.UI.CompilersForm;
|
||||||
@@ -27,14 +26,6 @@ public class CompilersDBTable extends iDBTable<Compiler> {
|
|||||||
super(Compiler.class);
|
super(Compiler.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "компилятор";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "компиляторы";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public LinkedHashMap<Class<? extends DBObject>, FKBehaviour> getFKDependencies() {
|
public LinkedHashMap<Class<? extends DBObject>, FKBehaviour> getFKDependencies() {
|
||||||
LinkedHashMap<Class<? extends DBObject>, FKBehaviour> res = new LinkedHashMap<>();
|
LinkedHashMap<Class<? extends DBObject>, FKBehaviour> res = new LinkedHashMap<>();
|
||||||
res.put(Makefile.class, new FKBehaviour(FKDataBehaviour.DROP, FKCurrentObjectBehaviuor.PASSIVE));
|
res.put(Makefile.class, new FKBehaviour(FKDataBehaviour.DROP, FKCurrentObjectBehaviuor.PASSIVE));
|
||||||
@@ -124,10 +115,6 @@ public class CompilersDBTable extends iDBTable<Compiler> {
|
|||||||
return new CompilersForm(this, mountPanel);
|
return new CompilersForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.Compiler;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public PassCode_ getDeletePassCode() {
|
public PassCode_ getDeletePassCode() {
|
||||||
return PassCode.DeleteCompiler;
|
return PassCode.DeleteCompiler;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,18 @@ public class CompilersForm extends DataSetControlForm<Compiler> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.Compiler;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "компилятор";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "компиляторы";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -41,7 +53,7 @@ public class CompilersForm extends DataSetControlForm<Compiler> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.AddCompiler,
|
return new DataMenuBar(getPluralDescription(), PassCode.AddCompiler,
|
||||||
PassCode.EditCompiler,
|
PassCode.EditCompiler,
|
||||||
PassCode.DeleteCompiler,
|
PassCode.DeleteCompiler,
|
||||||
PassCode.ShowCompilerVersion,
|
PassCode.ShowCompilerVersion,
|
||||||
|
|||||||
@@ -15,8 +15,4 @@ public class LastProjectsDBTable extends DBTable<String, DBLastProject> {
|
|||||||
public Vector<DBLastProject> getOrdered() {
|
public Vector<DBLastProject> getOrdered() {
|
||||||
return getOrderedRecords(new SortByDate());
|
return getOrderedRecords(new SortByDate());
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "путь к проекту";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import Common.Utils.Utils_;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.DVMParameter.UI.DVMParameterFields;
|
import _VisualDVM.GlobalData.DVMParameter.UI.DVMParameterFields;
|
||||||
import _VisualDVM.GlobalData.DVMParameter.UI.DVMParametersForm;
|
import _VisualDVM.GlobalData.DVMParameter.UI.DVMParametersForm;
|
||||||
@@ -18,18 +17,6 @@ public class DVMParameterDBTable extends iDBTable<DVMParameter> {
|
|||||||
super(DVMParameter.class);
|
super(DVMParameter.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "параметр DVM системы";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "параметры DVM";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.DVMParameterValue;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new DVMParametersForm(this, mountPanel);
|
return new DVMParametersForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package _VisualDVM.GlobalData.DVMParameter.UI;
|
|||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
@@ -11,6 +12,18 @@ public class DVMParametersForm extends DataSetControlForm<DVMParameter> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.DVMParameterValue;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "параметр DVM системы";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "параметры DVM";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"имя",
|
"имя",
|
||||||
@@ -33,7 +46,7 @@ public class DVMParametersForm extends DataSetControlForm<DVMParameter> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.AddDVMParameter,
|
PassCode.AddDVMParameter,
|
||||||
PassCode.EditDVMParameter,
|
PassCode.EditDVMParameter,
|
||||||
PassCode.DeleteDVMParameter);
|
PassCode.DeleteDVMParameter);
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import Common.Utils.Utils_;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.EnvironmentValue.UI.EnvironmentValueFields;
|
import _VisualDVM.GlobalData.EnvironmentValue.UI.EnvironmentValueFields;
|
||||||
import _VisualDVM.GlobalData.EnvironmentValue.UI.EnvironmentsValuesForm;
|
import _VisualDVM.GlobalData.EnvironmentValue.UI.EnvironmentsValuesForm;
|
||||||
@@ -18,14 +17,6 @@ public class EnvironmentValuesDBTable extends iDBTable<EnvironmentValue> {
|
|||||||
super(EnvironmentValue.class);
|
super(EnvironmentValue.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "переменная окружения";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "переменные окружения";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public DBObjectDialog<EnvironmentValue, EnvironmentValueFields> getDialog() {
|
public DBObjectDialog<EnvironmentValue, EnvironmentValueFields> getDialog() {
|
||||||
return new DBObjectDialog<EnvironmentValue, EnvironmentValueFields>(EnvironmentValueFields.class) {
|
return new DBObjectDialog<EnvironmentValue, EnvironmentValueFields>(EnvironmentValueFields.class) {
|
||||||
@Override
|
@Override
|
||||||
@@ -74,10 +65,6 @@ public class EnvironmentValuesDBTable extends iDBTable<EnvironmentValue> {
|
|||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new EnvironmentsValuesForm(this, mountPanel);
|
return new EnvironmentsValuesForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.EnvironmentValue;
|
|
||||||
}
|
|
||||||
public EnvironmentValue getEnvByName(String name_in) {
|
public EnvironmentValue getEnvByName(String name_in) {
|
||||||
for (EnvironmentValue environmentValue : Data.values())
|
for (EnvironmentValue environmentValue : Data.values())
|
||||||
if (environmentValue.name.equalsIgnoreCase(name_in)) return environmentValue;
|
if (environmentValue.name.equalsIgnoreCase(name_in)) return environmentValue;
|
||||||
|
|||||||
@@ -13,6 +13,18 @@ public class EnvironmentsValuesForm extends DataSetControlForm<EnvironmentValue>
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.EnvironmentValue;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "переменная окружения";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "переменные окружения";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"имя",
|
"имя",
|
||||||
@@ -34,7 +46,7 @@ public class EnvironmentsValuesForm extends DataSetControlForm<EnvironmentValue>
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.AddEnvironmentValue,
|
PassCode.AddEnvironmentValue,
|
||||||
PassCode.EditEnvironmentValue,
|
PassCode.EditEnvironmentValue,
|
||||||
PassCode.DeleteEnvironmentValue,
|
PassCode.DeleteEnvironmentValue,
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import Common.Passes.PassCode_;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.GlobalData.Compiler.Compiler;
|
import _VisualDVM.GlobalData.Compiler.Compiler;
|
||||||
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
import _VisualDVM.GlobalData.DVMParameter.DVMParameter;
|
||||||
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValue;
|
import _VisualDVM.GlobalData.EnvironmentValue.EnvironmentValue;
|
||||||
@@ -29,14 +28,6 @@ public class MachinesDBTable extends iDBTable<Machine> {
|
|||||||
super(Machine.class);
|
super(Machine.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "машина";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "машины";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public DBObjectDialog<Machine, MachineFields> getDialog() {
|
public DBObjectDialog<Machine, MachineFields> getDialog() {
|
||||||
return new DBObjectDialog<Machine, MachineFields>(MachineFields.class) {
|
return new DBObjectDialog<Machine, MachineFields>(MachineFields.class) {
|
||||||
@Override
|
@Override
|
||||||
@@ -88,10 +79,6 @@ public class MachinesDBTable extends iDBTable<Machine> {
|
|||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new MachinesForm(this, mountPanel);
|
return new MachinesForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.Machine;
|
|
||||||
}
|
|
||||||
public boolean LocalMachineExists() {
|
public boolean LocalMachineExists() {
|
||||||
return Data.values().stream().anyMatch(machine -> machine.type.equals(MachineType.Local));
|
return Data.values().stream().anyMatch(machine -> machine.type.equals(MachineType.Local));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import Common.Database.Tables.DataSet;
|
|||||||
import Common.Visual.Controls.MenuBarButton;
|
import Common.Visual.Controls.MenuBarButton;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Machine.Machine;
|
import _VisualDVM.GlobalData.Machine.Machine;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
@@ -15,6 +16,18 @@ public class MachinesForm extends DataSetControlForm<Machine> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.Machine;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "машина";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "машины";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -40,7 +53,7 @@ public class MachinesForm extends DataSetControlForm<Machine> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.AddMachine,
|
PassCode.AddMachine,
|
||||||
PassCode.EditMachine,
|
PassCode.EditMachine,
|
||||||
PassCode.DeleteMachine) {
|
PassCode.DeleteMachine) {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import Common.Database.Tables.iDBTable;
|
|||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.GlobalData.Makefile.UI.MakefilesForm;
|
import _VisualDVM.GlobalData.Makefile.UI.MakefilesForm;
|
||||||
import _VisualDVM.GlobalData.Module.Module;
|
import _VisualDVM.GlobalData.Module.Module;
|
||||||
import _VisualDVM.GlobalData.Module.UI.ModuleAnchestorFields;
|
import _VisualDVM.GlobalData.Module.UI.ModuleAnchestorFields;
|
||||||
@@ -22,14 +21,6 @@ public class MakefilesDBTable extends iDBTable<Makefile> {
|
|||||||
super(Makefile.class);
|
super(Makefile.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "мейкфайл";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "мейкфайлы";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public DBObjectDialog<Makefile, ModuleAnchestorFields> getDialog() {
|
public DBObjectDialog<Makefile, ModuleAnchestorFields> getDialog() {
|
||||||
return new ModuleAnchestorForm<>();
|
return new ModuleAnchestorForm<>();
|
||||||
}
|
}
|
||||||
@@ -45,10 +36,6 @@ public class MakefilesDBTable extends iDBTable<Makefile> {
|
|||||||
return new MakefilesForm(this, mountPanel);
|
return new MakefilesForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.Makefile;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public PassCode_ getDeletePassCode() {
|
public PassCode_ getDeletePassCode() {
|
||||||
return PassCode.DeleteMakefile;
|
return PassCode.DeleteMakefile;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,18 @@ public class MakefilesForm extends DataSetControlForm<Makefile> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.Makefile;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "мейкфайл";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "мейкфайлы";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -43,7 +55,7 @@ public class MakefilesForm extends DataSetControlForm<Makefile> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.Compile,
|
PassCode.Compile,
|
||||||
PassCode.AddMakefile,
|
PassCode.AddMakefile,
|
||||||
PassCode.EditMakefile,
|
PassCode.EditMakefile,
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import Common.Database.Tables.iDBTable;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
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.GlobalData.Module.UI.ModuleAnchestorForm;
|
import _VisualDVM.GlobalData.Module.UI.ModuleAnchestorForm;
|
||||||
import _VisualDVM.GlobalData.Module.UI.ModulesForm;
|
import _VisualDVM.GlobalData.Module.UI.ModulesForm;
|
||||||
|
|
||||||
@@ -13,14 +12,6 @@ public class ModulesDBTable extends iDBTable<Module> {
|
|||||||
super(Module.class);
|
super(Module.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "языковой модуль";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "языковые модули";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public DBObjectDialog<Module, ? extends DialogFields> getDialog() {
|
public DBObjectDialog<Module, ? extends DialogFields> getDialog() {
|
||||||
return new ModuleAnchestorForm<>();
|
return new ModuleAnchestorForm<>();
|
||||||
}
|
}
|
||||||
@@ -28,8 +19,4 @@ public class ModulesDBTable extends iDBTable<Module> {
|
|||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new ModulesForm(this, mountPanel);
|
return new ModulesForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.Module;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,18 @@ public class ModulesForm extends DataSetControlForm<Module> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.Module;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "языковой модуль";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "языковые модули";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -46,7 +58,7 @@ public class ModulesForm extends DataSetControlForm<Module> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.EditModule);
|
return new DataMenuBar(getPluralDescription(), PassCode.EditModule);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(Module object) {
|
public boolean isObjectVisible(Module object) {
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ import Common.Passes.PassCode_;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
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;
|
||||||
@@ -30,14 +29,6 @@ public class RunConfigurationsDBTable extends iDBTable<RunConfiguration> {
|
|||||||
super(RunConfiguration.class);
|
super(RunConfiguration.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "конфигурация запуска";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "конфигурации запуска";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public DBObjectDialog<RunConfiguration, RunConfigurationFields> getDialog() {
|
public DBObjectDialog<RunConfiguration, RunConfigurationFields> getDialog() {
|
||||||
return new DBObjectDialog<RunConfiguration, RunConfigurationFields>(RunConfigurationFields.class) {
|
return new DBObjectDialog<RunConfiguration, RunConfigurationFields>(RunConfigurationFields.class) {
|
||||||
@Override
|
@Override
|
||||||
@@ -122,10 +113,6 @@ public class RunConfigurationsDBTable extends iDBTable<RunConfiguration> {
|
|||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new RunConfigurationsForm(this, mountPanel);
|
return new RunConfigurationsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.RunConfiguration;
|
|
||||||
}
|
|
||||||
public void Patch() throws Exception {
|
public void Patch() throws Exception {
|
||||||
for (RunConfiguration c : Data.values()) {
|
for (RunConfiguration c : Data.values()) {
|
||||||
c.Patch();
|
c.Patch();
|
||||||
|
|||||||
@@ -13,6 +13,18 @@ public class RunConfigurationsForm extends DataSetControlForm<RunConfiguration>
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.RunConfiguration;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "конфигурация запуска";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "конфигурации запуска";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"Команда",
|
"Команда",
|
||||||
@@ -51,7 +63,7 @@ public class RunConfigurationsForm extends DataSetControlForm<RunConfiguration>
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.Run,
|
PassCode.Run,
|
||||||
PassCode.AddRunConfiguration,
|
PassCode.AddRunConfiguration,
|
||||||
PassCode.EditRunConfiguration,
|
PassCode.EditRunConfiguration,
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import Common.Database.Tables.iDBTable;
|
|||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.GlobalData.SapforProfile.UI.SapforProfileFields;
|
import _VisualDVM.GlobalData.SapforProfile.UI.SapforProfileFields;
|
||||||
import _VisualDVM.GlobalData.SapforProfile.UI.SapforProfilesForm;
|
import _VisualDVM.GlobalData.SapforProfile.UI.SapforProfilesForm;
|
||||||
import _VisualDVM.GlobalData.SapforProfileSetting.SapforProfileSetting;
|
import _VisualDVM.GlobalData.SapforProfileSetting.SapforProfileSetting;
|
||||||
@@ -20,22 +19,10 @@ public class SapforProfilesDBTable extends iDBTable<SapforProfile> {
|
|||||||
super(SapforProfile.class);
|
super(SapforProfile.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getPluralDescription() {
|
|
||||||
return "профили SAPFOR";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "профиль SAPFOR";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new SapforProfilesForm(this, mountPanel);
|
return new SapforProfilesForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.SapforProfile;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public DBObjectDialog<SapforProfile, SapforProfileFields> getDialog() {
|
public DBObjectDialog<SapforProfile, SapforProfileFields> getDialog() {
|
||||||
return new DBObjectDialog<SapforProfile, SapforProfileFields>(SapforProfileFields.class) {
|
return new DBObjectDialog<SapforProfile, SapforProfileFields>(SapforProfileFields.class) {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package _VisualDVM.GlobalData.SapforProfile.UI;
|
|||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
import _VisualDVM.GlobalData.SapforProfile.SapforProfile;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
@@ -12,6 +13,18 @@ public class SapforProfilesForm extends DataSetControlForm<SapforProfile> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.SapforProfile;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "профили SAPFOR";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "профиль SAPFOR";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -35,7 +48,7 @@ public class SapforProfilesForm extends DataSetControlForm<SapforProfile> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.SaveProfile,
|
PassCode.SaveProfile,
|
||||||
PassCode.EditProfile,
|
PassCode.EditProfile,
|
||||||
PassCode.ApplyProfile,
|
PassCode.ApplyProfile,
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package _VisualDVM.GlobalData.SapforProfileSetting;
|
package _VisualDVM.GlobalData.SapforProfileSetting;
|
||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.GlobalData.SapforProfileSetting.UI.SapforProfileSettingsForm;
|
import _VisualDVM.GlobalData.SapforProfileSetting.UI.SapforProfileSettingsForm;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -13,8 +12,4 @@ public class SapforProfileSettingsDBTable extends iDBTable<SapforProfileSetting>
|
|||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new SapforProfileSettingsForm(this, mountPanel);
|
return new SapforProfileSettingsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.SapforProfileSetting;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ public class SapforProfileSettingsForm extends DataSetControlForm<SapforProfileS
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.SapforProfileSetting;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"имя",
|
"имя",
|
||||||
|
|||||||
@@ -10,10 +10,6 @@ public class SettingsDBTable extends DBTable<SettingName, DBSetting> {
|
|||||||
public SettingsDBTable() {
|
public SettingsDBTable() {
|
||||||
super(SettingName.class, DBSetting.class);
|
super(SettingName.class, DBSetting.class);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "настройка";
|
|
||||||
}
|
|
||||||
public void AddSetting(DBSetting s) throws Exception {
|
public void AddSetting(DBSetting s) throws Exception {
|
||||||
if (containsKey(s.Name)) {
|
if (containsKey(s.Name)) {
|
||||||
DBSetting old = get(s.Name);
|
DBSetting old = get(s.Name);
|
||||||
@@ -28,13 +24,13 @@ public class SettingsDBTable extends DBTable<SettingName, DBSetting> {
|
|||||||
} else
|
} else
|
||||||
this.getDb().Insert(s);
|
this.getDb().Insert(s);
|
||||||
}
|
}
|
||||||
|
//todo все загнать в Properties
|
||||||
public void AddAll() throws Exception {
|
public void AddAll() throws Exception {
|
||||||
//проверка списка всех настроек.
|
//проверка списка всех настроек.
|
||||||
//<editor-fold desc="Global">
|
//<editor-fold desc="Global">
|
||||||
AddSetting(new DBSetting(SettingName.ProjectsSearchDirectory, "", SettingType.StringField, ComponentType.Visualiser, false));
|
AddSetting(new DBSetting(SettingName.ProjectsSearchDirectory, "", SettingType.StringField, ComponentType.Visualiser, false));
|
||||||
AddSetting(new DBSetting(SettingName.EditorFontSize, "14", SettingType.StringField, ComponentType.Visualiser, false));
|
AddSetting(new DBSetting(SettingName.EditorFontSize, "14", SettingType.StringField, ComponentType.Visualiser, false));
|
||||||
AddSetting(new DBSetting(SettingName.DarkThemeOn, 0, SettingType.SapforFlag, ComponentType.Visualiser, false));
|
AddSetting(new DBSetting(SettingName.DarkThemeOn, 0, SettingType.SapforFlag, ComponentType.Visualiser, false));
|
||||||
// AddSetting(new DBSetting(SettingName.FocusPassesResult, 1, SettingType.SapforFlag, ComponentType.Visualiser));
|
|
||||||
AddSetting(new DBSetting(SettingName.ShowFullArraysDeclarations, 0, SettingType.SapforFlag, ComponentType.Visualiser));
|
AddSetting(new DBSetting(SettingName.ShowFullArraysDeclarations, 0, SettingType.SapforFlag, ComponentType.Visualiser));
|
||||||
AddSetting(new DBSetting(SettingName.ShowFullTabsNames, 0, SettingType.SapforFlag, ComponentType.Visualiser));
|
AddSetting(new DBSetting(SettingName.ShowFullTabsNames, 0, SettingType.SapforFlag, ComponentType.Visualiser));
|
||||||
AddSetting(new DBSetting(SettingName.FastAccessPassesCount, 5, SettingType.IntField, ComponentType.Visualiser));
|
AddSetting(new DBSetting(SettingName.FastAccessPassesCount, 5, SettingType.IntField, ComponentType.Visualiser));
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ import Common.Database.Tables.FKDataBehaviour;
|
|||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.GlobalData.Tasks.CompilationTask.UI.CompilationTasksForm;
|
import _VisualDVM.GlobalData.Tasks.CompilationTask.UI.CompilationTasksForm;
|
||||||
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
import _VisualDVM.GlobalData.Tasks.RunTask.RunTask;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
@@ -18,14 +17,6 @@ public class CompilationTasksDBTable extends iDBTable<CompilationTask> {
|
|||||||
super(CompilationTask.class);
|
super(CompilationTask.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "задача на компиляцию";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "задачи на компиляцию";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public LinkedHashMap<Class<? extends DBObject>, FKBehaviour> getFKDependencies() {
|
public LinkedHashMap<Class<? extends DBObject>, FKBehaviour> getFKDependencies() {
|
||||||
LinkedHashMap<Class<? extends DBObject>, FKBehaviour> res = new LinkedHashMap<>();
|
LinkedHashMap<Class<? extends DBObject>, FKBehaviour> res = new LinkedHashMap<>();
|
||||||
res.put(RunTask.class, new FKBehaviour(FKDataBehaviour.DELETE, FKCurrentObjectBehaviuor.ACTIVE));
|
res.put(RunTask.class, new FKBehaviour(FKDataBehaviour.DELETE, FKCurrentObjectBehaviuor.ACTIVE));
|
||||||
@@ -36,10 +27,6 @@ public class CompilationTasksDBTable extends iDBTable<CompilationTask> {
|
|||||||
return new CompilationTasksForm(this, mountPanel);
|
return new CompilationTasksForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.CompilationTask;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public PassCode_ getDeletePassCode() {
|
public PassCode_ getDeletePassCode() {
|
||||||
return PassCode.DeleteCompilationTasks;
|
return PassCode.DeleteCompilationTasks;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,18 @@ public class CompilationTasksForm extends DataSetControlForm<CompilationTask> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.CompilationTask;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "задача на компиляцию";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "задачи на компиляцию";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -53,7 +65,7 @@ public class CompilationTasksForm extends DataSetControlForm<CompilationTask> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.DeleteCompilationTasks);
|
return new DataMenuBar(getPluralDescription(), PassCode.DeleteCompilationTasks);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(CompilationTask object) {
|
public boolean isObjectVisible(CompilationTask object) {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package _VisualDVM.GlobalData.Tasks.RunTask;
|
|||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.GlobalData.Tasks.RunTask.UI.RunTasksForm;
|
import _VisualDVM.GlobalData.Tasks.RunTask.UI.RunTasksForm;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
|
|
||||||
@@ -12,22 +11,10 @@ public class RunTasksDBTable extends iDBTable<RunTask> {
|
|||||||
super(RunTask.class);
|
super(RunTask.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "задача на запуск";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "задачи на запуск";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new RunTasksForm(this, mountPanel);
|
return new RunTasksForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.RunTask;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public PassCode_ getDeletePassCode() {
|
public PassCode_ getDeletePassCode() {
|
||||||
return PassCode.DeleteRunTasks;
|
return PassCode.DeleteRunTasks;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,18 @@ public class RunTasksForm extends DataSetControlForm<RunTask> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.RunTask;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "задача на запуск";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "задачи на запуск";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -65,7 +77,7 @@ public class RunTasksForm extends DataSetControlForm<RunTask> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.DeleteRunTasks);
|
return new DataMenuBar(getPluralDescription(), PassCode.DeleteRunTasks);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(RunTask object) {
|
public boolean isObjectVisible(RunTask object) {
|
||||||
|
|||||||
@@ -15,6 +15,18 @@ public class UsersForm extends DataSetControlForm<User> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.User;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "пользователь";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "пользователи";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -52,7 +64,7 @@ public class UsersForm extends DataSetControlForm<User> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.AddUser,
|
PassCode.AddUser,
|
||||||
PassCode.EditUser,
|
PassCode.EditUser,
|
||||||
PassCode.InitialiseUser,
|
PassCode.InitialiseUser,
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import Common.Database.Tables.iDBTable;
|
|||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Machine.MachineType;
|
import _VisualDVM.GlobalData.Machine.MachineType;
|
||||||
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
import _VisualDVM.GlobalData.Tasks.CompilationTask.CompilationTask;
|
||||||
@@ -23,14 +22,6 @@ public class UsersDBTable extends iDBTable<User> {
|
|||||||
super(User.class);
|
super(User.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "пользователь";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "пользователи";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public LinkedHashMap<Class<? extends DBObject>, FKBehaviour> getFKDependencies() {
|
public LinkedHashMap<Class<? extends DBObject>, FKBehaviour> getFKDependencies() {
|
||||||
LinkedHashMap<Class<? extends DBObject>, FKBehaviour> res = new LinkedHashMap<>();
|
LinkedHashMap<Class<? extends DBObject>, FKBehaviour> res = new LinkedHashMap<>();
|
||||||
res.put(CompilationTask.class, new FKBehaviour(FKDataBehaviour.DELETE, FKCurrentObjectBehaviuor.ACTIVE));
|
res.put(CompilationTask.class, new FKBehaviour(FKDataBehaviour.DELETE, FKCurrentObjectBehaviuor.ACTIVE));
|
||||||
@@ -77,10 +68,6 @@ public class UsersDBTable extends iDBTable<User> {
|
|||||||
return new UsersForm(this, mountPanel);
|
return new UsersForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.User;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public PassCode_ getDeletePassCode() {
|
public PassCode_ getDeletePassCode() {
|
||||||
return PassCode.DeleteUser;
|
return PassCode.DeleteUser;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class CompareDVMRunTasks extends Pass<Vector<DVMRunTask>> {
|
|||||||
master = null;
|
master = null;
|
||||||
slave = null;
|
slave = null;
|
||||||
//--
|
//--
|
||||||
target = Global.testingServer.db.dvmRunTasks.getSelectedItems();
|
target = Global.testingServer.db.dvmRunTasks.getUI().getSelectedItems();
|
||||||
if (target.size() == 2) {
|
if (target.size() == 2) {
|
||||||
if (UI.Question("Назначить задачу " + Utils_.Brackets(target.get(0).getPK()) + " эталоном" +
|
if (UI.Question("Назначить задачу " + Utils_.Brackets(target.get(0).getPK()) + " эталоном" +
|
||||||
"\n(в случае отказа, будет назначена задача " + Utils_.Brackets(target.get(1).getPK()) + ")")) {
|
"\n(в случае отказа, будет назначена задача " + Utils_.Brackets(target.get(1).getPK()) + ")")) {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ public class CompareSapforPackages extends Pass<Vector<SapforPackage>> {
|
|||||||
master = null;
|
master = null;
|
||||||
slave = null;
|
slave = null;
|
||||||
//--
|
//--
|
||||||
target = Global.testingServer.db.sapforPackages.getSelectedItems();
|
target = Global.testingServer.db.sapforPackages.getUI().getSelectedItems();
|
||||||
if (target.size() == 2) {
|
if (target.size() == 2) {
|
||||||
if (UI.Question("Назначить пакет " + Utils_.Brackets(target.get(0).getPK()) + " эталоном" +
|
if (UI.Question("Назначить пакет " + Utils_.Brackets(target.get(0).getPK()) + " эталоном" +
|
||||||
"\n(в случае отказа, будет назначен пакет " + Utils_.Brackets(target.get(1).getPK()) + ")")) {
|
"\n(в случае отказа, будет назначен пакет " + Utils_.Brackets(target.get(1).getPK()) + ")")) {
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ public class ExportDVMPackageToExcel extends Pass<Vector<DVMPackage>> {
|
|||||||
styles = null;
|
styles = null;
|
||||||
target = null;
|
target = null;
|
||||||
//--
|
//--
|
||||||
if (Global.testingServer.db.dvmPackages.getSelectedCount() > 0) {
|
if (Global.testingServer.db.dvmPackages.getUI().getSelectedCount() > 0) {
|
||||||
target = Global.testingServer.db.dvmPackages.getSelectedItems();
|
target = Global.testingServer.db.dvmPackages.getUI().getSelectedItems();
|
||||||
} else {
|
} else {
|
||||||
if (Global.mainModule.Check(Log, Current.DVMPackage)) {
|
if (Global.mainModule.Check(Log, Current.DVMPackage)) {
|
||||||
target = new Vector<>();
|
target = new Vector<>();
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public class Run extends Pass<db_project_info> {
|
|||||||
task.setProgress(i, runTasks.size());
|
task.setProgress(i, runTasks.size());
|
||||||
//-
|
//-
|
||||||
Global.mainModule.getDb().runTasks.RefreshUI();
|
Global.mainModule.getDb().runTasks.RefreshUI();
|
||||||
Global.mainModule.getDb().runTasks.SetCurrentObjectByUI(task.id);
|
Global.mainModule.getDb().runTasks.getUI().SetCurrentByPK(task.id);
|
||||||
//-
|
//-
|
||||||
subpass.Do(task, target);
|
subpass.Do(task, target);
|
||||||
//-
|
//-
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ public class SPF_GetArrayDistributionOnlyAnalysis extends SapforAnalysis {
|
|||||||
Global.mainModule.getUI().getVersionsWindow().getVariantsWindow().ShowVariantsFilter();
|
Global.mainModule.getUI().getVersionsWindow().getVariantsWindow().ShowVariantsFilter();
|
||||||
Global.mainModule.getUI().getVersionsWindow().getVariantsWindow().ShowTotalVariantsCount();
|
Global.mainModule.getUI().getVersionsWindow().getVariantsWindow().ShowTotalVariantsCount();
|
||||||
Global.mainModule.getUI().getVersionsWindow().getVariantsWindow().ShowFilteredVariantsCount();
|
Global.mainModule.getUI().getVersionsWindow().getVariantsWindow().ShowFilteredVariantsCount();
|
||||||
Global.mainModule.getUI().getVersionsWindow().getVariantsWindow().ShowCheckedVariantsCount();
|
|
||||||
Global.mainModule.getUI().getMainWindow().getProjectWindow().getAnalysisWindow().ShowRegions();
|
Global.mainModule.getUI().getMainWindow().getProjectWindow().getAnalysisWindow().ShowRegions();
|
||||||
Global.mainModule.getUI().getMainWindow().getProjectWindow().getAnalysisWindow().ShowProjectMaxDim();
|
Global.mainModule.getUI().getMainWindow().getProjectWindow().getAnalysisWindow().ShowProjectMaxDim();
|
||||||
super.showDone();
|
super.showDone();
|
||||||
|
|||||||
@@ -43,10 +43,10 @@ public class StartSelectedDVMConfigurations extends PublishServerObject<TestingS
|
|||||||
if (!Global.mainModule.getCompiler().versionLoaded)
|
if (!Global.mainModule.getCompiler().versionLoaded)
|
||||||
Global.mainModule.getPass(PassCode.ShowCompilerVersion).Do(Global.mainModule.getCompiler(), false);
|
Global.mainModule.getPass(PassCode.ShowCompilerVersion).Do(Global.mainModule.getCompiler(), false);
|
||||||
//-----
|
//-----
|
||||||
if (!Global.testingServer.db.dvm_configurations.CheckSelectedOrCurrent(Log)) {
|
if (!Global.testingServer.db.dvm_configurations.getUI().CheckSelectedOrCurrent(Log)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Vector<DVMConfiguration> configurations = Global.testingServer.db.dvm_configurations.getSelectedOrCurrent();
|
Vector<DVMConfiguration> configurations = Global.testingServer.db.dvm_configurations.getUI().getSelectedOrCurrent();
|
||||||
//---
|
//---
|
||||||
target = new DVMPackage(
|
target = new DVMPackage(
|
||||||
Global.mainModule.getAccount(),
|
Global.mainModule.getAccount(),
|
||||||
|
|||||||
@@ -35,10 +35,10 @@ public class StartSelectedSAPFORConfigurations extends PublishServerObject<Testi
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
//--
|
//--
|
||||||
if (!Global.testingServer.db.sapforConfigurations.CheckSelectedOrCurrent(Log)) {
|
if (!Global.testingServer.db.sapforConfigurations.getUI().CheckSelectedOrCurrent(Log)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
configurations = Global.testingServer.db.sapforConfigurations.getSelectedOrCurrent();
|
configurations = Global.testingServer.db.sapforConfigurations.getUI().getSelectedOrCurrent();
|
||||||
target = new SapforPackage(Global.mainModule.getAccount(),
|
target = new SapforPackage(Global.mainModule.getAccount(),
|
||||||
Global.mainModule.getServerSapfor(),
|
Global.mainModule.getServerSapfor(),
|
||||||
configurations,
|
configurations,
|
||||||
|
|||||||
@@ -22,18 +22,18 @@ public class UpdateSelectedComponents extends Pass<Vector<Component>> {
|
|||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = new Vector<>();
|
target = new Vector<>();
|
||||||
//------------------------
|
//------------------------
|
||||||
if (Global.Components.getSelectedCount() == 0) {
|
if (Global.Components.getUI().getSelectedCount() == 0) {
|
||||||
Log.Writeln_("Не отмечено ни одного компонента!");
|
Log.Writeln_("Не отмечено ни одного компонента!");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
target = Global.Components.getSelectedItems();
|
target = Global.Components.getUI().getSelectedItems();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getStartDescription() {
|
public String getStartDescription() {
|
||||||
Vector<String> question = new Vector<>();
|
Vector<String> question = new Vector<>();
|
||||||
question.add("Обновить компоненты");
|
question.add("Обновить компоненты");
|
||||||
for (Component component : Global.Components.getSelectedItems()) {
|
for (Component component : Global.Components.getUI().getSelectedItems()) {
|
||||||
question.add(component.getComponentType().getDescription());
|
question.add(component.getComponentType().getDescription());
|
||||||
}
|
}
|
||||||
return String.join("\n", question);
|
return String.join("\n", question);
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public abstract class VariantsMassPass extends CurrentProjectPass {
|
|||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
count = 0;
|
count = 0;
|
||||||
if (super.canStart(args)) {
|
if (super.canStart(args)) {
|
||||||
count = target.parallelVariants.getSelectedCount();
|
count = target.parallelVariants.getUI().getSelectedCount();
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
Log.Writeln_("Не выбрано ни одного параллельного варианта");
|
Log.Writeln_("Не выбрано ни одного параллельного варианта");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ public class DeleteServerObject<S extends RepositoryServer, D extends DBObject>
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = (D) getDb().getTable(d).getCurrent();
|
target = (D) getDb().getTable(d).getUI().getCurrent();
|
||||||
return getDb().getTable(d).CheckCurrent(Log) && getDb().getTable(d).ShowDeleteObjectDialog(target);
|
return getDb().getTable(d).getUI().CheckCurrent(Log) && getDb().getTable(d).ShowDeleteObjectDialog(target);
|
||||||
}
|
}
|
||||||
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -36,9 +36,9 @@ public class DeleteServerObjects<S extends RepositoryServer, D extends DBObject>
|
|||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
DBTable table = getDb().getTable(d);
|
DBTable table = getDb().getTable(d);
|
||||||
if (!table.CheckSelectedOrCurrent(Log))
|
if (!table.getUI().CheckSelectedOrCurrent(Log))
|
||||||
return false;
|
return false;
|
||||||
target = table.getSelectedOrCurrentKeys();
|
target = table.getUI().getSelectedOrCurrentKeys();
|
||||||
return table.ShowDeleteObjectsDialog(target.size());
|
return table.ShowDeleteObjectsDialog(target.size());
|
||||||
}
|
}
|
||||||
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
//Очищаем все связанные таблицы, чтобы не допустить перерисовки во время удаления объекта.
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ public class EditServerObject<S extends RepositoryServer, D extends DBObject> ex
|
|||||||
//--
|
//--
|
||||||
@Override
|
@Override
|
||||||
protected boolean canStart(Object... args) throws Exception {
|
protected boolean canStart(Object... args) throws Exception {
|
||||||
target = (D) getDb().getTable(d).getCurrent();
|
target = (D) getDb().getTable(d).getUI().getCurrent();
|
||||||
return getDb().getTable(d).CheckCurrent(Log) && getDb().getTable(d).ShowEditObjectDialog(target);
|
return getDb().getTable(d).getUI().CheckCurrent(Log) && getDb().getTable(d).ShowEditObjectDialog(target);
|
||||||
}
|
}
|
||||||
//--
|
//--
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -33,12 +33,12 @@ public abstract class SaveCurrentConfiguration<C extends Configuration, S extend
|
|||||||
tests = new Vector<>();
|
tests = new Vector<>();
|
||||||
settings = new Vector<>();
|
settings = new Vector<>();
|
||||||
//---
|
//---
|
||||||
for (Group group : Global.testingServer.db.groups.getSelectedItems()) {
|
for (Group group : Global.testingServer.db.groups.getUI().getSelectedItems()) {
|
||||||
groups.add(group);
|
groups.add(group);
|
||||||
Vector<Test> groupTests = Global.testingServer.db.tests.getSelectedGroupTests(group);
|
Vector<Test> groupTests = Global.testingServer.db.tests.getSelectedGroupTests(group);
|
||||||
tests.addAll(groupTests);
|
tests.addAll(groupTests);
|
||||||
}
|
}
|
||||||
for (Object setting : Global.testingServer.db.getTable(s).getSelectedItems()) {
|
for (Object setting : Global.testingServer.db.getTable(s).getUI().getSelectedItems()) {
|
||||||
settings.add((Settings) setting);
|
settings.add((Settings) setting);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package _VisualDVM.ProjectData.DBArray;
|
package _VisualDVM.ProjectData.DBArray;
|
||||||
import Common.Database.Tables.DBTable;
|
import Common.Database.Tables.DBTable;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.ProjectData.DBArray.UI.DBArraysForm;
|
import _VisualDVM.ProjectData.DBArray.UI.DBArraysForm;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -10,19 +9,7 @@ public class ArraysDBTable extends DBTable<String, DBArray> {
|
|||||||
super(String.class, DBArray.class);
|
super(String.class, DBArray.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "массив";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "сохранённые состояния";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new DBArraysForm(this, mountPanel);
|
return new DBArraysForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.DBArray;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package _VisualDVM.ProjectData.DBArray.UI;
|
|||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.ProjectData.DBArray.DBArray;
|
import _VisualDVM.ProjectData.DBArray.DBArray;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -10,6 +11,18 @@ public class DBArraysForm extends DataSetControlForm<DBArray> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.DBArray;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "массив";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "сохранённые состояния";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{"Имя"};
|
return new String[]{"Имя"};
|
||||||
}
|
}
|
||||||
@@ -34,7 +47,7 @@ public class DBArraysForm extends DataSetControlForm<DBArray> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription()) {
|
return new DataMenuBar(getPluralDescription()) {
|
||||||
@Override
|
@Override
|
||||||
public void createSelectionButtons(DataSet dataSet) {
|
public void createSelectionButtons(DataSet dataSet) {
|
||||||
//не нужны.
|
//не нужны.
|
||||||
|
|||||||
@@ -1,11 +1,17 @@
|
|||||||
package _VisualDVM.ProjectData.Files;
|
package _VisualDVM.ProjectData.Files;
|
||||||
import Common.Database.Tables.DBTable;
|
import Common.Database.Tables.DBTable;
|
||||||
|
|
||||||
|
import java.util.Vector;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
public class FilesDBTable extends DBTable<String, DBProjectFile> {
|
public class FilesDBTable extends DBTable<String, DBProjectFile> {
|
||||||
public FilesDBTable() {
|
public FilesDBTable() {
|
||||||
super(String.class, DBProjectFile.class);
|
super(String.class, DBProjectFile.class);
|
||||||
}
|
}
|
||||||
@Override
|
//todo временно.когда появится общий предок у таблиц и деревьев назначать дерево как createUI
|
||||||
public String getSingleDescription() {
|
public int getSelectedCount() {
|
||||||
return "файл";
|
return (int) Data.values().stream().filter(d -> d.isSelected()).count();
|
||||||
|
}
|
||||||
|
public Vector<DBProjectFile> getSelectedItems() {
|
||||||
|
return Data.values().stream().filter(d -> d.isSelected()).collect(Collectors.toCollection(Vector::new));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,21 @@
|
|||||||
package _VisualDVM.ProjectData.Messages.Errors;
|
package _VisualDVM.ProjectData.Messages.Errors;
|
||||||
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
|
import _VisualDVM.ProjectData.Messages.MessagesControlForm;
|
||||||
import _VisualDVM.ProjectData.Messages.MessagesDBTable;
|
import _VisualDVM.ProjectData.Messages.MessagesDBTable;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
public class ErrorsDBTable extends MessagesDBTable<MessageError> {
|
public class ErrorsDBTable extends MessagesDBTable<MessageError> {
|
||||||
public ErrorsDBTable() {
|
public ErrorsDBTable() {
|
||||||
super(MessageError.class);
|
super(MessageError.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return "сообщение об ошибке";
|
return new MessagesControlForm(this, mountPanel) {
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
public Current CurrentName() {
|
||||||
return Current.Errors;
|
return Current.Errors;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class MessagesControlForm extends DataSetControlForm<Message> {
|
|||||||
@Override
|
@Override
|
||||||
public void ShowCurrentObject() throws Exception {
|
public void ShowCurrentObject() throws Exception {
|
||||||
super.ShowCurrentObject();
|
super.ShowCurrentObject();
|
||||||
Global.mainModule.getFile().form.getEditor().gotoLine(((Message) dataSource.getCurrent()).line);
|
Global.mainModule.getFile().form.getEditor().gotoLine(getCurrent().line);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void AdditionalInitColumns() {
|
protected void AdditionalInitColumns() {
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
package _VisualDVM.ProjectData.Messages;
|
package _VisualDVM.ProjectData.Messages;
|
||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
import Common.Visual.DataSetControlForm;
|
|
||||||
|
|
||||||
import javax.swing.*;
|
|
||||||
//https://stackoverflow.com/questions/2026965/can-i-add-a-button-to-a-jtable-column-header
|
//https://stackoverflow.com/questions/2026965/can-i-add-a-button-to-a-jtable-column-header
|
||||||
//https://stackoverflow.com/questions/7137786/how-can-i-put-a-control-in-the-jtableheader-of-a-jtable/29963916#29963916
|
//https://stackoverflow.com/questions/7137786/how-can-i-put-a-control-in-the-jtableheader-of-a-jtable/29963916#29963916
|
||||||
//https://stackoverflow.com/questions/7137786/how-can-i-put-a-control-in-the-jtableheader-of-a-jtable ->>
|
//https://stackoverflow.com/questions/7137786/how-can-i-put-a-control-in-the-jtableheader-of-a-jtable ->>
|
||||||
@@ -10,8 +7,4 @@ public class MessagesDBTable<M extends Message> extends iDBTable<M> {
|
|||||||
public MessagesDBTable(Class<M> d_in) {
|
public MessagesDBTable(Class<M> d_in) {
|
||||||
super(d_in);
|
super(d_in);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
|
||||||
return new MessagesControlForm(this, mountPanel);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,21 @@
|
|||||||
package _VisualDVM.ProjectData.Messages.Notes;
|
package _VisualDVM.ProjectData.Messages.Notes;
|
||||||
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
|
import _VisualDVM.ProjectData.Messages.MessagesControlForm;
|
||||||
import _VisualDVM.ProjectData.Messages.MessagesDBTable;
|
import _VisualDVM.ProjectData.Messages.MessagesDBTable;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
public class NotesDBTable extends MessagesDBTable<MessageNote> {
|
public class NotesDBTable extends MessagesDBTable<MessageNote> {
|
||||||
public NotesDBTable() {
|
public NotesDBTable() {
|
||||||
super(MessageNote.class);
|
super(MessageNote.class);
|
||||||
// setUIContent(UI.getMainWindow().notesPanel);
|
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return "примечание";
|
return new MessagesControlForm(this, mountPanel) {
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
public Current CurrentName() {
|
||||||
return Current.Notes;
|
return Current.Notes;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package _VisualDVM.ProjectData.Messages.Recommendations;
|
package _VisualDVM.ProjectData.Messages.Recommendations;
|
||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.GlobalData.Settings.SettingName;
|
import _VisualDVM.GlobalData.Settings.SettingName;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.Messages.Recommendations.UI.RecommendationsForm;
|
import _VisualDVM.ProjectData.Messages.Recommendations.UI.RecommendationsForm;
|
||||||
@@ -18,14 +17,6 @@ public class RecommendationsDBTable extends iDBTable<MessageRecommendation> {
|
|||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new RecommendationsForm(this, mountPanel);
|
return new RecommendationsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "рекомендация";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.Recommendations;
|
|
||||||
}
|
|
||||||
public void addRecommendation(int group_in) {
|
public void addRecommendation(int group_in) {
|
||||||
MessageRecommendation result = null;
|
MessageRecommendation result = null;
|
||||||
switch (group_in) {
|
switch (group_in) {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import Common.Database.Tables.DataSet;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Tables.HeaderTextFilter;
|
import Common.Visual.Tables.HeaderTextFilter;
|
||||||
import Common.Visual.Tables.RendererWrapText;
|
import Common.Visual.Tables.RendererWrapText;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.ProjectData.Messages.Recommendations.MessageRecommendation;
|
import _VisualDVM.ProjectData.Messages.Recommendations.MessageRecommendation;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -11,6 +12,10 @@ public class RecommendationsForm extends DataSetControlForm<MessageRecommendatio
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.Recommendations;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{"текст"};
|
return new String[]{"текст"};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,22 @@
|
|||||||
package _VisualDVM.ProjectData.Messages.Warnings;
|
package _VisualDVM.ProjectData.Messages.Warnings;
|
||||||
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
import _VisualDVM.Current;
|
||||||
|
import _VisualDVM.ProjectData.Messages.MessagesControlForm;
|
||||||
import _VisualDVM.ProjectData.Messages.MessagesDBTable;
|
import _VisualDVM.ProjectData.Messages.MessagesDBTable;
|
||||||
|
|
||||||
|
import javax.swing.*;
|
||||||
public class WarningsDBTable extends MessagesDBTable<MessageWarning> {
|
public class WarningsDBTable extends MessagesDBTable<MessageWarning> {
|
||||||
//https://stackoverflow.com/questions/13079777/editable-jtableheader
|
//https://stackoverflow.com/questions/13079777/editable-jtableheader
|
||||||
public WarningsDBTable() {
|
public WarningsDBTable() {
|
||||||
super(MessageWarning.class);
|
super(MessageWarning.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return "предупреждение";
|
return new MessagesControlForm(this, mountPanel) {
|
||||||
}
|
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
public Current CurrentName() {
|
||||||
return Current.Warnings;
|
return Current.Warnings;
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -4,8 +4,4 @@ public class PredictorStatisticsDBTable extends DBTable<String, PredictorStatist
|
|||||||
public PredictorStatisticsDBTable() {
|
public PredictorStatisticsDBTable() {
|
||||||
super(String.class, PredictorStatistics_2021.class);
|
super(String.class, PredictorStatistics_2021.class);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "статистика варианта";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,4 @@ public class ProjectInfoDBTable extends DBTable<String, db_project_info> {
|
|||||||
public ProjectInfoDBTable() {
|
public ProjectInfoDBTable() {
|
||||||
super(String.class, db_project_info.class);
|
super(String.class, db_project_info.class);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "проект";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,35 +1,15 @@
|
|||||||
package _VisualDVM.ProjectData.SapforData.Arrays;
|
package _VisualDVM.ProjectData.SapforData.Arrays;
|
||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
|
||||||
import _VisualDVM.ProjectData.SapforData.Arrays.UI.ProjectArraysForm;
|
import _VisualDVM.ProjectData.SapforData.Arrays.UI.ProjectArraysForm;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.util.Vector;
|
|
||||||
public class ProjectArraysSet extends DataSet<Long, ProjectArray> {
|
public class ProjectArraysSet extends DataSet<Long, ProjectArray> {
|
||||||
public ProjectArraysSet() {
|
public ProjectArraysSet() {
|
||||||
super(Long.class, ProjectArray.class);
|
super(Long.class, ProjectArray.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "массив";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "объявленные массивы";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.ProjectArray;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new ProjectArraysForm(this, mountPanel);
|
return new ProjectArraysForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public void SelectAll(boolean flag) {
|
|
||||||
Global.mainModule.getPass(PassCode.MassSelectArrays).Do(flag, new Vector(Global.mainModule.getProject().declaratedArrays.Data.values()));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,13 +2,16 @@ package _VisualDVM.ProjectData.SapforData.Arrays.UI;
|
|||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Tables.RendererHiddenList;
|
import Common.Visual.Tables.RendererHiddenList;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Settings.SettingName;
|
import _VisualDVM.GlobalData.Settings.SettingName;
|
||||||
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.SapforData.Arrays.ProjectArray;
|
import _VisualDVM.ProjectData.SapforData.Arrays.ProjectArray;
|
||||||
import _VisualDVM.Visual.Tables.EditorFilesHyperlinks;
|
import _VisualDVM.Visual.Tables.EditorFilesHyperlinks;
|
||||||
import _VisualDVM.Visual.Tables.RendererHyperlinks;
|
import _VisualDVM.Visual.Tables.RendererHyperlinks;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
import java.util.Vector;
|
||||||
public class ProjectArraysForm extends DataSetControlForm<ProjectArray> {
|
public class ProjectArraysForm extends DataSetControlForm<ProjectArray> {
|
||||||
//-
|
//-
|
||||||
public static String filterName = "";
|
public static String filterName = "";
|
||||||
@@ -16,9 +19,23 @@ public class ProjectArraysForm extends DataSetControlForm<ProjectArray> {
|
|||||||
public static String filterLocationName = "";
|
public static String filterLocationName = "";
|
||||||
public static String filterFile = "";
|
public static String filterFile = "";
|
||||||
public static String filterRegion = "*";
|
public static String filterRegion = "*";
|
||||||
|
//--
|
||||||
public ProjectArraysForm(DataSet<?, ProjectArray> dataSource_in, JPanel mountPanel_in) {
|
public ProjectArraysForm(DataSet<?, ProjectArray> dataSource_in, JPanel mountPanel_in) {
|
||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
|
//--
|
||||||
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.ProjectArray;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "массив";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "объявленные массивы";
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
@@ -78,4 +95,9 @@ public class ProjectArraysForm extends DataSetControlForm<ProjectArray> {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public void SelectAll(boolean flag) {
|
||||||
|
Global.mainModule.getPass(PassCode.MassSelectArrays).Do(flag,
|
||||||
|
new Vector(Global.mainModule.getProject().declaratedArrays.Data.values()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package _VisualDVM.ProjectData.SapforData.Regions;
|
package _VisualDVM.ProjectData.SapforData.Regions;
|
||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.ProjectData.SapforData.Regions.UI.ParallelRegionsForm;
|
import _VisualDVM.ProjectData.SapforData.Regions.UI.ParallelRegionsForm;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -12,18 +11,6 @@ public class ParallelRegionsSet extends DataSet<BigInteger, ParallelRegion> {
|
|||||||
super(BigInteger.class, ParallelRegion.class);
|
super(BigInteger.class, ParallelRegion.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.ParallelRegionInfo;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "область распараллеливания";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "области распараллеливания";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new ParallelRegionsForm(this, mountPanel);
|
return new ParallelRegionsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import Common.Database.Tables.DataSet;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Tables.RendererMultiline;
|
import Common.Visual.Tables.RendererMultiline;
|
||||||
import Common.Visual.Tables.RendererTopLeft;
|
import Common.Visual.Tables.RendererTopLeft;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.ProjectData.SapforData.Regions.ParallelRegion;
|
import _VisualDVM.ProjectData.SapforData.Regions.ParallelRegion;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -11,6 +12,18 @@ public class ParallelRegionsForm extends DataSetControlForm<ParallelRegion> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.ParallelRegionInfo;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "область распараллеливания";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "области распараллеливания";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"Имя",
|
"Имя",
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package _VisualDVM.ProjectData.SapforData.Variants;
|
package _VisualDVM.ProjectData.SapforData.Variants;
|
||||||
import Common.Database.Objects.DBObject;
|
import Common.Database.Objects.DBObject;
|
||||||
import _VisualDVM.Global;
|
|
||||||
import _VisualDVM.ProjectData.PredictorStatistic.PredictorStatistics_2021;
|
import _VisualDVM.ProjectData.PredictorStatistic.PredictorStatistics_2021;
|
||||||
import _VisualDVM.ProjectData.Project.db_project_info;
|
import _VisualDVM.ProjectData.Project.db_project_info;
|
||||||
import _VisualDVM.ProjectData.SapforData.Arrays.ProjectArray;
|
import _VisualDVM.ProjectData.SapforData.Arrays.ProjectArray;
|
||||||
@@ -76,11 +75,6 @@ public class ParallelVariant extends DBObject {
|
|||||||
public Object getPK() {
|
public Object getPK() {
|
||||||
return UniqKey;
|
return UniqKey;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public void Select(boolean flag) {
|
|
||||||
super.Select(flag);
|
|
||||||
Global.mainModule.getUI().getVersionsWindow().getVariantsWindow().ShowCheckedVariantsCount();
|
|
||||||
}
|
|
||||||
public File restoreProject() {
|
public File restoreProject() {
|
||||||
project = null;
|
project = null;
|
||||||
if (stats != null) {
|
if (stats != null) {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package _VisualDVM.ProjectData.SapforData.Variants;
|
package _VisualDVM.ProjectData.SapforData.Variants;
|
||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.ProjectData.SapforData.Variants.UI.ParallelVariantsForm;
|
import _VisualDVM.ProjectData.SapforData.Variants.UI.ParallelVariantsForm;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
@@ -10,15 +9,7 @@ public class ParallelVariantsSet extends DataSet<String, ParallelVariant> {
|
|||||||
super(String.class, ParallelVariant.class);
|
super(String.class, ParallelVariant.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getPluralDescription() {
|
|
||||||
return "варианты";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new ParallelVariantsForm(this, mountPanel);
|
return new ParallelVariantsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.ParallelVariant;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import Common.Visual.Menus.DataMenuBar;
|
|||||||
import Common.Visual.Tables.RendererDate;
|
import Common.Visual.Tables.RendererDate;
|
||||||
import Common.Visual.Tables.RendererMaskedNanInteger;
|
import Common.Visual.Tables.RendererMaskedNanInteger;
|
||||||
import Common.Visual.Tables.RendererMultiline;
|
import Common.Visual.Tables.RendererMultiline;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.SapforData.Variants.ParallelVariant;
|
import _VisualDVM.ProjectData.SapforData.Variants.ParallelVariant;
|
||||||
|
|
||||||
@@ -14,6 +15,14 @@ public class ParallelVariantsForm extends DataSetControlForm<ParallelVariant> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.ParallelVariant;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "варианты";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -75,7 +84,7 @@ public class ParallelVariantsForm extends DataSetControlForm<ParallelVariant> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.ShowAllParallelVariants,
|
PassCode.ShowAllParallelVariants,
|
||||||
PassCode.ShowParallelVariantsCoverage,
|
PassCode.ShowParallelVariantsCoverage,
|
||||||
PassCode.PredictParallelVariants,
|
PassCode.PredictParallelVariants,
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package _VisualDVM.Repository.BugReport;
|
|||||||
import Common.Database.Tables.DBTable;
|
import Common.Database.Tables.DBTable;
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Repository.BugReport.UI.BugReportsForm;
|
import _VisualDVM.Repository.BugReport.UI.BugReportsForm;
|
||||||
|
|
||||||
@@ -14,21 +13,9 @@ public class BugReportsDBTable extends DBTable<String, BugReport> {
|
|||||||
super(String.class, BugReport.class);
|
super(String.class, BugReport.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "отчёт об ошибке";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "отчёты об ошибках";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new BugReportsForm(this, mountPanel);
|
return new BugReportsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.BugReport;
|
|
||||||
}
|
|
||||||
public Vector<BugReport> getAllDrafts() throws Exception {
|
public Vector<BugReport> getAllDrafts() throws Exception {
|
||||||
return Data.values().stream().filter(bugReport -> bugReport.state.equals(BugReportState.draft)).collect(Collectors.toCollection(Vector::new));
|
return Data.values().stream().filter(bugReport -> bugReport.state.equals(BugReportState.draft)).collect(Collectors.toCollection(Vector::new));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import Common.Visual.Menus.DataMenuBar;
|
|||||||
import Common.Visual.Tables.RendererDate;
|
import Common.Visual.Tables.RendererDate;
|
||||||
import Common.Visual.Tables.RendererProgressBar;
|
import Common.Visual.Tables.RendererProgressBar;
|
||||||
import Common.Visual.Tables.RendererStatusEnum;
|
import Common.Visual.Tables.RendererStatusEnum;
|
||||||
|
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;
|
||||||
@@ -24,10 +25,23 @@ public class BugReportsForm extends DataSetControlForm<BugReport> {
|
|||||||
public static String filterVersion = "";
|
public static String filterVersion = "";
|
||||||
public static boolean filterOpenedOnly = false;
|
public static boolean filterOpenedOnly = false;
|
||||||
public static boolean filterMyOnly = false;
|
public static boolean filterMyOnly = false;
|
||||||
//--
|
//-
|
||||||
public BugReportsForm(DataSet<?, BugReport> dataSource_in, JPanel mountPanel_in) {
|
public BugReportsForm(DataSet<?, BugReport> dataSource_in, JPanel mountPanel_in) {
|
||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
|
//--
|
||||||
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.BugReport;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "отчёт об ошибке";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "отчёты об ошибках";
|
||||||
|
}
|
||||||
@Override
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
@@ -78,7 +92,7 @@ public class BugReportsForm extends DataSetControlForm<BugReport> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.SynchronizeBugReports,
|
PassCode.SynchronizeBugReports,
|
||||||
PassCode.DownloadAllBugReportsArchives,
|
PassCode.DownloadAllBugReportsArchives,
|
||||||
PassCode.AddBugReport,
|
PassCode.AddBugReport,
|
||||||
|
|||||||
@@ -1,54 +1,15 @@
|
|||||||
package _VisualDVM.Repository.Component;
|
package _VisualDVM.Repository.Component;
|
||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Repository.Component.UI.ComponentsForm;
|
import _VisualDVM.Repository.Component.UI.ComponentsForm;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.util.Vector;
|
|
||||||
public class ComponentsSet extends DataSet<ComponentType, Component> {
|
public class ComponentsSet extends DataSet<ComponentType, Component> {
|
||||||
public ComponentsSet() {
|
public ComponentsSet() {
|
||||||
super(ComponentType.class, Component.class);
|
super(ComponentType.class, Component.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "компонент";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "компоненты";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new ComponentsForm(this, mountPanel);
|
return new ComponentsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.Component;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Vector<Component> getSelectedItems() {
|
|
||||||
Vector<Component> target = new Vector<>();
|
|
||||||
Component visualiser = null;
|
|
||||||
Component server = null;
|
|
||||||
//------------------------
|
|
||||||
for (Component component : super.getSelectedItems()) {
|
|
||||||
switch (component.getComponentType()) {
|
|
||||||
case Visualizer_2:
|
|
||||||
server = component;
|
|
||||||
break;
|
|
||||||
case Visualiser:
|
|
||||||
visualiser = component;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
target.add(component);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (visualiser != null)
|
|
||||||
target.add(visualiser);
|
|
||||||
if (server != null)
|
|
||||||
target.add(server);
|
|
||||||
return target;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,16 +7,30 @@ import Common.Visual.Menus.DataMenuBar;
|
|||||||
import Common.Visual.Menus.VisualiserMenu;
|
import Common.Visual.Menus.VisualiserMenu;
|
||||||
import Common.Visual.Tables.RendererMaskedNanInteger;
|
import Common.Visual.Tables.RendererMaskedNanInteger;
|
||||||
import Common.Visual.Tables.RendererStatusEnum;
|
import Common.Visual.Tables.RendererStatusEnum;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Repository.Component.Component;
|
import _VisualDVM.Repository.Component.Component;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
|
import java.util.Vector;
|
||||||
public class ComponentsForm extends DataSetControlForm<Component> {
|
public class ComponentsForm extends DataSetControlForm<Component> {
|
||||||
public ComponentsForm(DataSet<?, Component> dataSource_in, JPanel mountPanel_in) {
|
public ComponentsForm(DataSet<?, Component> dataSource_in, JPanel mountPanel_in) {
|
||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.Component;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "компонент";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "компоненты";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -55,7 +69,7 @@ public class ComponentsForm extends DataSetControlForm<Component> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.InstallComponentFromFolder,
|
return new DataMenuBar(getPluralDescription(), PassCode.InstallComponentFromFolder,
|
||||||
PassCode.UpdateSelectedComponents,
|
PassCode.UpdateSelectedComponents,
|
||||||
PassCode.PublishComponent,
|
PassCode.PublishComponent,
|
||||||
PassCode.ShowComponentChangesLog) {
|
PassCode.ShowComponentChangesLog) {
|
||||||
@@ -74,4 +88,29 @@ public class ComponentsForm extends DataSetControlForm<Component> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
public Vector<Component> getSelectedItems() {
|
||||||
|
Vector<Component> target = new Vector<>();
|
||||||
|
Component visualiser = null;
|
||||||
|
Component server = null;
|
||||||
|
//------------------------
|
||||||
|
for (Component component : super.getSelectedItems()) {
|
||||||
|
switch (component.getComponentType()) {
|
||||||
|
case Visualizer_2:
|
||||||
|
server = component;
|
||||||
|
break;
|
||||||
|
case Visualiser:
|
||||||
|
visualiser = component;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
target.add(component);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (visualiser != null)
|
||||||
|
target.add(visualiser);
|
||||||
|
if (server != null)
|
||||||
|
target.add(server);
|
||||||
|
return target;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package _VisualDVM.Repository.SubscriberWorkspace;
|
|||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Repository.SubscriberWorkspace.UI.SubscriberWorkspacesForm;
|
import _VisualDVM.Repository.SubscriberWorkspace.UI.SubscriberWorkspacesForm;
|
||||||
|
|
||||||
@@ -19,19 +18,6 @@ public class SubscriberWorkspaceDBTable extends iDBTable<SubscriberWorkspace> {
|
|||||||
}
|
}
|
||||||
//--
|
//--
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "рабочая папка";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "рабочие папки";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.SubscriberWorkspace;
|
|
||||||
}
|
|
||||||
//-
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new SubscriberWorkspacesForm(this, mountPanel);
|
return new SubscriberWorkspacesForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package _VisualDVM.Repository.SubscriberWorkspace.UI;
|
|||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Repository.SubscriberWorkspace.SubscriberWorkspace;
|
import _VisualDVM.Repository.SubscriberWorkspace.SubscriberWorkspace;
|
||||||
@@ -12,6 +13,18 @@ public class SubscriberWorkspacesForm extends DataSetControlForm<SubscriberWorks
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.SubscriberWorkspace;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "рабочая папка";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "рабочие папки";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public String[] getUIColumnNames() {
|
public String[] getUIColumnNames() {
|
||||||
return new String[]{
|
return new String[]{
|
||||||
"URL",
|
"URL",
|
||||||
@@ -32,7 +45,7 @@ public class SubscriberWorkspacesForm extends DataSetControlForm<SubscriberWorks
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.DeleteSubscriberWorkspace);
|
return new DataMenuBar(getPluralDescription(), PassCode.DeleteSubscriberWorkspace);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(SubscriberWorkspace object) {
|
public boolean isObjectVisible(SubscriberWorkspace object) {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import Common.Database.Tables.FKDataBehaviour;
|
|||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.Repository.SubscriberWorkspace.SubscriberWorkspace;
|
import _VisualDVM.Repository.SubscriberWorkspace.SubscriberWorkspace;
|
||||||
import _VisualDVM.Repository.Subscribes.UI.SubscriberFields;
|
import _VisualDVM.Repository.Subscribes.UI.SubscriberFields;
|
||||||
@@ -21,22 +20,10 @@ public class SubsribersDBTable extends DBTable<String, Subscriber> {
|
|||||||
super(String.class, Subscriber.class);
|
super(String.class, Subscriber.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "адресат";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "адресаты";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new SubsribersForm(this, mountPanel);
|
return new SubsribersForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.Subscriber;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public DBObjectDialog<Subscriber, SubscriberFields> getDialog() {
|
public DBObjectDialog<Subscriber, SubscriberFields> getDialog() {
|
||||||
return new SubscriberForm();
|
return new SubscriberForm();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package _VisualDVM.Repository.Subscribes.UI;
|
|||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.GlobalData.Account.AccountRole;
|
import _VisualDVM.GlobalData.Account.AccountRole;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
@@ -13,6 +14,18 @@ public class SubsribersForm extends DataSetControlForm<Subscriber> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.Subscriber;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "адресат";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "адресаты";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -45,7 +58,7 @@ public class SubsribersForm extends DataSetControlForm<Subscriber> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.SaveBugReportExecutor,
|
PassCode.SaveBugReportExecutor,
|
||||||
PassCode.SaveBugReportRecipients,
|
PassCode.SaveBugReportRecipients,
|
||||||
PassCode.AddSubscriber,
|
PassCode.AddSubscriber,
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import Common.Passes.PassCode_;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.LanguageName;
|
import _VisualDVM.ProjectData.LanguageName;
|
||||||
import _VisualDVM.TestingSystem.Common.Group.UI.GroupFields;
|
import _VisualDVM.TestingSystem.Common.Group.UI.GroupFields;
|
||||||
@@ -25,14 +24,6 @@ public class GroupsDBTable extends iDBTable<Group> {
|
|||||||
}
|
}
|
||||||
//------------------------------------------------>>>
|
//------------------------------------------------>>>
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "группа тестов";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "группы";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public LinkedHashMap<Class<? extends DBObject>, FKBehaviour> getFKDependencies() {
|
public LinkedHashMap<Class<? extends DBObject>, FKBehaviour> getFKDependencies() {
|
||||||
LinkedHashMap<Class<? extends DBObject>, FKBehaviour> res = new LinkedHashMap<>();
|
LinkedHashMap<Class<? extends DBObject>, FKBehaviour> res = new LinkedHashMap<>();
|
||||||
res.put(Test.class, new FKBehaviour(FKDataBehaviour.DELETE, FKCurrentObjectBehaviuor.ACTIVE));
|
res.put(Test.class, new FKBehaviour(FKDataBehaviour.DELETE, FKCurrentObjectBehaviuor.ACTIVE));
|
||||||
@@ -43,10 +34,6 @@ public class GroupsDBTable extends iDBTable<Group> {
|
|||||||
return new GroupsForm(this, mountPanel);
|
return new GroupsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.Group;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public DBObjectDialog<Group, GroupFields> getDialog() {
|
public DBObjectDialog<Group, GroupFields> getDialog() {
|
||||||
return new DBObjectDialog<Group, GroupFields>(GroupFields.class) {
|
return new DBObjectDialog<Group, GroupFields>(GroupFields.class) {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import Common.Visual.DataSetFiltersMenu;
|
|||||||
import Common.Visual.FilterFlag;
|
import Common.Visual.FilterFlag;
|
||||||
import Common.Visual.FilterMenuFlag;
|
import Common.Visual.FilterMenuFlag;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ProjectData.LanguageName;
|
import _VisualDVM.ProjectData.LanguageName;
|
||||||
@@ -20,6 +21,18 @@ public class GroupsForm extends DataSetControlForm<Group> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.Group;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "группа тестов";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "группы";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -49,7 +62,7 @@ public class GroupsForm extends DataSetControlForm<Group> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.SynchronizeTests,
|
PassCode.SynchronizeTests,
|
||||||
PassCode.ConvertCorrectnessTests) {
|
PassCode.ConvertCorrectnessTests) {
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import Common.Database.Tables.iDBTable;
|
|||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.Common.Group.Group;
|
import _VisualDVM.TestingSystem.Common.Group.Group;
|
||||||
@@ -17,22 +16,10 @@ public class TestDBTable extends iDBTable<Test> {
|
|||||||
super(Test.class);
|
super(Test.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "тест";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "тесты";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new TestsForm(this, mountPanel);
|
return new TestsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.Test;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public DBObjectDialog<Test, TestFields> getDialog() {
|
public DBObjectDialog<Test, TestFields> getDialog() {
|
||||||
return new DBObjectDialog<Test, TestFields>(TestFields.class) {
|
return new DBObjectDialog<Test, TestFields>(TestFields.class) {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -13,6 +13,18 @@ public class TestsForm extends DataSetControlForm<Test> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.Test;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "тест";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "тесты";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -45,7 +57,7 @@ public class TestsForm extends DataSetControlForm<Test> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription()) {
|
return new DataMenuBar(getPluralDescription()) {
|
||||||
{
|
{
|
||||||
addMenus(new AddTestMenu(), new EditTestMenu());
|
addMenus(new AddTestMenu(), new EditTestMenu());
|
||||||
addPasses(PassCode.DownloadTest, PassCode.DeleteTest);
|
addPasses(PassCode.DownloadTest, PassCode.DeleteTest);
|
||||||
|
|||||||
@@ -310,9 +310,9 @@ public class TestsDatabase extends SQLiteDatabase {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
public void UnselectAllGTC() {
|
public void UnselectAllGTC() {
|
||||||
groups.SelectAll(false);
|
groups.getUI().SelectAll(false);
|
||||||
tests.SelectAll(false);
|
tests.getUI().SelectAll(false);
|
||||||
dvm_configurations.SelectAll(false);
|
dvm_configurations.getUI().SelectAll(false);
|
||||||
}
|
}
|
||||||
public void CheckTestsPackagesDependencies(Vector<Integer> testsIds, TextLog Log) {
|
public void CheckTestsPackagesDependencies(Vector<Integer> testsIds, TextLog Log) {
|
||||||
//определить есть ли активные пакеты в которые входят упомянутые тесты
|
//определить есть ли активные пакеты в которые входят упомянутые тесты
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import Common.Database.Tables.iDBTable;
|
|||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMConfiguration.UI.ConfigurationFields;
|
import _VisualDVM.TestingSystem.DVM.DVMConfiguration.UI.ConfigurationFields;
|
||||||
@@ -16,18 +15,6 @@ public class DVMConfigurationDBTable extends iDBTable<DVMConfiguration> {
|
|||||||
super(DVMConfiguration.class);
|
super(DVMConfiguration.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.DVMConfiguration;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "конфигурация";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "конфигурации";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new DVMConfigurationsForm(this, mountPanel);
|
return new DVMConfigurationsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import Common.Database.Tables.DataSet;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
import Common.Visual.Tables.RendererMultiline;
|
import Common.Visual.Tables.RendererMultiline;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ServerObjectsCache.ConfigurationCache;
|
import _VisualDVM.ServerObjectsCache.ConfigurationCache;
|
||||||
import _VisualDVM.ServerObjectsCache.VisualCaches;
|
import _VisualDVM.ServerObjectsCache.VisualCaches;
|
||||||
@@ -14,6 +15,18 @@ public class DVMConfigurationsForm extends DataSetControlForm<DVMConfiguration>
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.DVMConfiguration;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "конфигурация";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "конфигурации";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -61,7 +74,7 @@ public class DVMConfigurationsForm extends DataSetControlForm<DVMConfiguration>
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.PublishConfiguration,
|
PassCode.PublishConfiguration,
|
||||||
PassCode.EditConfiguration,
|
PassCode.EditConfiguration,
|
||||||
PassCode.ShowCurrentDVMConfigurationTests,
|
PassCode.ShowCurrentDVMConfigurationTests,
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package _VisualDVM.TestingSystem.DVM.DVMPackage;
|
|||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMPackage.UI.DVMPackagesForm;
|
import _VisualDVM.TestingSystem.DVM.DVMPackage.UI.DVMPackagesForm;
|
||||||
|
|
||||||
@@ -12,18 +11,6 @@ public class DVMPackageDBTable extends iDBTable<DVMPackage> {
|
|||||||
super(DVMPackage.class);
|
super(DVMPackage.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.DVMPackage;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "пакет";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "пакеты";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new DVMPackagesForm(this, mountPanel);
|
return new DVMPackagesForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import Common.Visual.Tables.RendererDate;
|
|||||||
import Common.Visual.Tables.RendererMultiline;
|
import Common.Visual.Tables.RendererMultiline;
|
||||||
import Common.Visual.Tables.RendererProgressBar;
|
import Common.Visual.Tables.RendererProgressBar;
|
||||||
import Common.Visual.Tables.RendererStatusEnum;
|
import Common.Visual.Tables.RendererStatusEnum;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ServerObjectsCache.PackageCache;
|
import _VisualDVM.ServerObjectsCache.PackageCache;
|
||||||
@@ -22,6 +23,18 @@ public class DVMPackagesForm extends DataSetControlForm<DVMPackage> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.DVMPackage;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "пакет";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "пакеты";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -83,7 +96,7 @@ public class DVMPackagesForm extends DataSetControlForm<DVMPackage> {
|
|||||||
public void ShowCurrentObject() throws Exception {
|
public void ShowCurrentObject() throws Exception {
|
||||||
super.ShowCurrentObject();
|
super.ShowCurrentObject();
|
||||||
//--
|
//--
|
||||||
Global.testingServer.db.dvmRunTasks.ShowDVMPackage((DVMPackage) dataSource.getCurrent());
|
Global.testingServer.db.dvmRunTasks.ShowDVMPackage(getCurrent());
|
||||||
Global.mainModule.getUI().getMainWindow().getTestingWindow().DropTestRunTasksComparison();
|
Global.mainModule.getUI().getMainWindow().getTestingWindow().DropTestRunTasksComparison();
|
||||||
//--
|
//--
|
||||||
}
|
}
|
||||||
@@ -99,7 +112,7 @@ public class DVMPackagesForm extends DataSetControlForm<DVMPackage> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription()) {
|
return new DataMenuBar(getPluralDescription()) {
|
||||||
{
|
{
|
||||||
addPasses(PassCode.SynchronizeTests);
|
addPasses(PassCode.SynchronizeTests);
|
||||||
addSeparator();
|
addSeparator();
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import Common.Database.Tables.iDBTable;
|
|||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMSettings.UI.DVMSettingsFields;
|
import _VisualDVM.TestingSystem.DVM.DVMSettings.UI.DVMSettingsFields;
|
||||||
@@ -16,20 +15,6 @@ public class DVMSettingsDBTable extends iDBTable<DVMSettings> {
|
|||||||
super(DVMSettings.class);
|
super(DVMSettings.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.DVMSettings;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "параметры тестирования";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "параметры тестирования";
|
|
||||||
}
|
|
||||||
//--
|
|
||||||
//-
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new DVMSettingsForm(this, mountPanel);
|
return new DVMSettingsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package _VisualDVM.TestingSystem.DVM.DVMSettings.UI;
|
|||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMSettings.DVMSettings;
|
import _VisualDVM.TestingSystem.DVM.DVMSettings.DVMSettings;
|
||||||
|
|
||||||
@@ -11,6 +12,18 @@ public class DVMSettingsForm extends DataSetControlForm<DVMSettings> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.DVMSettings;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "параметры тестирования";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "параметры тестирования";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -55,7 +68,7 @@ public class DVMSettingsForm extends DataSetControlForm<DVMSettings> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.PublishDVMSettings,
|
PassCode.PublishDVMSettings,
|
||||||
PassCode.CloneDVMSettings,
|
PassCode.CloneDVMSettings,
|
||||||
PassCode.EditDVMSettings,
|
PassCode.EditDVMSettings,
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package _VisualDVM.TestingSystem.DVM.DVMTasks;
|
package _VisualDVM.TestingSystem.DVM.DVMTasks;
|
||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMPackage.DVMPackage;
|
import _VisualDVM.TestingSystem.DVM.DVMPackage.DVMPackage;
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMTasks.UI.DVMRunTasksForm;
|
import _VisualDVM.TestingSystem.DVM.DVMTasks.UI.DVMRunTasksForm;
|
||||||
|
|
||||||
@@ -13,21 +12,9 @@ public class DVMRunTasksSet extends DataSet<Integer, DVMRunTask> {
|
|||||||
super(Integer.class, DVMRunTask.class);
|
super(Integer.class, DVMRunTask.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "задача";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "задачи";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new DVMRunTasksForm(this, mountPanel);
|
return new DVMRunTasksForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.DVMRunTask;
|
|
||||||
}
|
|
||||||
public void ShowDVMPackage(DVMPackage dvmPackage) {
|
public void ShowDVMPackage(DVMPackage dvmPackage) {
|
||||||
target = dvmPackage;
|
target = dvmPackage;
|
||||||
ClearUI();
|
ClearUI();
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import Common.Visual.FilterMenuFlag;
|
|||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
import Common.Visual.Tables.RendererProgressBar;
|
import Common.Visual.Tables.RendererProgressBar;
|
||||||
import Common.Visual.Tables.RendererStatusEnum;
|
import Common.Visual.Tables.RendererStatusEnum;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.GlobalData.Tasks.TaskState;
|
import _VisualDVM.GlobalData.Tasks.TaskState;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.DVM.DVMTasks.DVMRunTask;
|
import _VisualDVM.TestingSystem.DVM.DVMTasks.DVMRunTask;
|
||||||
@@ -18,6 +19,18 @@ public class DVMRunTasksForm extends DataSetControlForm<DVMRunTask> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.DVMRunTask;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "задача";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "задачи";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -77,7 +90,7 @@ public class DVMRunTasksForm extends DataSetControlForm<DVMRunTask> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.CompareDVMRunTasks, PassCode.DownloadTaskTest);
|
return new DataMenuBar(getPluralDescription(), PassCode.CompareDVMRunTasks, PassCode.DownloadTaskTest);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
protected void createFilters() {
|
protected void createFilters() {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import Common.Passes.PassCode_;
|
|||||||
import Common.Utils.Vector_;
|
import Common.Utils.Vector_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforConfiguration.UI.SapforConfigurationFields;
|
import _VisualDVM.TestingSystem.SAPFOR.SapforConfiguration.UI.SapforConfigurationFields;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforConfiguration.UI.SapforConfigurationsForm;
|
import _VisualDVM.TestingSystem.SAPFOR.SapforConfiguration.UI.SapforConfigurationsForm;
|
||||||
@@ -16,18 +15,6 @@ public class SapforConfigurationDBTable extends iDBTable<SapforConfiguration> {
|
|||||||
super(SapforConfiguration.class);
|
super(SapforConfiguration.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.SapforConfiguration;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "конфигурация";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "конфигурации";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new SapforConfigurationsForm(this, mountPanel);
|
return new SapforConfigurationsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import Common.Database.Tables.DataSet;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
import Common.Visual.Tables.RendererMultiline;
|
import Common.Visual.Tables.RendererMultiline;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ServerObjectsCache.ConfigurationCache;
|
import _VisualDVM.ServerObjectsCache.ConfigurationCache;
|
||||||
import _VisualDVM.ServerObjectsCache.VisualCaches;
|
import _VisualDVM.ServerObjectsCache.VisualCaches;
|
||||||
@@ -16,6 +17,18 @@ public class SapforConfigurationsForm extends DataSetControlForm<SapforConfigura
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.SapforConfiguration;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "конфигурация";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "конфигурации";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -65,7 +78,7 @@ public class SapforConfigurationsForm extends DataSetControlForm<SapforConfigura
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.PublishSapforConfiguration,
|
PassCode.PublishSapforConfiguration,
|
||||||
PassCode.EditSapforConfiguration,
|
PassCode.EditSapforConfiguration,
|
||||||
PassCode.ShowCurrentSAPFORConfigurationTests,
|
PassCode.ShowCurrentSAPFORConfigurationTests,
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package _VisualDVM.TestingSystem.SAPFOR.SapforPackage;
|
|||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforPackage.UI.SapforPackagesForm;
|
import _VisualDVM.TestingSystem.SAPFOR.SapforPackage.UI.SapforPackagesForm;
|
||||||
|
|
||||||
@@ -12,18 +11,6 @@ public class SapforPackageDBTable extends iDBTable<SapforPackage> {
|
|||||||
super(SapforPackage.class);
|
super(SapforPackage.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.SapforPackage;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "пакет";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "пакеты";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new SapforPackagesForm(this, mountPanel);
|
return new SapforPackagesForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
package _VisualDVM.TestingSystem.SAPFOR.SapforPackage.UI;
|
package _VisualDVM.TestingSystem.SAPFOR.SapforPackage.UI;
|
||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Utils.Utils_;
|
|
||||||
import Common.Visual.Controls.MenuBarButton;
|
import Common.Visual.Controls.MenuBarButton;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
|
import Common.Visual.FilterFlag;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
import Common.Visual.Tables.RendererDate;
|
import Common.Visual.Tables.RendererDate;
|
||||||
import Common.Visual.Tables.RendererMultiline;
|
import Common.Visual.Tables.RendererMultiline;
|
||||||
import Common.Visual.Tables.RendererProgressBar;
|
import Common.Visual.Tables.RendererProgressBar;
|
||||||
import Common.Visual.Tables.RendererStatusEnum;
|
import Common.Visual.Tables.RendererStatusEnum;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.ServerObjectsCache.PackageCache;
|
import _VisualDVM.ServerObjectsCache.PackageCache;
|
||||||
@@ -18,12 +19,22 @@ import javax.swing.*;
|
|||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
public class SapforPackagesForm extends DataSetControlForm<SapforPackage> {
|
public class SapforPackagesForm extends DataSetControlForm<SapforPackage> {
|
||||||
public static boolean filterMyOnly = false;
|
|
||||||
public static boolean filterActive = false;
|
|
||||||
public SapforPackagesForm(DataSet<?, SapforPackage> dataSource_in, JPanel mountPanel_in) {
|
public SapforPackagesForm(DataSet<?, SapforPackage> dataSource_in, JPanel mountPanel_in) {
|
||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.SapforPackage;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "пакет";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "пакеты";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -81,7 +92,7 @@ public class SapforPackagesForm extends DataSetControlForm<SapforPackage> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(), PassCode.SynchronizeTests) {
|
return new DataMenuBar(getPluralDescription(), PassCode.SynchronizeTests) {
|
||||||
{
|
{
|
||||||
addSeparator();
|
addSeparator();
|
||||||
addPasses(PassCode.AbortSapforPackage);
|
addPasses(PassCode.AbortSapforPackage);
|
||||||
@@ -89,37 +100,6 @@ public class SapforPackagesForm extends DataSetControlForm<SapforPackage> {
|
|||||||
addPasses(PassCode.CompareSapforPackages);
|
addPasses(PassCode.CompareSapforPackages);
|
||||||
addSeparator();
|
addSeparator();
|
||||||
addPasses(PassCode.DeleteSapforPackage);
|
addPasses(PassCode.DeleteSapforPackage);
|
||||||
add(new JSeparator());
|
|
||||||
add(new MenuBarButton() {
|
|
||||||
{
|
|
||||||
setText("Свои");
|
|
||||||
setToolTipText("Отображать только пакеты тестов авторства пользователя");
|
|
||||||
Mark();
|
|
||||||
addActionListener(e -> {
|
|
||||||
filterMyOnly = !filterMyOnly;
|
|
||||||
Mark();
|
|
||||||
Global.testingServer.db.sapforPackages.ShowUI();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
public void Mark() {
|
|
||||||
setIcon(Utils_.getIcon(filterMyOnly ? "/Common/icons/Pick.png" : "/Common/icons/NotPick.png"));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
add(new MenuBarButton() {
|
|
||||||
{
|
|
||||||
setText("Активные");
|
|
||||||
setToolTipText("Отображать только активные пакеты тестов");
|
|
||||||
Mark();
|
|
||||||
addActionListener(e -> {
|
|
||||||
filterActive = !filterActive;
|
|
||||||
Mark();
|
|
||||||
Global.testingServer.db.sapforPackages.ShowUI();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
public void Mark() {
|
|
||||||
setIcon(Utils_.getIcon(filterActive ? "/Common/icons/Pick.png" : "/Common/icons/NotPick.png"));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -133,9 +113,28 @@ public class SapforPackagesForm extends DataSetControlForm<SapforPackage> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public boolean isObjectVisible(SapforPackage object) {
|
protected void createFilters() {
|
||||||
return super.isObjectVisible(object) &&
|
AddFilter(new FilterFlag<SapforPackage>(dataSource, new MenuBarButton() {
|
||||||
(!filterMyOnly || Global.mainModule.getAccount().email.equals(object.sender_address)) &&
|
{
|
||||||
(!filterActive || object.state.isActive());
|
setText("Свои");
|
||||||
|
setToolTipText("Отображать только пакеты тестов авторства пользователя");
|
||||||
|
}
|
||||||
|
}, false) {
|
||||||
|
@Override
|
||||||
|
protected boolean validate(SapforPackage object) {
|
||||||
|
return Global.mainModule.getAccount().email.equals(object.sender_address);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
AddFilter(new FilterFlag<SapforPackage>(dataSource, new MenuBarButton() {
|
||||||
|
{
|
||||||
|
setText("Активные");
|
||||||
|
setToolTipText("Отображать только активные пакеты тестов");
|
||||||
|
}
|
||||||
|
}, false) {
|
||||||
|
@Override
|
||||||
|
protected boolean validate(SapforPackage object) {
|
||||||
|
return object.state.isActive();
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import Common.Passes.PassCode_;
|
|||||||
import Common.Utils.Utils_;
|
import Common.Utils.Utils_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.UI.SapforSettingsFields;
|
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.UI.SapforSettingsFields;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.UI.SapforSettingsForm;
|
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.UI.SapforSettingsForm;
|
||||||
@@ -21,18 +20,6 @@ public class SapforSettingsDBTable extends iDBTable<SapforSettings> {
|
|||||||
super(SapforSettings.class);
|
super(SapforSettings.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.SapforSettings;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getSingleDescription() {
|
|
||||||
return "параметры тестирования";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "параметры тестирования";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new SapforSettingsForm(this, mountPanel);
|
return new SapforSettingsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ package _VisualDVM.TestingSystem.SAPFOR.SapforSettings.UI;
|
|||||||
import Common.Database.Tables.DataSet;
|
import Common.Database.Tables.DataSet;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.Menus.DataMenuBar;
|
import Common.Visual.Menus.DataMenuBar;
|
||||||
|
import _VisualDVM.Current;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
||||||
|
|
||||||
@@ -11,6 +12,18 @@ public class SapforSettingsForm extends DataSetControlForm<SapforSettings> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.SapforSettings;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "параметры тестирования";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "параметры тестирования";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -37,7 +50,7 @@ public class SapforSettingsForm extends DataSetControlForm<SapforSettings> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.PublishSapforSettings,
|
PassCode.PublishSapforSettings,
|
||||||
PassCode.CloneSapforSettings,
|
PassCode.CloneSapforSettings,
|
||||||
PassCode.EditSapforSettings,
|
PassCode.EditSapforSettings,
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import Common.Passes.PassCode_;
|
|||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import Common.Visual.UI;
|
import Common.Visual.UI;
|
||||||
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
import Common.Visual.Windows.Dialog.DBObjectDialog;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Global;
|
import _VisualDVM.Global;
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
import _VisualDVM.TestingSystem.SAPFOR.SapforSettings.SapforSettings;
|
||||||
@@ -18,18 +17,6 @@ public class SapforSettingsCommandsDBTable extends iDBTable<SapforSettingsComman
|
|||||||
super(SapforSettingsCommand.class);
|
super(SapforSettingsCommand.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "команда";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "команды";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.SapforSettingsCommand;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new SapforSettingsCommandsForm(this, mountPanel);
|
return new SapforSettingsCommandsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,18 @@ public class SapforSettingsCommandsForm extends DataSetControlForm<SapforSetting
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.SapforSettingsCommand;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "команда";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "команды";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -33,7 +45,7 @@ public class SapforSettingsCommandsForm extends DataSetControlForm<SapforSetting
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.PublishSapforSettingsCommand,
|
PassCode.PublishSapforSettingsCommand,
|
||||||
PassCode.EditSapforSettingsCommand,
|
PassCode.EditSapforSettingsCommand,
|
||||||
PassCode.DeleteSapforSettingsCommand);
|
PassCode.DeleteSapforSettingsCommand);
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package _VisualDVM.TestingSystem.SAPFOR.ServerSapfor;
|
|||||||
import Common.Database.Tables.iDBTable;
|
import Common.Database.Tables.iDBTable;
|
||||||
import Common.Passes.PassCode_;
|
import Common.Passes.PassCode_;
|
||||||
import Common.Visual.DataSetControlForm;
|
import Common.Visual.DataSetControlForm;
|
||||||
import _VisualDVM.Current;
|
|
||||||
import _VisualDVM.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.ServerSapfor.UI.ServerSapforsForm;
|
import _VisualDVM.TestingSystem.SAPFOR.ServerSapfor.UI.ServerSapforsForm;
|
||||||
|
|
||||||
@@ -12,18 +11,6 @@ public class ServerSapforsDBTable extends iDBTable<ServerSapfor> {
|
|||||||
super(ServerSapfor.class);
|
super(ServerSapfor.class);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getSingleDescription() {
|
|
||||||
return "версия SAPFOR";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public String getPluralDescription() {
|
|
||||||
return "версии SAPFOR";
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
public Current CurrentName() {
|
|
||||||
return Current.ServerSapfor;
|
|
||||||
}
|
|
||||||
@Override
|
|
||||||
protected DataSetControlForm createUI(JPanel mountPanel) {
|
protected DataSetControlForm createUI(JPanel mountPanel) {
|
||||||
return new ServerSapforsForm(this, mountPanel);
|
return new ServerSapforsForm(this, mountPanel);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ 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.Passes.PassCode;
|
import _VisualDVM.Passes.PassCode;
|
||||||
import _VisualDVM.TestingSystem.SAPFOR.ServerSapfor.ServerSapfor;
|
import _VisualDVM.TestingSystem.SAPFOR.ServerSapfor.ServerSapfor;
|
||||||
@@ -15,6 +16,18 @@ public class ServerSapforsForm extends DataSetControlForm<ServerSapfor> {
|
|||||||
super(dataSource_in, mountPanel_in);
|
super(dataSource_in, mountPanel_in);
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
public Current CurrentName() {
|
||||||
|
return Current.ServerSapfor;
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getSingleDescription() {
|
||||||
|
return "версия SAPFOR";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public String getPluralDescription() {
|
||||||
|
return "версии SAPFOR";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
public boolean hasCheckBox() {
|
public boolean hasCheckBox() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -58,7 +71,7 @@ public class ServerSapforsForm extends DataSetControlForm<ServerSapfor> {
|
|||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public DataMenuBar createMenuBar() {
|
public DataMenuBar createMenuBar() {
|
||||||
return new DataMenuBar(dataSource.getPluralDescription(),
|
return new DataMenuBar(getPluralDescription(),
|
||||||
PassCode.CompileServerSapfor,
|
PassCode.CompileServerSapfor,
|
||||||
PassCode.ShowSapforCompilationOut,
|
PassCode.ShowSapforCompilationOut,
|
||||||
PassCode.ShowSapforCompilationErr,
|
PassCode.ShowSapforCompilationErr,
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user