public void Clear()
 {
     UIUpdater.Invoke(() =>
     {
         mOutputWindow.Clear();
     });
 }
 public void Show()
 {
     UIUpdater.Invoke(() =>
     {
         mOutputWindow.Show(mDte);
     });
 }
 public void Clear()
 {
     UIUpdater.Invoke(() =>
     {
         mErrorWindow.Clear();
     });
 }
 public void Clear()
 {
   UIUpdater.Invoke(() =>
   {
     Tasks.Clear();
   });
 }
Example #5
0
 public void AfterExecute()
 {
     UIUpdater.Invoke(() =>
     {
         Running = false;
     });
 }
Example #6
0
        public void AddErrors(IEnumerable <TaskErrorModel> aErrors)
        {
            UIUpdater.Invoke(() =>
            {
                SuspendRefresh();

                foreach (TaskErrorModel error in aErrors)
                {
                    ErrorTask errorTask = new ErrorTask
                    {
                        ErrorCategory = error.Category,
                        Document      = error.FilePath,
                        Text          = error.Description,
                        Line          = error.Line - 1,
                        Column        = error.Column,
                        Category      = TaskCategory.BuildCompile,
                        Priority      = TaskPriority.High,
                        HierarchyItem = error.HierarchyItem
                    };
                    errorTask.Navigate += ErrorTaskNavigate;
                    Tasks.Add(errorTask);
                }

                BringToFront();
                ResumeRefresh();
            });
        }
 public void RemoveErrors(IVsHierarchy aHierarchy)
 {
     UIUpdater.Invoke(() =>
     {
         mErrorWindow.SuspendRefresh();
         mErrorWindow.RemoveErrors(aHierarchy);
         mErrorWindow.ResumeRefresh();
     });
 }
Example #8
0
        public void Clear()
        {
            mOutputContent = new OutputContentModel();
            var outputWindow = mOutputWindowBuilder.GetResult();

            UIUpdater.Invoke(() =>
            {
                outputWindow.Pane.Clear();
            });
        }
 public void AddMessage(string aMessage)
 {
     UIUpdater.Invoke(() =>
     {
         if (String.IsNullOrWhiteSpace(aMessage))
         {
             return;
         }
         mOutputWindow.Write(aMessage);
     });
 }
Example #10
0
        public static void Animation(vsStatusAnimation aAnimation, int aEnableAnimation)
        {
            UIUpdater.Invoke(() =>
            {
                // Use the standard Visual Studio icon for building.
                object icon = (short)Microsoft.VisualStudio.Shell.Interop.Constants.SBAI_Build;

                // Display the icon in the Animation region.
                mStatusBar.Animation(aEnableAnimation, ref icon);
            });
        }
Example #11
0
        public void Write(string aMessage)
        {
            if (String.IsNullOrWhiteSpace(aMessage))
            {
                return;
            }

            var outputWindow = mOutputWindowBuilder.GetResult();

            UIUpdater.Invoke(() =>
            {
                outputWindow.Pane.OutputStringThreadSafe(aMessage + "\n");
            });
        }
        public void AddErrors(IEnumerable <TaskError> aErrors)
        {
            UIUpdater.Invoke(() =>
            {
                mErrorWindow.SuspendRefresh();

                foreach (TaskError error in aErrors)
                {
                    mErrorWindow.AddError(error);
                }

                mErrorWindow.Show();
                mErrorWindow.ResumeRefresh();
            });
        }
        public void AddError(TaskError aError)
        {
            UIUpdater.Invoke(() =>
            {
                mErrorWindow.SuspendRefresh();

                if (!String.IsNullOrWhiteSpace(aError.Description))
                {
                    mErrorWindow.AddError(aError);
                }

                mErrorWindow.Show();
                mErrorWindow.ResumeRefresh();
            });
        }
    public void AddErrors(IEnumerable<TaskErrorModel> aErrors)
    {
      UIUpdater.Invoke(() =>
      {
        SuspendRefresh();

        foreach (TaskErrorModel error in aErrors)
        {
          error.Navigate += ErrorTaskNavigate;
          Tasks.Add(error);
        }

        BringToFront();
        ResumeRefresh();
      });
    }
Example #15
0
        public void OnErrorDetected(object sender, ErrorDetectedEventArgs e)
        {
            UIUpdater.Invoke(() =>
            {
                SuspendRefresh();

                foreach (TaskErrorModel error in e.ErrorList)
                {
                    error.Navigate += ErrorTaskNavigate;
                    Tasks.Add(error);
                }

                ResumeRefresh();
                BringToFront();
            });
        }
        /// <summary>
        /// It is called immediately after every clang command execution.
        /// Set the running state to false.
        /// </summary>
        public void OnAfterClangCommand()
        {
            UIUpdater.Invoke(() =>
            {
                Running = false;
            });

            if (null == mDocument)
            {
                return;
            }

            // Trigger clang format on save for current document because the
            // clang tidy-fix with "Format after tidy" option enable finished it's execution
            mDocument.Save();
            mDocument = null;
        }
Example #17
0
 public void InvokeUIUpdate()
 {
     _uiUpdater.Invoke();
 }
    public event Action UIUpdater;       //Event for updating UI

    public void UpdateUI()
    {
        UIUpdater?.Invoke();
    }