Index: Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Plugin/ClosingStructuresPlugin.cs =================================================================== diff -u -r029ff0ad40fcb7568d712e8be786a57a949a0b8c -rad75a347a7586757599297f2b2e776100d827264 --- Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Plugin/ClosingStructuresPlugin.cs (.../ClosingStructuresPlugin.cs) (revision 029ff0ad40fcb7568d712e8be786a57a949a0b8c) +++ Ringtoets/ClosingStructures/src/Ringtoets.ClosingStructures.Plugin/ClosingStructuresPlugin.cs (.../ClosingStructuresPlugin.cs) (revision ad75a347a7586757599297f2b2e776100d827264) @@ -30,12 +30,14 @@ using Ringtoets.ClosingStructures.Data; using Ringtoets.ClosingStructures.Forms.PresentationObjects; using Ringtoets.ClosingStructures.Forms.Views; +using Ringtoets.ClosingStructures.IO; using Ringtoets.Common.Data; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.Common.Forms.TreeNodeInfos; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; +using RingtoetsCommonIOResources = Ringtoets.Common.IO.Properties.Resources; namespace Ringtoets.ClosingStructures.Plugin { @@ -301,5 +303,20 @@ { //Add calculate logic, part of WTI-554 } + + public override IEnumerable GetImportInfos() + { + yield return new ImportInfo + { + CreateFileImporter = (context, filePath) => new ClosingStructuresImporter(context.WrappedData, + context.AssessmentSection.ReferenceLine, + filePath), + Name = RingtoetsCommonFormsResources.StructuresImporter_DisplayName, + Category = RingtoetsCommonFormsResources.Ringtoets_Category, + Image = RingtoetsCommonFormsResources.StructuresIcon, + FileFilter = RingtoetsCommonIOResources.DataTypeDisplayName_shape_file_filter, + IsEnabled = context => context.AssessmentSection.ReferenceLine != null + }; + } } } \ No newline at end of file