/// <summary>
        /// Given a toolbox item "unique ID" and a data format identifier, returns the content of
        /// the data format.
        /// </summary>
        /// <param name="itemId">The unique ToolboxItem to retrieve data for</param>
        /// <param name="format">The desired format of the resulting data</param>
        public virtual object GetToolboxItemData(string itemId, DataFormats.Format format)
        {
            DslDesign::ModelingToolboxItem item = null;

            global::System.Resources.ResourceManager resourceManager = global::Microsoft.Data.Entity.Design.EntityDesigner.MicrosoftDataEntityDesignDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;

            System.Windows.Forms.IDataObject tbxDataObj;

            //get the toolbox item
            item = GetToolboxItem(itemId);

            if (item != null)
            {
                ToolboxItemContainer container = new ToolboxItemContainer(item);
                tbxDataObj = container.ToolboxData;

                if (tbxDataObj.GetDataPresent(format.Name))
                {
                    return(tbxDataObj.GetData(format.Name));
                }
                else
                {
                    string invalidFormatString = resourceManager.GetString("UnsupportedToolboxFormat", resourceCulture);
                    throw new InvalidOperationException(string.Format(resourceCulture, invalidFormatString, format.Name));
                }
            }

            string errorFormatString = resourceManager.GetString("UnresolvedToolboxItem", resourceCulture);

            throw new InvalidOperationException(string.Format(resourceCulture, errorFormatString, itemId));
        }
Exemple #2
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::UPM_IPS.DCMLRACPGProyectoIPS.DCMLRACPGProyectoIPSDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "UPM_IPS.DCMLRACPGProyectoIPS.ExampleElementToolboxItem":
                // Add ExampleElement shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DCMLRACPGProyectoIPS.ExampleElementToolboxItem",                                                                                    // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ExampleElementToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ExampleElementToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DCMLRACPGProyectoIPS.DCMLRACPGProyectoIPSToolboxTab",                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("DCMLRACPGProyectoIPSToolboxTab", resourceCulture),                                                                // Localized display name for the toolbox tab.
                    "CreateExampleClassF1Keyword",                                                                                                               // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ExampleElementToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DCMLRACPGProyectoIPS.ExampleElement.DomainClassId),                                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DCMLRACPGProyectoIPS.ExampleRelationshipToolboxItem":

                // Add ExampleRelationship connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DCMLRACPGProyectoIPS.ExampleRelationshipToolboxItem",                                                                                    // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                                // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ExampleRelationshipToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ExampleRelationshipToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DCMLRACPGProyectoIPS.DCMLRACPGProyectoIPSToolboxTab",                                                                                    // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("DCMLRACPGProyectoIPSToolboxTab", resourceCulture),                                                                     // Localized display name for the toolbox tab.
                    "ConnectExampleRelationF1Keyword",                                                                                                                // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ExampleRelationshipToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                             // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                  // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ExampleRelationshipFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #3
0
        /// <summary>
        /// Called on selection of a ToolboxItem. (A selection is a double-click, or pressing Enter).
        /// The selection cannot be null; this method is not called when the "Pointer" mode is selected.
        /// Upon double-click, a single-click is fired first, followed by a double-click. I.e. OnToolboxSelectionChanged
        /// will be called, followed by OnToolboxitemSelected (if the selected item is not "Pointer").
        /// </summary>
        /// <param name="toolboxItem">Selected toolbox item.</param>
        public override bool OnToolboxItemSelected(DslDesign::ModelingToolboxItem toolboxItem)
        {
            // Save the current sticky item choice.
            this.stickyToolboxItemId = toolboxItem.Id;

            // Return true to indicate that the toolbox selection action is handled. Otherwise the old
            // behavior of creating new element on double-click will be carried out.
            return(true);
        }
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }

            return(result);
        }
        /// <summary>
        /// Given a toolbox item "unique ID" returns the the toolbox item using cached dictionary
        /// </summary>
        /// <param name="itemId">The unique ToolboxItem to retrieve</param>
        private DslDesign::ModelingToolboxItem GetToolboxItem(string itemId)
        {
            DslDesign::ModelingToolboxItem item = null;

            if (!this.toolboxItemCache.TryGetValue(itemId, out item))
            {
                DslModeling::Store store = this.ToolboxStore;

                // Open transaction so we can create model elements corresponding to toolbox items.
                using (DslModeling::Transaction t = store.TransactionManager.BeginTransaction("CreateToolboxItems"))
                {
                    // Retrieve the specified ToolboxItem from the DSL
                    this.toolboxItemCache[itemId] = item = this.GetToolboxItem(itemId, store);
                }
            }

            return(item);
        }
