示例#1
0
 public MDASolutionManager(DTE applicationObject, AddInSettings addInSettings)
 {
     m_applicationObject     = applicationObject;
     m_addInSettings         = addInSettings;
     m_mavenProxy            = new Maven2Proxy(m_applicationObject, m_addInSettings);
     m_mavenProxy.Completed += new EventHandler(m_mavenProxy_Completed);
 }
 public WizardSolutionProcessor(ConfigFile config, DTE applicationObject, AddInSettings settings)
     : base()
 {
     m_configuration = config;
     m_applicationObject = applicationObject;
     m_settings = settings;
 }
 public WizardSolutionProcessor(ISynchronizeInvoke target, ConfigFile config, DTE applicationObject, AddInSettings settings)
     : base(target)
 {
     m_configuration = config;
     m_applicationObject = applicationObject;
     m_settings = settings;
 }
示例#4
0
 public MDASolutionManager(DTE applicationObject, AddInSettings addInSettings)
 {
     m_applicationObject = applicationObject;
     m_addInSettings = addInSettings;
     m_mavenProxy = new Maven2Proxy(m_applicationObject, m_addInSettings);
     m_mavenProxy.Completed += new EventHandler(m_mavenProxy_Completed);
 }
示例#5
0
 public void SetContext(DTE application, AddIn addIn, MDASolutionManager solutionManager, AddInSettings addInSettings)
 {
     m_application     = application;
     m_addIn           = addIn;
     m_solutionManager = solutionManager;
     m_addInSettings   = addInSettings;
 }
示例#6
0
        /// <summary>
        /// Called when the add-in is loaded
        /// </summary>
        /// <param name="application">The application.</param>
        /// <param name="connectMode">The connect mode.</param>
        /// <param name="addInInst">The add in inst.</param>
        /// <param name="custom">The custom.</param>
        public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom)
        {
            try
            {
                if (connectMode == ext_ConnectMode.ext_cm_UISetup || connectMode == ext_ConnectMode.ext_cm_Solution)
                {
                    return;
                }

                // If the Add-In is already connected return
                if (m_connected)
                {
                    return;
                }

                m_applicationObject = (DTE)application;
                m_addInInstance     = (AddIn)addInInst;

                // Don't load the add-in if the following parameters were passed to the app
                string command_line = m_applicationObject.CommandLineArguments.ToLower();
                foreach (string sw in new string[] { "/build", "/rebuild", "/clean", "/deploy" })
                {
                    if (command_line.IndexOf(sw) != -1)
                    {
                        return;
                    }
                }

                m_addInSettings = new AddInSettings(m_applicationObject);

                if (m_addInSettings.ShowWelcomeWizard)
                {
                    Dialogs.WelcomeWizard welcome = new Dialogs.WelcomeWizard(m_addInSettings);
                    welcome.ShowDialog();
                    m_addInSettings.ShowWelcomeWizard = welcome.ShowWizardAgain;
                }

                m_solutionManager = new MDASolutionManager(m_applicationObject, m_addInSettings);
                BindEvents();
                CreateCommands();
                RegisterCommands();
                RegisterToolbar();
                Velocity.Init();
                m_connected = true;
            }
            catch (Exception e)
            {
                AddInUtils.ShowError("An exception occured while trying to instantiate the add-in: " + e.ToString());
            }
        }
示例#7
0
 public MavenProxy(ISynchronizeInvoke target, EnvDTE.DTE applicationObject, AddInSettings addInSettings) : base(target, applicationObject)
 {
     Initialize(applicationObject, addInSettings);
 }
示例#8
0
 public MavenProxy(EnvDTE.DTE applicationObject, AddInSettings addInSettings)
     : base(applicationObject)
 {
     Initialize(applicationObject, addInSettings);
 }
示例#9
0
 public Maven1Proxy(ISynchronizeInvoke target, EnvDTE.DTE applicationObject, AddInSettings addInSettings)
     : base(target, applicationObject, addInSettings)
 {
 }
 public WizardSolutionProcessor(ISynchronizeInvoke target, ConfigFile config, DTE applicationObject, AddInSettings settings) : base(target)
 {
     m_configuration     = config;
     m_applicationObject = applicationObject;
     m_settings          = settings;
 }
