Index: Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsGuiPlugin.cs =================================================================== diff -u -r266b001fc7fcb405383d2411a970efa735e3c66d -r60f9f8cfadfe1b22e5989aa92ab9839c4623338d --- Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsGuiPlugin.cs (.../RingtoetsGuiPlugin.cs) (revision 266b001fc7fcb405383d2411a970efa735e3c66d) +++ Ringtoets/Integration/src/Ringtoets.Integration.Plugin/RingtoetsGuiPlugin.cs (.../RingtoetsGuiPlugin.cs) (revision 60f9f8cfadfe1b22e5989aa92ab9839c4623338d) @@ -43,7 +43,6 @@ using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.Common.Forms.TreeNodeInfos; using Ringtoets.Common.Forms.Views; -using Ringtoets.Common.Placeholder; using Ringtoets.GrassCoverErosionInwards.Data; using Ringtoets.GrassCoverErosionInwards.Forms.PresentationObjects; using Ringtoets.HydraRing.Calculation.Activities; @@ -52,7 +51,7 @@ using Ringtoets.HydraRing.Calculation.Data.Output; using Ringtoets.HydraRing.Data; using Ringtoets.HydraRing.IO; -using Ringtoets.Integration.Data.Placeholders; +using Ringtoets.Integration.Data.StandAlone; using Ringtoets.Integration.Forms.PresentationObjects; using Ringtoets.Integration.Forms.PropertyClasses; using Ringtoets.Integration.Forms.Views; @@ -209,14 +208,6 @@ ContextMenuStrip = FailureMechanismSectionsContextMenuStrip }; - yield return new TreeNodeInfo - { - Text = placeholderWithReadonlyName => placeholderWithReadonlyName.Name, - Image = placeholderWithReadonlyName => GetIconForPlaceholder(placeholderWithReadonlyName), - ForeColor = placeholderWithReadonlyName => Color.FromKnownColor(KnownColor.GrayText), - ContextMenuStrip = PlaceholderWithReadonlyNameContextMenuStrip - }; - yield return new TreeNodeInfo { Text = categoryTreeFolder => categoryTreeFolder.Name, @@ -569,53 +560,6 @@ # endregion - # region PlaceholderWithReadonlyName - - private static Bitmap GetIconForPlaceholder(PlaceholderWithReadonlyName nodeData) - { - if (nodeData is InputPlaceholder || nodeData is OutputPlaceholder) - { - return RingtoetsCommonFormsResources.GenericInputOutputIcon; - } - return RingtoetsFormsResources.PlaceholderIcon; - } - - private ContextMenuStrip PlaceholderWithReadonlyNameContextMenuStrip(PlaceholderWithReadonlyName nodeData, object parentData, TreeViewControl treeViewControl) - { - IContextMenuBuilder menuBuilder = Gui.Get(nodeData, treeViewControl); - - if (nodeData is InputPlaceholder || nodeData is OutputPlaceholder) - { - menuBuilder.AddOpenItem(); - } - - if (nodeData is OutputPlaceholder) - { - var clearItem = new StrictContextMenuItem( - RingtoetsCommonFormsResources.FailureMechanism_InputsOutputs_Erase, - RingtoetsCommonFormsResources.FailureMechanism_InputsOutputs_Erase_ToolTip, - RingtoetsCommonFormsResources.ClearIcon, - null) - { - Enabled = false - }; - - menuBuilder.AddCustomItem(clearItem); - } - - if (nodeData is InputPlaceholder || nodeData is OutputPlaceholder) - { - menuBuilder.AddSeparator(); - } - return menuBuilder.AddImportItem() - .AddExportItem() - .AddSeparator() - .AddPropertiesItem() - .Build(); - } - - # endregion - # region CategoryTreeFolder private Image GetFolderIcon(TreeFolderCategory category)