Exemple #6
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::Maxsys.VisualLAL.VisualLALDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "Maxsys.VisualLAL.SimboloToolboxItem":
                // Add Simbolo shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Maxsys.VisualLAL.SimboloToolboxItem",                                                                                                // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("SimboloToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SimboloToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Maxsys.VisualLAL.VisualLALToolboxTab",                                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("VisualLALToolboxTab", resourceCulture),                                                                    // Localized display name for the toolbox tab.
                    "Simbolo",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("SimboloToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Maxsys.VisualLAL.Simbolo.DomainClassId),                                                    // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #7
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::Bb.ApplicationCooperationViewPoint.ApplicationCooperationViewPointDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #8
0
        private string stickyToolboxItemId = null;         // Id of the last-selected sticky toolbox item.

        /// <summary>
        /// Called when the selection on toolbox changed (through a single-click, or pressing up/down arrow keys).
        /// Base implementation does nothing.
        /// Upon double-click, a single-click is fired first, followed by a double-click. I.e. OnToolboxSelectionChanged
        /// will be called, followed by OnToolboxitemSelected (if the selected item is not "Pointer").
        /// </summary>
        /// <param name="toolboxItem">New toolbox item with selection. This can be null, if "Pointer" mode is selected.</param>
        public override void OnToolboxSelectionChanged(DslDesign::ModelingToolboxItem toolboxItem)
        {
            base.OnToolboxSelectionChanged(toolboxItem);

            // When a toolbox item is single-clicked, we need to turn off the sticky mode.
            this.stickyToolboxItemId = null;
            if (this.ActiveDiagramView != null)
            {
                DslDiagrams::CreateAction createAction = this.ActiveDiagramView.ActiveMouseAction as DslDiagrams::CreateAction;
                if (createAction != null)
                {
                    createAction.StickyMode = false;
                }
                else
                {
                    DslDiagrams::ConnectAction connectAction = this.ActiveDiagramView.ActiveMouseAction as DslDiagrams::ConnectAction;
                    if (connectAction != null)
                    {
                        connectAction.StickyMode = false;
                    }
                }
            }
        }
		/// <summary>
		/// Returns instance of ModelingToolboxItem based on specified name.
		/// This method must be called from within a Transaction. Failure to do so will result in an exception
		/// </summary>
		/// <param name="itemId">unique name of desired ToolboxItem</param>
		/// <param name="store">Store to perform the operation against</param>
		/// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
		public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
		{
			DslDesign::ModelingToolboxItem result = null;
			if (string.IsNullOrEmpty(itemId))
			{
				return null;
			}
			if (store == null)
			{
				return null;
			}
			global::System.Resources.ResourceManager resourceManager = global::DmitriNesteruk.AsyncDsl.AsyncDslDomainModel.SingletonResourceManager;
			global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
			switch(itemId)
			{
				case "DmitriNesteruk.AsyncDsl.ProcessToolboxItem":
					// Add Process shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"DmitriNesteruk.AsyncDsl.ProcessToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ProcessToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProcessToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"DmitriNesteruk.AsyncDsl.AsyncDslToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("AsyncDslToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Process", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ProcessToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::DmitriNesteruk.AsyncDsl.Process.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require) 
						});
					break;
				case "DmitriNesteruk.AsyncDsl.CommentToolboxItem":
					// Add Comment shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"DmitriNesteruk.AsyncDsl.CommentToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CommentToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CommentToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"DmitriNesteruk.AsyncDsl.AsyncDslToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("AsyncDslToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Comment", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CommentToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::DmitriNesteruk.AsyncDsl.Comment.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require) 
						});
					break;
				case "DmitriNesteruk.AsyncDsl.OperationToolboxItem":
					// Add Operation shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"DmitriNesteruk.AsyncDsl.OperationToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						3, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("OperationToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("OperationToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"DmitriNesteruk.AsyncDsl.AsyncDslToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("AsyncDslToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Operation", // F1 help keyword for the toolbox item.
						resourceManager.GetString("OperationToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::DmitriNesteruk.AsyncDsl.Operation.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require) 
						});
					break;
				case "DmitriNesteruk.AsyncDsl.FinishToStartConnectorToolboxItem":

					// Add FinishToStartConnector connector tool.
					result = new DslDesign::ModelingToolboxItem(
						"DmitriNesteruk.AsyncDsl.FinishToStartConnectorToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						4, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("FinishToStartConnectorToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FinishToStartConnectorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.				
						"DmitriNesteruk.AsyncDsl.AsyncDslToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("AsyncDslToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"FinishToStartConnector", // F1 help keyword for the toolbox item.
						resourceManager.GetString("FinishToStartConnectorToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						null, // Connector toolbox items do not have an underlying data object.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(FinishToStartConnectorFilterString)
						});
					break;
				case "DmitriNesteruk.AsyncDsl.StartToolboxItem":
					// Add Start shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"DmitriNesteruk.AsyncDsl.StartToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						5, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("StartToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("StartToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"DmitriNesteruk.AsyncDsl.AsyncDslToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("AsyncDslToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Start", // F1 help keyword for the toolbox item.
						resourceManager.GetString("StartToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::DmitriNesteruk.AsyncDsl.Start.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require) 
						});
					break;
				case "DmitriNesteruk.AsyncDsl.FinishToolboxItem":
					// Add Finish shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"DmitriNesteruk.AsyncDsl.FinishToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						6, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("FinishToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FinishToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"DmitriNesteruk.AsyncDsl.AsyncDslToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("AsyncDslToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Finish", // F1 help keyword for the toolbox item.
						resourceManager.GetString("FinishToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::DmitriNesteruk.AsyncDsl.Finish.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require) 
						});
					break;
				case "DmitriNesteruk.AsyncDsl.CommentConnectionToolboxItem":

					// Add CommentConnection connector tool.
					result = new DslDesign::ModelingToolboxItem(
						"DmitriNesteruk.AsyncDsl.CommentConnectionToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						7, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CommentConnectionToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CommentConnectionToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.				
						"DmitriNesteruk.AsyncDsl.AsyncDslToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("AsyncDslToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"CommentConnection", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CommentConnectionToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						null, // Connector toolbox items do not have an underlying data object.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(CommentConnectionFilterString)
						});
					break;
				case "DmitriNesteruk.AsyncDsl.StartToStartConnectorToolboxItem":

					// Add StartToStartConnector connector tool.
					result = new DslDesign::ModelingToolboxItem(
						"DmitriNesteruk.AsyncDsl.StartToStartConnectorToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						8, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("StartToStartConnectorToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("StartToStartConnectorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.				
						"DmitriNesteruk.AsyncDsl.AsyncDslToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("AsyncDslToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"StartToStartConnector", // F1 help keyword for the toolbox item.
						resourceManager.GetString("StartToStartConnectorToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						null, // Connector toolbox items do not have an underlying data object.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(StartToStartConnectorFilterString)
						});
					break;
				default:
					break;
			} // end switch
			
			return result;
		}
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::Microsoft.Data.Entity.Design.EntityDesigner.MicrosoftDataEntityDesignDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "Microsoft.Data.Entity.Design.Package.EntityToolToolboxItem":
                // Add EntityTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Data.Entity.Design.Package.EntityToolToolboxItem",                                                                            // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                       // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("EntityToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntityToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Data.Entity.Design.Package.Entity FrameworkToolboxTab",                                                                       // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Entity FrameworkToolboxTab", resourceCulture),                                                                // Localized display name for the toolbox tab.
                    string.Empty,                                                                                                                            // no F1 help keyword for the toolbox item.
                    resourceManager.GetString("EntityToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType.DomainClassId),               // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                         // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Microsoft.Data.Entity.Design.Package.AssociationToolToolboxItem":

                // Add AssociationTool connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Data.Entity.Design.Package.AssociationToolToolboxItem",                                                                            // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AssociationToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AssociationToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Data.Entity.Design.Package.Entity FrameworkToolboxTab",                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Entity FrameworkToolboxTab", resourceCulture),                                                                     // Localized display name for the toolbox tab.
                    string.Empty,                                                                                                                                 // no F1 help keyword for the toolbox item.
                    resourceManager.GetString("AssociationToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                         // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(AssociationToolFilterString)
                });
                break;

            case "Microsoft.Data.Entity.Design.Package.InheritanceToolToolboxItem":

                // Add InheritanceTool connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Data.Entity.Design.Package.InheritanceToolToolboxItem",                                                                            // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("InheritanceToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("InheritanceToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Data.Entity.Design.Package.Entity FrameworkToolboxTab",                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Entity FrameworkToolboxTab", resourceCulture),                                                                     // Localized display name for the toolbox tab.
                    string.Empty,                                                                                                                                 // no F1 help keyword for the toolbox item.
                    resourceManager.GetString("InheritanceToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                         // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(InheritanceToolFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
		/// <summary>
		/// Returns instance of ModelingToolboxItem based on specified name.
		/// This method must be called from within a Transaction. Failure to do so will result in an exception
		/// </summary>
		/// <param name="itemId">unique name of desired ToolboxItem</param>
		/// <param name="store">Store to perform the operation against</param>
		/// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
		public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
		{
			DslDesign::ModelingToolboxItem result = null;
			if (string.IsNullOrEmpty(itemId))
			{
				return null;
			}
			if (store == null)
			{
				return null;
			}
			global::System.Resources.ResourceManager resourceManager = global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerDomainModel.SingletonResourceManager;
			global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
			switch(itemId)
			{
				case "Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationToolboxItem":
					// Add HostApplication shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("HostApplicationToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("HostApplicationToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Microsoft.Practices.ServiceFactory.HostDesigner.Host ToolsToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Host ToolsToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"HostApplication", // F1 help keyword for the toolbox item.
						resourceManager.GetString("HostApplicationToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplication.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(HostApplicationFilterString)
						});
					break;
				case "Microsoft.Practices.ServiceFactory.HostDesigner.ServiceToolboxItem":
					// Add Service shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Practices.ServiceFactory.HostDesigner.ServiceToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ServiceToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ServiceToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Microsoft.Practices.ServiceFactory.HostDesigner.Host ToolsToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Host ToolsToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Service", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ServiceToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceReference.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ServiceFilterString)
						});
					break;
				case "Microsoft.Practices.ServiceFactory.HostDesigner.EndpointToolboxItem":
					// Add Endpoint shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Practices.ServiceFactory.HostDesigner.EndpointToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						3, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("EndpointToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EndpointToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Microsoft.Practices.ServiceFactory.HostDesigner.Host ToolsToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Host ToolsToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Endpoint", // F1 help keyword for the toolbox item.
						resourceManager.GetString("EndpointToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.HostDesigner.Endpoint.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(EndpointFilterString)
						});
					break;
				case "Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplicationToolboxItem":
					// Add ClientApplication shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplicationToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						4, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ClientApplicationToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ClientApplicationToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Microsoft.Practices.ServiceFactory.HostDesigner.Host ToolsToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Host ToolsToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"ClientApplication", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ClientApplicationToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplication.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ClientApplicationFilterString)
						});
					break;
				case "Microsoft.Practices.ServiceFactory.HostDesigner.ProxyToolboxItem":
					// Add Proxy shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Practices.ServiceFactory.HostDesigner.ProxyToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						5, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ProxyToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProxyToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Microsoft.Practices.ServiceFactory.HostDesigner.Host ToolsToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Host ToolsToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Proxy", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ProxyToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.HostDesigner.Proxy.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ProxyFilterString)
						});
					break;
				case "Microsoft.Practices.ServiceFactory.HostDesigner.ProxyEndpointConnectionToolToolboxItem":

					// Add ProxyEndpointConnectionTool connector tool.
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Practices.ServiceFactory.HostDesigner.ProxyEndpointConnectionToolToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						6, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ProxyEndpointConnectionToolToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProxyEndpointConnectionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.				
						"Microsoft.Practices.ServiceFactory.HostDesigner.Host ToolsToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Host ToolsToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"ProxyEndpointConnectionTool", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ProxyEndpointConnectionToolToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						null, // Connector toolbox items do not have an underlying data object.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ProxyEndpointConnectionToolFilterString)
						});
					break;
				default:
					break;
			} // end switch
			
			return result;
		}
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::UPM_IPS.DNRDPVSQGProyectoMDD.DNRDPVSQGProyectoMDDDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "UPM_IPS.DNRDPVSQGProyectoMDD.VentanaPToolboxToolboxItem":
                // Add VentanaPToolbox shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DNRDPVSQGProyectoMDD.VentanaPToolboxToolboxItem",                                                                                    // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("VentanaPToolboxToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("VentanaPToolboxToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DNRDPVSQGProyectoMDD.VentanasToolboxTab",                                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("VentanasToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "VentanaPToolbox",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("VentanaPToolboxToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DNRDPVSQGProyectoMDD.VentanaPrincipal.DomainClassId),                                       // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DNRDPVSQGProyectoMDD.VentanaSToolboxToolboxItem":
                // Add VentanaSToolbox shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DNRDPVSQGProyectoMDD.VentanaSToolboxToolboxItem",                                                                                    // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("VentanaSToolboxToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("VentanaSToolboxToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DNRDPVSQGProyectoMDD.VentanasToolboxTab",                                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("VentanasToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "VentanaSToolbox",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("VentanaSToolboxToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DNRDPVSQGProyectoMDD.VentanaSecundaria.DomainClassId),                                      // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DNRDPVSQGProyectoMDD.MenuToolboxToolboxItem":
                // Add MenuToolbox shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DNRDPVSQGProyectoMDD.MenuToolboxToolboxItem",                                                                                    // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                        // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("MenuToolboxToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("MenuToolboxToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DNRDPVSQGProyectoMDD.ContenidoToolboxTab",                                                                                       // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("ContenidoToolboxTab", resourceCulture),                                                                        // Localized display name for the toolbox tab.
                    "MenuToolbox",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("MenuToolboxToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DNRDPVSQGProyectoMDD.Menu.DomainClassId),                                               // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DNRDPVSQGProyectoMDD.ItemToolboxToolboxItem":
                // Add ItemToolbox shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DNRDPVSQGProyectoMDD.ItemToolboxToolboxItem",                                                                                    // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                        // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ItemToolboxToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ItemToolboxToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DNRDPVSQGProyectoMDD.ContenidoToolboxTab",                                                                                       // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("ContenidoToolboxTab", resourceCulture),                                                                        // Localized display name for the toolbox tab.
                    "ItemToolbox",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ItemToolboxToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DNRDPVSQGProyectoMDD.Item.DomainClassId),                                               // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DNRDPVSQGProyectoMDD.BotonToolboxToolboxItem":
                // Add BotonToolbox shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DNRDPVSQGProyectoMDD.BotonToolboxToolboxItem",                                                                                    // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                         // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("BotonToolboxToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("BotonToolboxToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DNRDPVSQGProyectoMDD.ContenidoToolboxTab",                                                                                        // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("ContenidoToolboxTab", resourceCulture),                                                                         // Localized display name for the toolbox tab.
                    "BotonToolbox",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("BotonToolboxToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DNRDPVSQGProyectoMDD.Boton.DomainClassId),                                               // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                           // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DNRDPVSQGProyectoMDD.FinToolboxToolboxItem":
                // Add FinToolbox shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DNRDPVSQGProyectoMDD.FinToolboxToolboxItem",                                                                                    // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                       // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("FinToolboxToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FinToolboxToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DNRDPVSQGProyectoMDD.Estados y relacionesToolboxTab",                                                                           // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Estados y relacionesToolboxTab", resourceCulture),                                                            // Localized display name for the toolbox tab.
                    "FinToolbox",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("FinToolboxToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DNRDPVSQGProyectoMDD.EstadoFin.DomainClassId),                                         // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                         // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DNRDPVSQGProyectoMDD.RelacionToolboxToolboxItem":

                // Add RelacionToolbox connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DNRDPVSQGProyectoMDD.RelacionToolboxToolboxItem",                                                                                    // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("RelacionToolboxToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RelacionToolboxToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DNRDPVSQGProyectoMDD.Estados y relacionesToolboxTab",                                                                                // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Estados y relacionesToolboxTab", resourceCulture),                                                                 // Localized display name for the toolbox tab.
                    "RelacionToolbox",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("RelacionToolboxToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                         // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(RelacionToolboxFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #13
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::CQRSAzure.CQRSdsl.Dsl.CQRSdslDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "CQRSAzure.CQRSdsl.Dsl.AggregateToolToolboxItem":
                // Add AggregateTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.AggregateToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AggregateToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AggregateToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                      // Localized display name for the toolbox tab.
                    "Aggregate",                                                                                                                                // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AggregateToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::CQRSAzure.CQRSdsl.Dsl.AggregateIdentifier.DomainClassId),                                         // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "CQRSAzure.CQRSdsl.Dsl.EventDefinitionToolToolboxItem":
                // Add EventDefinitionTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.EventDefinitionToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                                // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("EventDefinitionToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EventDefinitionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                                  // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                            // Localized display name for the toolbox tab.
                    "EventDefinitionTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("EventDefinitionToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::CQRSAzure.CQRSdsl.Dsl.EventDefinition.DomainClassId),                                                   // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                  // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "CQRSAzure.CQRSdsl.Dsl.ProjectionToolToolboxItem":
                // Add ProjectionTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.ProjectionToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ProjectionToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProjectionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                       // Localized display name for the toolbox tab.
                    "ProjectionTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ProjectionToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::CQRSAzure.CQRSdsl.Dsl.ProjectionDefinition.DomainClassId),                                         // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "CQRSAzure.CQRSdsl.Dsl.CommandToolToolboxItem":
                // Add CommandTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.CommandToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                        // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CommandToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CommandToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                          // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                    // Localized display name for the toolbox tab.
                    "CommandTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CommandToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::CQRSAzure.CQRSdsl.Dsl.CommandDefinition.DomainClassId),                                         // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "CQRSAzure.CQRSdsl.Dsl.QueryToolToolboxItem":
                // Add QueryTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.QueryToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                      // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("QueryToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("QueryToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                        // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                  // Localized display name for the toolbox tab.
                    "QueryTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("QueryToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::CQRSAzure.CQRSdsl.Dsl.QueryDefinition.DomainClassId),                                         // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                        // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "CQRSAzure.CQRSdsl.Dsl.ProjectionEventConnectionToolToolboxItem":

                // Add ProjectionEventConnectionTool connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.ProjectionEventConnectionToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ProjectionEventConnectionToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProjectionEventConnectionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                                      // Localized display name for the toolbox tab.
                    "ProjectionEvent",                                                                                                                                          // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ProjectionEventConnectionToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                       // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ProjectionEventConnectionToolFilterString)
                });
                break;

            case "CQRSAzure.CQRSdsl.Dsl.AggregateParenthoodConnectionToolToolboxItem":

                // Add AggregateParenthoodConnectionTool connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.AggregateParenthoodConnectionToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                                              // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AggregateParenthoodConnectionToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AggregateParenthoodConnectionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                                                // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                                          // Localized display name for the toolbox tab.
                    "AggregateParenthoodConnectionTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AggregateParenthoodConnectionToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                           // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                                // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(AggregateParenthoodConnectionToolFilterString)
                });
                break;

            case "CQRSAzure.CQRSdsl.Dsl.IdentityGroupToolToolboxItem":
                // Add IdentityGroupTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.IdentityGroupToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    8,                                                                                                                                              // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("IdentityGroupToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("IdentityGroupToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                                // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                          // Localized display name for the toolbox tab.
                    "IdentityGroup",                                                                                                                                // F1 help keyword for the toolbox item.
                    resourceManager.GetString("IdentityGroupToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::CQRSAzure.CQRSdsl.Dsl.IdentityGroup.DomainClassId),                                                   // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "CQRSAzure.CQRSdsl.Dsl.ClassifierToolToolboxItem":
                // Add ClassifierTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.ClassifierToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    9,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ClassifierToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ClassifierToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                       // Localized display name for the toolbox tab.
                    "ClassifierTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ClassifierToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::CQRSAzure.CQRSdsl.Dsl.Classifier.DomainClassId),                                                   // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "CQRSAzure.CQRSdsl.Dsl.ClassifierEventConnectionToolToolboxItem":

                // Add ClassifierEventConnectionTool connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "CQRSAzure.CQRSdsl.Dsl.ClassifierEventConnectionToolToolboxItem",                                                                                           // Unique identifier (non-localized) for the toolbox item.
                    10,                                                                                                                                                         // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ClassifierEventConnectionToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ClassifierEventConnectionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "CQRSAzure.CQRSdsl.Dsl.CQRS DesignerToolboxTab",                                                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("CQRS DesignerToolboxTab", resourceCulture),                                                                                      // Localized display name for the toolbox tab.
                    "ClassifierEventConnection",                                                                                                                                // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ClassifierEventConnectionToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                       // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ClassifierEventConnectionToolFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #14
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::JA.Risk.RiskDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "JA.Risk.ContainerToolboxItem":
                // Add Container shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Risk.ContainerToolboxItem",                                                                                                         // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                      // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ContainerToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ContainerToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Risk.RiskToolboxTab",                                                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("RiskToolboxTab", resourceCulture),                                                                           // Localized display name for the toolbox tab.
                    "CreateContainerF1Keyword",                                                                                                             // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ContainerToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Risk.Container.DomainClassId),                                                             // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                        // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "JA.Risk.PortToolboxItem":
                // Add Port shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Risk.PortToolboxItem",                                                                                                         // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                 // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("PortToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("PortToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Risk.RiskToolboxTab",                                                                                                          // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("RiskToolboxTab", resourceCulture),                                                                      // Localized display name for the toolbox tab.
                    "Port",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("PortToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Risk.Port.DomainClassId),                                                             // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                   // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "JA.Risk.GeneralizationToolboxItem":

                // Add Generalization connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Risk.GeneralizationToolboxItem",                                                                                                         // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("GeneralizationToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("GeneralizationToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Risk.RiskToolboxTab",                                                                                                                    // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("RiskToolboxTab", resourceCulture),                                                                                // Localized display name for the toolbox tab.
                    "ConnectGeneralizationF1Keyword",                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("GeneralizationToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                        // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(GeneralizationFilterString)
                });
                break;

            case "JA.Risk.InteractionToolboxItem":

                // Add Interaction connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Risk.InteractionToolboxItem",                                                                                                         // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                        // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("InteractionToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("InteractionToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Risk.RiskToolboxTab",                                                                                                                 // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("RiskToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "Interaction",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("InteractionToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                     // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(InteractionFilterString)
                });
                break;

            case "JA.Risk.ContainsToolboxItem":

                // Add Contains connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Risk.ContainsToolboxItem",                                                                                                         // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ContainsToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ContainsToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Risk.RiskToolboxTab",                                                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("RiskToolboxTab", resourceCulture),                                                                          // Localized display name for the toolbox tab.
                    "Contains",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ContainsToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                  // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ContainsFilterString)
                });
                break;

            case "JA.Risk.AssetToolboxItem":
                // Add Asset shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Risk.AssetToolboxItem",                                                                                                         // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                  // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AssetToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AssetToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Risk.RiskToolboxTab",                                                                                                           // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("RiskToolboxTab", resourceCulture),                                                                       // Localized display name for the toolbox tab.
                    "Asset",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AssetToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Risk.Asset.DomainClassId),                                                             // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                    // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "JA.Risk.ContainsAssetToolboxItem":

                // Add ContainsAsset connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Risk.ContainsAssetToolboxItem",                                                                                                         // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ContainsAssetToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ContainsAssetToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Risk.RiskToolboxTab",                                                                                                                   // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("RiskToolboxTab", resourceCulture),                                                                               // Localized display name for the toolbox tab.
                    "ContainsAsset",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ContainsAssetToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                       // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ContainsAssetFilterString)
                });
                break;

            case "JA.Risk.ThreatToolboxItem":
                // Add Threat shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Risk.ThreatToolboxItem",                                                                                                         // Unique identifier (non-localized) for the toolbox item.
                    8,                                                                                                                                   // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ThreatToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ThreatToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Risk.RiskToolboxTab",                                                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("RiskToolboxTab", resourceCulture),                                                                        // Localized display name for the toolbox tab.
                    "Threat",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ThreatToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Risk.ThreatAgent.DomainClassId),                                                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                     // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "JA.Risk.LegitimateAccessToolboxItem":

                // Add LegitimateAccess connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Risk.LegitimateAccessToolboxItem",                                                                                                         // Unique identifier (non-localized) for the toolbox item.
                    9,                                                                                                                                             // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("LegitimateAccessToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("LegitimateAccessToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Risk.RiskToolboxTab",                                                                                                                      // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("RiskToolboxTab", resourceCulture),                                                                                  // Localized display name for the toolbox tab.
                    "LegitimateAccess",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("LegitimateAccessToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                          // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                               // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(LegitimateAccessFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::NuPattern.Authoring.WorkflowDesign.WorkflowDesignDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "NuPattern.Authoring.WorkflowDesign.SuppliedAssetToolboxItem":
                // Add SuppliedAsset shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "NuPattern.Authoring.WorkflowDesign.SuppliedAssetToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("SuppliedAssetToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SuppliedAssetToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "NuPattern.Authoring.WorkflowDesign.Production ToolingToolboxTab",                                                                          // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Production ToolingToolboxTab", resourceCulture),                                                                 // Localized display name for the toolbox tab.
                    "SuppliedAsset",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("SuppliedAssetToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::NuPattern.Authoring.WorkflowDesign.SuppliedAsset.DomainClassId),                                  // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(SuppliedAssetFilterString)
                });
                break;

            case "NuPattern.Authoring.WorkflowDesign.ProductionToolToolboxItem":
                // Add ProductionTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "NuPattern.Authoring.WorkflowDesign.ProductionToolToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ProductionToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProductionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "NuPattern.Authoring.WorkflowDesign.Production ToolingToolboxTab",                                                                           // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Production ToolingToolboxTab", resourceCulture),                                                                  // Localized display name for the toolbox tab.
                    "ProductionTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ProductionToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::NuPattern.Authoring.WorkflowDesign.ProductionTool.DomainClassId),                                  // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ProductionToolFilterString)
                });
                break;

            case "NuPattern.Authoring.WorkflowDesign.ProducedAssetToolboxItem":
                // Add ProducedAsset shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "NuPattern.Authoring.WorkflowDesign.ProducedAssetToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ProducedAssetToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProducedAssetToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "NuPattern.Authoring.WorkflowDesign.Production ToolingToolboxTab",                                                                          // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Production ToolingToolboxTab", resourceCulture),                                                                 // Localized display name for the toolbox tab.
                    "ProducedAsset",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ProducedAssetToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::NuPattern.Authoring.WorkflowDesign.ProducedAsset.DomainClassId),                                  // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ProducedAssetFilterString)
                });
                break;

            case "NuPattern.Authoring.WorkflowDesign.ProductionWorkflowConnectorToolboxItem":

                // Add ProductionWorkflowConnector connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "NuPattern.Authoring.WorkflowDesign.ProductionWorkflowConnectorToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                                        // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ProductionWorkflowConnectorToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProductionWorkflowConnectorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "NuPattern.Authoring.WorkflowDesign.Production ToolingToolboxTab",                                                                                        // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Production ToolingToolboxTab", resourceCulture),                                                                               // Localized display name for the toolbox tab.
                    "ProductionWorkflowConnector",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ProductionWorkflowConnectorToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                     // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ProductionWorkflowConnectorFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::UPM_IPS.DRQPJPFMAMPracticaDSLTools.DRQPJPFMAMPracticaDSLToolsDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "UPM_IPS.DRQPJPFMAMPracticaDSLTools.EntidadToolboxItem":
                // Add Entidad shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.EntidadToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("EntidadToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntidadToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.EntidadesToolboxTab",                                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("EntidadesToolboxTab", resourceCulture),                                                                    // Localized display name for the toolbox tab.
                    "CreateExampleClassF1Keyword",                                                                                                        // F1 help keyword for the toolbox item.
                    resourceManager.GetString("EntidadToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DRQPJPFMAMPracticaDSLTools.Entidad.DomainClassId),                                  // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DRQPJPFMAMPracticaDSLTools.RelacionToolboxItem":
                // Add Relacion shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.RelacionToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("RelacionToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RelacionToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.EntidadesToolboxTab",                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("EntidadesToolboxTab", resourceCulture),                                                                     // Localized display name for the toolbox tab.
                    "Relacion",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("RelacionToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DRQPJPFMAMPracticaDSLTools.Relacion.DomainClassId),                                  // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DRQPJPFMAMPracticaDSLTools.RelacionAtributoToolboxItem":

                // Add RelacionAtributo connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.RelacionAtributoToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                             // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("RelacionAtributoToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RelacionAtributoToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.Relaciones (Conectores)ToolboxTab",                                                                        // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Relaciones (Conectores)ToolboxTab", resourceCulture),                                                               // Localized display name for the toolbox tab.
                    "RelacionAtributo",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("RelacionAtributoToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                          // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                               // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(RelacionAtributoFilterString)
                });
                break;

            case "UPM_IPS.DRQPJPFMAMPracticaDSLTools.RelacionEntidadIzquierdaToolboxItem":

                // Add RelacionEntidadIzquierda connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.RelacionEntidadIzquierdaToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("RelacionEntidadIzquierdaToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RelacionEntidadIzquierdaToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.Relaciones (Conectores)ToolboxTab",                                                                                // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Relaciones (Conectores)ToolboxTab", resourceCulture),                                                                       // Localized display name for the toolbox tab.
                    "RelacionEntidadIzquierda",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("RelacionEntidadIzquierdaToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                  // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(RelacionEntidadIzquierdaFilterString)
                });
                break;

            case "UPM_IPS.DRQPJPFMAMPracticaDSLTools.RelacionEntidadDerechaToolboxItem":

                // Add RelacionEntidadDerecha connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.RelacionEntidadDerechaToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                                   // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("RelacionEntidadDerechaToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RelacionEntidadDerechaToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.Relaciones (Conectores)ToolboxTab",                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Relaciones (Conectores)ToolboxTab", resourceCulture),                                                                     // Localized display name for the toolbox tab.
                    "RelacionEntidadDerecha",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("RelacionEntidadDerechaToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                     // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(RelacionEntidadDerechaFilterString)
                });
                break;

            case "UPM_IPS.DRQPJPFMAMPracticaDSLTools.ClavePrimariaToolboxItem":
                // Add ClavePrimaria shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.ClavePrimariaToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ClavePrimariaToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ClavePrimariaToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.AtributosToolboxTab",                                                                                   // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AtributosToolboxTab", resourceCulture),                                                                          // Localized display name for the toolbox tab.
                    "ClavePrimaria",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ClavePrimariaToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DRQPJPFMAMPracticaDSLTools.ClavePrimaria.DomainClassId),                                  // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DRQPJPFMAMPracticaDSLTools.AtributoEntidadToolboxItem":
                // Add AtributoEntidad shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.AtributoEntidadToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AtributoEntidadToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AtributoEntidadToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.AtributosToolboxTab",                                                                                     // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AtributosToolboxTab", resourceCulture),                                                                            // Localized display name for the toolbox tab.
                    "AtributoEntidad",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AtributoEntidadToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DRQPJPFMAMPracticaDSLTools.AtributoEntidad.DomainClassId),                                  // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.DRQPJPFMAMPracticaDSLTools.AtributoRelacionToolboxItem":
                // Add AtributoRelacion shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.AtributoRelacionToolboxItem",                                                                              // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                             // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AtributoRelacionToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AtributoRelacionToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.DRQPJPFMAMPracticaDSLTools.AtributosToolboxTab",                                                                                      // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AtributosToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "AtributoRelacion",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AtributoRelacionToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.DRQPJPFMAMPracticaDSLTools.AtributoRelacion.DomainClassId),                                  // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                               // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #17
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::JA.Attack.AttackDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "JA.Attack.FlowToolToolboxItem":

                // Add FlowTool connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Attack.FlowToolToolboxItem",                                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("FlowToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FlowToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Attack.AttackToolboxTab",                                                                                                          // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AttackToolboxTab", resourceCulture),                                                                        // Localized display name for the toolbox tab.
                    "FlowTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("FlowToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                  // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(FlowToolFilterString)
                });
                break;

            case "JA.Attack.TaskToolToolboxItem":
                // Add TaskTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Attack.TaskToolToolboxItem",                                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("TaskToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TaskToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Attack.AttackToolboxTab",                                                                                                          // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AttackToolboxTab", resourceCulture),                                                                        // Localized display name for the toolbox tab.
                    "TaskTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("TaskToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Attack.Task.DomainClassId),                                                               // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "JA.Attack.StateToolToolboxItem":
                // Add StateTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Attack.StateToolToolboxItem",                                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                      // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("StateToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("StateToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Attack.AttackToolboxTab",                                                                                                           // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AttackToolboxTab", resourceCulture),                                                                         // Localized display name for the toolbox tab.
                    "StateTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("StateToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Attack.State.DomainClassId),                                                               // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                        // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "JA.Attack.SyncToolToolboxItem":
                // Add SyncTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Attack.SyncToolToolboxItem",                                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("SyncToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SyncToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Attack.AttackToolboxTab",                                                                                                          // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AttackToolboxTab", resourceCulture),                                                                        // Localized display name for the toolbox tab.
                    "SyncTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("SyncToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Attack.Synchronisation.DomainClassId),                                                    // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "JA.Attack.StartToolToolboxItem":
                // Add StartTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Attack.StartToolToolboxItem",                                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                      // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("StartToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("StartToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Attack.AttackToolboxTab",                                                                                                           // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AttackToolboxTab", resourceCulture),                                                                         // Localized display name for the toolbox tab.
                    "StartTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("StartToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Attack.StartPoint.DomainClassId),                                                          // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                        // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "JA.Attack.EndToolToolboxItem":
                // Add EndTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Attack.EndToolToolboxItem",                                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("EndToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EndToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Attack.AttackToolboxTab",                                                                                                         // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AttackToolboxTab", resourceCulture),                                                                       // Localized display name for the toolbox tab.
                    "EndTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("EndToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Attack.EndPoint.DomainClassId),                                                          // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "JA.Attack.MergeToolToolboxItem":
                // Add MergeTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "JA.Attack.MergeToolToolboxItem",                                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                      // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("MergeToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("MergeToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "JA.Attack.AttackToolboxTab",                                                                                                           // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("AttackToolboxTab", resourceCulture),                                                                         // Localized display name for the toolbox tab.
                    "MergeTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("MergeToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::JA.Attack.MergeBranch.DomainClassId),                                                         // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                        // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #18
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::Ultramarine.Generators.Language.GeneratorLanguageDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "Ultramarine.Generators.Language.ConnectedWithRelationshipToolboxItem":

                // Add ConnectedWithRelationship connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.ConnectedWithRelationshipToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                                      // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ConnectedWithRelationshipToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ConnectedWithRelationshipToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                                         // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "ConnectExampleRelationF1Keyword",                                                                                                                      // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ConnectedWithRelationshipToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                   // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                        // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ConnectedWithRelationshipFilterString)
                });
                break;

            case "Ultramarine.Generators.Language.BuildProjectToolboxItem":
                // Add BuildProject shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.BuildProjectToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                         // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("BuildProjectToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("BuildProjectToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                                // Localized display name for the toolbox tab.
                    "BuildProject",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("BuildProjectToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.BuildProject.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                           // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ultramarine.Generators.Language.CreateFolderToolboxItem":
                // Add CreateFolder shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.CreateFolderToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                         // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CreateFolderToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CreateFolderToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                                // Localized display name for the toolbox tab.
                    "CreateFolder",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CreateFolderToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.CreateFolder.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                           // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ultramarine.Generators.Language.CreateProjectItemToolboxItem":
                // Add CreateProjectItem shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.CreateProjectItemToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                              // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CreateProjectItemToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CreateProjectItemToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                                 // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                                     // Localized display name for the toolbox tab.
                    "CreateProjectItem",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CreateProjectItemToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.CreateProjectItem.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ultramarine.Generators.Language.LoadCodeElementToolboxItem":
                // Add LoadCodeElement shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.LoadCodeElementToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("LoadCodeElementToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("LoadCodeElementToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                                   // Localized display name for the toolbox tab.
                    "CreateExampleClassF1Keyword",                                                                                                                // F1 help keyword for the toolbox item.
                    resourceManager.GetString("LoadCodeElementToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.LoadCodeElement.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ultramarine.Generators.Language.LoadProjectItemToolboxItem":
                // Add LoadProjectItem shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.LoadProjectItemToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("LoadProjectItemToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("LoadProjectItemToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                                   // Localized display name for the toolbox tab.
                    "LoadProjectItem",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("LoadProjectItemToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.LoadProjectItem.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ultramarine.Generators.Language.ReadPropertyToolboxItem":
                // Add ReadProperty shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.ReadPropertyToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                         // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ReadPropertyToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ReadPropertyToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                                // Localized display name for the toolbox tab.
                    "ReadProperty",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ReadPropertyToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.ReadProperty.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                           // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ultramarine.Generators.Language.SetVariableToolboxItem":
                // Add SetVariable shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.SetVariableToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    8,                                                                                                                                        // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("SetVariableToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SetVariableToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                           // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                               // Localized display name for the toolbox tab.
                    "SetVariable",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("SetVariableToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.SetVariable.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ultramarine.Generators.Language.IteratorToolboxItem":
                // Add Iterator shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.IteratorToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    9,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("IteratorToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("IteratorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                        // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                            // Localized display name for the toolbox tab.
                    "Iterator",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("IteratorToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.Iterator.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ultramarine.Generators.Language.TextTransformationToolboxItem":
                // Add TextTransformation shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.TextTransformationToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    10,                                                                                                                                              // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("TextTransformationToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TextTransformationToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                                  // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                                      // Localized display name for the toolbox tab.
                    "TextTransformation",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("TextTransformationToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.TextTransformation.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                 // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ultramarine.Generators.Language.ImporterToolboxItem":
                // Add Importer shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ultramarine.Generators.Language.ImporterToolboxItem",                                                                                 // Unique identifier (non-localized) for the toolbox item.
                    11,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ImporterToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ImporterToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ultramarine.Generators.Language.Generator LanguageToolboxTab",                                                                        // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Generator LanguageToolboxTab", resourceCulture),                                                            // Localized display name for the toolbox tab.
                    "Importer",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ImporterToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ultramarine.Generators.Language.Importer.DomainClassId),                                     // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #19
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::SchneiderElectricDMS.PowerFunctionsReportDSL.PowerFunctionsReportDSLDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "SchneiderElectricDMS.PowerFunctionsReportDSL.ExternalTypeToolboxItem":
                // Add ExternalType shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.ExternalTypeToolboxItem",                                                                    // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                         // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ExternalTypeToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ExternalTypeToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.PowerFunctionsReportDSLToolboxTab",                                                          // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("PowerFunctionsReportDSLToolboxTab", resourceCulture),                                                           // Localized display name for the toolbox tab.
                    "ExternalType",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ExternalTypeToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::SchneiderElectricDMS.PowerFunctionsReportDSL.ExternalType.DomainClassId),                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                           // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "SchneiderElectricDMS.PowerFunctionsReportDSL.CommentToolboxItem":
                // Add Comment shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.CommentToolboxItem",                                                                    // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CommentToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CommentToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.PowerFunctionsReportDSLToolboxTab",                                                     // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("PowerFunctionsReportDSLToolboxTab", resourceCulture),                                                      // Localized display name for the toolbox tab.
                    "Comment",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CommentToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::SchneiderElectricDMS.PowerFunctionsReportDSL.Comment.DomainClassId),                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "SchneiderElectricDMS.PowerFunctionsReportDSL.CommentRelationshipToolboxItem":

                // Add CommentRelationship connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.CommentRelationshipToolboxItem",                                                                    // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                                // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CommentRelationshipToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CommentRelationshipToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.PowerFunctionsReportDSLToolboxTab",                                                                 // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("PowerFunctionsReportDSLToolboxTab", resourceCulture),                                                                  // Localized display name for the toolbox tab.
                    "CommentRelationship",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CommentRelationshipToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                             // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                  // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(CommentRelationshipFilterString)
                });
                break;

            case "SchneiderElectricDMS.PowerFunctionsReportDSL.TabToolboxItem":
                // Add Tab shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.TabToolboxItem",                                                                    // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("TabToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TabToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.PowerFunctionsReportDSLToolboxTab",                                                 // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("PowerFunctionsReportDSLToolboxTab", resourceCulture),                                                  // Localized display name for the toolbox tab.
                    "Tab",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("TabToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::SchneiderElectricDMS.PowerFunctionsReportDSL.Tab.DomainClassId),                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                  // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "SchneiderElectricDMS.PowerFunctionsReportDSL.DataGridToolboxItem":
                // Add DataGrid shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.DataGridToolboxItem",                                                                    // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("DataGridToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("DataGridToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.PowerFunctionsReportDSLToolboxTab",                                                      // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("PowerFunctionsReportDSLToolboxTab", resourceCulture),                                                       // Localized display name for the toolbox tab.
                    "DataGrid",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("DataGridToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::SchneiderElectricDMS.PowerFunctionsReportDSL.DataGrid.DomainClassId),                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "SchneiderElectricDMS.PowerFunctionsReportDSL.TabTabReferenceToolboxItem":

                // Add TabTabReference connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.TabTabReferenceToolboxItem",                                                                    // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("TabTabReferenceToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TabTabReferenceToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.PowerFunctionsReportDSLToolboxTab",                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("PowerFunctionsReportDSLToolboxTab", resourceCulture),                                                              // Localized display name for the toolbox tab.
                    "TabTabReference",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("TabTabReferenceToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                         // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(TabTabReferenceFilterString)
                });
                break;

            case "SchneiderElectricDMS.PowerFunctionsReportDSL.TabDataGridReferenceToolboxItem":

                // Add TabDataGridReference connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.TabDataGridReferenceToolboxItem",                                                                    // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                                 // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("TabDataGridReferenceToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TabDataGridReferenceToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "SchneiderElectricDMS.PowerFunctionsReportDSL.PowerFunctionsReportDSLToolboxTab",                                                                  // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("PowerFunctionsReportDSLToolboxTab", resourceCulture),                                                                   // Localized display name for the toolbox tab.
                    "TabDataGridReference",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("TabDataGridReferenceToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                              // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                   // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(TabDataGridReferenceFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #20
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::Sawczyn.EFDesigner.EFModel.EFModelDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "Sawczyn.EFDesigner.EFModel.ModelClassToolboxItem":
                // Add ModelClass shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Sawczyn.EFDesigner.EFModel.ModelClassToolboxItem",                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                       // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ModelClassToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ModelClassToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Sawczyn.EFDesigner.EFModel.EF Model DiagramsToolboxTab",                                                                                // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("EF Model DiagramsToolboxTab", resourceCulture),                                                               // Localized display name for the toolbox tab.
                    "ModelClassF1Keyword",                                                                                                                   // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ModelClassToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Sawczyn.EFDesigner.EFModel.ModelClass.DomainClassId),                                          // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                         // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ModelClassFilterString)
                });
                break;

            case "Sawczyn.EFDesigner.EFModel.UnidirectionalAssociationToolboxItem":

                // Add UnidirectionalAssociation connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Sawczyn.EFDesigner.EFModel.UnidirectionalAssociationToolboxItem",                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                                      // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("UnidirectionalAssociationToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("UnidirectionalAssociationToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Sawczyn.EFDesigner.EFModel.EF Model DiagramsToolboxTab",                                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("EF Model DiagramsToolboxTab", resourceCulture),                                                                              // Localized display name for the toolbox tab.
                    "ConnectUnidirectionalAssociationF1Keyword",                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("UnidirectionalAssociationToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                   // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                        // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(UnidirectionalAssociationFilterString)
                });
                break;

            case "Sawczyn.EFDesigner.EFModel.BidirectionalAssociationToolboxItem":

                // Add BidirectionalAssociation connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Sawczyn.EFDesigner.EFModel.BidirectionalAssociationToolboxItem",                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("BidirectionalAssociationToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("BidirectionalAssociationToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Sawczyn.EFDesigner.EFModel.EF Model DiagramsToolboxTab",                                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("EF Model DiagramsToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "ConnectBidirectionalAssociationF1Keyword",                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("BidirectionalAssociationToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                  // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(BidirectionalAssociationFilterString)
                });
                break;

            case "Sawczyn.EFDesigner.EFModel.GeneralizationToolboxItem":

                // Add Generalization connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Sawczyn.EFDesigner.EFModel.GeneralizationToolboxItem",                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("GeneralizationToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("GeneralizationToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Sawczyn.EFDesigner.EFModel.EF Model DiagramsToolboxTab",                                                                                    // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("EF Model DiagramsToolboxTab", resourceCulture),                                                                   // Localized display name for the toolbox tab.
                    "GeneralizationF1Keyword",                                                                                                                   // F1 help keyword for the toolbox item.
                    resourceManager.GetString("GeneralizationToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                        // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(GeneralizationFilterString)
                });
                break;

            case "Sawczyn.EFDesigner.EFModel.CommentToolboxItem":
                // Add Comment shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Sawczyn.EFDesigner.EFModel.CommentToolboxItem",                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CommentToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CommentToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Sawczyn.EFDesigner.EFModel.EF Model DiagramsToolboxTab",                                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("EF Model DiagramsToolboxTab", resourceCulture),                                                            // Localized display name for the toolbox tab.
                    "CommentF1Keyword",                                                                                                                   // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CommentToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Sawczyn.EFDesigner.EFModel.Comment.DomainClassId),                                          // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(CommentFilterString)
                });
                break;

            case "Sawczyn.EFDesigner.EFModel.CommentLinkToolboxItem":

                // Add CommentLink connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Sawczyn.EFDesigner.EFModel.CommentLinkToolboxItem",                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                        // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CommentLinkToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CommentLinkToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Sawczyn.EFDesigner.EFModel.EF Model DiagramsToolboxTab",                                                                                 // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("EF Model DiagramsToolboxTab", resourceCulture),                                                                // Localized display name for the toolbox tab.
                    "CommentsReferenceDesignElementsF1Keyword",                                                                                               // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CommentLinkToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                     // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(CommentLinkFilterString)
                });
                break;

            case "Sawczyn.EFDesigner.EFModel.EnumerationToolboxItem":
                // Add Enumeration shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Sawczyn.EFDesigner.EFModel.EnumerationToolboxItem",                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                        // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("EnumerationToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EnumerationToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Sawczyn.EFDesigner.EFModel.EF Model DiagramsToolboxTab",                                                                                 // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("EF Model DiagramsToolboxTab", resourceCulture),                                                                // Localized display name for the toolbox tab.
                    "ModelEnumF1Keyword",                                                                                                                     // F1 help keyword for the toolbox item.
                    resourceManager.GetString("EnumerationToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Sawczyn.EFDesigner.EFModel.ModelEnum.DomainClassId),                                            // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(EnumerationFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::Microsoft.Example.Circuits.CircuitsDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "Microsoft.Example.Circuits.DslPackage.ResistorToolboxItem":
                // Add Resistor shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Example.Circuits.DslPackage.ResistorToolboxItem",                                                                           // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ResistorToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ResistorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Example.Circuits.DslPackage.Circuit DiagramsToolboxTab",                                                                    // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Circuit DiagramsToolboxTab", resourceCulture),                                                              // Localized display name for the toolbox tab.
                    "CreateComponentF1Keyword",                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ResistorToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Example.Circuits.Resistor.DomainClassId),                                          // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Microsoft.Example.Circuits.DslPackage.WireToolboxItem":

                // Add Wire connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Example.Circuits.DslPackage.WireToolboxItem",                                                                           // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                 // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("WireToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("WireToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Example.Circuits.DslPackage.Circuit DiagramsToolboxTab",                                                                // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Circuit DiagramsToolboxTab", resourceCulture),                                                          // Localized display name for the toolbox tab.
                    "ConnectAssociationF1Keyword",                                                                                                     // F1 help keyword for the toolbox item.
                    resourceManager.GetString("WireToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                              // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                   // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(WireFilterString)
                });
                break;

            case "Microsoft.Example.Circuits.DslPackage.CommentToolboxItem":
                // Add Comment shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Example.Circuits.DslPackage.CommentToolboxItem",                                                                           // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CommentToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CommentToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Example.Circuits.DslPackage.Circuit DiagramsToolboxTab",                                                                   // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Circuit DiagramsToolboxTab", resourceCulture),                                                             // Localized display name for the toolbox tab.
                    "ConnectCommentF1Keyword",                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CommentToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Example.Circuits.Comment.DomainClassId),                                          // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Microsoft.Example.Circuits.DslPackage.CommentConnectorToolboxItem":

                // Add CommentConnector connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Example.Circuits.DslPackage.CommentConnectorToolboxItem",                                                                           // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                             // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CommentConnectorToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CommentConnectorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Example.Circuits.DslPackage.Circuit DiagramsToolboxTab",                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Circuit DiagramsToolboxTab", resourceCulture),                                                                      // Localized display name for the toolbox tab.
                    "ConnectCommentsReferenceTypesF1Keyword",                                                                                                      // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CommentConnectorToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                          // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                               // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(CommentConnectorFilterString)
                });
                break;

            case "Microsoft.Example.Circuits.DslPackage.JunctionToolboxItem":
                // Add Junction shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Example.Circuits.DslPackage.JunctionToolboxItem",                                                                           // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("JunctionToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("JunctionToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Example.Circuits.DslPackage.Circuit DiagramsToolboxTab",                                                                    // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Circuit DiagramsToolboxTab", resourceCulture),                                                              // Localized display name for the toolbox tab.
                    "Junction",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("JunctionToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Example.Circuits.Junction.DomainClassId),                                          // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Microsoft.Example.Circuits.DslPackage.TransistorToolToolboxItem":
                // Add TransistorTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Example.Circuits.DslPackage.TransistorToolToolboxItem",                                                                           // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("TransistorToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TransistorToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Example.Circuits.DslPackage.Circuit DiagramsToolboxTab",                                                                          // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Circuit DiagramsToolboxTab", resourceCulture),                                                                    // Localized display name for the toolbox tab.
                    "TransistorTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("TransistorToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Example.Circuits.Transistor.DomainClassId),                                              // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Microsoft.Example.Circuits.DslPackage.CapacitorToolToolboxItem":
                // Add CapacitorTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Example.Circuits.DslPackage.CapacitorToolToolboxItem",                                                                           // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("CapacitorToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CapacitorToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Example.Circuits.DslPackage.Circuit DiagramsToolboxTab",                                                                         // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Circuit DiagramsToolboxTab", resourceCulture),                                                                   // Localized display name for the toolbox tab.
                    "CapacitorTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("CapacitorToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Example.Circuits.Capacitor.DomainClassId),                                              // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
		/// <summary>
		/// Returns instance of ModelingToolboxItem based on specified name.
		/// This method must be called from within a Transaction. Failure to do so will result in an exception
		/// </summary>
		/// <param name="itemId">unique name of desired ToolboxItem</param>
		/// <param name="store">Store to perform the operation against</param>
		/// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
		public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
		{
			DslDesign::ModelingToolboxItem result = null;
			if (string.IsNullOrEmpty(itemId))
			{
				return null;
			}
			if (store == null)
			{
				return null;
			}
			global::System.Resources.ResourceManager resourceManager = global::NuPattern.Authoring.WorkflowDesign.WorkflowDesignDomainModel.SingletonResourceManager;
			global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
			switch(itemId)
			{
				case "NuPattern.Authoring.WorkflowDesign.SuppliedAssetToolboxItem":
					// Add SuppliedAsset shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"NuPattern.Authoring.WorkflowDesign.SuppliedAssetToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("SuppliedAssetToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SuppliedAssetToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"NuPattern.Authoring.WorkflowDesign.Production ToolingToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Production ToolingToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"SuppliedAsset", // F1 help keyword for the toolbox item.
						resourceManager.GetString("SuppliedAssetToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::NuPattern.Authoring.WorkflowDesign.SuppliedAsset.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(SuppliedAssetFilterString)
						});
					break;
				case "NuPattern.Authoring.WorkflowDesign.ProductionToolToolboxItem":
					// Add ProductionTool shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"NuPattern.Authoring.WorkflowDesign.ProductionToolToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ProductionToolToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProductionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"NuPattern.Authoring.WorkflowDesign.Production ToolingToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Production ToolingToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"ProductionTool", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ProductionToolToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::NuPattern.Authoring.WorkflowDesign.ProductionTool.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ProductionToolFilterString)
						});
					break;
				case "NuPattern.Authoring.WorkflowDesign.ProducedAssetToolboxItem":
					// Add ProducedAsset shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"NuPattern.Authoring.WorkflowDesign.ProducedAssetToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						3, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ProducedAssetToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProducedAssetToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"NuPattern.Authoring.WorkflowDesign.Production ToolingToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Production ToolingToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"ProducedAsset", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ProducedAssetToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::NuPattern.Authoring.WorkflowDesign.ProducedAsset.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ProducedAssetFilterString)
						});
					break;
				case "NuPattern.Authoring.WorkflowDesign.ProductionWorkflowConnectorToolboxItem":

					// Add ProductionWorkflowConnector connector tool.
					result = new DslDesign::ModelingToolboxItem(
						"NuPattern.Authoring.WorkflowDesign.ProductionWorkflowConnectorToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						4, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ProductionWorkflowConnectorToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ProductionWorkflowConnectorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.				
						"NuPattern.Authoring.WorkflowDesign.Production ToolingToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Production ToolingToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"ProductionWorkflowConnector", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ProductionWorkflowConnectorToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						null, // Connector toolbox items do not have an underlying data object.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ProductionWorkflowConnectorFilterString)
						});
					break;
				default:
					break;
			} // end switch
			
			return result;
		}
