Beispiel #1
0
        //--------------------------------------------------------------------------------
        // IVsSccProvider specific interfaces
        //--------------------------------------------------------------------------------

        // Called by the scc manager when the provider is activated.
        // Make visible and enable if necessary scc related menu commands
        public int SetActive()
        {
            Trace.WriteLine(String.Format(CultureInfo.CurrentUICulture, "Provider set active"));

            _active = true;
            _sccProvider.OnActiveStateChange();

            return(VSConstants.S_OK);
        }
        //--------------------------------------------------------------------------------
        // IVsSccProvider specific interfaces
        //--------------------------------------------------------------------------------

        /// <summary>
        /// Called by the scc manager when the provider is activated. Make
        /// visible and enable if necessary scc related menu commands
        /// </summary>
        /// <returns>Returns S_OK if operation was successful</returns>
        public int SetActive()
        {
            Debug.WriteLine(string.Format(CultureInfo.CurrentUICulture, "Scc Provider is now active"));

            _active = true;
            _sccProvider.OnActiveStateChange();

            return(VSConstants.S_OK);
        }