Exemple #1
0
        public IProgressMonitor GetBuildProgressMonitor()
        {
            Pad          pad              = IdeApp.Workbench.GetPad <ErrorListPad> ();
            ErrorListPad errorPad         = (ErrorListPad)pad.Content;
            AggregatedProgressMonitor mon = new AggregatedProgressMonitor(errorPad.GetBuildProgressMonitor());

            mon.AddSlaveMonitor(GetStatusProgressMonitor(GettextCatalog.GetString("Building..."), Stock.BuildCombine, false, true, false, pad));
            return(mon);
        }
Exemple #2
0
        private ProgressMonitor GetBuildProgressMonitor(string statusText)
        {
            Pad          pad              = IdeApp.Workbench.GetPad <ErrorListPad> ();
            ErrorListPad errorPad         = (ErrorListPad)pad.Content;
            AggregatedProgressMonitor mon = new AggregatedProgressMonitor(errorPad.GetBuildProgressMonitor());

            mon.AddFollowerMonitor(GetStatusProgressMonitor(statusText, Stock.StatusBuild, false, true, false, pad, true));
            return(mon);
        }
 ProgressMonitor GetBuildProgressMonitor(string statusText)
 {
     return(Runtime.RunInMainThread(() => {
         Pad pad = IdeApp.Workbench.GetPad <ErrorListPad> ();
         ErrorListPad errorPad = (ErrorListPad)pad.Content;
         AggregatedProgressMonitor mon = new AggregatedProgressMonitor(errorPad.GetBuildProgressMonitor());
         mon.AddFollowerMonitor(GetStatusProgressMonitor(statusText, Stock.StatusBuild, false, true, false, pad, true));
         return mon;
     }).Result);
 }