void OnParseInformationChanged(object sender, MonoDevelop.Projects.Dom.ParsedDocumentEventArgs args)
 {
     if (this.FileName == args.FileName && args.ParsedDocument != null)
     {
         lastCU = args.ParsedDocument;
         OnParsedDocumentUpdated();
     }
 }
示例#2
0
 void OnParseInformationChanged(object sender, MonoDevelop.Projects.Dom.ParsedDocumentEventArgs args)
 {
     if (FileName == args.FileName && args.ParsedDocument != null)
     {
         parsedDoc = (T4ParsedDocument)args.ParsedDocument;
         RefreshOutline();
     }
 }
		void OnParseInformationChanged (object sender, ParsedDocumentEventArgs args)
		{
			/*
			if (this.isDisposed || args == null || args.ParsedDocument == null || this.view == null) {
				return;
			}
			
			string fileName = this.view.IsUntitled ? this.view.UntitledName : this.view.ContentName;
			if (fileName != args.FileName)
				return;
			
			ParsedDocument = args.ParsedDocument;
			bool canShowBrowser = ParsedDocument != null && ParsedDocument.CompilationUnit != null;
			if (canShowBrowser)
				Gtk.Application.Invoke (delegate { this.CanShowClassBrowser = canShowBrowser; } );
			*/
			Gtk.Application.Invoke (delegate {
				if (this.isDisposed || args == null || args.ParsedDocument == null || this.view == null) {
					return;
				}
				
				string fileName = this.view.IsUntitled ? this.view.UntitledName : this.view.ContentName;
				if (fileName != args.FileName)
					return;
				
				if (MonoDevelop.Core.PropertyService.Get ("EnableSemanticHighlighting", false)) 
					TextEditor.TextViewMargin.PurgeLayoutCache ();
				
				ParsedDocument = args.ParsedDocument;
				bool canShowBrowser = ParsedDocument != null && ParsedDocument.CompilationUnit != null;
				if (canShowBrowser)
					this.CanShowClassBrowser = canShowBrowser; 
			});
		}