Exemple #1
0
 /// <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();
            }
        }