/// <summary>
 /// Create EditorPackage context.
 /// </summary>
 protected override void Initialize()
 {
     //Create Editor Factory
     base.Initialize();
     editorFactory = new EditorFactory();
     RegisterEditorFactory(editorFactory);
 }
 /// <summary>
 /// Releases the resources used by the Package object.
 /// </summary>
 /// <param name="disposing">This parameter determines whether the method has been called directly or indirectly by a user's code.</param>
 protected override void Dispose(bool disposing)
 {
     try
     {
         Trace.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Dispose() of: {0}", this.ToString()));
         if (disposing)
         {
             if (editorFactory != null)
             {
                 editorFactory.Dispose();
                 editorFactory = null;
             }
             GC.SuppressFinalize(this);
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
 /// <summary>
 /// Releases the resources used by the Package object.
 /// </summary>
 /// <param name="disposing">This parameter determines whether the method has been called directly or indirectly by a user's code.</param>
 protected override void Dispose(bool disposing)
 {
     try
     {
         Debug.WriteLine(string.Format(CultureInfo.CurrentCulture, "Entering Dispose() of: {0}", this.ToString()));
         if (disposing)
         {
             if (editorFactory != null)
             {
                 editorFactory.Dispose();
                 editorFactory = null;
             }
             GC.SuppressFinalize(this);
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }