Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs =================================================================== diff -u -r8e74b5d6680386fce48486c8253b62331f7d7055 -rf2d302a70e14366c42674b98afd95526fc1c2efd --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision 8e74b5d6680386fce48486c8253b62331f7d7055) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision f2d302a70e14366c42674b98afd95526fc1c2efd) @@ -45,6 +45,7 @@ using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.Common.Forms.TreeNodeInfos; using Ringtoets.Common.IO.FileImporters.MessageProviders; +using Ringtoets.Common.IO.Structures; using Ringtoets.Common.Service; using Ringtoets.Common.Utils; using Ringtoets.HeightStructures.Data; @@ -96,9 +97,8 @@ Image = RingtoetsCommonFormsResources.StructuresIcon, IsEnabled = IsHeightStructuresImporterEnabled, FileFilterGenerator = HeightStructureFileFilter(), - CreateFileImporter = (context, filePath) => CreateHeightStructuresImporter(context, - filePath, - new ImportMessageProvider()) + CreateFileImporter = (context, filePath) => CreateHeightStructuresImporter( + context, filePath, new ImportMessageProvider(), new HeightStructureReplaceDataStrategy(context.FailureMechanism)) }; yield return RingtoetsImportInfoFactory.CreateCalculationConfigurationImportInfo( @@ -120,9 +120,8 @@ Image = RingtoetsCommonFormsResources.StructuresIcon, IsEnabled = IsHeightStructuresImporterEnabled, FileFilterGenerator = HeightStructureFileFilter(), - CreateFileImporter = (context, filePath) => CreateHeightStructuresImporter(context, - filePath, - new UpdateMessageProvider()), + CreateFileImporter = (context, filePath) => CreateHeightStructuresImporter( + context, filePath, new UpdateMessageProvider(), new HeightStructureUpdateDataStrategy(context.FailureMechanism)), CurrentPath = context => context.WrappedData.SourcePath }; } @@ -766,10 +765,11 @@ #region HeightStructuresImporter - private static IFileImporter CreateHeightStructuresImporter(HeightStructuresContext context, string filePath, IImporterMessageProvider messageProvider) + private static IFileImporter CreateHeightStructuresImporter(HeightStructuresContext context, string filePath, + IImporterMessageProvider messageProvider, IStructureUpdateStrategy strategy) { return new HeightStructuresImporter(context.WrappedData, context.AssessmentSection.ReferenceLine, - filePath, messageProvider, new HeightStructureUpdateDataStrategy(context.FailureMechanism)); + filePath, messageProvider, strategy); } private static bool IsHeightStructuresImporterEnabled(HeightStructuresContext context)