/// <summary>
        /// Initializes a new instance of the <see cref="CustomProperty"/> class, using a <see cref="BIDSHelperPluginBase"/> instance.
        /// </summary>
        /// <param name="plugin">The BIDS Helper plugin to represent as a feature enabled property.</param>
        public CustomProperty(BIDSHelperPluginBase plugin)
        {
            this.Plugin = plugin;
            this.name = plugin.FeatureName;
            this.description = plugin.FeatureDescription;
            this.objValue = plugin.Enabled;
            this.type = typeof(bool);
            this.readOnly = false;
            this.visible = true;
            this.category = GetFeatureCategoryLabel(plugin.FeatureCategory);
            this.childern = new Collection<CustomProperty>();

            #if DEBUG
            // Write out list of all plugins as we create the property collection,
            // used for easy spell checking
            System.Diagnostics.Debug.WriteLine(this.name);
            System.Diagnostics.Debug.WriteLine(this.description);
            System.Diagnostics.Debug.WriteLine(string.Empty);
            #endif
        }
Beispiel #2
0
 public DataModelingSandboxWrapper(BIDSHelperPluginBase plugin)
 {
     _sandbox = TabularHelpers.GetTabularSandboxFromBimFile(plugin, true);
 }
 private void DisposePlugin()
 {
     pi.DeleteCommand();
     this.PlugIn.DeleteCommand();
     if (this.PlugIn is IWindowActivatedPlugin)
     {
         ((IWindowActivatedPlugin)this.PlugIn).UnHookWindowActivation();
     }
     pi.Dispose();
     pi = null;
 }
        public void ConstructPlugin()
        {
            //BIDSHelperPluginBase pi;
            System.Type[] @params = { typeof(DTE2), typeof(AddIn) };
            System.Reflection.ConstructorInfo con;

            con = pluginType.GetConstructor(@params);
            pi = (BIDSHelperPluginBase)con.Invoke(new object[] { _applicationObject, _addInInstance });
            pi.AddinCore = _core;
            //addins.Add(ext.FullName, ext);

            if (pi is IWindowActivatedPlugin)
            {
                ((IWindowActivatedPlugin)pi).HookWindowActivation();
            }
            pi.AddCommand();
        }