[Monodevelop-patches-list] r2152 - trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Mon Jan 24 18:29:32 EST 2005


Author: lluis
Date: 2005-01-24 18:29:32 -0500 (Mon, 24 Jan 2005)
New Revision: 2152

Modified:
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ChangeLog
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs
   trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ILAsmLanguageBinding.cs
Log:
2005-01-24  Lluis Sanchez Gual  <lluis at novell.com>

	* ILAsmLanguageBinding.cs:
	* ILAsmCompilerManager.cs: Use the new progress monitor API.



Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ChangeLog	2005-01-24 23:29:20 UTC (rev 2151)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ChangeLog	2005-01-24 23:29:32 UTC (rev 2152)
@@ -1,3 +1,8 @@
+2005-01-24  Lluis Sanchez Gual  <lluis at novell.com>
+
+	* ILAsmLanguageBinding.cs:
+	* ILAsmCompilerManager.cs: Use the new progress monitor API.
+
 2005-01-11  Lluis Sanchez Gual  <lluis at novell.com>
 
 	* ILAsmCompilerManager.cs:

Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs	2005-01-24 23:29:20 UTC (rev 2151)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ILAsmCompilerManager.cs	2005-01-24 23:29:32 UTC (rev 2152)
@@ -76,35 +76,23 @@
 
 		private void DoCompilation (string outstr, TempFileCollection tf, out StreamReader output, out StreamReader error)
 		{
-            		ProcessStartInfo si = new ProcessStartInfo (GetCompilerName (), outstr);
+			ProcessStartInfo si = new ProcessStartInfo (GetCompilerName (), outstr);
 			si.RedirectStandardOutput = true;
-            		si.RedirectStandardError = true;
+			si.RedirectStandardError = true;
 			si.UseShellExecute = false;
 			Process p = new Process ();
-            		p.StartInfo = si;
-            		p.Start ();
+			p.StartInfo = si;
+			p.Start ();
+			p.WaitForExit ();
 
-			IStatusBarService sbs = (IStatusBarService)ServiceManager.GetService (typeof (IStatusBarService));
-			sbs.SetMessage ("Compiling...");
-
-			while (!p.HasExited) {
-				((SdStatusBar)sbs.Control).Pulse();
-				while (Gtk.Application.EventsPending ())
-					Gtk.Application.RunIteration ();
-				System.Threading.Thread.Sleep (100);
-			}
-
-			((SdStatusBar) sbs.Control).Done ();
-
 			// FIXME: avoid having a full buffer
 			// perhaps read one line and append parsed output
 			// and then return cr at end 
 			output = p.StandardOutput;
 			error = p.StandardError;
-            		p.WaitForExit ();
         }
 		
-		public ICompilerResult Compile (ProjectFileCollection projectFiles, ProjectReferenceCollection references, DotNetProjectConfiguration configuration)
+		public ICompilerResult Compile (ProjectFileCollection projectFiles, ProjectReferenceCollection references, DotNetProjectConfiguration configuration, IProgressMonitor monitor)
 		{
 			ArrayList fileNames = new ArrayList();
 			

Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ILAsmLanguageBinding.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ILAsmLanguageBinding.cs	2005-01-24 23:29:20 UTC (rev 2151)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/ILAsmBinding/ILAsmLanguageBinding.cs	2005-01-24 23:29:32 UTC (rev 2152)
@@ -46,10 +46,10 @@
 			return compilerManager.CanCompile(fileName);
 		}
 		
-		public ICompilerResult Compile (ProjectFileCollection projectFiles, ProjectReferenceCollection references, DotNetProjectConfiguration configuration)
+		public ICompilerResult Compile (ProjectFileCollection projectFiles, ProjectReferenceCollection references, DotNetProjectConfiguration configuration, IProgressMonitor monitor)
 		{
 			Debug.Assert(compilerManager != null);
-			return compilerManager.Compile (projectFiles, references, configuration);
+			return compilerManager.Compile (projectFiles, references, configuration, monitor);
 		}
 		
 		public void GenerateMakefile (Project project, Combine parentCombine)




More information about the Monodevelop-patches-list mailing list