/// <summary>Writes a string to the output.</summary> /// <param name="text">The text to write to the output.</param> public void WriteOneLine(string text) { _view.Text = text; if (!_view.Visible || _view.Parent == null) { ICSharpCode.SharpDevelop.Gui.IWorkbenchWindow ww = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow; WorkbenchSingleton.Workbench.WorkbenchLayout.ActivatePad(this.GetType().ToString()); // now focus back to the formerly active workbench window. ww.SelectWindow(); // ww.ActiveViewContent.Control.Focus(); } }
public void Write(string text) { _view.AppendText(text); if (!_view.Visible || _view.Parent == null) { ICSharpCode.SharpDevelop.Gui.IWorkbenchWindow ww = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow; WorkbenchSingleton.Workbench.GetPad(this.GetType()).BringPadToFront(); // now focus back to the formerly active workbench window. ww.SelectWindow(); } }
public virtual void Dispose() { workbenchWindow = null; }
public void Dispose() { workbenchWindow = null; }