///////////////////////////////////////////////////////////////////////////// // Overridden Package Implementation #region Package Members /// <summary> /// Initialization of the package; this method is called right after the package is sited. /// Creation of instances which realize Regular Expression Language services and putting /// those instances to package services container. /// </summary> protected override void Initialize() { Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Initialize() of: {0}", this.ToString())); base.Initialize(); // Create instance of RegularExpressionLanguageService2 type _langService2 = new RegularExpressionLanguageService2((DTE)this.GetService(typeof(SDTE))); _langService2.SetSite(this); // Add our language service object to VSPackage services container ((IServiceContainer)this).AddService(typeof(RegularExpressionLanguageService2), _langService2, true); }