Exemple #1
0
        private static IDictionary <string, ToolboxProviderInfo> GetToolboxProviderInfoMap()
        {
            IDictionary <string, ToolboxProviderInfo> retVal = null;
            ORMDesignerPackage package = mySingleton;

            if (package != null)
            {
                retVal = package.myToolboxProviderInfoMap;
                if (retVal == null)
                {
                    retVal = new Dictionary <string, ToolboxProviderInfo>();

                    // Add standard types
                    Type standardType = typeof(ORMShapeDomainModel);
                    retVal.Add(standardType.FullName, new ToolboxProviderInfo(standardType));

                    // Get revision information from the registry. The revision information is written to
                    // the registry to enable toolbox maintenance without unnecessarily loading extension assemblies.
                    using (RegistryKey settingsRegistryRoot = package.PackageSettingsRegistryRoot)
                    {
                        LoadExtensionToolboxProviders(settingsRegistryRoot, retVal);
                    }
                    using (RegistryKey userRegistryRoot = package.PackageUserRegistryRoot)
                    {
                        LoadExtensionToolboxProviders(userRegistryRoot, retVal);
                    }
                    package.myToolboxProviderInfoMap = retVal;
                }
            }
            return(retVal);
        }
Exemple #2
0
 /// <summary>
 /// Class constructor.
 /// </summary>
 public ORMDesignerPackage()
 {
     Debug.Assert(mySingleton == null);             // Should only be loaded once per IDE session
     mySingleton = this;
 }
Exemple #3
0
		/// <summary>
		/// Class constructor.
		/// </summary>
		public ORMDesignerPackage()
		{
			Debug.Assert(mySingleton == null); // Should only be loaded once per IDE session
			mySingleton = this;
		}