Exemple #23
0
		/// <summary>
		/// Returns instance of ModelingToolboxItem based on specified name.
		/// This method must be called from within a Transaction. Failure to do so will result in an exception
		/// </summary>
		/// <param name="itemId">unique name of desired ToolboxItem</param>
		/// <param name="store">Store to perform the operation against</param>
		/// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
		public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
		{
			DslDesign::ModelingToolboxItem result = null;
			if (string.IsNullOrEmpty(itemId))
			{
				return null;
			}
			if (store == null)
			{
				return null;
			}
			global::System.Resources.ResourceManager resourceManager = global::Evaluant.Uss.SqlMapper.Mapping.SqlMapperMappingDomainModel.SingletonResourceManager;
			global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
			switch(itemId)
			{
				case "Evaluant.Uss.SqlMapper.Mapping.ExampleElementToolboxItem":
					// Add ExampleElement shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Evaluant.Uss.SqlMapper.Mapping.ExampleElementToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ExampleElementToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ExampleElementToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Evaluant.Uss.SqlMapper.Mapping.SqlMapperMappingToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("SqlMapperMappingToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"CreateExampleClassF1Keyword", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ExampleElementToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Evaluant.Uss.SqlMapper.Mapping.Entity.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require) 
						});
					break;
				case "Evaluant.Uss.SqlMapper.Mapping.ExampleRelationshipToolboxItem":

					// Add ExampleRelationship connector tool.
					result = new DslDesign::ModelingToolboxItem(
						"Evaluant.Uss.SqlMapper.Mapping.ExampleRelationshipToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ExampleRelationshipToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ExampleRelationshipToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.				
						"Evaluant.Uss.SqlMapper.Mapping.SqlMapperMappingToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("SqlMapperMappingToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"ConnectExampleRelationF1Keyword", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ExampleRelationshipToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						null, // Connector toolbox items do not have an underlying data object.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ExampleRelationshipFilterString)
						});
					break;
				default:
					break;
			} // end switch
			
			return result;
		}
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::Company.FamilyTree.FamilyTreeDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "Company.FamilyTree.Person2ToolboxItem":
                // Add Person2 shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Company.FamilyTree.Person2ToolboxItem",                                                                                              // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("Person2ToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("Person2ToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Company.FamilyTree.FamilyTreeToolboxTab",                                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("FamilyTreeToolboxTab", resourceCulture),                                                                   // Localized display name for the toolbox tab.
                    "CreateExampleClassF1Keyword",                                                                                                        // F1 help keyword for the toolbox item.
                    resourceManager.GetString("Person2ToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Company.FamilyTree.Person.DomainClassId),                                                   // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Company.FamilyTree.ParentLinkToolboxItem":

                // Add ParentLink connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Company.FamilyTree.ParentLinkToolboxItem",                                                                                              // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                       // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ParentLinkToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ParentLinkToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Company.FamilyTree.FamilyTreeToolboxTab",                                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("FamilyTreeToolboxTab", resourceCulture),                                                                      // Localized display name for the toolbox tab.
                    "ConnectExampleRelationF1Keyword",                                                                                                       // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ParentLinkToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                    // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                         // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ParentLinkFilterString)
                });
                break;

            case "Company.FamilyTree.TownToolToolboxItem":
                // Add TownTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Company.FamilyTree.TownToolToolboxItem",                                                                                              // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("TownToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TownToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Company.FamilyTree.FamilyTreeToolboxTab",                                                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("FamilyTreeToolboxTab", resourceCulture),                                                                    // Localized display name for the toolbox tab.
                    "TownTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("TownToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Company.FamilyTree.Town.DomainClassId),                                                      // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Company.FamilyTree.ResidenceConnectionToolboxItem":

                // Add ResidenceConnection connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Company.FamilyTree.ResidenceConnectionToolboxItem",                                                                                              // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                                // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ResidenceConnectionToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ResidenceConnectionToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Company.FamilyTree.FamilyTreeToolboxTab",                                                                                                        // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("FamilyTreeToolboxTab", resourceCulture),                                                                               // Localized display name for the toolbox tab.
                    "ResidenceConnection",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ResidenceConnectionToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                             // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                  // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ResidenceConnectionFilterString)
                });
                break;

            case "Company.FamilyTree.NationalityConnectorToolboxItem":

                // Add NationalityConnector connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Company.FamilyTree.NationalityConnectorToolboxItem",                                                                                              // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                                 // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("NationalityConnectorToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("NationalityConnectorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Company.FamilyTree.FamilyTreeToolboxTab",                                                                                                         // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("FamilyTreeToolboxTab", resourceCulture),                                                                                // Localized display name for the toolbox tab.
                    "NationalityConnector",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("NationalityConnectorToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                              // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                   // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(NationalityConnectorFilterString)
                });
                break;

            case "Company.FamilyTree.NationalityToolToolboxItem":
                // Add NationalityTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Company.FamilyTree.NationalityToolToolboxItem",                                                                                              // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("NationalityToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("NationalityToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Company.FamilyTree.FamilyTreeToolboxTab",                                                                                                    // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("FamilyTreeToolboxTab", resourceCulture),                                                                           // Localized display name for the toolbox tab.
                    "CreateNationalityClassF1Keyword",                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("NationalityToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Company.FamilyTree.Nationality.DomainClassId),                                                      // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::Microsoft.Practices.ServiceFactory.DataContracts.DataContractDslDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "Microsoft.Practices.ServiceFactory.DataContracts.DataContractToolToolboxItem":
                // Add DataContractTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Practices.ServiceFactory.DataContracts.DataContractToolToolboxItem",                                                                // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                             // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("DataContractToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("DataContractToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Practices.ServiceFactory.DataContracts.Data Contract ToolsToolboxTab",                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Data Contract ToolsToolboxTab", resourceCulture),                                                                   // Localized display name for the toolbox tab.
                    "DataContractTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("DataContractToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.DataContracts.DataContract.DomainClassId),                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                               // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(DataContractToolFilterString)
                });
                break;

            case "Microsoft.Practices.ServiceFactory.DataContracts.DataContractEnumToolToolboxItem":
                // Add DataContractEnumTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Practices.ServiceFactory.DataContracts.DataContractEnumToolToolboxItem",                                                                // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                                 // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("DataContractEnumToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("DataContractEnumToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Practices.ServiceFactory.DataContracts.Data Contract ToolsToolboxTab",                                                                  // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Data Contract ToolsToolboxTab", resourceCulture),                                                                       // Localized display name for the toolbox tab.
                    "DataContractEnumTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("DataContractEnumToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.DataContracts.DataContractEnum.DomainClassId),                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                   // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(DataContractEnumToolFilterString)
                });
                break;

            case "Microsoft.Practices.ServiceFactory.DataContracts.PrimitiveDataTypeCollectionToolToolboxItem":
                // Add PrimitiveDataTypeCollectionTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Practices.ServiceFactory.DataContracts.PrimitiveDataTypeCollectionToolToolboxItem",                                                                // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("PrimitiveDataTypeCollectionToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("PrimitiveDataTypeCollectionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Practices.ServiceFactory.DataContracts.Data Contract ToolsToolboxTab",                                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Data Contract ToolsToolboxTab", resourceCulture),                                                                                  // Localized display name for the toolbox tab.
                    "PrimitiveDataTypeCollectionTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("PrimitiveDataTypeCollectionToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.DataContracts.PrimitiveDataTypeCollection.DomainClassId),                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(PrimitiveDataTypeCollectionToolFilterString)
                });
                break;

            case "Microsoft.Practices.ServiceFactory.DataContracts.DataContractCollectionToolToolboxItem":
                // Add DataContractCollectionTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Practices.ServiceFactory.DataContracts.DataContractCollectionToolToolboxItem",                                                                // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                                       // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("DataContractCollectionToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("DataContractCollectionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Practices.ServiceFactory.DataContracts.Data Contract ToolsToolboxTab",                                                                        // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Data Contract ToolsToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "DataContractCollectionTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("DataContractCollectionToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.DataContracts.DataContractCollection.DomainClassId),                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                         // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(DataContractCollectionToolFilterString)
                });
                break;

            case "Microsoft.Practices.ServiceFactory.DataContracts.FaultContractToolToolboxItem":
                // Add FaultContractTool shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Practices.ServiceFactory.DataContracts.FaultContractToolToolboxItem",                                                                // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                              // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("FaultContractToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FaultContractToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Practices.ServiceFactory.DataContracts.Data Contract ToolsToolboxTab",                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Data Contract ToolsToolboxTab", resourceCulture),                                                                    // Localized display name for the toolbox tab.
                    "FaultContractTool",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("FaultContractToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Microsoft.Practices.ServiceFactory.DataContracts.FaultContract.DomainClassId),                        // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(FaultContractToolFilterString)
                });
                break;

            case "Microsoft.Practices.ServiceFactory.DataContracts.AggregationConnectionToolToolboxItem":

                // Add AggregationConnectionTool connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Microsoft.Practices.ServiceFactory.DataContracts.AggregationConnectionToolToolboxItem",                                                                // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                                      // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AggregationConnectionToolToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AggregationConnectionToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Microsoft.Practices.ServiceFactory.DataContracts.Data Contract ToolsToolboxTab",                                                                       // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Data Contract ToolsToolboxTab", resourceCulture),                                                                            // Localized display name for the toolbox tab.
                    "Aggregation",                                                                                                                                          // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AggregationConnectionToolToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                                   // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                        // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(AggregationConnectionToolFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #26
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;
            if (string.IsNullOrEmpty(itemId))
            {
                return null;
            }
            if (store == null)
            {
                return null;
            }
            global::System.Resources.ResourceManager resourceManager = global::Com.Lotos.BinbinDomainLanguage.BinbinDomainLanguageDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch(itemId)
            {
                case "Com.Lotos.BinbinDomainLanguage.AggregateRootToolboxItem":
                    // Add AggregateRoot shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Com.Lotos.BinbinDomainLanguage.AggregateRootToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        1, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("AggregateRootToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AggregateRootToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Com.Lotos.BinbinDomainLanguage.BinbinDomainLanguageToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("BinbinDomainLanguageToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "CreateExampleClassF1Keyword", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("AggregateRootToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Com.Lotos.BinbinDomainLanguage.AggregateRootEntities.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Com.Lotos.BinbinDomainLanguage.EntityRelationshipToolboxItem":

                    // Add EntityRelationship connector tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Com.Lotos.BinbinDomainLanguage.EntityRelationshipToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        2, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("EntityRelationshipToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntityRelationshipToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Com.Lotos.BinbinDomainLanguage.BinbinDomainLanguageToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("BinbinDomainLanguageToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "ConnectExampleRelationF1Keyword", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("EntityRelationshipToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        null, // Connector toolbox items do not have an underlying data object.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                            new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                            new global::System.ComponentModel.ToolboxItemFilterAttribute(EntityRelationshipFilterString)
                        });
                    break;
                case "Com.Lotos.BinbinDomainLanguage.EntityToolboxItem":
                    // Add Entity shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Com.Lotos.BinbinDomainLanguage.EntityToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        3, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("EntityToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntityToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Com.Lotos.BinbinDomainLanguage.BinbinDomainLanguageToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("BinbinDomainLanguageToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "Entity", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("EntityToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Com.Lotos.BinbinDomainLanguage.EntityModel.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Com.Lotos.BinbinDomainLanguage.ValueObjectToolboxItem":
                    // Add ValueObject shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Com.Lotos.BinbinDomainLanguage.ValueObjectToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        4, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ValueObjectToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ValueObjectToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Com.Lotos.BinbinDomainLanguage.BinbinDomainLanguageToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("BinbinDomainLanguageToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "ValueObject", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ValueObjectToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Com.Lotos.BinbinDomainLanguage.ValueObjectModel.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Com.Lotos.BinbinDomainLanguage.FactoryToolboxItem":
                    // Add Factory shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Com.Lotos.BinbinDomainLanguage.FactoryToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        5, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("FactoryToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FactoryToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Com.Lotos.BinbinDomainLanguage.BinbinDomainLanguageToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("BinbinDomainLanguageToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "Factory", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("FactoryToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Com.Lotos.BinbinDomainLanguage.FactoryModel.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Com.Lotos.BinbinDomainLanguage.DomainServiceToolboxItem":
                    // Add DomainService shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Com.Lotos.BinbinDomainLanguage.DomainServiceToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        6, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("DomainServiceToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("DomainServiceToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Com.Lotos.BinbinDomainLanguage.BinbinDomainLanguageToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("BinbinDomainLanguageToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "DomainService", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("DomainServiceToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Com.Lotos.BinbinDomainLanguage.DomainServiceModel.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Com.Lotos.BinbinDomainLanguage.DomainEventToolboxItem":
                    // Add DomainEvent shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Com.Lotos.BinbinDomainLanguage.DomainEventToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        7, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("DomainEventToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("DomainEventToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Com.Lotos.BinbinDomainLanguage.BinbinDomainLanguageToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("BinbinDomainLanguageToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "DomainEvent", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("DomainEventToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Com.Lotos.BinbinDomainLanguage.DomainEventModel.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Com.Lotos.BinbinDomainLanguage.EntiyValueObjectRelationShipToolboxItem":

                    // Add EntiyValueObjectRelationShip connector tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Com.Lotos.BinbinDomainLanguage.EntiyValueObjectRelationShipToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        8, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("EntiyValueObjectRelationShipToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntiyValueObjectRelationShipToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Com.Lotos.BinbinDomainLanguage.BinbinDomainLanguageToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("BinbinDomainLanguageToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "EntiyValueObjectRelationShip", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("EntiyValueObjectRelationShipToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        null, // Connector toolbox items do not have an underlying data object.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                            new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                            new global::System.ComponentModel.ToolboxItemFilterAttribute(EntiyValueObjectRelationShipFilterString)
                        });
                    break;
                default:
                    break;
            } // end switch

            return result;
        }
