[Monodevelop-patches-list] r2109 - in trunk/MonoDevelop/Core/src/MonoDevelop.Base: . Commands Gui/Pads Internal/Project/Project Services/Project
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Mon Jan 3 03:36:32 EST 2005
Author: tberman
Date: 2005-01-03 03:36:31 -0500 (Mon, 03 Jan 2005)
New Revision: 2109
Added:
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Internal/Project/Project/ProjectCompileEventHandler.cs
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/RunCommands.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/OpenTaskView.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Services/Project/DefaultProjectService.cs
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Services/Project/IProjectService.cs
Log:
2004-01-03 Todd Berman <tberman at off.net>
* Commands/RunCommands.cs:
* Services/Project/DefaultProjectService.cs:
* Services/Project/IProjectService.cs:
* Gui/Pads/OpenTaskView.cs:
* Makefile.am:
* Internal/Project/Project/ProjectCompileEventHandler.cs:
Change ProjectService.EndBuild to emit a bool variable to denote the
success or failure of the combine build. Add a new delegate. Patch
various uses to properly use new delegate.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-01-03 07:48:09 UTC (rev 2108)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-01-03 08:36:31 UTC (rev 2109)
@@ -1,3 +1,15 @@
+2004-01-03 Todd Berman <tberman at off.net>
+
+ * Commands/RunCommands.cs:
+ * Services/Project/DefaultProjectService.cs:
+ * Services/Project/IProjectService.cs:
+ * Gui/Pads/OpenTaskView.cs:
+ * Makefile.am:
+ * Internal/Project/Project/ProjectCompileEventHandler.cs:
+ Change ProjectService.EndBuild to emit a bool variable to denote the
+ success or failure of the combine build. Add a new delegate. Patch
+ various uses to properly use new delegate.
+
2004-12-26 Sander Rijken <sr+ximianbugs at d-90.nl>
* Services/ProcessService/ProcessService: Set property
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/RunCommands.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/RunCommands.cs 2005-01-03 07:48:09 UTC (rev 2108)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Commands/RunCommands.cs 2005-01-03 08:36:31 UTC (rev 2109)
@@ -86,7 +86,7 @@
Console.WriteLine (e);
Runtime.MessageService.ShowError(e, GettextCatalog.GetString ("Error while compiling"));
}
- projectService.OnEndBuild();
+ projectService.OnEndBuild(CombineEntry.BuildErrors == 0);
//}
}
@@ -152,7 +152,7 @@
Console.WriteLine (e);
Runtime.MessageService.ShowError (e, GettextCatalog.GetString ("Error while compiling"));
}
- projectService.OnEndBuild();
+ projectService.OnEndBuild(CombineEntry.BuildErrors == 0);
}
}
@@ -250,7 +250,7 @@
} catch (Exception e) {
Runtime.MessageService.ShowError(e, String.Format (GettextCatalog.GetString ("Error while compiling project {0}"), projectService.CurrentSelectedProject.Name));
}
- projectService.OnEndBuild();
+ projectService.OnEndBuild(CombineEntry.BuildErrors == 0);
}
Compile.ShowAfterCompileStatus();
}
@@ -278,7 +278,7 @@
} catch (Exception e) {
Runtime.MessageService.ShowError(e, String.Format (GettextCatalog.GetString ("Error while compiling project {0}"), projectService.CurrentSelectedProject.Name));
}
- projectService.OnEndBuild();
+ projectService.OnEndBuild(CombineEntry.BuildErrors == 0);
}
Compile.ShowAfterCompileStatus();
}
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/OpenTaskView.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/OpenTaskView.cs 2005-01-03 07:48:09 UTC (rev 2108)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/OpenTaskView.cs 2005-01-03 08:36:31 UTC (rev 2109)
@@ -15,6 +15,7 @@
using MonoDevelop.Core.Services;
using MonoDevelop.Services;
using MonoDevelop.Core.Properties;
+using MonoDevelop.Internal.Project;
using Gtk;
@@ -78,7 +79,7 @@
Runtime.TaskService.TasksChanged += (EventHandler) Runtime.DispatchService.GuiDispatch (new EventHandler (ShowResults));
Runtime.TaskService.TaskAdded += (TaskEventHandler) Runtime.DispatchService.GuiDispatch (new TaskEventHandler (TaskAdded));
- Runtime.ProjectService.EndBuild += (EventHandler) Runtime.DispatchService.GuiDispatch (new EventHandler (SelectTaskView));
+ Runtime.ProjectService.EndBuild += (ProjectCompileEventHandler) Runtime.DispatchService.GuiDispatch (new ProjectCompileEventHandler (SelectTaskView));
Runtime.ProjectService.CombineOpened += (CombineEventHandler) Runtime.DispatchService.GuiDispatch (new CombineEventHandler (OnCombineOpen));
Runtime.ProjectService.CombineClosed += (CombineEventHandler) Runtime.DispatchService.GuiDispatch (new CombineEventHandler (OnCombineClosed));
view.RowActivated += new RowActivatedHandler (OnRowActivated);
@@ -165,7 +166,7 @@
{
}
- void SelectTaskView (object sender, EventArgs e)
+ void SelectTaskView (bool success)
{
if (Runtime.TaskService.Tasks.Count > 0) {
try {
@@ -200,7 +201,7 @@
foreach (Task t in Runtime.TaskService.Tasks) {
AddTask (t);
}
- SelectTaskView(null, null);
+ SelectTaskView(true);
}
void TaskAdded (object sender, TaskEventArgs e)
Added: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Internal/Project/Project/ProjectCompileEventHandler.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Internal/Project/Project/ProjectCompileEventHandler.cs 2005-01-03 07:48:09 UTC (rev 2108)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Internal/Project/Project/ProjectCompileEventHandler.cs 2005-01-03 08:36:31 UTC (rev 2109)
@@ -0,0 +1,6 @@
+using System;
+
+namespace MonoDevelop.Internal.Project
+{
+ public delegate void ProjectCompileEventHandler (bool success);
+}
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am 2005-01-03 07:48:09 UTC (rev 2108)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Makefile.am 2005-01-03 08:36:31 UTC (rev 2109)
@@ -355,6 +355,7 @@
Internal/Project/Project/ConvertXml.cs \
Internal/Project/Project/IncludeFilesDialog.cs \
Internal/Project/Project/IConfiguration.cs \
+Internal/Project/Project/ProjectCompileEventHandler.cs \
Internal/Project/Project/ProjectFile.cs \
Internal/Project/Project/ProjectFileEventArgs.cs \
Internal/Project/Project/AbstractConfiguration.cs \
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Services/Project/DefaultProjectService.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Services/Project/DefaultProjectService.cs 2005-01-03 07:48:09 UTC (rev 2108)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Services/Project/DefaultProjectService.cs 2005-01-03 08:36:31 UTC (rev 2109)
@@ -670,10 +670,10 @@
}
}
- public void OnEndBuild()
+ public void OnEndBuild(bool success)
{
if (EndBuild != null) {
- EndBuild(this, null);
+ EndBuild(success);
}
}
public void OnBeforeStartProject()
@@ -797,7 +797,7 @@
public event ProjectFileEventHandler FileChangedInProject;
public event EventHandler StartBuild;
- public event EventHandler EndBuild;
+ public event ProjectCompileEventHandler EndBuild;
public event EventHandler BeforeStartProject;
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Services/Project/IProjectService.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Services/Project/IProjectService.cs 2005-01-03 07:48:09 UTC (rev 2108)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Services/Project/IProjectService.cs 2005-01-03 08:36:31 UTC (rev 2109)
@@ -153,7 +153,7 @@
/// <remarks>
/// Only to be called by the compile actions.
/// </remarks>
- void OnEndBuild();
+ void OnEndBuild(bool success);
/// <remarks>
/// Only to be called by the compile actions.
@@ -209,7 +209,7 @@
/// <remarks>
/// Called after a build run
/// </remarks>
- event EventHandler EndBuild;
+ event ProjectCompileEventHandler EndBuild;
/// <remarks>
/// Called before execution
More information about the Monodevelop-patches-list
mailing list