Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Unified Diff: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs

Issue 10836143: Refactored the VS add-in (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs
diff --git a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs
index 8dcdb02a67074f37c3b15ef69018943edb5e58d3..69eec0fb8072bf2c60dcc1220dd6e3dc836062ea 100644
--- a/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs
+++ b/visual_studio/NativeClientVSAddIn/NativeClientVSAddIn/Utility.cs
@@ -65,6 +65,25 @@ namespace NativeClientVSAddIn
}
/// <summary>
+ /// Will print a message to the web server output pane.
+ /// </summary>
+ /// <param name="dte">The main visual studio interface.</param>
+ /// <param name="message">Message to print to the output pane.</param>
+ public static void WebServerWriteLine(DTE2 dte, string message)
+ {
+ try
+ {
+ OutputWindowPane pane = dte.ToolWindows.OutputWindow.OutputWindowPanes.Item(
+ Strings.WebServerOutputWindowTitle);
+ pane.OutputString(message + "\n");
+ }
+ catch (ArgumentException)
+ {
+ // This exception is expected if the window pane hasn't been created yet.
+ }
+ }
+
+ /// <summary>
/// Returns all VCConfigurations from the open solution that have the specified platform name.
/// Note only VC++ projects are checked.
/// </summary>

Powered by Google App Engine
This is Rietveld 408576698