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; }
/// <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); }
/// <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); }
public LogEditorCtxMenuContext(IOutputTextPane pane) { this.TextPane = pane; }
public OutputPaneLogger(IOutputTextPane outputPane) { _outputPane = outputPane; }
public LogEditorCtxMenuContext(IOutputTextPane pane, IOutputServiceInternal outputService) { this.TextPane = pane; this.Owner = outputService; }
public LogEditorCtxMenuContext(IOutputTextPane pane) => TextPane = pane;
public LogEditorCtxMenuContext(IOutputTextPane pane, IOutputManagerInternal outputManager) { this.TextPane = pane; this.Owner = outputManager; }
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; }