Example #1
0
 OutputLogger(IOutputService outputService, ITheDebugger theDebugger, IOutputLoggerSettings outputLoggerSettings, IContentTypeRegistryService contentTypeRegistryService)
 {
     this.outputService                 = outputService;
     this.textPane                      = outputService.Create(GUID_OUTPUT_LOGGER_DEBUG, dnSpy_Debugger_Resources.DebugLoggerName, contentTypeRegistryService.GetContentType(ContentTypes.OutputDebug));
     this.outputLoggerSettings          = outputLoggerSettings;
     theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
 }
Example #2
0
		/// <summary>
		/// Adds the <see cref="IOutputTextPane"/> instance to the <see cref="ITextView"/> properties
		/// </summary>
		/// <param name="outputTextPane">Output text pane</param>
		/// <param name="textView">Log editor text view</param>
		public static void AddInstance(IOutputTextPane outputTextPane, ITextView textView) {
			if (outputTextPane == null)
				throw new ArgumentNullException(nameof(outputTextPane));
			if (textView == null)
				throw new ArgumentNullException(nameof(textView));
			textView.Properties.AddProperty(Key, outputTextPane);
		}
Example #3
0
 /// <summary>
 /// Adds the <see cref="IOutputTextPane"/> instance to the <see cref="ITextView"/> properties
 /// </summary>
 /// <param name="outputTextPane">Output text pane</param>
 /// <param name="textView">Log editor text view</param>
 public static void AddInstance(IOutputTextPane outputTextPane, ITextView textView)
 {
     if (outputTextPane == null)
     {
         throw new ArgumentNullException(nameof(outputTextPane));
     }
     if (textView == null)
     {
         throw new ArgumentNullException(nameof(textView));
     }
     textView.Properties.AddProperty(Key, outputTextPane);
 }
Example #4
0
 public LogEditorCtxMenuContext(IOutputTextPane pane)
 {
     this.TextPane = pane;
 }
Example #5
0
 public OutputPaneLogger(IOutputTextPane outputPane)
 {
     _outputPane = outputPane;
 }
Example #6
0
 public LogEditorCtxMenuContext(IOutputTextPane pane, IOutputServiceInternal outputService)
 {
     this.TextPane = pane;
     this.Owner    = outputService;
 }
Example #7
0
 public LogEditorCtxMenuContext(IOutputTextPane pane) => TextPane = pane;
Example #8
0
 public LogEditorCtxMenuContext(IOutputTextPane pane, IOutputManagerInternal outputManager)
 {
     this.TextPane = pane;
     this.Owner    = outputManager;
 }
Example #9
0
		OutputLogger(IOutputService outputService, ITheDebugger theDebugger, IOutputLoggerSettings outputLoggerSettings, IContentTypeRegistryService contentTypeRegistryService) {
			this.outputService = outputService;
			textPane = outputService.Create(GUID_OUTPUT_LOGGER_DEBUG, dnSpy_Debugger_Resources.DebugLoggerName, contentTypeRegistryService.GetContentType(ContentTypes.OutputDebug));
			this.outputLoggerSettings = outputLoggerSettings;
			theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged;
		}