Exemplo n.º 1
0
 public override bool ShutDown(PluginShutDownReason reason)
 {
     // Do anything your plugin needs to do to shut down
     // or don't shut down and return false
     this.RemoveAllMenuItems();
     return true;
 }
Exemplo n.º 2
0
        public override bool ShutDown(PluginShutDownReason reason)
        {
            // Do anything your plugin needs to do to shut down
            // or don't shut down and return false

            return true;
        }
        public bool ShutDown(PluginShutDownReason shutDownReason)
        {
            ToolStripMenuItem itemToAddTo = GetItem("Content");

            itemToAddTo.DropDownItems.Remove(mMenuItem);

            return true;
        }
Exemplo n.º 4
0
        public bool ShutDown(PluginShutDownReason shutDownReason)
        {
            if (_menuStrip != null)
            {
                _menuStrip.Items.Remove(_menuItem);
            }

            return true;
        }
Exemplo n.º 5
0
        public bool ShutDown(PluginShutDownReason shutDownReason)
        {
            mTortoiseSvnManager = null;

            ToolStripMenuItem itemToRemoveFrom = mMenuStrip.GetItem("Plugins");
            itemToRemoveFrom.DropDownItems.Remove(mUpdateItem);
            itemToRemoveFrom.DropDownItems.Remove(mCommitItem);
            itemToRemoveFrom.DropDownItems.Remove(mSplitter);
            return true;// We are okay to shut down
        }
 public override bool ShutDown(PluginShutDownReason reason)
 {
     if (mTab != null)
     {
         mContainer.Controls.Remove(mTab);
     }
     mContainer = null;
     mTab = null;
     mControl = null;
     return true;
 }
        public bool ShutDown(PluginShutDownReason shutDownReason)
        {
            ToolStripMenuItem itemToAddTo = ToolStripHelper.Self.GetItem(mMenuStrip, PluginsMenuItem);

            itemToAddTo.DropDownItems.Remove(mMenuItem);

            if (!mForm.Disposing && !mForm.IsDisposed)
                mForm.Hide();

            return true;
        }
Exemplo n.º 8
0
        public bool ShutDown(PluginShutDownReason shutDownReason)
        {
            ToolStripMenuItem itemToAddTo = GetItem(PluginsMenuItem);

            itemToAddTo.DropDownItems.Remove(_menuItem);

            if(!_form.Disposing && !_form.IsDisposed)
                _form.Hide();

            return true;
        }
Exemplo n.º 9
0
        public bool ShutDown(PluginShutDownReason shutDownReason)
        {
            if (mTab != null)
            {
                mTabControl.Controls.Remove(mTab);
            }
            mTabControl = null;
            mTab = null;
            mControl = null;

            return true;
        }
Exemplo n.º 10
0
        public override bool ShutDown(PluginShutDownReason shutDownReason)
        {
            mIsEnabled = false;


            foreach (var generator in mGeneratorList)
            {
                if (CodeWriter.CodeGenerators.Contains(generator))
                {
                    CodeWriter.CodeGenerators.Remove(generator);
                }
            }

            return true;

        }
Exemplo n.º 11
0
        internal static bool ShutDownPlugin(IPlugin pluginToShutDown,
                                            PluginShutDownReason shutDownReason)
        {
            bool            doesPluginWantToShutDown = true;
            PluginContainer container;

            if (mGlobalInstance.mPluginContainers.ContainsKey(pluginToShutDown))
            {
                container = mGlobalInstance.mPluginContainers[pluginToShutDown];
            }
            else
            {
                container = mProjectInstance.mPluginContainers[pluginToShutDown];
            }

            try
            {
                doesPluginWantToShutDown =
                    container.Plugin.ShutDown(shutDownReason);
            }
            catch (Exception)
            {
                doesPluginWantToShutDown = true;
            }


            if (doesPluginWantToShutDown)
            {
                container.IsEnabled = false;
            }

            if (shutDownReason == PluginShutDownReason.UserDisabled)
            {
                if (!mPluginSettingsSave.DisabledPlugins.Contains(pluginToShutDown.UniqueId))
                {
                    mPluginSettingsSave.DisabledPlugins.Add(pluginToShutDown.UniqueId);
                    mPluginSettingsSave.Save(PluginSettingsSaveFileName);
                }
            }

            return(doesPluginWantToShutDown);
        }
Exemplo n.º 12
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     // remove it
     //ReferencedFileRuntimeList.FileManagers.Add(new object);
     return(true);
 }
Exemplo n.º 13
0
 public bool ShutDown(PluginShutDownReason shutDownReason)
 {
     ToolStripMenuItem itemToAddTo = GetItem("Project");
     itemToAddTo.DropDownItems.Remove(mUseContentPipeline);
     itemToAddTo.DropDownItems.Remove(mUseFromFile);
     return true;
 }
