Index: Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs =================================================================== diff -u -rbd29bacc20bc58cc67f27dd33fa4fa6b41db873c -r4435a35be229b12da5859395985ad38c9c5d4729 --- Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs (.../RingtoetsContextMenuBuilder.cs) (revision bd29bacc20bc58cc67f27dd33fa4fa6b41db873c) +++ Ringtoets/Common/src/Ringtoets.Common.Forms/TreeNodeInfos/RingtoetsContextMenuBuilder.cs (.../RingtoetsContextMenuBuilder.cs) (revision 4435a35be229b12da5859395985ad38c9c5d4729) @@ -34,7 +34,6 @@ public class RingtoetsContextMenuBuilder { private readonly IContextMenuBuilder contextMenuBuilder; - private readonly RingtoetsContextMenuItemFactory ringtoetsContextMenuItemFactory; /// /// Creates a new instance of the class. @@ -43,8 +42,6 @@ public RingtoetsContextMenuBuilder(IContextMenuBuilder contextMenuBuilder) { this.contextMenuBuilder = contextMenuBuilder; - - ringtoetsContextMenuItemFactory = new RingtoetsContextMenuItemFactory(); } /// @@ -139,17 +136,6 @@ } /// - /// Adds an item to the , which enables a disabled failure mechanism. - /// - /// The failure mechanism context belonging to the failure mechanism. - /// The itself. - public RingtoetsContextMenuBuilder AddDisabledChangeRelevancyItem(IFailureMechanismContext failureMechanismContext) - { - contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateDisabledChangeRelevancyItem(failureMechanismContext)); - return this; - } - - /// /// Adds an item to the , which clears the output of all calculations in the failure mechanism. /// /// The failure mechanism to clear the output for. @@ -164,7 +150,7 @@ /// Adds an item to the , which performs all calculations in a failure mechanism. /// /// The type of the failure mechanism context. - /// The failure mechanism to perform all calculations for. + /// The failure mechanism context belonging to the failure mechanism. /// The action that performs all calculations. /// The func that checks if the item is enabled. /// The itself. @@ -179,10 +165,21 @@ } /// + /// Adds an item to the , which enables a disabled failure mechanism. + /// + /// The failure mechanism context belonging to the failure mechanism. + /// The itself. + public RingtoetsContextMenuBuilder AddDisabledChangeRelevancyItem(IFailureMechanismContext failureMechanismContext) + { + contextMenuBuilder.AddCustomItem(RingtoetsContextMenuItemFactory.CreateDisabledChangeRelevancyItem(failureMechanismContext)); + return this; + } + + /// /// Adds an item to the , which sets if the failure mechanism is relevant. /// /// The type of the failure mechanism context. - /// The failure mechanism to change if it is relevant. + /// The failure mechanism context belonging to the failure mechanism. /// The action that removes all views. /// The itself. public RingtoetsContextMenuBuilder AddChangeRelevancyOfFailureMechanismItem(