Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Plugin/ClosingStructuresPlugin.cs =================================================================== diff -u -r961c0bdb44b8058e95d8339b1a3bdc826e4ceb9b -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Plugin/ClosingStructuresPlugin.cs (.../ClosingStructuresPlugin.cs) (revision 961c0bdb44b8058e95d8339b1a3bdc826e4ceb9b) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Plugin/ClosingStructuresPlugin.cs (.../ClosingStructuresPlugin.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -726,7 +726,7 @@ .AddRenameItem() .AddUpdateForeshoreProfileOfCalculationItem(calculation, inquiryHelper, - UpdateForeshoreProfileDerivedCalculationInput) + SynchronizeCalculationWithForeshoreProfileHelper.UpdateForeshoreProfileDerivedCalculationInput) .AddCustomItem(CreateUpdateStructureItem(context)) .AddSeparator() .AddValidateCalculationItem( @@ -749,8 +749,6 @@ .Build(); } - private static void UpdateForeshoreProfileDerivedCalculationInput(ICalculation calculation) {} - private void Calculate(StructuresCalculation calculation, ClosingStructuresCalculationContext context) { ActivityProgressDialogRunner.Run(Gui.MainWindow, Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -re7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision e7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -261,7 +261,7 @@ TestHelper.AssertContextMenuStripContainsItem(menu, contextMenuUpdateForeshoreProfileIndex, "&Bijwerken voorlandprofiel...", - "Er moet een voorlandprofiel geselecteerd zijn.", + "Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken.", RingtoetsCommonFormsResources.UpdateItemIcon, false); Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/SynchronizeCalculationWithForeshoreProfileHelper.cs =================================================================== diff -u --- Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/SynchronizeCalculationWithForeshoreProfileHelper.cs (revision 0) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/SynchronizeCalculationWithForeshoreProfileHelper.cs (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -0,0 +1,53 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System.Collections.Generic; +using Core.Common.Base; +using Ringtoets.Common.Data.Calculation; +using Ringtoets.Common.Data.DikeProfiles; +using Ringtoets.Common.Service; + +namespace Ringtoets.Common.Forms.Helpers +{ + public static class SynchronizeCalculationWithForeshoreProfileHelper + { + public static void UpdateForeshoreProfileDerivedCalculationInput(ICalculation calculation) + where TInput : ICalculationInput, IHasForeshoreProfile + { + if (!calculation.InputParameters.IsForeshoreProfileParametersSynchronized) + { + calculation.InputParameters.SynchronizeForeshoreProfileParameters(); + + var affectedObjects = new List + { + calculation.InputParameters + }; + + affectedObjects.AddRange(RingtoetsCommonDataSynchronizationService.ClearCalculationOutput(calculation)); + + foreach (IObservable affectedObject in affectedObjects) + { + affectedObject.NotifyObservers(); + } + } + } + } +} \ No newline at end of file Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.Designer.cs =================================================================== diff -u -rcd7b72bcec3e2c60ad5de2fb54e0cd92d60c38c1 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision cd7b72bcec3e2c60ad5de2fb54e0cd92d60c38c1) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -728,7 +728,7 @@ } /// - /// Looks up a localized string similar to Er moet een voorlandprofiel geselecteerd zijn.. + /// Looks up a localized string similar to Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken.. /// public static string CreateUpdateForshoreProfileOfCalculationItem_Update_calculation_no_ForeshoreProfile_ToolTip { get { Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.resx =================================================================== diff -u -rcd7b72bcec3e2c60ad5de2fb54e0cd92d60c38c1 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.resx (.../Resources.resx) (revision cd7b72bcec3e2c60ad5de2fb54e0cd92d60c38c1) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Properties/Resources.resx (.../Resources.resx) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -982,7 +982,7 @@ Berekening bijwerken waar een voorlandprofiel geselecteerd is. - Er moet een voorlandprofiel geselecteerd zijn. + Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken. Wanneer het voorlandprofiel wijzigt als gevolg van het bijwerken, zal het resultaat van deze berekening worden verwijderd. Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj =================================================================== diff -u -r2702ecf9aaf678cf869dc330f8ff560b3de4672a -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision 2702ecf9aaf678cf869dc330f8ff560b3de4672a) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -56,6 +56,7 @@ + Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs =================================================================== diff -u -r11c6d40de442b2548ca1134ee5bd5cf754549de4 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs (.../RingtoetsContextMenuItemFactory.cs) (revision 11c6d40de442b2548ca1134ee5bd5cf754549de4) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuItemFactory.cs (.../RingtoetsContextMenuItemFactory.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -384,7 +384,8 @@ Action> updateAction) where TCalculationInput : ICalculationInput, IHasForeshoreProfile { - bool hasForeshoreProfile = calculation.InputParameters.ForeshoreProfile != null; + TCalculationInput input = calculation.InputParameters; + bool hasForeshoreProfile = input.ForeshoreProfile != null && !input.IsForeshoreProfileParametersSynchronized; string toolTipMessage = hasForeshoreProfile ? Resources.CreateUpdateForshoreProfileOfCalculationItem_Update_calculation_with_ForeshoreProfile_ToolTip : Resources.CreateUpdateForshoreProfileOfCalculationItem_Update_calculation_no_ForeshoreProfile_ToolTip; Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/RingtoetsContextMenuBuilderTest.cs =================================================================== diff -u -r5bf6a765222c80d0d2b52cad46f0699dede3f2c2 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/RingtoetsContextMenuBuilderTest.cs (.../RingtoetsContextMenuBuilderTest.cs) (revision 5bf6a765222c80d0d2b52cad46f0699dede3f2c2) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/RingtoetsContextMenuBuilderTest.cs (.../RingtoetsContextMenuBuilderTest.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -1630,7 +1630,10 @@ #region AddUpdateForeshoreProfileOfCalculationItem [Test] - public void AddUpdateForeshoreProfileOfCalculationItem_CalculationWithForeshoreProfile_ItemAddedToContextMenuEnabled() + [TestCase(true)] + [TestCase(false)] + public void AddUpdateForeshoreProfileOfCalculationItem_CalculationWithForeshoreProfile_ItemAddedToContextMenuEnabledIfNotSynchronized( + bool synchronized) { // Setup var mocks = new MockRepository(); @@ -1641,7 +1644,10 @@ var viewCommandsMock = mocks.StrictMock(); var calculationMock = mocks.StrictMock>(); - calculationMock.Expect(c => c.InputParameters.ForeshoreProfile).Return(new TestForeshoreProfile()); + var input = mocks.StrictMock(); + input.Expect(i => i.ForeshoreProfile).Return(new TestForeshoreProfile()); + input.Expect(i => i.IsForeshoreProfileParametersSynchronized).Return(synchronized); + calculationMock.Expect(c => c.InputParameters).Return(input); var inquiryHelperMock = mocks.StrictMock(); mocks.ReplayAll(); @@ -1668,8 +1674,11 @@ Assert.AreEqual(1, result.Items.Count); TestHelper.AssertContextMenuStripContainsItem(result, 0, "&Bijwerken voorlandprofiel...", - "Berekening bijwerken waar een voorlandprofiel geselecteerd is.", - RingtoetsFormsResources.UpdateItemIcon); + synchronized + ? "Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken." + : "Berekening bijwerken waar een voorlandprofiel geselecteerd is.", + RingtoetsFormsResources.UpdateItemIcon, + !synchronized); } mocks.VerifyAll(); @@ -1714,7 +1723,7 @@ Assert.AreEqual(1, result.Items.Count); TestHelper.AssertContextMenuStripContainsItem(result, 0, "&Bijwerken voorlandprofiel...", - "Er moet een voorlandprofiel geselecteerd zijn.", + "Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken.", RingtoetsFormsResources.UpdateItemIcon, false); } Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/RingtoetsContextMenuItemFactoryTest.cs =================================================================== diff -u -r5bf6a765222c80d0d2b52cad46f0699dede3f2c2 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/RingtoetsContextMenuItemFactoryTest.cs (.../RingtoetsContextMenuItemFactoryTest.cs) (revision 5bf6a765222c80d0d2b52cad46f0699dede3f2c2) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/TreeNodeInfos/RingtoetsContextMenuItemFactoryTest.cs (.../RingtoetsContextMenuItemFactoryTest.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -599,7 +599,7 @@ #region CreateUpdateForshoreProfileOfCalculationItem [Test] - public void CreateUpdateForshoreProfileOfCalculationItem_WithoutForeshoreProfile_CreatesEnabledItem() + public void CreateUpdateForshoreProfileOfCalculationItem_WithoutForeshoreProfile_CreatesDisabledItem() { // Setup var mocks = new MockRepository(); @@ -615,7 +615,7 @@ // Assert Assert.AreEqual("&Bijwerken voorlandprofiel...", toolStripItem.Text); - Assert.AreEqual("Er moet een voorlandprofiel geselecteerd zijn.", toolStripItem.ToolTipText); + Assert.AreEqual("Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken.", toolStripItem.ToolTipText); TestHelper.AssertImagesAreEqual(RingtoetsFormsResources.UpdateItemIcon, toolStripItem.Image); Assert.IsFalse(toolStripItem.Enabled); mocks.VerifyAll(); @@ -627,7 +627,10 @@ // Setup var mocks = new MockRepository(); var calculationMock = mocks.StrictMock>(); - calculationMock.Expect(c => c.InputParameters.ForeshoreProfile).Return(new TestForeshoreProfile()); + var input = mocks.StrictMock(); + input.Expect(i => i.ForeshoreProfile).Return(new TestForeshoreProfile()); + input.Expect(i => i.IsForeshoreProfileParametersSynchronized).Return(false); + calculationMock.Expect(c => c.InputParameters).Return(input); var inquiryHelperMock = mocks.StrictMock(); mocks.ReplayAll(); @@ -650,7 +653,10 @@ // Setup var mocks = new MockRepository(); var calculationMock = mocks.StrictMock>(); - calculationMock.Expect(c => c.InputParameters.ForeshoreProfile).Return(new TestForeshoreProfile()); + var input = mocks.StrictMock(); + input.Expect(i => i.ForeshoreProfile).Return(new TestForeshoreProfile()); + input.Expect(i => i.IsForeshoreProfileParametersSynchronized).Return(false); + calculationMock.Expect(c => c.InputParameters).Return(input); calculationMock.Expect(c => c.HasOutput).Return(false); var inquiryHelperMock = mocks.StrictMock(); mocks.ReplayAll(); @@ -680,7 +686,10 @@ var mocks = new MockRepository(); var calculationMock = mocks.StrictMock>(); - calculationMock.Expect(c => c.InputParameters.ForeshoreProfile).Return(new TestForeshoreProfile()); + var input = mocks.StrictMock(); + input.Expect(i => i.ForeshoreProfile).Return(new TestForeshoreProfile()); + input.Expect(i => i.IsForeshoreProfileParametersSynchronized).Return(false); + calculationMock.Expect(c => c.InputParameters).Return(input); calculationMock.Expect(c => c.HasOutput).Return(true); var inquiryHelperMock = mocks.StrictMock(); inquiryHelperMock.Expect(i => i.InquireContinuation(inquireContinuationMessage)).Return(false); @@ -711,7 +720,10 @@ var mocks = new MockRepository(); var calculationMock = mocks.StrictMock>(); - calculationMock.Expect(c => c.InputParameters.ForeshoreProfile).Return(new TestForeshoreProfile()); + var input = mocks.StrictMock(); + input.Expect(i => i.ForeshoreProfile).Return(new TestForeshoreProfile()); + input.Expect(i => i.IsForeshoreProfileParametersSynchronized).Return(false); + calculationMock.Expect(c => c.InputParameters).Return(input); calculationMock.Expect(c => c.HasOutput).Return(true); var inquiryHelperMock = mocks.StrictMock(); inquiryHelperMock.Expect(i => i.InquireContinuation(inquireContinuationMessage)).Return(true); Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Plugin/GrassCoverErosionOutwardsPlugin.cs =================================================================== diff -u -r961c0bdb44b8058e95d8339b1a3bdc826e4ceb9b -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Plugin/GrassCoverErosionOutwardsPlugin.cs (.../GrassCoverErosionOutwardsPlugin.cs) (revision 961c0bdb44b8058e95d8339b1a3bdc826e4ceb9b) +++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Plugin/GrassCoverErosionOutwardsPlugin.cs (.../GrassCoverErosionOutwardsPlugin.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -55,7 +55,6 @@ using Ringtoets.GrassCoverErosionOutwards.Plugin.Properties; using Ringtoets.GrassCoverErosionOutwards.Service; using Ringtoets.GrassCoverErosionOutwards.Service.MessageProviders; -using Ringtoets.Revetment.Data; using Ringtoets.Revetment.IO.Importers; using RingtoetsGrassCoverErosionOutwardsFormsResources = Ringtoets.GrassCoverErosionOutwards.Forms.Properties.Resources; using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources; @@ -864,7 +863,7 @@ .AddRenameItem() .AddUpdateForeshoreProfileOfCalculationItem(calculation, inquiryHelper, - UpdateForeshoreProfileDerivedCalculationInput) + SynchronizeCalculationWithForeshoreProfileHelper.UpdateForeshoreProfileDerivedCalculationInput) .AddSeparator() .AddValidateCalculationItem( nodeData, @@ -886,8 +885,6 @@ .Build(); } - private static void UpdateForeshoreProfileDerivedCalculationInput(ICalculation calculation) {} - private static string ValidateAllDataAvailableAndGetErrorMessage(GrassCoverErosionOutwardsWaveConditionsCalculationContext context) { return ValidateAllDataAvailableAndGetErrorMessage(context.AssessmentSection, context.FailureMechanism); Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -re7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision e7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -513,7 +513,7 @@ TestHelper.AssertContextMenuStripContainsItem(menu, contextMenuUpdateForeshoreProfileIndex, "&Bijwerken voorlandprofiel...", - "Er moet een voorlandprofiel geselecteerd zijn.", + "Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken.", RingtoetsCommonFormsResources.UpdateItemIcon, false); Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs =================================================================== diff -u -r961c0bdb44b8058e95d8339b1a3bdc826e4ceb9b -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision 961c0bdb44b8058e95d8339b1a3bdc826e4ceb9b) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -737,7 +737,7 @@ .AddRenameItem() .AddUpdateForeshoreProfileOfCalculationItem(calculation, inquiryHelper, - UpdateForeshoreProfileDerivedCalculationInput) + SynchronizeCalculationWithForeshoreProfileHelper.UpdateForeshoreProfileDerivedCalculationInput) .AddCustomItem(CreateUpdateStructureItem(context)) .AddSeparator() .AddValidateCalculationItem( @@ -760,8 +760,6 @@ .Build(); } - private static void UpdateForeshoreProfileDerivedCalculationInput(ICalculation calculation) {} - private static string ValidateAllDataAvailableAndGetErrorMessage(HeightStructuresCalculationContext context) { return ValidateAllDataAvailableAndGetErrorMessage(context.AssessmentSection, context.FailureMechanism); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -re7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationContextTreeNodeInfoTest.cs) (revision e7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationContextTreeNodeInfoTest.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -255,7 +255,7 @@ TestHelper.AssertContextMenuStripContainsItem(menu, contextMenuUpdateForeshoreProfileIndex, "&Bijwerken voorlandprofiel...", - "Er moet een voorlandprofiel geselecteerd zijn.", + "Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken.", RingtoetsCommonFormsResources.UpdateItemIcon, false); Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Plugin/StabilityPointStructuresPlugin.cs =================================================================== diff -u -r1f53a54d4b93ca002ae0ec0905c0dab16fa7ae6a -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Plugin/StabilityPointStructuresPlugin.cs (.../StabilityPointStructuresPlugin.cs) (revision 1f53a54d4b93ca002ae0ec0905c0dab16fa7ae6a) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Plugin/StabilityPointStructuresPlugin.cs (.../StabilityPointStructuresPlugin.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -686,7 +686,7 @@ .AddRenameItem() .AddUpdateForeshoreProfileOfCalculationItem(calculation, inquiryHelper, - UpdateForeshoreProfileDerivedCalculationInput) + SynchronizeCalculationWithForeshoreProfileHelper.UpdateForeshoreProfileDerivedCalculationInput) .AddSeparator() .AddValidateCalculationItem( context, @@ -708,8 +708,6 @@ .Build(); } - private static void UpdateForeshoreProfileDerivedCalculationInput(ICalculation calculation) {} - private static string ValidateAllDataAvailableAndGetErrorMessage(StabilityPointStructuresCalculationContext context) { return ValidateAllDataAvailableAndGetErrorMessage(context.AssessmentSection, context.FailureMechanism); Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -re7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs) (revision e7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -251,7 +251,7 @@ TestHelper.AssertContextMenuStripContainsItem(menu, contextMenuUpdateForeshoreProfileIndex, "&Bijwerken voorlandprofiel...", - "Er moet een voorlandprofiel geselecteerd zijn.", + "Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken.", RingtoetsCommonFormsResources.UpdateItemIcon, false); Index: Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Plugin/WaveImpactAsphaltCoverPlugin.cs =================================================================== diff -u -ra8b7e56d629ab7530987136097a6686dc12b0861 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Plugin/WaveImpactAsphaltCoverPlugin.cs (.../WaveImpactAsphaltCoverPlugin.cs) (revision a8b7e56d629ab7530987136097a6686dc12b0861) +++ Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Plugin/WaveImpactAsphaltCoverPlugin.cs (.../WaveImpactAsphaltCoverPlugin.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -565,7 +565,7 @@ .AddRenameItem() .AddUpdateForeshoreProfileOfCalculationItem(calculation, inquiryHelper, - UpdateForeshoreProfileDerivedCalculationInput) + SynchronizeCalculationWithForeshoreProfileHelper.UpdateForeshoreProfileDerivedCalculationInput) .AddSeparator() .AddValidateCalculationItem(nodeData, Validate, @@ -582,8 +582,6 @@ .Build(); } - private static void UpdateForeshoreProfileDerivedCalculationInput(ICalculation calculation) {} - private static void Validate(WaveImpactAsphaltCoverWaveConditionsCalculationContext context) { WaveImpactAsphaltCoverWaveConditionsCalculationService.Validate(context.WrappedData, context.AssessmentSection.HydraulicBoundaryDatabase.FilePath); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -re7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0 -rada94ef2b6943fb9a2d8e59256871205a7d4c4ee --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision e7eb9aa4f8a0657c1537abbc0b9d6a53f74e87d0) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision ada94ef2b6943fb9a2d8e59256871205a7d4c4ee) @@ -491,7 +491,7 @@ TestHelper.AssertContextMenuStripContainsItem(menu, contextMenuUpdateForeshoreProfileIndex, "&Bijwerken voorlandprofiel...", - "Er moet een voorlandprofiel geselecteerd zijn.", + "Geselecteerd voorlandprofiel heeft geen wijzingingen om bij te werken.", RingtoetsCommonFormsResources.UpdateItemIcon, false);