protected override void Initialize()
		{
			var model = this.GetService(typeof(SComponentModel)) as IComponentModel;
			this.workspace = model.GetService<VisualStudioWorkspace>();
			this.dte = this.GetService(typeof(DTE)) as DTE;
			this.documentEvents = this.dte.Events.DocumentEvents as DocumentEventsClass;

			this.documentEvents.DocumentSaved += this.OnDocumentSaved;

			base.Initialize();
		}
Esempio n. 2
0
        protected override void Initialize()
        {
            var model = this.GetService(typeof(SComponentModel)) as IComponentModel;

            this.workspace      = model.GetService <VisualStudioWorkspace>();
            this.dte            = this.GetService(typeof(DTE)) as DTE;
            this.documentEvents = this.dte.Events.DocumentEvents as DocumentEventsClass;

            this.documentEvents.DocumentSaved += this.OnDocumentSaved;

            base.Initialize();
        }