!B (Sandbox) (CE-21795) Importing models with multisubmaterials via fbx switches...
[CRYENGINE.git] / Code / Tools / VisualStudioExtensions / CryEngineMonoDebugger / source / CryEngine.Debugger.Mono / OutputHandler.cs
blob5567f4d369669b404b9fdeed6d41308a680e5de9
1 // Copyright 2001-2019 Crytek GmbH / Crytek Group. All rights reserved.
3 using Microsoft.VisualStudio;
4 using Microsoft.VisualStudio.Shell.Interop;
6 namespace CryEngine.Debugger.Mono
8 public static class OutputHandler
10 private static CryEngineDebugPackage _package;
11 private static IVsOutputWindowPane _pane;
13 private static IVsOutputWindowPane Pane
15 get
17 if(_pane == null)
19 _pane = _package.GetOutputPane(VSConstants.OutputWindowPaneGuid.DebugPane_guid, "Output");
21 return _pane;
25 internal static void Initialize(CryEngineDebugPackage package)
27 _package = package;
30 internal static void LogMessage(object message)
32 Pane?.OutputStringThreadSafe(string.Format("{0}\n", message.ToString()));