Ejemplo n.º 1
0
        /// <summary>
        /// Make sure this log is registered.
        /// </summary>
        internal static void EnsureLoaded()
        {
            if (log != null)
            {
                return;
            }

            var status = (IVsStatusbar)VSUtilities.ServiceProvider().GetService(typeof(SVsStatusbar));

            var add = false;

            lock (logLock)
            {
                if (log == null)
                {
                    log = new StatusBarLog(status);
                    add = true;
                }
            }
            if (add)
            {
                AddAdditionalLogger(log);
                AddToContext(DContext.VSStatusBar, log);
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Make sure the output pane is loaded.
 /// </summary>
 public void Load()
 {
     if (outputPane == null)
     {
         outputPane = VSUtilities.ServiceProvider().GetOutputPane(new Guid(GuidList.Strings.guidDot42OutputPane), "dot42", true, false);
         outputPane.Activate();
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Make sure the output pane is loaded.
 /// </summary>
 public void Load()
 {
     if (outputPane == null)
     {
         Guid guid = _guid;
         if (_guid == default(Guid))
         {
             outputPane = VSUtilities.ServiceProvider().GetOutputPane(new Guid(GuidList.Strings.guidDot42OutputPane), _title, true, false);
             outputPane.Activate();
         }
         else
         {
             outputPane = VSUtilities.ServiceProvider().GetOutputPane(_guid, _title, true, false);
         }
     }
 }