public static void DeletePane() { if (_output != null) { _output.DeletePane(_guid); } }
public static async task DeletePaneAsync() { await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); if (_output != null) { _output.DeletePane(_guid); } }
/// <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); }
public void DeleteOutputWindow() { IVsOutputWindow outWindow = Package.GetGlobalService(typeof(SVsOutputWindow)) as IVsOutputWindow; if (outWindow != null) { outWindow.DeletePane(_windowsId); } }
protected override void Dispose(bool disposing) { ThreadHelper.ThrowIfNotOnUIThread(); _output?.DeletePane(ref guid); _output = null; base.Dispose(disposing); }
public int DeletePane(ref Guid rguidPane) { var result = target.DeletePane(ref rguidPane); if (ErrorHandler.Failed(result)) { throw new Win32Exception(result); } return(result); }
/// <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); } }
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; } } }
/// <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); } }
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); } } }
/// <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); }
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); } } }
/// <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); }
/// <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); } }
/// <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); }
/// <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(); }
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); }