[Monodevelop-patches-list] r1460 - trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Tue Apr 13 19:06:46 EDT 2004
Author: pawel
Date: 2004-04-13 19:06:46 -0400 (Tue, 13 Apr 2004)
New Revision: 1460
Modified:
trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding/
trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding/ChangeLog
trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingCompilerServices.cs
Log:
NemerleBindingCompilerServices uses the StatusBarService
Property changes on: trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding
___________________________________________________________________
Name: svn:ignore
- Makefile
Makefile.in
NemerleBinding.dll
+ Makefile
Makefile.in
NemerleBinding.dll
NemerleBinding.cmbx
NemerleBinding.prjx
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding/ChangeLog 2004-04-13 22:18:34 UTC (rev 1459)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding/ChangeLog 2004-04-13 23:06:46 UTC (rev 1460)
@@ -1,3 +1,7 @@
+2004-04-14 Pawel Rozanski <tokugawa at afn.no-ip.org>
+
+ * NemerleBindingCompilerServices.cs: uses the StatusBarService
+
2004-04-13 Pawel Rozanski <tokugawa at afn.no-ip.org>
stripped DOS '\r' from newlines
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingCompilerServices.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingCompilerServices.cs 2004-04-13 22:18:34 UTC (rev 1459)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/NemerleBinding/NemerleBindingCompilerServices.cs 2004-04-13 23:06:46 UTC (rev 1460)
@@ -5,6 +5,8 @@
using MonoDevelop.Core.Services;
using MonoDevelop.Internal.Project;
+using MonoDevelop.Gui.Components;
+using MonoDevelop.Services;
namespace NemerleBinding
{
@@ -105,7 +107,16 @@
Process p = new Process();
p.StartInfo = si;
p.Start();
- p.WaitForExit();
+
+ IStatusBarService sbs = (IStatusBarService)ServiceManager.Services.GetService (typeof (IStatusBarService));
+ sbs.SetMessage ("Compiling...");
+ while (!p.HasExited) {
+ ((SdStatusBar)sbs.ProgressMonitor).Pulse();
+ while (Gtk.Application.EventsPending ())
+ Gtk.Application.RunIteration ();
+ System.Threading.Thread.Sleep (100);
+ }
+ ((SdStatusBar)sbs.ProgressMonitor).Done();
}
ICompilerResult ParseOutput(TempFileCollection tf, string file)
More information about the Monodevelop-patches-list
mailing list