public static ProgressMonitor GetProgressMonitor(string operation, VersionControlOperationType op) { IconId padIcon, statusIcon; bool cancellable; switch (op) { case VersionControlOperationType.Pull: padIcon = Stock.PadDownload; statusIcon = Stock.StatusDownload; cancellable = true; break; case VersionControlOperationType.Push: padIcon = Stock.PadUpload; statusIcon = Stock.StatusUpload; cancellable = true; break; default: padIcon = "md-version-control"; statusIcon = "md-version-control"; cancellable = false; break; } ProgressMonitor monitor = IdeApp.Workbench.ProgressMonitors.GetOutputProgressMonitor("MonoDevelop.VersionControlOutput", GettextCatalog.GetString("Version Control"), padIcon, false, true); Pad outPad = IdeApp.Workbench.ProgressMonitors.GetPadForMonitor(monitor); AggregatedProgressMonitor mon = new AggregatedProgressMonitor(monitor); mon.AddFollowerMonitor(IdeApp.Workbench.ProgressMonitors.GetStatusProgressMonitor(operation, statusIcon, false, true, false, outPad, cancellable)); return(mon); }
public static IProgressMonitor GetProgressMonitor(string operation, VersionControlOperationType op) { IconId icon; switch (op) { case VersionControlOperationType.Pull: icon = Stock.StatusDownload; break; case VersionControlOperationType.Push: icon = Stock.StatusUpload; break; default: icon = "md-version-control"; break; } IProgressMonitor monitor = IdeApp.Workbench.ProgressMonitors.GetOutputProgressMonitor("MonoDevelop.VersionControlOutput", "Version Control", "md-version-control", false, true); Pad outPad = IdeApp.Workbench.ProgressMonitors.GetPadForMonitor(monitor); AggregatedProgressMonitor mon = new AggregatedProgressMonitor(monitor); mon.AddSlaveMonitor(IdeApp.Workbench.ProgressMonitors.GetStatusProgressMonitor(operation, icon, true, true, false, outPad)); return(mon); }
protected Task() { OperationType = VersionControlOperationType.Other; threadnotify = new ThreadNotify(new ReadyEvent(Wakeup)); }
protected VersionControlTask() { OperationType = VersionControlOperationType.Other; threadnotify = new ThreadNotify(new ReadyEvent(Wakeup)); }
protected VersionControlTask() { OperationType = VersionControlOperationType.Other; }
public static IProgressMonitor GetProgressMonitor (string operation, VersionControlOperationType op) { IconId icon; switch (op) { case VersionControlOperationType.Pull: icon = Stock.StatusDownload; break; case VersionControlOperationType.Push: icon = Stock.StatusUpload; break; default: icon = "md-version-control"; break; } IProgressMonitor monitor = IdeApp.Workbench.ProgressMonitors.GetOutputProgressMonitor ("MonoDevelop.VersionControlOutput", "Version Control", "md-version-control", false, true); Pad outPad = IdeApp.Workbench.ProgressMonitors.GetPadForMonitor (monitor); AggregatedProgressMonitor mon = new AggregatedProgressMonitor (monitor); mon.AddSlaveMonitor (IdeApp.Workbench.ProgressMonitors.GetStatusProgressMonitor (operation, icon, true, true, false, outPad)); return mon; }
protected VersionControlTask() { OperationType = VersionControlOperationType.Other; }
public static ProgressMonitor GetProgressMonitor (string operation, VersionControlOperationType op) { IconId padIcon, statusIcon; bool cancellable; switch (op) { case VersionControlOperationType.Pull: padIcon = Stock.PadDownload; statusIcon = Stock.StatusDownload; cancellable = true; break; case VersionControlOperationType.Push: padIcon = Stock.PadUpload; statusIcon = Stock.StatusUpload; cancellable = true; break; default: padIcon = "md-version-control"; statusIcon = "md-version-control"; cancellable = false; break; } ProgressMonitor monitor = IdeApp.Workbench.ProgressMonitors.GetOutputProgressMonitor ("MonoDevelop.VersionControlOutput", GettextCatalog.GetString ("Version Control"), padIcon, false, true); Pad outPad = IdeApp.Workbench.ProgressMonitors.GetPadForMonitor (monitor); AggregatedProgressMonitor mon = new AggregatedProgressMonitor (monitor); mon.AddFollowerMonitor (IdeApp.Workbench.ProgressMonitors.GetStatusProgressMonitor (operation, statusIcon, true, true, false, outPad, cancellable)); return mon; }