StorageCommandHandler.cs

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Created Core.Gui. WTI-2239

  1. … 314 more files in changeset.
Adapted copyright year. WTI-2195

  1. … 431 more files in changeset.
Improvements after review. WTI-2016

  1. … 20 more files in changeset.
Moved helpers to separate folder. WTI-2015

  1. … 51 more files in changeset.
Updated project file filter. WTI-1943

  1. … 9 more files in changeset.
Updated license headers in source files of src\Core.Common. WTI-1931

  1. … 225 more files in changeset.
Changed copyright year. Paired with lubbers. WTI-1828

  1. … 6095 more files in changeset.
Ran Deltares Cleanup:

- Performed for Core.Common, except TestUtil

WTI-1767

  1. … 70 more files in changeset.
Ensured activities always produce a start message Related to Issue [WTI-1097]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@10508 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 4086bbc704fa8a2619493fc89ba1df166f2ba331

Former-commit-id: 5c9cad2e7ac939b5a3a2dcded3a09c6b784a0c94

  1. … 53 more files in changeset.
Improved storage related log messages Related to Issue [WTI-1097]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@10471 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: cf1a9704884e02eaaf225a18752cd4bb41d5d583

Former-commit-id: c2f18fd702044d49c8938cd00a27532c1e90c0d6

  1. … 9 more files in changeset.
Updated license headers in core. Related to Issue [WTI-1242]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@9490 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: e7f214adee97782d28ee82f096d8cc27547439e6

Former-commit-id: b339ec31825c8ea8fed91e675069b65afba8433b

  1. … 817 more files in changeset.
Core code-cleanup. Searched for superfluous this. for property assignments as well.

Related to Issue [WTI-1242]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@9369 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: ecb498b6096a9d8b0a66e69428411d5ae18ec80a

Former-commit-id: 9cc4bad09e38263256924549eaa807b887009030

  1. … 290 more files in changeset.
Removed unused references fixed typo paired with bouvrie Related to Issue [WTI-1049]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8809 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 3d002b4243d9f0109eb93ae7554f04834585ac76

Former-commit-id: b8dc47f846a37f8df0cfe56d8ce83faee121aab7

  1. … 5 more files in changeset.
* Fixed typos. * Renamed MigrationNeeded to MigrationRequired. * Cleanup. * Asserting log messages improved by taking type of message into account. * Moved CriticalFileReadException from Core.Common.IO\Exceptions to Core.Common.Base\IO * Task is now disposed when disposing ActivityProgressDialog * Put license header back Related to Issue [WTI-1049]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8786 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 54560eb7ca6c0a99cdcf14b0406c23b9eca57311

Former-commit-id: 3b703601071d34a3cca2779d0c671f3d3ddabcd9

  1. … 124 more files in changeset.
* Refactored IInquiryHelper such that it no longer depends on FileFilterGenerator. ** From the abstraction level point of view, it just feels incorrect to pass generators around. * Extended IInquiryHelper with a method to check if a certain optional step should be performed or not. * Refactored StorageCommandHandler to use IInquiryHelper instead of showing dialogs itself. ** This should solve some issues we're having on the build server (expected dialogs not appearing) ** Also improves consistency with other code. * CalculationConfigurationWriter.WriteDistributionProperties now based on IDictionary instead of IEnumerable<Tuple> * Cleanup Related to Issue [WTI-1153]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8775 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: dec4df77800b65c57be1a8c2b6783e85a0f2c900

Former-commit-id: 9288f6b609cf96bdfa62d1fefa7e13ba956a85b7

  1. … 21 more files in changeset.
* StorageCommandHandler now used SaveProjectActivity for saving a project. Related to Issue [WTI-1049]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8749 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: b8a3b475daa67df690ffd26a1c074ce0dcfef462

Former-commit-id: 6602462746c5f97cfb226d0d0f53dcc4ba0df72b

  1. … 3 more files in changeset.
* Refactored StorageCommandHandler to use OpenProjectActivity. * Fixed bug in ActivityProgressDialog related to cross-threading exceptions. ** Implementation was not guaranteed to use the correct SynchronizationContext. ** Removed ProgressReporter, due to now being obsolete. ** Setting of SynchronizationContext no longer required in unit tests. * Changed default value for MigrationNeeded.

Related to Issue [WTI-1049]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8699 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 40eb861411768c4a895eae17f71470458887712d

Former-commit-id: b19c95c5b04582cf50f772cb1dbfcc34f8b1fb6d

  1. … 14 more files in changeset.
* Refactored RingtoetsProjectMigrator to move responsibility of determining target location for migrated project to seperate method. * Fixed 2 failing tests. Related to Issue [WTI-1049]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8660 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: e725e71ba9d80444c8a49d6618832bee6ccd237d

Former-commit-id: 457b058abc9f8baa453a165f511492c49c895042

  1. … 10 more files in changeset.
* Some refactoring to RingtoetsProjectMigrator ** Now more clear return result for ShouldMigrate method between the need for migration or not or when the migration workflow is aborted. ** Moved responsibility of asking user for accepting migration from Migrate to ShouldMigrate method.

These steps have been taken as preparation to ask user for confirmation and location before starting an Activity to perform the actual migration and subsequently opening the migrated project.

Related to Issue [WTI-1049]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8654 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 3d793cf304e5f7f685b1d4341368297a7cbebdc7

Former-commit-id: 61ca241d865cafa2dc91367fd1dbf780aa790f73

  1. … 7 more files in changeset.