Exemple #27
0
        /// <summary>
        /// Override to provide the right mouse action when trying
        /// to create links on the diagram
        /// </summary>
        /// <param name="pointArgs"></param>
        public override void OnViewMouseEnter(DslDiagrams::DiagramPointEventArgs pointArgs)
        {
            if (pointArgs == null)
            {
                throw new global::System.ArgumentNullException("pointArgs");
            }

            DslDiagrams::DiagramView activeView = this.ActiveDiagramView;

            if (activeView != null)
            {
                bool stickyMode = false;
                DslDesign::ModelingToolboxItem selectedToolboxItem = activeView.Toolbox.GetSelectedToolboxItem() as DslDesign::ModelingToolboxItem;
                if (selectedToolboxItem != null && selectedToolboxItem.Id == this.stickyToolboxItemId)
                {
                    stickyMode = true;
                }
                else
                {
                    stickyMode = false;
                    this.stickyToolboxItemId = null;
                }

                DslDiagrams::MouseAction action = null;
                if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.HostApplicationFilterString))
                {
                    if (this.hostApplicationCreateAction == null)
                    {
                        this.hostApplicationCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.HostApplicationCreateAction(this);
                        this.hostApplicationCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.hostApplicationCreateAction.StickyMode = stickyMode;
                    action = this.hostApplicationCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.ServiceFilterString))
                {
                    if (this.serviceCreateAction == null)
                    {
                        this.serviceCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ServiceCreateAction(this);
                        this.serviceCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.serviceCreateAction.StickyMode = stickyMode;
                    action = this.serviceCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.EndpointFilterString))
                {
                    if (this.endpointCreateAction == null)
                    {
                        this.endpointCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.EndpointCreateAction(this);
                        this.endpointCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.endpointCreateAction.StickyMode = stickyMode;
                    action = this.endpointCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.ClientApplicationFilterString))
                {
                    if (this.clientApplicationCreateAction == null)
                    {
                        this.clientApplicationCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ClientApplicationCreateAction(this);
                        this.clientApplicationCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.clientApplicationCreateAction.StickyMode = stickyMode;
                    action = this.clientApplicationCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.ProxyFilterString))
                {
                    if (this.proxyCreateAction == null)
                    {
                        this.proxyCreateAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyCreateAction(this);
                        this.proxyCreateAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.proxyCreateAction.StickyMode = stickyMode;
                    action = this.proxyCreateAction;
                }
                else if (SelectedToolboxItemSupportsFilterString(activeView, global::Microsoft.Practices.ServiceFactory.HostDesigner.HostDesignerToolboxHelper.ProxyEndpointConnectionToolFilterString))
                {
                    if (this.proxyEndpointConnectionToolConnectAction == null)
                    {
                        this.proxyEndpointConnectionToolConnectAction = new global::Microsoft.Practices.ServiceFactory.HostDesigner.ProxyEndpointConnectionToolConnectAction(this);
                        this.proxyEndpointConnectionToolConnectAction.MouseActionDeactivated += new DslDiagrams::MouseAction.MouseActionDeactivatedEventHandler(OnToolboxActionDeactivated);
                    }
                    this.proxyEndpointConnectionToolConnectAction.StickyMode = stickyMode;
                    action = this.proxyEndpointConnectionToolConnectAction;
                }
                else
                {
                    action = null;
                }

                if (pointArgs.DiagramClientView.ActiveMouseAction != action)
                {
                    try
                    {
                        this.changingMouseAction = true;
                        pointArgs.DiagramClientView.ActiveMouseAction = action;
                    }
                    finally
                    {
                        this.changingMouseAction = false;
                    }
                }
            }
        }
		/// <summary>
		/// Returns instance of ModelingToolboxItem based on specified name.
		/// This method must be called from within a Transaction. Failure to do so will result in an exception
		/// </summary>
		/// <param name="itemId">unique name of desired ToolboxItem</param>
		/// <param name="store">Store to perform the operation against</param>
		/// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
		public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
		{
			DslDesign::ModelingToolboxItem result = null;
			if (string.IsNullOrEmpty(itemId))
			{
				return null;
			}
			if (store == null)
			{
				return null;
			}
			global::System.Resources.ResourceManager resourceManager = global::NuPattern.Runtime.Schema.PatternModelDomainModel.SingletonResourceManager;
			global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
			switch(itemId)
			{
				case "NuPattern.Runtime.Schema.CollectionToolboxItem":
					// Add Collection shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"NuPattern.Runtime.Schema.CollectionToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CollectionToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CollectionToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"NuPattern.Runtime.Schema.Pattern Model DesignerToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Pattern Model DesignerToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Collection", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CollectionToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::NuPattern.Runtime.Schema.CollectionSchema.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(CollectionFilterString)
						});
					break;
				case "NuPattern.Runtime.Schema.ElementToolboxItem":
					// Add Element shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"NuPattern.Runtime.Schema.ElementToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ElementToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ElementToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"NuPattern.Runtime.Schema.Pattern Model DesignerToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Pattern Model DesignerToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Element", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ElementToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::NuPattern.Runtime.Schema.ElementSchema.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ElementFilterString)
						});
					break;
				case "NuPattern.Runtime.Schema.ExtensionPointToolboxItem":
					// Add ExtensionPoint shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"NuPattern.Runtime.Schema.ExtensionPointToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						3, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ExtensionPointToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ExtensionPointToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"NuPattern.Runtime.Schema.Pattern Model DesignerToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Pattern Model DesignerToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"ExtensionPoint", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ExtensionPointToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::NuPattern.Runtime.Schema.ExtensionPointSchema.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ExtensionPointFilterString)
						});
					break;
				default:
					break;
			} // end switch
			
			return result;
		}