示例#11
0
 protected override void Initialize(DTE applicationObject, AddInSettings addInSettings)
 {
     base.Initialize(applicationObject, addInSettings);
     this.ProcessStdOut += new ProcessTextDelegate(MavenProxy_ProcessStdOut);
     this.ProcessStdErr += new ProcessTextDelegate(MavenProxy_ProcessStdErr);
 }
示例#12
0
        /// <summary>
        /// Called when the add-in is loaded
        /// </summary>
        /// <param name="application">The application.</param>
        /// <param name="connectMode">The connect mode.</param>
        /// <param name="addInInst">The add in inst.</param>
        /// <param name="custom">The custom.</param>
        public void OnConnection(object application, ext_ConnectMode connectMode, object addInInst, ref Array custom)
        {
            try
            {
                if (connectMode == ext_ConnectMode.ext_cm_UISetup || connectMode == ext_ConnectMode.ext_cm_Solution)
                {
                    return;
                }

                // If the Add-In is already connected return
                if (m_connected)
                {
                    return;
                }

                m_applicationObject = (DTE)application;
                m_addInInstance = (AddIn)addInInst;

                // Don't load the add-in if the following parameters were passed to the app
                string command_line = m_applicationObject.CommandLineArguments.ToLower();
                foreach (string sw in new string[] { "/build", "/rebuild", "/clean", "/deploy" })
                {
                    if (command_line.IndexOf(sw) != -1)
                        return;
                }

                m_addInSettings = new AddInSettings(m_applicationObject);

                if (m_addInSettings.ShowWelcomeWizard)
                {
                    Dialogs.WelcomeWizard welcome = new Dialogs.WelcomeWizard(m_addInSettings);
                    welcome.ShowDialog();
                    m_addInSettings.ShowWelcomeWizard = welcome.ShowWizardAgain;
                }

                m_solutionManager = new MDASolutionManager(m_applicationObject, m_addInSettings);
                BindEvents();
                CreateCommands();
                RegisterCommands();
                RegisterToolbar();
                Velocity.Init();
                m_connected = true;
            }
            catch (Exception e)
            {
                AddInUtils.ShowError("An exception occured while trying to instantiate the add-in: " + e.ToString());
            }
        }
示例#13
0
 protected override void Initialize(DTE applicationObject, AddInSettings addInSettings)
 {
     base.Initialize(applicationObject, addInSettings);
     this.ProcessStdOut += new ProcessTextDelegate(MavenProxy_ProcessStdOut);
     this.ProcessStdErr += new ProcessTextDelegate(MavenProxy_ProcessStdErr);
 }
示例#14
0
 public Maven1Proxy(EnvDTE.DTE applicationObject, AddInSettings addInSettings)
     : base(applicationObject, addInSettings)
 {
 }
示例#15
0
 public void SetContext(DTE application, AddIn addIn, MDASolutionManager solutionManager, AddInSettings addInSettings)
 {
     m_application = application;
     m_addIn = addIn;
     m_solutionManager = solutionManager;
     m_addInSettings = addInSettings;
 }
示例#16
0
 protected virtual void Initialize(EnvDTE.DTE applicationObject, AddInSettings addInSettings)
 {
     m_addInSettings = addInSettings;
     this.Failed    += new ThreadExceptionEventHandler(m_mavenProxy_Failed);
     this.Cancelled += new EventHandler(m_mavenProxy_Canceled);
 }
示例#17
0
 public Maven1Proxy(EnvDTE.DTE applicationObject, AddInSettings addInSettings)
     : base(applicationObject, addInSettings)
 {
 }
 public WizardSolutionProcessor(ConfigFile config, DTE applicationObject, AddInSettings settings) : base()
 {
     m_configuration     = config;
     m_applicationObject = applicationObject;
     m_settings          = settings;
 }