Пример #1
0
        protected override void Initialize()
        {
            FASTBuild.Initialize(this);
            base.Initialize();

            m_dte = (DTE2)GetService(typeof(DTE));
            OutputWindow outputWindow = m_dte.ToolWindows.OutputWindow;

            const string BUILD_OUTPUT_PANE_GUID = "{1BD8A850-02D1-11D1-BEE7-00A0C913D1F8}";

            foreach (OutputWindowPane pane in outputWindow.OutputWindowPanes)
            {
                if (pane.Guid.ToUpper() == BUILD_OUTPUT_PANE_GUID)
                {
                    m_outputPane = pane;
                    break;
                }
            }

            if (m_outputPane == null)
            {
                m_outputPane = outputWindow.OutputWindowPanes.Add("FASTBuild");
            }
            m_outputPane.OutputString("FASTBuild\r");
        }
Пример #2
0
		/// <summary>
		/// Initializes the singleton instance of the command.
		/// </summary>
		/// <param name="package">Owner package, not null.</param>
		public static void Initialize(Package package)
		{
			Instance = new FASTBuild(package);
		}