示例#1
0
        protected override void Initialize()
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            //Create Editor Factory
            base.Initialize();

            DTE = GetService(typeof(DTE)) as DTE;

            graphEditorFactory = new GraphEditorFactory();
            RegisterEditorFactory(graphEditorFactory);
        }
示例#2
0
 /// <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}", ToString()));
         if (disposing)
         {
             if (graphEditorFactory != null)
             {
                 graphEditorFactory.Dispose();
                 graphEditorFactory = null;
             }
             GC.SuppressFinalize(this);
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }