Exemplo n.º 1
0
 public static void DeletePane()
 {
     if (_output != null)
     {
         _output.DeletePane(_guid);
     }
 }
Exemplo n.º 2
0
    public static async task DeletePaneAsync()
    {
        await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();

        if (_output != null)
        {
            _output.DeletePane(_guid);
        }
    }
Exemplo n.º 3
0
        /// <summary>
        /// Remove pane with selected GUID.
        /// </summary>
        /// <param name="guid"></param>
        public void deleteByGuid(Guid guid)
        {
#if VSSDK_15_AND_NEW
            ThreadHelper.ThrowIfNotOnUIThread(); //TODO: upgrade to 15
#endif

            IVsOutputWindow ow = (IVsOutputWindow)Package.GetGlobalService(typeof(SVsOutputWindow));
            ow.DeletePane(ref guid);
        }
Exemplo n.º 4
0
        public void DeleteOutputWindow()
        {
            IVsOutputWindow outWindow = Package.GetGlobalService(typeof(SVsOutputWindow)) as IVsOutputWindow;

            if (outWindow != null)
            {
                outWindow.DeletePane(_windowsId);
            }
        }
Exemplo n.º 5
0
        protected override void Dispose(bool disposing)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            _output?.DeletePane(ref guid);
            _output = null;

            base.Dispose(disposing);
        }
Exemplo n.º 6
0
        public int DeletePane(ref Guid rguidPane)
        {
            var result = target.DeletePane(ref rguidPane);

            if (ErrorHandler.Failed(result))
            {
                throw new Win32Exception(result);
            }

            return(result);
        }
Exemplo n.º 7
0
        /// <summary>
        /// Detaching OWP by IVsOutputWindow.
        /// </summary>
        /// <param name="ow"></param>
        public void paneDetach(IVsOutputWindow ow)
        {
            Guid id = (upane != null)? upane.Guid : GuidList.OWP_SBE;

            paneDetach();

            if (ow != null)
            {
                ow.DeletePane(ref id);
            }
        }
Exemplo n.º 8
0
 public void Delete(AsyncPackage package)
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     if (m_pane != null)
     {
         m_pane = null;
         IVsOutputWindow output =
             package.GetService <SVsOutputWindow, IVsOutputWindow>() as IVsOutputWindow;
         output.DeletePane(ref m_guid);
     }
 }
        private void RemoveOutputWindowPane()
        {
            OutputWindow ow = _applicationObject.ToolWindows.OutputWindow;

            foreach (OutputWindowPane owp in ow.OutputWindowPanes)
            {
                if (string.Compare(owp.Name, ToolWindowName, true) == 0)
                {
                    _vsOutputWindow.DeletePane(Guid.Parse(owp.Guid));
                    return;
                }
            }
        }
Exemplo n.º 10
0
        /// <summary>
        /// Detaching OWP by IVsOutputWindow.
        /// </summary>
        /// <param name="ow"></param>
        public void paneDetach(IVsOutputWindow ow)
        {
            Guid id = (upane != null)? upane.Guid : GuidList.OWP_SBE;

            paneDetach();

#if VSSDK_15_AND_NEW
            ThreadHelper.ThrowIfNotOnUIThread(); //TODO: upgrade to 15
#endif

            if (ow != null)
            {
                ow.DeletePane(ref id);
            }
        }
Exemplo n.º 11
0
        public async Task DisposeAsync()
        {
            await this.JoinableTaskFactory.SwitchToMainThreadAsync(this.DisposalToken);

            IVsRunningDocumentTable rdt = (IVsRunningDocumentTable)(await GetServiceAsync(typeof(SVsRunningDocumentTable)));

            rdt.UnadviseRunningDocTableEvents(_rdtCookie);

            if (_outputPane != null)
            {
                _outputPane?.Hide();
                IVsOutputWindow output = (IVsOutputWindow)GetService(typeof(SVsOutputWindow));
                output.DeletePane(ref _paneGuid);
            }
        }
 public static void DeletePane()
 {
     if (_pane != null)
     {
         try
         {
             _output.DeletePane(ref _guid);
             _pane = null;
         }
         catch (Exception ex)
         {
             System.Diagnostics.Debug.Write(ex);
         }
     }
 }
Exemplo n.º 13
0
        /// <summary>
        /// Deletes window pane with specified GUID
        /// </summary>
        public static void DeletePane(Guid paneGuid)
        {
            if (paneGuid == null)
            {
                throw new ArgumentNullException("paneGuid");
            }

            if (cache.ContainsKey(paneGuid))
            {
                cache.Remove(paneGuid);
            }

            int hr = outputWindowService.DeletePane(ref paneGuid);

            Marshal.ThrowExceptionForHR(hr);
        }
Exemplo n.º 14
0
 public static void DeletePane()
 {
     if (_pane != null)
     {
         try
         {
             IVsOutputWindow output = (IVsOutputWindow)_provider.GetService(typeof(SVsOutputWindow));
             output.DeletePane(ref _guid);
             _pane = null;
         }
         catch (Exception ex)
         {
             System.Diagnostics.Debug.Write(ex);
         }
     }
 }
Exemplo n.º 15
0
    /// <summary>
    /// Deletes the Output Window pane.
    /// </summary>
    public static void DeletePane()
    {
        ThreadHelper.ThrowIfNotOnUIThread();

        if (pane != null)
        {
            try
            {
                IVsOutputWindow output = (IVsOutputWindow)_provider.GetService(typeof(SVsOutputWindow));
                Assumes.Present(output);
                output.DeletePane(ref _guid);
                pane = null;
            }
            catch (Exception ex)
            {
                Debug.Write(ex);
            }
        }
    }
 public void Dispose()
 {
     outWindow.DeletePane(customGuid);
 }
Exemplo n.º 17
0
        /// <summary>
        /// Detaching OWP by IVsOutputWindow.
        /// </summary>
        /// <param name="ow"></param>
        public void paneDetach(IVsOutputWindow ow)
        {
            Guid id = (upane != null)? upane.Guid : GuidList.OWP_SBE;
            paneDetach();

            if(ow != null) {
                ow.DeletePane(ref id);
            }
        }
Exemplo n.º 18
0
        /// <summary>
        /// Remove pane with selected GUID.
        /// </summary>
        /// <param name="guid"></param>
        public void deleteByGuid(Guid guid)
        {
            IVsOutputWindow ow = (IVsOutputWindow)Package.GetGlobalService(typeof(SVsOutputWindow));

            ow.DeletePane(ref guid);
        }
        public static void DeleteOutputWindow()
        {
            IVsOutputWindow outWindow = Package.GetGlobalService(typeof(SVsOutputWindow)) as IVsOutputWindow;

            outWindow?.DeletePane(_windowsId);
        }
Exemplo n.º 20
0
        /// <summary>
        /// Detaching OWP by IVsOutputWindow.
        /// </summary>
        /// <param name="ow"></param>
        public void paneDetach(IVsOutputWindow ow)
        {
            Guid id;
            if(_paneDTE != null) {
                id = new Guid(_paneDTE.Guid);
                //_paneDTE.Clear();
            }
            else{
                id = GuidList.OWP_SBE;
            }

            if(ow != null) {
                ow.DeletePane(ref id);
            }
            paneDetach();
        }
Exemplo n.º 21
0
        internal void DeletePane(Guid paneGuid)
        {
            IVsOutputWindow service = (IVsOutputWindow)GetService(typeof(SVsOutputWindow));

            service.DeletePane(ref paneGuid);
        }
        public static void DeleteOutputWindow()
        {
            IVsOutputWindow outWindow = Package.GetGlobalService(typeof(SVsOutputWindow)) as IVsOutputWindow;

            outWindow?.DeletePane(VSConstants.OutputWindowPaneGuid.GeneralPane_guid);
        }