/// <summary>
        ///     Initialization of the package; this method is called right after the package is sited, so this is the place
        ///     where you can put all the initialization code that rely on services provided by VisualStudio.
        /// </summary>
        protected override void Initialize()
        {
            Trace.WriteLine("Package initializing", "ValidatorPackage");

            base.Initialize();

            DevEnv = Host.Initialize(this);
            DevEnv.SolutionExplorer().Solution.ProjectOpened += OnProjectOpened;

            Trace.WriteLine("Package initialized", "ValidatorPackage");
        }
        protected override void Initialize()
        {
            base.Initialize();

            IDevEnv devEnv = Host.Initialize(this);

            Tracer.Manager.SetTracingLevel(this.GetType().Namespace, SourceLevels.All);
            Tracer.Manager.AddListener(this.GetType().Namespace, new TextTraceListener(devEnv.OutputWindow.GetPane(this)));

            this.tracer = Tracer.Get <ClideIntegrationPackage>();

            this.tracer.Info("Shell package initialized");
        }
Example #3
0
 /// <summary>
 /// Gets the solution explorer tool window.
 /// </summary>
 public static ISolutionExplorer SolutionExplorer(this IDevEnv environment)
 {
     return(ToolWindow <ISolutionExplorer>(environment));
 }
Example #4
0
        /// <summary>
        /// Gets the tool window of the given type from the environment, if any.
        /// </summary>
        /// <returns>The tool window or <see langword="null"/> if it does not exist.</returns>
        public static T ToolWindow <T>(this IDevEnv environment) where T : IToolWindow
        {
            Guard.NotNull(() => environment, environment);

            return(environment.ToolWindows.OfType <T>().FirstOrDefault());
        }
Example #5
0
 public SampleCommand(IDevEnv devEnv)
 {
     this.devEnv = devEnv;
 }
Example #6
0
 public SampleCommand(IDevEnv devEnv)
 {
     this.devEnv = devEnv;
 }