Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Plugin/GrassCoverErosionInwardsPlugin.cs =================================================================== diff -u -r989be010778ab44a778d79f0e2d892343acf0c0d -r842e446f88e513e8be98fa0cf6c111f74d19de6c --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Plugin/GrassCoverErosionInwardsPlugin.cs (.../GrassCoverErosionInwardsPlugin.cs) (revision 989be010778ab44a778d79f0e2d892343acf0c0d) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Plugin/GrassCoverErosionInwardsPlugin.cs (.../GrassCoverErosionInwardsPlugin.cs) (revision 842e446f88e513e8be98fa0cf6c111f74d19de6c) @@ -111,7 +111,7 @@ Category = RingtoetsCommonFormsResources.Ringtoets_Category, Image = RingtoetsCommonFormsResources.DikeProfile, FileFilterGenerator = DikeProfileImporterFileFilterGenerator(), - IsEnabled = IsDikeProfileImporterEnabled, + IsEnabled = context => context.ParentAssessmentSection.ReferenceLine != null, VerifyUpdates = context => VerifyDikeProfilesShouldUpdate(context, Resources.GrassCoverErosionInwardsPlugin_VerifyDikeProfileImport_When_importing_DikeProfiles_Calculation_output_will_be_cleared_confirm) }; @@ -131,7 +131,7 @@ Image = RingtoetsCommonFormsResources.DikeProfile, FileFilterGenerator = DikeProfileImporterFileFilterGenerator(), CurrentPath = context => context.WrappedData.SourcePath, - IsEnabled = IsDikeProfileImporterEnabled, + IsEnabled = context => context.WrappedData.SourcePath != null, VerifyUpdates = context => VerifyDikeProfilesShouldUpdate(context, Resources.GrassCoverErosionInwardsPlugin_VerifyDikeProfileUpdate_When_updating_Calculation_with_DikeProfile_data_output_will_be_cleared_confirm) }; @@ -900,11 +900,6 @@ RingtoetsCommonIOResources.Shape_file_filter_Description); } - private static bool IsDikeProfileImporterEnabled(DikeProfilesContext context) - { - return context.ParentAssessmentSection.ReferenceLine != null; - } - private bool VerifyDikeProfilesShouldUpdate(DikeProfilesContext context, string query) { var changeHandler = new FailureMechanismCalculationChangeHandler(context.ParentFailureMechanism,