Index: Core/Common/src/Core.Common.Gui/ContextMenu/ContextMenuBuilder.cs =================================================================== diff -u -re5278cea919b2a8f364c834e93a39b94ceb092a0 -rb2dc333e5cd778afbb75c3b29e00e872a25632f7 --- Core/Common/src/Core.Common.Gui/ContextMenu/ContextMenuBuilder.cs (.../ContextMenuBuilder.cs) (revision e5278cea919b2a8f364c834e93a39b94ceb092a0) +++ Core/Common/src/Core.Common.Gui/ContextMenu/ContextMenuBuilder.cs (.../ContextMenuBuilder.cs) (revision b2dc333e5cd778afbb75c3b29e00e872a25632f7) @@ -20,10 +20,12 @@ // All rights reserved. using System; +using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; using Core.Common.Controls.TreeView; using Core.Common.Gui.Commands; +using Core.Common.Gui.Plugin; using Core.Common.Gui.Properties; namespace Core.Common.Gui.ContextMenu @@ -122,15 +124,15 @@ return this; } - public IContextMenuBuilder AddImportItem() + public IContextMenuBuilder AddImportItem(IEnumerable importInfos = null) { - AddItem(guiItemsFactory.CreateImportItem()); + AddItem(guiItemsFactory.CreateImportItem(importInfos)); return this; } - public IContextMenuBuilder AddImportItem(string text, string toolTip, Image image) + public IContextMenuBuilder AddImportItem(string text, string toolTip, Image image, IEnumerable importInfos = null) { - AddItem(guiItemsFactory.CreateImportItem(text, toolTip, image)); + AddItem(guiItemsFactory.CreateImportItem(text, toolTip, image, importInfos)); return this; } Index: Core/Common/src/Core.Common.Gui/ContextMenu/IContextMenuBuilder.cs =================================================================== diff -u -r4df60008f3437cc003dab4ccf105f1266c057275 -rb2dc333e5cd778afbb75c3b29e00e872a25632f7 --- Core/Common/src/Core.Common.Gui/ContextMenu/IContextMenuBuilder.cs (.../IContextMenuBuilder.cs) (revision 4df60008f3437cc003dab4ccf105f1266c057275) +++ Core/Common/src/Core.Common.Gui/ContextMenu/IContextMenuBuilder.cs (.../IContextMenuBuilder.cs) (revision b2dc333e5cd778afbb75c3b29e00e872a25632f7) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using System.Collections.Generic; using System.Drawing; using System.Windows.Forms; @@ -95,6 +96,9 @@ /// The itself. /// When no parameter is provided, the suitable /// instances - as registered by the plugins - will be resolved dynamically. + /// Thrown when is null or only whitespace. + /// Thrown when or + /// is null. IContextMenuBuilder AddImportItem(string text, string toolTip, Image image, IEnumerable importInfos = null); ///