/// <summary> /// Retrieves the ToolboxItem used by this Modeling based editor. /// This is where you add complex toolbox items that are not simply /// fragments of diagram to be added. /// </summary> public override ModelingToolboxItem[] GetToolboxItems() { // Put all the base items in the list and then add the connector tools List <ModelingToolboxItem> items = new List <ModelingToolboxItem>(); // Get the base list of toolbox items ModelingToolboxItem[] baseItems = base.GetToolboxItems(); foreach (ModelingToolboxItem baseItem in baseItems) { items.Add(baseItem); } // Create an entry for the RelationshipFeatureConnector tool { ModelingToolboxItem item = new ModelingToolboxItem( "RelationshipFeatureConnectorToolBoxItemId", // Id EditorFactory.RelationshipFeatureConnectorPosition, // Position EditorFactory.GetResource("FeatureConnectorCaption", true) as string, // Caption EditorFactory.GetResource("FeatureConnector") as System.Drawing.Bitmap, // Bitmap Designer_Resource.ToolboxTab + "Id", Designer_Resource.ToolboxTab, "FeatureConnectorHelpId", // f1Keyword null, // Tooltip null, // ElementGroupPrototype new ToolboxItemFilterAttribute[] { new ToolboxItemFilterAttribute(FeatureModelLanguageDiagram.DiagramFilterString, ToolboxItemFilterType.Require), new ToolboxItemFilterAttribute(EditorFactory.RelationshipFeatureConnectorFilterString, ToolboxItemFilterType.Allow) }); items.Add(item); } // Create an entry for the RelationshipFeatureSetConnector tool { ModelingToolboxItem item = new ModelingToolboxItem( "RelationshipFeatureSetConnectorToolBoxItemId", // Id EditorFactory.RelationshipFeatureSetConnectorPosition, // Position EditorFactory.GetResource("FeatureSetConnectorCaption", true) as string, // Caption EditorFactory.GetResource("FeatureSetConnector") as System.Drawing.Bitmap, // Bitmap Designer_Resource.ToolboxTab + "Id", Designer_Resource.ToolboxTab, "FeatureSetConnectorHelpId", // f1Keyword null, // Tooltip null, // ElementGroupPrototype new ToolboxItemFilterAttribute[] { new ToolboxItemFilterAttribute(FeatureModelLanguageDiagram.DiagramFilterString, ToolboxItemFilterType.Require), new ToolboxItemFilterAttribute(EditorFactory.RelationshipFeatureSetConnectorFilterString, ToolboxItemFilterType.Allow) }); items.Add(item); } // Return the augmented list return(items.ToArray()); }
internal FeatureModelLanguageDocData(IServiceProvider serviceProvider, EditorFactory editorFactory) : base(serviceProvider, editorFactory) { }