Incorporated the RingtoetsProjectMigrator in the StorageCommandHandler: - Fixed compilation errors of affected tests -- Introduced mocks where necessary - Ran DeltaresClean Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8618 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: d546ad32067db464f96e9faa5a55aaa2b5eef6ca

Former-commit-id: c73bfdeaf395de90207b9bdedc43baf05869ac0b

  1. … 14 more files in changeset.
Separated the responsibilities of OpenExistingProject: - Parameterless OpenExistingProject renamed to GetExistingProjectFilePath and is now responsible to get a file path pointing to the user selected file, instead of asking and loading the project - Added tests to verify the behaviour of the GetExistingProjectFilePath - Adjusted the usage of parameterless OpenExistingProject() into a combination of GetExistingProjectFilePath and OpenExistingProject Related to Issue [WTI-1095]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@8485 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: b165cbf531530ff9ff9ce4ac815a07c10f9fb8be

Former-commit-id: 0b88ca194e85df8cda0fa374d3c2887574ba5a73

  1. … 3 more files in changeset.
Incorporated comments review 1385: (Editorial) - Made the spelling of "Canceled" or "Uncancelable (opposed to "Cancelled" or "Uncancellable") consistent throughout the application.

Note:

"Cancellation" is legit U.S. spelling and therefore unchanged. "Cancelation" is not common and rarely used.

Related to Issue [WTI-490]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7669 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 665e259f03237740e63d6441088354043dae52f2

Former-commit-id: 98c98ae04c081843c7bab2c55946744a8d06dad2

  1. … 35 more files in changeset.
- When previously stored file location is no longer valid, assume there are changes and open FileSaveDialog Related to Issue [WTI-1037]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@7482 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: c5374c7e05dc499b84c303b78863bd51cbd7a480

Former-commit-id: 784aad1b48ac254c4a0f213983fd0be7ed388420

  1. … 2 more files in changeset.
Removed some logic which checked whether project was null on IProjectOwner (Not possible anymore). Updated doc and method names for more consistency. Related to Issue [WTI-961]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6818 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: a786487651e30f71544fd103a075c42a4d6cc2be

Former-commit-id: 24961c5bd7492e96c3e84f71e7da7d348ffdea24

  1. … 9 more files in changeset.
StorageCommandHandler now notifies observers of project when updating the name. Moving of responsibilities within the GuiCore class. Related to Issue [WTI-961]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6765 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 9de7644176c3aacc71074ea23cf5ff4c8cb3b8aa

Former-commit-id: d26af202dbfcfb87910bba7fc997daeab0b8fa8a

  1. … 1 more file in changeset.
IProjectOwner now should be implemented in such a way that null can never be returned or set. Introduced StagedProject in StorageSqLite to always have a coupling between the model and the loaded entity. connectionString is no longer maintained in StorageSqLite, but the filepath is passed along the method calls. StorageCommandHandler is responsible for logging feedback to the user. Removed interface methods regarding closing of a project (invalid use case in Ringtoets) Added SetProject method in IProjectOwner and removed setters for Project and ProjectPath, so that Project and ProjectPath are always set together. Related to Issue [WTI-961]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6764 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: ca0bf302faa996815ebc7f8d434ad15fb38246db

Former-commit-id: 679b97e980241449cfd6da32ba0fd19b28e85029

  1. … 20 more files in changeset.
(Editorial) Applied comments review 1178 - Removed redundant references in XML docs (e.g. System.X when System was already referenced) - Standardized XML docs regarding exceptions: Thrown is prefixed for the cause of the exception (e.g. <exception cref="X">Thrown when Lorus Ipsum</exception>)

Related to Issue [WTI-931]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6553 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: c9a908b16e966485b3c2f38d472d9628b6f581ff

Former-commit-id: 71660f2e2159bfbb2e958ce8211bb236f66286e4

  1. … 31 more files in changeset.
* Added standard serialization constructor to all Exception classes. * Explicitly defined culture for string.Format methods. * Replaced IFileImporter.ProgressChanged property to method (recommendation by C# coding conventions) * Renamed classes containing win32.dll invokes to NativeMethods (recommendation by C# coding conventions)

Related to Issue [WTI-931]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@6471 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 78fae4fb038935c7a58a0fb534baa750b173d589

Former-commit-id: fc7d0938a3677be66218915a3e665a9cc6757df9

  1. … 164 more files in changeset.
- Moved any code that does not require an open DbContext connection outside the using statement - Added garbage collecting before back-up file is made before the project is saved Related to Issue [WTI-827]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@5488 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: 72a55850523726a9f28da4766fed779e378993a4

Former-commit-id: 9b3623ea4dfa4a16030c0287f62fb1dcbb17ec85

  1. … 1 more file in changeset.
* Made StochasticSoilModelContext plural (multiple models!) * Fixed typos. * Improved XML docs. * Improved test coverage. * More relevant functional coverage on ArgumentExceptions. * Minor improvements. * Cleanup. Related to Issue [WTI-497]

git-svn-id: https://repos.deltares.nl/repos/WettelijkToetsInstrumentarium/trunk@5090 5a3db67b-de53-47b5-99c8-a1c30a6650e2

Former-commit-id: f9702e3e2eb4d781a77e9f91539f492d30ee5fa6

Former-commit-id: 3a5bf5a43ce2435d7d999cb0a08f8d8ac716efa1

  1. … 29 more files in changeset.