Index: Application/Ringtoets/src/Application.Ringtoets/App.xaml.cs
===================================================================
diff -u -r79b058ad0716428b8183b10e47d2e758a2090a08 -rb1b17b2e21cbcffc6fc5f123c83a17cf29f8dced
--- Application/Ringtoets/src/Application.Ringtoets/App.xaml.cs (.../App.xaml.cs) (revision 79b058ad0716428b8183b10e47d2e758a2090a08)
+++ Application/Ringtoets/src/Application.Ringtoets/App.xaml.cs (.../App.xaml.cs) (revision b1b17b2e21cbcffc6fc5f123c83a17cf29f8dced)
@@ -46,6 +46,7 @@
using log4net;
using log4net.Appender;
using Ringtoets.ClosingStructures.Plugin;
+using Ringtoets.DuneErosion.Plugin;
using Ringtoets.GrassCoverErosionInwards.Plugin;
using Ringtoets.GrassCoverErosionOutwards.Plugin;
using Ringtoets.HeightStructures.Plugin;
@@ -165,6 +166,7 @@
new PipingPlugin(),
new HeightStructuresPlugin(),
new StabilityStoneCoverPlugin(),
+ new DuneErosionPlugin(),
new ChartPlugin(),
new MapPlugin()
#if INCLUDE_DEMOPROJECT
Index: Application/Ringtoets/src/Application.Ringtoets/Application.Ringtoets.csproj
===================================================================
diff -u -r3328a173c6440f0c6ba1f5e7fd526cb1d4417aa9 -rb1b17b2e21cbcffc6fc5f123c83a17cf29f8dced
--- Application/Ringtoets/src/Application.Ringtoets/Application.Ringtoets.csproj (.../Application.Ringtoets.csproj) (revision 3328a173c6440f0c6ba1f5e7fd526cb1d4417aa9)
+++ Application/Ringtoets/src/Application.Ringtoets/Application.Ringtoets.csproj (.../Application.Ringtoets.csproj) (revision b1b17b2e21cbcffc6fc5f123c83a17cf29f8dced)
@@ -167,6 +167,11 @@
Ringtoets.ClosingStructures.PluginFalse
+
+ {83885FB9-A87B-4D43-AF27-43EA44A84E42}
+ Ringtoets.DuneErosion.Plugin
+ False
+ {E3DF5559-97D9-4038-BBE6-2E3DFB4F4C68}Ringtoets.StabilityPointStructures.Plugin
Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructureFailureMechanismContextTreeNodeInfoTest.cs
===================================================================
diff -u -re182f6f394aa75e739467a77e7bcacd9a8b25429 -rb1b17b2e21cbcffc6fc5f123c83a17cf29f8dced
--- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructureFailureMechanismContextTreeNodeInfoTest.cs (.../ClosingStructureFailureMechanismContextTreeNodeInfoTest.cs) (revision e182f6f394aa75e739467a77e7bcacd9a8b25429)
+++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructureFailureMechanismContextTreeNodeInfoTest.cs (.../ClosingStructureFailureMechanismContextTreeNodeInfoTest.cs) (revision b1b17b2e21cbcffc6fc5f123c83a17cf29f8dced)
@@ -46,9 +46,7 @@
using Ringtoets.Common.Data.Structures;
using Ringtoets.Common.Forms.PresentationObjects;
using Ringtoets.HydraRing.Calculation.TestUtil.Calculator;
-using CoreCommonGuiResources = Core.Common.Gui.Properties.Resources;
using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources;
-using RingtoetsCommonServicesResources = Ringtoets.Common.Service.Properties.Resources;
namespace Ringtoets.ClosingStructures.Forms.Test.TreeNodeInfos
{
Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/PresentationObjects/DuneErosionFailureMechanismContext.cs
===================================================================
diff -u
--- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/PresentationObjects/DuneErosionFailureMechanismContext.cs (revision 0)
+++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/PresentationObjects/DuneErosionFailureMechanismContext.cs (revision b1b17b2e21cbcffc6fc5f123c83a17cf29f8dced)
@@ -0,0 +1,43 @@
+// Copyright (C) Stichting Deltares 2016. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Ringtoets.Common.Data.AssessmentSection;
+using Ringtoets.Common.Forms.PresentationObjects;
+using Ringtoets.DuneErosion.Data;
+
+namespace Ringtoets.DuneErosion.Forms.PresentationObjects
+{
+ ///
+ /// Presentation object for an instance of .
+ ///
+ public class DuneErosionFailureMechanismContext : FailureMechanismContext
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The instance wrapped by this context object.
+ /// The assessment section which the failure mechanism belongs to.
+ /// Thrown when any input argument is null.
+ public DuneErosionFailureMechanismContext(DuneErosionFailureMechanism failureMechanism, IAssessmentSection assessmentSection)
+ : base(failureMechanism, assessmentSection) {}
+ }
+}
\ No newline at end of file
Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Ringtoets.DuneErosion.Forms.csproj
===================================================================
diff -u -ra4cd22ab000aa81906e43b5fd2898e52fee0e366 -rb1b17b2e21cbcffc6fc5f123c83a17cf29f8dced
--- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Ringtoets.DuneErosion.Forms.csproj (.../Ringtoets.DuneErosion.Forms.csproj) (revision a4cd22ab000aa81906e43b5fd2898e52fee0e366)
+++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Forms/Ringtoets.DuneErosion.Forms.csproj (.../Ringtoets.DuneErosion.Forms.csproj) (revision b1b17b2e21cbcffc6fc5f123c83a17cf29f8dced)
@@ -40,6 +40,7 @@
Properties\GlobalAssembly.cs
+ UserControl
Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/DuneErosionPlugin.cs
===================================================================
diff -u -r2e267a2aa6657733945d8bb638e677c48c247db8 -rb1b17b2e21cbcffc6fc5f123c83a17cf29f8dced
--- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/DuneErosionPlugin.cs (.../DuneErosionPlugin.cs) (revision 2e267a2aa6657733945d8bb638e677c48c247db8)
+++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/DuneErosionPlugin.cs (.../DuneErosionPlugin.cs) (revision b1b17b2e21cbcffc6fc5f123c83a17cf29f8dced)
@@ -19,8 +19,12 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System.Collections.Generic;
+using Core.Common.Controls.TreeView;
using Core.Common.Gui.Plugin;
+using Ringtoets.Common.Forms.TreeNodeInfos;
using Ringtoets.DuneErosion.Data;
+using Ringtoets.DuneErosion.Forms.PresentationObjects;
namespace Ringtoets.DuneErosion.Plugin
{
@@ -29,5 +33,28 @@
///
public class DuneErosionPlugin : PluginBase
{
+ public override IEnumerable GetTreeNodeInfos()
+ {
+ yield return RingtoetsTreeNodeInfoFactory.CreateFailureMechanismContextTreeNodeInfo(
+ FailureMechanismEnabledChildNodeObjects,
+ FailureMechanismDisabledChildNodeObjects,
+ null,
+ null
+ );
+ }
+
+ #region DuneErosionFailureMechanismContext TreeNodeInfo
+
+ private static object[] FailureMechanismEnabledChildNodeObjects(DuneErosionFailureMechanismContext failureMechanismContext)
+ {
+ return new object[0];
+ }
+
+ private static object[] FailureMechanismDisabledChildNodeObjects(DuneErosionFailureMechanismContext failureMechanismContext)
+ {
+ return new object[0];
+ }
+
+ #endregion
}
}
\ No newline at end of file
Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/Ringtoets.DuneErosion.Plugin.csproj
===================================================================
diff -u -r2e267a2aa6657733945d8bb638e677c48c247db8 -rb1b17b2e21cbcffc6fc5f123c83a17cf29f8dced
--- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/Ringtoets.DuneErosion.Plugin.csproj (.../Ringtoets.DuneErosion.Plugin.csproj) (revision 2e267a2aa6657733945d8bb638e677c48c247db8)
+++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/Ringtoets.DuneErosion.Plugin.csproj (.../Ringtoets.DuneErosion.Plugin.csproj) (revision b1b17b2e21cbcffc6fc5f123c83a17cf29f8dced)
@@ -34,6 +34,7 @@
+
@@ -48,16 +49,45 @@
+
+ {3bbfd65b-b277-4e50-ae6d-bd24c3434609}
+ Core.Common.Base
+
+
+ {1D27F91F-4E62-4EAF-A0A8-A32708B9A9B1}
+ Core.Common.Controls.TreeView
+ False
+
+
+ {9A2D67E6-26AC-4D17-B11A-2B4372F2F572}
+ Core.Common.Controls
+ False
+ {30E4C2AE-719E-4D70-9FA9-668A9767FBFA}Core.Common.GuiFalse
+
+ {d4200f43-3f72-4f42-af0a-8ced416a38ec}
+ Ringtoets.Common.Data
+ False
+
+
+ {4D840673-3812-4338-A352-84854E32B8A0}
+ Ringtoets.Common.Forms
+ False
+ {D1068432-C172-4AA6-847B-D9DEB4C6DE26}Ringtoets.DuneErosion.DataFalse
+
+ {EC2DEF03-71FE-48A0-AB85-31E13112E4A1}
+ Ringtoets.DuneErosion.Forms
+ False
+