Exemple #29
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::IPS.UMLSPF.UMLSPFDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "IPS.UMLSPF.ConectarClasesToolboxItem":

                // Add ConectarClases connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.ConectarClasesToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ConectarClasesToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ConectarClasesToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                              // Localized display name for the toolbox tab.
                    "ConectarClases",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ConectarClasesToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                        // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ConectarClasesFilterString)
                });
                break;

            case "IPS.UMLSPF.IconHerenciaToolboxItem":
                // Add IconHerencia shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.IconHerenciaToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                         // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("IconHerenciaToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("IconHerenciaToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                            // Localized display name for the toolbox tab.
                    "Herencia",                                                                                                                                // F1 help keyword for the toolbox item.
                    resourceManager.GetString("IconHerenciaToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.Herencia.DomainClassId),                                                              // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                           // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.ConectarPadreToolboxItem":

                // Add ConectarPadre connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.ConectarPadreToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ConectarPadreToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ConectarPadreToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "ConectarPadre",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ConectarPadreToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                       // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ConectarPadreFilterString)
                });
                break;

            case "IPS.UMLSPF.ConectarHijoToolboxItem":

                // Add ConectarHijo connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.ConectarHijoToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                         // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ConectarHijoToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ConectarHijoToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                            // Localized display name for the toolbox tab.
                    "ConectarHijo",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ConectarHijoToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                      // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                           // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ConectarHijoFilterString)
                });
                break;

            case "IPS.UMLSPF.AgregarMetodoToolboxItem":
                // Add AgregarMetodo shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.AgregarMetodoToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AgregarMetodoToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AgregarMetodoToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "AgregarMetodo",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AgregarMetodoToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.Operaciones.DomainClassId),                                                            // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.ShapeClaseToolboxItem":
                // Add ShapeClase shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.ShapeClaseToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                       // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ShapeClaseToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ShapeClaseToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                           // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                          // Localized display name for the toolbox tab.
                    "AgregarClase",                                                                                                                          // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ShapeClaseToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.Clase.DomainClassId),                                                               // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                         // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.ShapeParametroToolboxItem":
                // Add ShapeParametro shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.ShapeParametroToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ShapeParametroToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ShapeParametroToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                              // Localized display name for the toolbox tab.
                    "AgregarParametro",                                                                                                                          // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ShapeParametroToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.Parametros.DomainClassId),                                                              // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.ShapeAtributoIDToolboxItem":
                // Add ShapeAtributoID shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.ShapeAtributoIDToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    8,                                                                                                                                            // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ShapeAtributoIDToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ShapeAtributoIDToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                                // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                               // Localized display name for the toolbox tab.
                    "AgregarAtributoID",                                                                                                                          // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ShapeAtributoIDToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.AtributoIdentificador.DomainClassId),                                                    // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.ShapeAtributoToolboxItem":
                // Add ShapeAtributo shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.ShapeAtributoToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    9,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ShapeAtributoToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ShapeAtributoToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                             // Localized display name for the toolbox tab.
                    "AgregarAtributo",                                                                                                                          // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ShapeAtributoToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.Atributo.DomainClassId),                                                               // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.ShapeClaseEToolboxItem":
                // Add ShapeClaseE shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.ShapeClaseEToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    10,                                                                                                                                       // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ShapeClaseEToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ShapeClaseEToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                            // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                           // Localized display name for the toolbox tab.
                    "AgregarClase",                                                                                                                           // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ShapeClaseEToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.Clase.DomainClassId),                                                                // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.AgregarClaseEnriquecidaToolboxItem":
                // Add AgregarClaseEnriquecida shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.AgregarClaseEnriquecidaToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    11,                                                                                                                                                   // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AgregarClaseEnriquecidaToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AgregarClaseEnriquecidaToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                                        // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                                       // Localized display name for the toolbox tab.
                    "AgregarClaseEnriquecida",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AgregarClaseEnriquecidaToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.ClaseEnriquecida.DomainClassId),                                                                 // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.AgregarEstiloClaseToolboxItem":
                // Add AgregarEstiloClase shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.AgregarEstiloClaseToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    12,                                                                                                                                              // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AgregarEstiloClaseToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AgregarEstiloClaseToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                                   // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                                  // Localized display name for the toolbox tab.
                    "AgregarEstiloClase",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AgregarEstiloClaseToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.EstilosClase.DomainClassId),                                                                // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                 // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.AgregarEstiloMeetodosToolboxItem":
                // Add AgregarEstiloMeetodos shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.AgregarEstiloMeetodosToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    13,                                                                                                                                                 // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AgregarEstiloMeetodosToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AgregarEstiloMeetodosToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                                      // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                                     // Localized display name for the toolbox tab.
                    "AgregarEstiloMeetodos",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AgregarEstiloMeetodosToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.EstiloMetodos.DomainClassId),                                                                  // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                    // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.ShapeParametrozToolboxItem":
                // Add ShapeParametroz shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.ShapeParametrozToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    14,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ShapeParametrozToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ShapeParametrozToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                                // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                               // Localized display name for the toolbox tab.
                    "ShapeParametroz",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ShapeParametrozToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.Parametros.DomainClassId),                                                               // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                              // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "IPS.UMLSPF.AgregarEstiloAtributoToolboxItem":
                // Add AgregarEstiloAtributo shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "IPS.UMLSPF.AgregarEstiloAtributoToolboxItem",                                                                                                      // Unique identifier (non-localized) for the toolbox item.
                    15,                                                                                                                                                 // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AgregarEstiloAtributoToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AgregarEstiloAtributoToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "IPS.UMLSPF.UMLSPFToolboxTab",                                                                                                                      // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("UMLSPFToolboxTab", resourceCulture),                                                                                     // Localized display name for the toolbox tab.
                    "AgregarEstiloAtributo",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AgregarEstiloAtributoToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::IPS.UMLSPF.EstiloAtributos.DomainClassId),                                                                // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                                    // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #30
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::UPM_IPS.RAARMAPMCWeberMDD.RAARMAPMCWeberMDDDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "UPM_IPS.RAARMAPMCWeberMDD.iconoEntidadToolboxItem":
                // Add iconoEntidad shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.RAARMAPMCWeberMDD.iconoEntidadToolboxItem",                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                         // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("iconoEntidadToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("iconoEntidadToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.RAARMAPMCWeberMDD.Modelo Entidad-RelacionToolboxTab",                                                                             // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Modelo Entidad-RelacionToolboxTab", resourceCulture),                                                           // Localized display name for the toolbox tab.
                    "iconoEntidad",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("iconoEntidadToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.RAARMAPMCWeberMDD.Entidad.DomainClassId),                                                // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                           // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.RAARMAPMCWeberMDD.iconoAtribEntToolboxItem":
                // Add iconoAtribEnt shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.RAARMAPMCWeberMDD.iconoAtribEntToolboxItem",                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("iconoAtribEntToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("iconoAtribEntToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.RAARMAPMCWeberMDD.Modelo Entidad-RelacionToolboxTab",                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Modelo Entidad-RelacionToolboxTab", resourceCulture),                                                            // Localized display name for the toolbox tab.
                    "iconoAtribEnt",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("iconoAtribEntToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.RAARMAPMCWeberMDD.AtributoEnt.DomainClassId),                                             // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.RAARMAPMCWeberMDD.iconoClavePrimToolboxItem":
                // Add iconoClavePrim shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.RAARMAPMCWeberMDD.iconoClavePrimToolboxItem",                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                           // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("iconoClavePrimToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("iconoClavePrimToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.RAARMAPMCWeberMDD.Modelo Entidad-RelacionToolboxTab",                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Modelo Entidad-RelacionToolboxTab", resourceCulture),                                                             // Localized display name for the toolbox tab.
                    "iconoClavePrim",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("iconoClavePrimToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.RAARMAPMCWeberMDD.ClavePrimaria.DomainClassId),                                            // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                             // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.RAARMAPMCWeberMDD.iconoRelacionToolboxItem":
                // Add iconoRelacion shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.RAARMAPMCWeberMDD.iconoRelacionToolboxItem",                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("iconoRelacionToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("iconoRelacionToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.RAARMAPMCWeberMDD.Modelo Entidad-RelacionToolboxTab",                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Modelo Entidad-RelacionToolboxTab", resourceCulture),                                                            // Localized display name for the toolbox tab.
                    "iconoRelacion",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("iconoRelacionToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.RAARMAPMCWeberMDD.Relacion.DomainClassId),                                                // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.RAARMAPMCWeberMDD.iconoAtribRelToolboxItem":
                // Add iconoAtribRel shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.RAARMAPMCWeberMDD.iconoAtribRelToolboxItem",                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                          // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("iconoAtribRelToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("iconoAtribRelToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.RAARMAPMCWeberMDD.Modelo Entidad-RelacionToolboxTab",                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Modelo Entidad-RelacionToolboxTab", resourceCulture),                                                            // Localized display name for the toolbox tab.
                    "iconoAtribRel",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("iconoAtribRelToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::UPM_IPS.RAARMAPMCWeberMDD.AtributoRel.DomainClassId),                                             // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                            // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "UPM_IPS.RAARMAPMCWeberMDD.RelAtribToolboxItem":

                // Add RelAtrib connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.RAARMAPMCWeberMDD.RelAtribToolboxItem",                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("RelAtribToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RelAtribToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.RAARMAPMCWeberMDD.Modelo Entidad-RelacionToolboxTab",                                                                         // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Modelo Entidad-RelacionToolboxTab", resourceCulture),                                                       // Localized display name for the toolbox tab.
                    "RelAtrib",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("RelAtribToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                  // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(RelAtribFilterString)
                });
                break;

            case "UPM_IPS.RAARMAPMCWeberMDD.RelIzqToolboxItem":

                // Add RelIzq connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.RAARMAPMCWeberMDD.RelIzqToolboxItem",                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                   // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("RelIzqToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RelIzqToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.RAARMAPMCWeberMDD.Modelo Entidad-RelacionToolboxTab",                                                                       // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Modelo Entidad-RelacionToolboxTab", resourceCulture),                                                     // Localized display name for the toolbox tab.
                    "RelIzq",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("RelIzqToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                     // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(RelIzqFilterString)
                });
                break;

            case "UPM_IPS.RAARMAPMCWeberMDD.RelDerToolboxItem":

                // Add RelDer connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "UPM_IPS.RAARMAPMCWeberMDD.RelDerToolboxItem",                                                                                       // Unique identifier (non-localized) for the toolbox item.
                    8,                                                                                                                                   // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("RelDerToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RelDerToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "UPM_IPS.RAARMAPMCWeberMDD.Modelo Entidad-RelacionToolboxTab",                                                                       // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Modelo Entidad-RelacionToolboxTab", resourceCulture),                                                     // Localized display name for the toolbox tab.
                    "RelDer",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("RelDerToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                     // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(RelDerFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #31
0
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;

            if (string.IsNullOrEmpty(itemId))
            {
                return(null);
            }
            if (store == null)
            {
                return(null);
            }
            global::System.Resources.ResourceManager resourceManager = global::Ufba.vShome.vShomeDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch (itemId)
            {
            case "Ufba.vShome.DeviceToolboxItem":
                // Add Device shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ufba.vShome.DeviceToolboxItem",                                                                                                     // Unique identifier (non-localized) for the toolbox item.
                    1,                                                                                                                                   // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("DeviceToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("DeviceToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ufba.vShome.Class DiagramsToolboxTab",                                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Class DiagramsToolboxTab", resourceCulture),                                                              // Localized display name for the toolbox tab.
                    "Device",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("DeviceToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ufba.vShome.Device.DomainClassId),                                                         // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                     // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ufba.vShome.FeatureToolboxItem":
                // Add Feature shape tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ufba.vShome.FeatureToolboxItem",                                                                                                     // Unique identifier (non-localized) for the toolbox item.
                    2,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("FeatureToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FeatureToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ufba.vShome.Class DiagramsToolboxTab",                                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Class DiagramsToolboxTab", resourceCulture),                                                               // Localized display name for the toolbox tab.
                    "Feature",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("FeatureToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    CreateElementToolPrototype(store, global::Ufba.vShome.Feature.DomainClassId),                                                         // ElementGroupPrototype (data object) representing model element on the toolbox.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                });
                break;

            case "Ufba.vShome.FatherToolboxItem":

                // Add Father connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ufba.vShome.FatherToolboxItem",                                                                                                     // Unique identifier (non-localized) for the toolbox item.
                    3,                                                                                                                                   // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("FatherToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FatherToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ufba.vShome.Class DiagramsToolboxTab",                                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Class DiagramsToolboxTab", resourceCulture),                                                              // Localized display name for the toolbox tab.
                    "Father",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("FatherToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                     // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(FatherFilterString)
                });
                break;

            case "Ufba.vShome.ActuatorToolboxItem":

                // Add Actuator connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ufba.vShome.ActuatorToolboxItem",                                                                                                     // Unique identifier (non-localized) for the toolbox item.
                    4,                                                                                                                                     // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("ActuatorToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ActuatorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ufba.vShome.Class DiagramsToolboxTab",                                                                                                // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Class DiagramsToolboxTab", resourceCulture),                                                                // Localized display name for the toolbox tab.
                    "Actuator",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("ActuatorToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                  // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                       // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ActuatorFilterString)
                });
                break;

            case "Ufba.vShome.SensorToolboxItem":

                // Add Sensor connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ufba.vShome.SensorToolboxItem",                                                                                                     // Unique identifier (non-localized) for the toolbox item.
                    5,                                                                                                                                   // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("SensorToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SensorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ufba.vShome.Class DiagramsToolboxTab",                                                                                              // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Class DiagramsToolboxTab", resourceCulture),                                                              // Localized display name for the toolbox tab.
                    "Sensor",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("SensorToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                     // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(SensorFilterString)
                });
                break;

            case "Ufba.vShome.AlternativeToolboxItem":

                // Add Alternative connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ufba.vShome.AlternativeToolboxItem",                                                                                                     // Unique identifier (non-localized) for the toolbox item.
                    6,                                                                                                                                        // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("AlternativeToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AlternativeToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ufba.vShome.Class DiagramsToolboxTab",                                                                                                   // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Class DiagramsToolboxTab", resourceCulture),                                                                   // Localized display name for the toolbox tab.
                    "Alternative",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("AlternativeToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                     // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                          // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(AlternativeFilterString)
                });
                break;

            case "Ufba.vShome.BrotherToolboxItem":

                // Add Brother connector tool.
                result = new DslDesign::ModelingToolboxItem(
                    "Ufba.vShome.BrotherToolboxItem",                                                                                                     // Unique identifier (non-localized) for the toolbox item.
                    7,                                                                                                                                    // Position relative to other items in the same toolbox tab.
                    resourceManager.GetString("BrotherToolboxItem", resourceCulture),                                                                     // Localized display name for the item.
                    (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("BrotherToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                    "Ufba.vShome.Class DiagramsToolboxTab",                                                                                               // Unique identifier (non-localized) for the toolbox item tab.
                    resourceManager.GetString("Class DiagramsToolboxTab", resourceCulture),                                                               // Localized display name for the toolbox tab.
                    "Brother",                                                                                                                            // F1 help keyword for the toolbox item.
                    resourceManager.GetString("BrotherToolboxTooltip", resourceCulture),                                                                  // Localized tooltip text for the toolbox item.
                    null,                                                                                                                                 // Connector toolbox items do not have an underlying data object.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute[] {                                                                      // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
                    new global::System.ComponentModel.ToolboxItemFilterAttribute(BrotherFilterString)
                });
                break;

            default:
                break;
            }             // end switch

            return(result);
        }
Exemple #32
0
		/// <summary>
		/// Returns instance of ModelingToolboxItem based on specified name.
		/// This method must be called from within a Transaction. Failure to do so will result in an exception
		/// </summary>
		/// <param name="itemId">unique name of desired ToolboxItem</param>
		/// <param name="store">Store to perform the operation against</param>
		/// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
		public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
		{
			DslDesign::ModelingToolboxItem result = null;
			if (string.IsNullOrEmpty(itemId))
			{
				return null;
			}
			if (store == null)
			{
				return null;
			}
			global::System.Resources.ResourceManager resourceManager = global::Architect.CloudCoreArchitectSubProcessDomainModel.SingletonResourceManager;
			global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
			switch(itemId)
			{
				case "Architect.SQLEventToolboxItem":
					// Add SQLEvent shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.SQLEventToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("SQLEventToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SQLEventToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Database ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Database ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"SQLEvent", // F1 help keyword for the toolbox item.
						resourceManager.GetString("SQLEventToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.DatabaseEvent.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(SQLEventFilterString)
						});
					break;
				case "Architect.SQLCostingToolboxItem":
					// Add SQLCosting shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.SQLCostingToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("SQLCostingToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SQLCostingToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Database ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Database ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"SQLCosting", // F1 help keyword for the toolbox item.
						resourceManager.GetString("SQLCostingToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.DatabaseCosting.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(SQLCostingFilterString)
						});
					break;
				case "Architect.SQLBatchStartToolboxItem":
					// Add SQLBatchStart shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.SQLBatchStartToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						3, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("SQLBatchStartToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SQLBatchStartToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Database ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Database ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"SQLBatchStart", // F1 help keyword for the toolbox item.
						resourceManager.GetString("SQLBatchStartToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.DatabaseBatchStart.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(SQLBatchStartFilterString)
						});
					break;
				case "Architect.SQLParkedToolboxItem":
					// Add SQLParked shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.SQLParkedToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						4, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("SQLParkedToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SQLParkedToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Database ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Database ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"SQLParked", // F1 help keyword for the toolbox item.
						resourceManager.GetString("SQLParkedToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.DatabasePark.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(SQLParkedFilterString)
						});
					break;
				case "Architect.SQLBatchWaitToolboxItem":
					// Add SQLBatchWait shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.SQLBatchWaitToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						5, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("SQLBatchWaitToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SQLBatchWaitToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Database ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Database ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"SQLBatchWait", // F1 help keyword for the toolbox item.
						resourceManager.GetString("SQLBatchWaitToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.DatabaseBatchWait.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(SQLBatchWaitFilterString)
						});
					break;
				case "Architect.ClickaltellToolboxItem":
					// Add Clickaltell shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.ClickaltellToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("ClickaltellToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ClickaltellToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Cloud ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Cloud ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Clickaltell", // F1 help keyword for the toolbox item.
						resourceManager.GetString("ClickaltellToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.Clickatell.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ClickaltellFilterString)
						});
					break;
				case "Architect.PostageAppToolboxItem":
					// Add PostageApp shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.PostageAppToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("PostageAppToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("PostageAppToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Cloud ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Cloud ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"PostageApp", // F1 help keyword for the toolbox item.
						resourceManager.GetString("PostageAppToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.PostageApp.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(PostageAppFilterString)
						});
					break;
				case "Architect.CSharpEventToolboxItem":
					// Add CSharpEvent shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.CSharpEventToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						3, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CSharpEventToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CSharpEventToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Cloud ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Cloud ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"CSharpEvent", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CSharpEventToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.CloudCustom.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(CSharpEventFilterString)
						});
					break;
				case "Architect.CSharpCostingToolboxItem":
					// Add CSharpCosting shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.CSharpCostingToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						4, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CSharpCostingToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CSharpCostingToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Cloud ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Cloud ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Costing", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CSharpCostingToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.CloudCosting.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(CSharpCostingFilterString)
						});
					break;
				case "Architect.CSharpBatchStartToolboxItem":
					// Add CSharpBatchStart shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.CSharpBatchStartToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						5, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CSharpBatchStartToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CSharpBatchStartToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Cloud ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Cloud ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"CSharpBatchStart", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CSharpBatchStartToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.CloudBatchStart.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(CSharpBatchStartFilterString)
						});
					break;
				case "Architect.CSharpParkedToolboxItem":
					// Add CSharpParked shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.CSharpParkedToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						6, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CSharpParkedToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CSharpParkedToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Cloud ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Cloud ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"CSharpParked", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CSharpParkedToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.CloudPark.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(CSharpParkedFilterString)
						});
					break;
				case "Architect.CorticonToolboxItem":
					// Add Corticon shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.CorticonToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						7, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CorticonToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CorticonToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Cloud ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Cloud ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Corticon", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CorticonToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.Corticon.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(CorticonFilterString)
						});
					break;
				case "Architect.BatchWaitToolboxItem":
					// Add BatchWait shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.BatchWaitToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						8, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("BatchWaitToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("BatchWaitToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Cloud ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Cloud ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"BatchWait", // F1 help keyword for the toolbox item.
						resourceManager.GetString("BatchWaitToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.CloudBatchWait.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(BatchWaitFilterString)
						});
					break;
				case "Architect.EmailToolboxItem":
					// Add Email shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.EmailToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						9, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("EmailToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EmailToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Cloud ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Cloud ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Email", // F1 help keyword for the toolbox item.
						resourceManager.GetString("EmailToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.Email.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(EmailFilterString)
						});
					break;
				case "Architect.FlowToolboxItem":

					// Add Flow connector tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.FlowToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("FlowToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FlowToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.				
						"Architect.Process ControlToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Process ControlToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Flow", // F1 help keyword for the toolbox item.
						resourceManager.GetString("FlowToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						null, // Connector toolbox items do not have an underlying data object.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(FlowFilterString)
						});
					break;
				case "Architect.StopToolboxItem":
					// Add Stop shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.StopToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("StopToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("StopToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Process ControlToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Process ControlToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"Stop", // F1 help keyword for the toolbox item.
						resourceManager.GetString("StopToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.Stop.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(StopFilterString)
						});
					break;
				case "Architect.SubProcessConnectorToolboxItem":
					// Add SubProcessConnector shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.SubProcessConnectorToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						3, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("SubProcessConnectorToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SubProcessConnectorToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Process ControlToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Process ControlToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"SubProcess", // F1 help keyword for the toolbox item.
						resourceManager.GetString("SubProcessConnectorToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.ToProcessConnector.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(SubProcessConnectorFilterString)
						});
					break;
				case "Architect.WorkflowRuleToolboxItem":
					// Add WorkflowRule shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.WorkflowRuleToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						4, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("WorkflowRuleToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("WorkflowRuleToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.Process ControlToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Process ControlToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"WorkflowRule", // F1 help keyword for the toolbox item.
						resourceManager.GetString("WorkflowRuleToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.WorkflowRule.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(WorkflowRuleFilterString)
						});
					break;
				case "Architect.CloudcoreUserActivityToolboxItem":
					// Add CloudcoreUserActivity shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.CloudcoreUserActivityToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CloudcoreUserActivityToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CloudcoreUserActivityToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.User ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("User ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"CloudcoreUserActivity", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CloudcoreUserActivityToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.CloudcoreUser.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(CloudcoreUserActivityFilterString)
						});
					break;
				case "Architect.CustomUserActivityToolboxItem":
					// Add CustomUserActivity shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.CustomUserActivityToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("CustomUserActivityToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CustomUserActivityToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.User ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("User ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"CustomUserActivity", // F1 help keyword for the toolbox item.
						resourceManager.GetString("CustomUserActivityToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.CustomUser.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(CustomUserActivityFilterString)
						});
					break;
				case "Architect.MobileUserActivityToolboxItem":
					// Add MobileUserActivity shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.MobileUserActivityToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						3, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("MobileUserActivityToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("MobileUserActivityToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.User ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("User ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"MobileUserActivity", // F1 help keyword for the toolbox item.
						resourceManager.GetString("MobileUserActivityToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.MobileActivity.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(MobileUserActivityFilterString)
						});
					break;
				case "Architect.HybridUserActivityToolboxItem":
					// Add HybridUserActivity shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Architect.HybridUserActivityToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						4, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("HybridUserActivityToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("HybridUserActivityToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Architect.User ActivitiesToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("User ActivitiesToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						"HybridUserActivity", // F1 help keyword for the toolbox item.
						resourceManager.GetString("HybridUserActivityToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Architect.HybridActivity.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require),
						new global::System.ComponentModel.ToolboxItemFilterAttribute(HybridUserActivityFilterString)
						});
					break;
				default:
					break;
			} // end switch
			
			return result;
		}
		/// <summary>
		/// Returns instance of ModelingToolboxItem based on specified name.
		/// This method must be called from within a Transaction. Failure to do so will result in an exception
		/// </summary>
		/// <param name="itemId">unique name of desired ToolboxItem</param>
		/// <param name="store">Store to perform the operation against</param>
		/// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
		public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
		{
			DslDesign::ModelingToolboxItem result = null;
			if (string.IsNullOrEmpty(itemId))
			{
				return null;
			}
			if (store == null)
			{
				return null;
			}
			global::System.Resources.ResourceManager resourceManager = global::Microsoft.Data.Entity.Design.EntityDesigner.MicrosoftDataEntityDesignDomainModel.SingletonResourceManager;
			global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
			switch(itemId)
			{
				case "Microsoft.Data.Entity.Design.Package.EntityToolToolboxItem":
					// Add EntityTool shape tool.
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Data.Entity.Design.Package.EntityToolToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						1, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("EntityToolToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntityToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
						"Microsoft.Data.Entity.Design.Package.Entity FrameworkToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Entity FrameworkToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
						string.Empty, // no F1 help keyword for the toolbox item.
						resourceManager.GetString("EntityToolToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						CreateElementToolPrototype(store, global::Microsoft.Data.Entity.Design.EntityDesigner.ViewModel.EntityType.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
						new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require) 
						});
					break;
				case "Microsoft.Data.Entity.Design.Package.AssociationToolToolboxItem":

					// Add AssociationTool connector tool.
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Data.Entity.Design.Package.AssociationToolToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						2, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("AssociationToolToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("AssociationToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.				
						"Microsoft.Data.Entity.Design.Package.Entity FrameworkToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Entity FrameworkToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        string.Empty, // no F1 help keyword for the toolbox item.
                        resourceManager.GetString("AssociationToolToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						null, // Connector toolbox items do not have an underlying data object.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(AssociationToolFilterString)
						});
					break;
				case "Microsoft.Data.Entity.Design.Package.InheritanceToolToolboxItem":

					// Add InheritanceTool connector tool.
					result = new DslDesign::ModelingToolboxItem(
						"Microsoft.Data.Entity.Design.Package.InheritanceToolToolboxItem", // Unique identifier (non-localized) for the toolbox item.
						3, // Position relative to other items in the same toolbox tab.
						resourceManager.GetString("InheritanceToolToolboxItem", resourceCulture), // Localized display name for the item.
						(global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("InheritanceToolToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.				
						"Microsoft.Data.Entity.Design.Package.Entity FrameworkToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
						resourceManager.GetString("Entity FrameworkToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        string.Empty, // no F1 help keyword for the toolbox item.
                        resourceManager.GetString("InheritanceToolToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
						null, // Connector toolbox items do not have an underlying data object.
						new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
							new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require), 
							new global::System.ComponentModel.ToolboxItemFilterAttribute(InheritanceToolFilterString)
						});
					break;
				default:
					break;
			} // end switch
			
			return result;
		}
        /// <summary>
        /// Returns instance of ModelingToolboxItem based on specified name.
        /// This method must be called from within a Transaction. Failure to do so will result in an exception
        /// </summary>
        /// <param name="itemId">unique name of desired ToolboxItem</param>
        /// <param name="store">Store to perform the operation against</param>
        /// <returns>An instance of ModelingToolboxItem if the itemId can be resolved, null otherwise</returns>
        public virtual DslDesign::ModelingToolboxItem GetToolboxItem(string itemId, DslModeling::Store store)
        {
            DslDesign::ModelingToolboxItem result = null;
            if (string.IsNullOrEmpty(itemId))
            {
                return null;
            }
            if (store == null)
            {
                return null;
            }
            global::System.Resources.ResourceManager resourceManager = global::Company.DSLBootstrap.DSLBootstrapDomainModel.SingletonResourceManager;
            global::System.Globalization.CultureInfo resourceCulture = global::System.Globalization.CultureInfo.CurrentUICulture;
            switch(itemId)
            {
                case "Company.DSLBootstrap.ButtonToolboxItem":
                    // Add Button shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.ButtonToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        1, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ButtonToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ButtonToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "Button", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ButtonToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.EditButton.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.TableFormalToolboxItem":
                    // Add TableFormal shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.TableFormalToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        2, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("TableFormalToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TableFormalToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "TableFormal", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("TableFormalToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.TableFormal.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.InnerFormalToolboxItem":
                    // Add InnerFormal shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.InnerFormalToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        3, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("InnerFormalToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("InnerFormalToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "InnerFormal", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("InnerFormalToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.InnerFormal.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.EntradaToolboxItem":
                    // Add Entrada shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.EntradaToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        4, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("EntradaToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntradaToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "Entrada", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("EntradaToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.Entrada.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.EtiquetaToolboxItem":
                    // Add Etiqueta shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.EtiquetaToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        5, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("EtiquetaToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EtiquetaToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "Etiqueta", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("EtiquetaToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.Etiquetas.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.BarradeprogresooToolboxItem":
                    // Add Barradeprogresoo shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.BarradeprogresooToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        6, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("BarradeprogresooToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("BarradeprogresooToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "Barradeprogresoo", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("BarradeprogresooToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.Barradeprogreso.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.FormularioFormalToolboxItem":
                    // Add FormularioFormal shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.FormularioFormalToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        7, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("FormularioFormalToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FormularioFormalToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "FormularioFormal", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("FormularioFormalToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.FormularioFormal.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.FormularioBonitoToolboxItem":
                    // Add FormularioBonito shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.FormularioBonitoToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        8, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("FormularioBonitoToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("FormularioBonitoToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "FormularioBonito", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("FormularioBonitoToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.FormularioBonito.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.CheckBoxToolboxItem":
                    // Add CheckBox shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.CheckBoxToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        9, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("CheckBoxToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("CheckBoxToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "CheckBox", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("CheckBoxToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.CheckBox.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.ItemToolboxItem":
                    // Add Item shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.ItemToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        10, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ItemToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ItemToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "Item", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ItemToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.EditItem.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.ColumnaToolboxItem":
                    // Add Columna shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.ColumnaToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        11, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ColumnaToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ColumnaToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "Columna", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ColumnaToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.Columnas.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.RenglonToolboxItem":
                    // Add Renglon shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.RenglonToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        12, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("RenglonToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RenglonToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "Renglon", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("RenglonToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.Renglones.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.InnerBonitoToolboxItem":
                    // Add InnerBonito shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.InnerBonitoToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        13, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("InnerBonitoToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("InnerBonitoToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "InnerBonito", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("InnerBonitoToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.InnerBonito.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.TableBonitaToolboxItem":
                    // Add TableBonita shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.TableBonitaToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        14, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("TableBonitaToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TableBonitaToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "TableBonita", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("TableBonitaToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.TableBonita.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.RadioButtonToolboxItem":
                    // Add RadioButton shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.RadioButtonToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        15, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("RadioButtonToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("RadioButtonToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "RadioButton", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("RadioButtonToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.RadioButton.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.TextRowToolboxItem":
                    // Add TextRow shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.TextRowToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        16, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("TextRowToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("TextRowToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "TextRow", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("TextRowToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.TextRow.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.SelectItemToolboxItem":
                    // Add SelectItem shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.SelectItemToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        17, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("SelectItemToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("SelectItemToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "SelectItem", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("SelectItemToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.Select.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.ColumnaRenglonToolboxItem":
                    // Add ColumnaRenglon shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.ColumnaRenglonToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        18, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ColumnaRenglonToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ColumnaRenglonToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "ColumnaRenglon", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ColumnaRenglonToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.ColumnaRenglon.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.ButtonPrimaryToolboxItem":
                    // Add ButtonPrimary shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.ButtonPrimaryToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        19, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ButtonPrimaryToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ButtonPrimaryToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "ButtonPrimary", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ButtonPrimaryToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.ButtonPrimary.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.ButtonWarningToolboxItem":
                    // Add ButtonWarning shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.ButtonWarningToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        20, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ButtonWarningToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ButtonWarningToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "ButtonWarning", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ButtonWarningToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.ButtonWarning.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.ButtonSuccessToolboxItem":
                    // Add ButtonSuccess shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.ButtonSuccessToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        21, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ButtonSuccessToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ButtonSuccessToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "ButtonSuccess", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ButtonSuccessToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.ButtonSuccess.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.ButtonInfoToolboxItem":
                    // Add ButtonInfo shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.ButtonInfoToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        22, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ButtonInfoToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ButtonInfoToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "ButtonInfo", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ButtonInfoToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.ButtonInfo.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.ButtonDangerToolboxItem":
                    // Add ButtonDanger shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.ButtonDangerToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        23, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("ButtonDangerToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("ButtonDangerToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "ButtonDanger", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("ButtonDangerToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.ButtonDanger.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.EntradaEmailToolboxItem":
                    // Add EntradaEmail shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.EntradaEmailToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        24, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("EntradaEmailToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntradaEmailToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "EntradaEmail", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("EntradaEmailToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.EntradaEmail.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                case "Company.DSLBootstrap.EntradaPasswordToolboxItem":
                    // Add EntradaPassword shape tool.
                    result = new DslDesign::ModelingToolboxItem(
                        "Company.DSLBootstrap.EntradaPasswordToolboxItem", // Unique identifier (non-localized) for the toolbox item.
                        25, // Position relative to other items in the same toolbox tab.
                        resourceManager.GetString("EntradaPasswordToolboxItem", resourceCulture), // Localized display name for the item.
                        (global::System.Drawing.Bitmap)DslDiagrams::ImageHelper.GetImage(resourceManager.GetObject("EntradaPasswordToolboxBitmap", resourceCulture)), // Image displayed next to the toolbox item.
                        "Company.DSLBootstrap.DSLBootstrapToolboxTab", // Unique identifier (non-localized) for the toolbox item tab.
                        resourceManager.GetString("DSLBootstrapToolboxTab", resourceCulture), // Localized display name for the toolbox tab.
                        "EntradaPassword", // F1 help keyword for the toolbox item.
                        resourceManager.GetString("EntradaPasswordToolboxTooltip", resourceCulture), // Localized tooltip text for the toolbox item.
                        CreateElementToolPrototype(store, global::Company.DSLBootstrap.EntradaPassword.DomainClassId), // ElementGroupPrototype (data object) representing model element on the toolbox.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute[] { // Collection of ToolboxItemFilterAttribute objects that determine visibility of the toolbox item.
                        new global::System.ComponentModel.ToolboxItemFilterAttribute(ToolboxFilterString, global::System.ComponentModel.ToolboxItemFilterType.Require)
                        });
                    break;
                default:
                    break;
            } // end switch

            return result;
        }