From 73e65f1cb798d08c4708f39c027afd3bd6389627 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Mon, 18 May 2015 22:46:13 -0400 Subject: [PATCH] Debug logging code --- .../UniversalEditor.UserInterface/Common/Reflection.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CSharp/Libraries/UniversalEditor.UserInterface/Common/Reflection.cs b/CSharp/Libraries/UniversalEditor.UserInterface/Common/Reflection.cs index 7aea6ff4..d03d03b4 100644 --- a/CSharp/Libraries/UniversalEditor.UserInterface/Common/Reflection.cs +++ b/CSharp/Libraries/UniversalEditor.UserInterface/Common/Reflection.cs @@ -48,17 +48,25 @@ namespace UniversalEditor.UserInterface.Common #region Initializing Editors if (typeInt == typeof(IEditorImplementation)) { + Console.Write("loading editor '" + type.FullName + "'... "); + try { IEditorImplementation editor = (type.Assembly.CreateInstance(type.FullName) as IEditorImplementation); listEditors.Add(editor.MakeReference()); + + Console.WriteLine("SUCCESS!"); } catch (System.Reflection.TargetInvocationException ex) { + Console.WriteLine("FAILURE!"); + Console.WriteLine("binding error: " + ex.InnerException.Message); } catch (Exception ex) { + Console.WriteLine("FAILURE!"); + Console.WriteLine("error while loading editor '" + type.FullName + "': " + ex.Message); } break;