Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs =================================================================== diff -u -r4eaa942f6a986a04aacee22d1b8e142b0d07f389 -r6ea2281c03c04dfbfaa7742d533fc1f88b96f59c --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 4eaa942f6a986a04aacee22d1b8e142b0d07f389) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsPlugin.cs (.../RingtoetsPlugin.cs) (revision 6ea2281c03c04dfbfaa7742d533fc1f88b96f59c) @@ -448,12 +448,13 @@ }; yield return new ImportInfo { - CreateFileImporter = (context, filePath) => new ForeshoreProfilesImporter(context.WrappedData, - context.ParentAssessmentSection.ReferenceLine, - filePath, - new ForeshoreProfileReplaceDataStrategy(context.ParentFailureMechanism, - context.WrappedData), - new ImportMessageProvider()), + CreateFileImporter = (context, filePath) => + new ForeshoreProfilesImporter(context.WrappedData, + context.ParentAssessmentSection.ReferenceLine, + filePath, + new ForeshoreProfileReplaceDataStrategy(context.ParentFailureMechanism, + context.WrappedData), + new ImportMessageProvider()), Name = RingtoetsIntegrationPluginResources.ForeshoreProfilesImporter_DisplayName, Category = RingtoetsCommonFormsResources.Ringtoets_Category, Image = RingtoetsIntegrationPluginResources.Foreshore, @@ -484,6 +485,26 @@ }; } + public override IEnumerable GetUpdateInfos() + { + yield return new UpdateInfo + { + CreateFileImporter = (context, filePath) => + new ForeshoreProfilesImporter(context.WrappedData, + context.ParentAssessmentSection.ReferenceLine, + filePath, + new ForeshoreProfileUpdateDataStrategy(context.ParentFailureMechanism), + new UpdateMessageProvider()), + Name = RingtoetsIntegrationPluginResources.ForeshoreProfilesImporter_DisplayName, + Category = RingtoetsCommonFormsResources.Ringtoets_Category, + Image = RingtoetsIntegrationPluginResources.Foreshore, + FileFilterGenerator = new FileFilterGenerator(RingtoetsCommonIOResources.Shape_file_filter_Extension, + RingtoetsCommonIOResources.Shape_file_filter_Description), + CurrentPath = context => context.WrappedData.SourcePath, + IsEnabled = context => context.ParentAssessmentSection.ReferenceLine != null + }; + } + /// /// Gets the child data instances that have definitions of some parent data object. /// @@ -629,6 +650,7 @@ .ToArray(), ContextMenuStrip = (nodeData, parentData, treeViewControl) => Gui.Get(nodeData, treeViewControl) .AddImportItem() + .AddUpdateItem() .AddSeparator() .AddCollapseAllItem() .AddExpandAllItem()