コード例 #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;
 }
コード例 #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);
		}
コード例 #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);
 }
コード例 #4
0
ファイル: OutputTextPane.cs プロジェクト: formylover/dnSpy-1
 public LogEditorCtxMenuContext(IOutputTextPane pane)
 {
     this.TextPane = pane;
 }
コード例 #5
0
 public OutputPaneLogger(IOutputTextPane outputPane)
 {
     _outputPane = outputPane;
 }
コード例 #6
0
ファイル: Commands.cs プロジェクト: formylover/dnSpy-1
 public LogEditorCtxMenuContext(IOutputTextPane pane, IOutputServiceInternal outputService)
 {
     this.TextPane = pane;
     this.Owner    = outputService;
 }
コード例 #7
0
ファイル: OutputTextPane.cs プロジェクト: zhenren92/dnSpy
 public LogEditorCtxMenuContext(IOutputTextPane pane) => TextPane = pane;
コード例 #8
0
 public LogEditorCtxMenuContext(IOutputTextPane pane, IOutputManagerInternal outputManager)
 {
     this.TextPane = pane;
     this.Owner    = outputManager;
 }
コード例 #9
0
ファイル: OutputLogger.cs プロジェクト: manojdjoshi/dnSpy
		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;
		}