Browse Source
Add View and Add Controller dialogs now report T4 template processing errors to the Errors window instead of logging them to the console window.pull/28/head
8 changed files with 108 additions and 14 deletions
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
using System.CodeDom.Compiler; |
||||
|
||||
namespace ICSharpCode.AspNet.Mvc |
||||
{ |
||||
public interface IMvcFileGenerationErrorReporter |
||||
{ |
||||
void ShowErrors(CompilerErrorCollection errors); |
||||
} |
||||
} |
||||
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||
|
||||
using System; |
||||
using System.CodeDom.Compiler; |
||||
using ICSharpCode.SharpDevelop; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
using ICSharpCode.TextTemplating; |
||||
|
||||
namespace ICSharpCode.AspNet.Mvc |
||||
{ |
||||
public class MvcFileGenerationErrorReporter : IMvcFileGenerationErrorReporter |
||||
{ |
||||
public void ShowErrors(CompilerErrorCollection errors) |
||||
{ |
||||
TaskService.ClearExceptCommentTasks(); |
||||
foreach (CompilerError error in errors) { |
||||
TaskService.Add(new CompilerErrorTask(error)); |
||||
} |
||||
WorkbenchSingleton.Workbench.GetPad(typeof(ErrorListPad)).BringPadToFront(); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue