[Monodevelop-patches-list] r2091 - in trunk/MonoDevelop/Core/src/Main/Base: . Internal/ExternalTool Services/ProcessService

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Dec 26 17:26:17 EST 2004


Author: tberman
Date: 2004-12-26 17:26:17 -0500 (Sun, 26 Dec 2004)
New Revision: 2091

Modified:
   trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
   trunk/MonoDevelop/Core/src/Main/Base/Internal/ExternalTool/ExternalTool.cs
   trunk/MonoDevelop/Core/src/Main/Base/Services/ProcessService/ProcessService.cs
Log:
2004-12-26  Sander Rijken <sr+ximianbugs at d-90.nl>

	* Services/ProcessService/ProcessService: Set property
	"EnableRaisingEvents" to true, to be able to catch the Process.Exited
	event.
	* Internal/ExternalTool/ExternalTool.cs: Load the UseOutputPad setting
	from config file.
	


Modified: trunk/MonoDevelop/Core/src/Main/Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/ChangeLog	2004-12-26 22:13:35 UTC (rev 2090)
+++ trunk/MonoDevelop/Core/src/Main/Base/ChangeLog	2004-12-26 22:26:17 UTC (rev 2091)
@@ -1,3 +1,11 @@
+2004-12-26  Sander Rijken <sr+ximianbugs at d-90.nl>
+
+	* Services/ProcessService/ProcessService: Set property
+	"EnableRaisingEvents" to true, to be able to catch the Process.Exited
+	event.
+	* Internal/ExternalTool/ExternalTool.cs: Load the UseOutputPad setting
+	from config file.
+	
 2004-12-21  Todd Berman  <tberman at off.net>
 
 	* Services/Toolbar/ToolbarService.cs:

Modified: trunk/MonoDevelop/Core/src/Main/Base/Internal/ExternalTool/ExternalTool.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Internal/ExternalTool/ExternalTool.cs	2004-12-26 22:13:35 UTC (rev 2090)
+++ trunk/MonoDevelop/Core/src/Main/Base/Internal/ExternalTool/ExternalTool.cs	2004-12-26 22:26:17 UTC (rev 2091)
@@ -98,16 +98,18 @@
 				el["ARGUMENTS"] == null ||
 				el["COMMAND"] == null ||
 				el["MENUCOMMAND"] == null || 
-				el["PROMPTFORARGUMENTS"] == null) {
-				throw new Exception("ExternalTool(XmlElement el) : INITIALDIRECTORY and ARGUMENTS and COMMAND and MENUCOMMAND and PROMPTFORARGUMENTS attributes must exist.(check the ExternalTool XML)");
+				el["PROMPTFORARGUMENTS"] == null ||
+				el["USEOUTPUTPAD"] == null) {
+				throw new Exception("ExternalTool(XmlElement el) : INITIALDIRECTORY and ARGUMENTS and COMMAND and MENUCOMMAND and PROMPTFORARGUMENTS and USEOUTPUTPAD attributes must exist.(check the ExternalTool XML)");
 			}
 			
 			InitialDirectory  = el["INITIALDIRECTORY"].InnerText;
 			Arguments         = el["ARGUMENTS"].InnerText;
 			Command           = el["COMMAND"].InnerText;
 			MenuCommand       = el["MENUCOMMAND"].InnerText;
-			
+						
 			PromptForArguments = Boolean.Parse(el["PROMPTFORARGUMENTS"].InnerText);
+			UseOutputPad       = Boolean.Parse(el["USEOUTPUTPAD"].InnerText);
 			
 		}
 		

Modified: trunk/MonoDevelop/Core/src/Main/Base/Services/ProcessService/ProcessService.cs
===================================================================
--- trunk/MonoDevelop/Core/src/Main/Base/Services/ProcessService/ProcessService.cs	2004-12-26 22:13:35 UTC (rev 2090)
+++ trunk/MonoDevelop/Core/src/Main/Base/Services/ProcessService/ProcessService.cs	2004-12-26 22:26:17 UTC (rev 2091)
@@ -52,6 +52,7 @@
 			p.StartInfo.RedirectStandardOutput = true;
 			p.StartInfo.RedirectStandardError = true;
 			p.StartInfo.UseShellExecute = false;
+			p.EnableRaisingEvents = true;
 			
 			p.Start ();
 		}




More information about the Monodevelop-patches-list mailing list