Index: Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs =================================================================== diff -u -r6e5f2280217d2ba8367c240bd44bcfe3a21cebc8 -r423010168fe01b2373e9be55f047659911e670f5 --- Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision 6e5f2280217d2ba8367c240bd44bcfe3a21cebc8) +++ Ringtoets/HeightStructures/src/Ringtoets.HeightStructures.Plugin/HeightStructuresPlugin.cs (.../HeightStructuresPlugin.cs) (revision 423010168fe01b2373e9be55f047659911e670f5) @@ -39,13 +39,15 @@ using Ringtoets.HeightStructures.Forms.PresentationObjects; using Ringtoets.HeightStructures.Forms.PropertyClasses; using Ringtoets.HeightStructures.Forms.Views; +using Ringtoets.HeightStructures.IO; using Ringtoets.HeightStructures.Service; using Ringtoets.HydraRing.IO; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources; using HeightStructuresDataResources = Ringtoets.HeightStructures.Data.Properties.Resources; using HeightStructuresFormsResources = Ringtoets.HeightStructures.Forms.Properties.Resources; using RingtoetsCommonServiceResources = Ringtoets.Common.Service.Properties.Resources; +using RingtoetsCommonIOResources = Ringtoets.Common.IO.Properties.Resources; namespace Ringtoets.HeightStructures.Plugin { @@ -64,13 +66,14 @@ { yield return new ImportInfo() { - Name = RingtoetsCommonFormsResources.StructuresCollection_DisplayName, + CreateFileImporter = (context, filePath) => new HeightStructuresImporter(context.WrappedData, + context.AssessmentSection.ReferenceLine, + filePath), + Name = RingtoetsCommonFormsResources.StructuresImporter_DisplayName, Category = RingtoetsCommonFormsResources.Ringtoets_Category, - FileFilter = string.Format("{0} {1}", - RingtoetsCommonFormsResources.StructuresCollection_DisplayName, - RingtoetsCommonFormsResources.DataTypeDisplayName_csv_file_filter), + Image = RingtoetsCommonFormsResources.StructuresIcon, + FileFilter = RingtoetsCommonIOResources.DataTypeDisplayName_shape_file_filter, IsEnabled = context => context.AssessmentSection.ReferenceLine != null - //TODO: WTI-579 Hook this up with the importer }; }