Exemplo n.º 14
0
 public bool ShutDown(PluginShutDownReason shutDownReason)
 {
     mIsEnabled = false;
     return(true);
 }
Exemplo n.º 15
0
 public abstract bool ShutDown(PluginShutDownReason shutDownReason);
Exemplo n.º 16
0
        public override bool ShutDown(PluginShutDownReason shutDownReason)
        {
            var toReturn = true;

            return(toReturn);
        }
Exemplo n.º 17
0
 public abstract bool ShutDown(PluginShutDownReason shutDownReason);
Exemplo n.º 18
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     AtiManager.Self.RemoveAllAtis();
     return true;
 }
Exemplo n.º 19
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     AtiManager.Self.RemoveAllAtis();
     return(true);
 }
Exemplo n.º 20
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     CodeWriter.CodeGenerators.Remove(generator);
     return(true);
 }
Exemplo n.º 21
0
 public override bool ShutDown(PluginShutDownReason reason)
 {
     // Do anything your plugin needs to do to shut down
     // or don't shut down and return false
     if (mTab != null)
     {
         mContainer.Controls.Remove(mTab);
     }
     mContainer = null;
     mTab = null;
     mAchxControl = null;
     mTextureCoordinateControl = null;
     return true;
 }
Exemplo n.º 22
0
 public bool ShutDown(PluginShutDownReason reason)
 {
     return(true);
 }
Exemplo n.º 23
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     // todo - hide the window
     return(true);
 }
Exemplo n.º 24
0
        public override bool ShutDown(PluginShutDownReason reason)
        {
            base.RemoveTab();

            return true;
        }
Exemplo n.º 25
0
 public bool ShutDown(PluginShutDownReason reason)
 {
     return true;
 }
Exemplo n.º 26
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     base.UnregisterAllCodeGenerators();
     return(true);
 }
Exemplo n.º 27
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     return false;
 }
Exemplo n.º 28
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     RemoveAllMenuItems();
     return(true);
 }
Exemplo n.º 29
0
        public static bool ShutDownPlugin(IPlugin pluginToShutDown,
            PluginShutDownReason shutDownReason)
        {
            bool doesPluginWantToShutDown = true;
            PluginContainer container;

            if (mGlobalInstance.mPluginContainers.ContainsKey(pluginToShutDown))
            {
                container = mGlobalInstance.mPluginContainers[pluginToShutDown];
            }
            else
            {
                container = mProjectInstance.mPluginContainers[pluginToShutDown];
            }

            try
            {
                doesPluginWantToShutDown =
                    container.Plugin.ShutDown(shutDownReason);
            }
            catch (Exception exception)
            {
                doesPluginWantToShutDown = true;
            }



            if (doesPluginWantToShutDown)
            {
                container.IsEnabled = false;

                foreach (Control control in container.Controls)
                {
                    // If the plugin hasn't removed the containers then we
                    // need to do the removal here - we don't want old UI floating
                    // around.
                    control.Parent.Controls.Remove(control);
                }

            }

            return doesPluginWantToShutDown;

        }
Exemplo n.º 30
0
        internal static bool ShutDownPlugin(IPlugin pluginToShutDown,
            PluginShutDownReason shutDownReason)
        {
            bool doesPluginWantToShutDown = true;
            PluginContainer container;

            if (mGlobalInstance.mPluginContainers.ContainsKey(pluginToShutDown))
            {
                container = mGlobalInstance.mPluginContainers[pluginToShutDown];
            }
            else
            {
                container = mProjectInstance.mPluginContainers[pluginToShutDown];
            }

            try
            {
                doesPluginWantToShutDown =
                    container.Plugin.ShutDown(shutDownReason);
            }
            catch (Exception)
            {
                doesPluginWantToShutDown = true;
            }

            if (doesPluginWantToShutDown)
            {
                container.IsEnabled = false;
            }

            if (shutDownReason == PluginShutDownReason.UserDisabled)
            {
                if (!mPluginSettingsSave.DisabledPlugins.Contains(pluginToShutDown.UniqueId))
                {
                    mPluginSettingsSave.DisabledPlugins.Add(pluginToShutDown.UniqueId);
                    mPluginSettingsSave.Save(PluginSettingsSaveFileName);
                }
            }

            return doesPluginWantToShutDown;
        }
Exemplo n.º 31
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     HideCategoryUi();
     return(true);
 }
Exemplo n.º 32
0
 public override bool ShutDown(PluginShutDownReason reason)
 {
     // Do anything your plugin needs to do to shut down
     // or don't shut down and return false
     return(true);
 }
Exemplo n.º 33
0
 public override bool ShutDown(PluginShutDownReason shutDownReason)
 {
     return(true);
 }
Exemplo n.º 34
0
 public bool ShutDown(PluginShutDownReason shutDownReason)
 {
     mIsEnabled = false;
     return true;
 }