[Monodevelop-patches-list] r2154 - trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Jan 24 18:30:04 EST 2005
Author: lluis
Date: 2005-01-24 18:30:04 -0500 (Mon, 24 Jan 2005)
New Revision: 2154
Modified:
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/ChangeLog
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/VBBindingCompilerServices.cs
trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/VBLanguageBinding.cs
Log:
2005-01-24 Lluis Sanchez Gual <lluis at novell.com>
* VBBindingCompilerServices.cs:
* VBLanguageBinding.cs: Use the new progress monitor API.
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/ChangeLog 2005-01-24 23:29:49 UTC (rev 2153)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/ChangeLog 2005-01-24 23:30:04 UTC (rev 2154)
@@ -1,3 +1,8 @@
+2005-01-24 Lluis Sanchez Gual <lluis at novell.com>
+
+ * VBBindingCompilerServices.cs:
+ * VBLanguageBinding.cs: Use the new progress monitor API.
+
2005-01-11 Lluis Sanchez Gual <lluis at novell.com>
* VBCompilerPanel.cs:
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/VBBindingCompilerServices.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/VBBindingCompilerServices.cs 2005-01-24 23:29:49 UTC (rev 2153)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/VBBindingCompilerServices.cs 2005-01-24 23:30:04 UTC (rev 2154)
@@ -118,7 +118,7 @@
return sb.ToString();
}
- public ICompilerResult CompileProject (ProjectFileCollection projectFiles, ProjectReferenceCollection references, DotNetProjectConfiguration configuration)
+ public ICompilerResult Compile (ProjectFileCollection projectFiles, ProjectReferenceCollection references, DotNetProjectConfiguration configuration, IProgressMonitor monitor)
{
VBCompilerParameters compilerparameters = (VBCompilerParameters) configuration.CompilationParameters;
if (compilerparameters == null) compilerparameters = new VBCompilerParameters ();
@@ -618,38 +618,7 @@
Process p = new Process();
p.StartInfo = si;
p.Start();
- //FIXME: The glib.idle stuff is here because this *SHOULD* be
- //a background thread calling back to the main thread.
- //GLib.Idle.Add (new GLib.IdleHandler (setmsg));
- setmsg ();
- while (!p.HasExited) {
- //GLib.Idle.Add (new GLib.IdleHandler (pulse));
- pulse ();
- System.Threading.Thread.Sleep (100);
- }
- //GLib.Idle.Add (new GLib.IdleHandler (done));
- done ();
+ p.WaitForExit ();
}
-
- bool setmsg ()
- {
- ((IStatusBarService)ServiceManager.GetService (typeof (IStatusBarService))).SetMessage ("Compiling...");
- return false;
- }
-
- bool done ()
- {
- ((SdStatusBar)Runtime.Gui.StatusBar.Control).Done ();
- return false;
- }
-
- bool pulse ()
- {
- ((SdStatusBar)Runtime.Gui.StatusBar.Control).Pulse ();
- while (Gtk.Application.EventsPending ())
- Gtk.Application.RunIteration ();
- return false;
- }
-
}
}
Modified: trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/VBLanguageBinding.cs
===================================================================
--- trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/VBLanguageBinding.cs 2005-01-24 23:29:49 UTC (rev 2153)
+++ trunk/MonoDevelop/Core/src/AddIns/BackendBindings/VBNetBinding/VBLanguageBinding.cs 2005-01-24 23:30:04 UTC (rev 2154)
@@ -41,10 +41,10 @@
return compilerServices.CanCompile(fileName);
}
- public ICompilerResult Compile (ProjectFileCollection projectFiles, ProjectReferenceCollection references, DotNetProjectConfiguration configuration)
+ public ICompilerResult Compile (ProjectFileCollection projectFiles, ProjectReferenceCollection references, DotNetProjectConfiguration configuration, IProgressMonitor monitor)
{
Debug.Assert(compilerServices != null);
- return compilerServices.CompileProject (projectFiles, references, configuration);
+ return compilerServices.Compile (projectFiles, references, configuration, monitor);
}
public void GenerateMakefile (Project project, Combine parentCombine)
More information about the Monodevelop-patches-list
mailing list