Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 namespace NativeClientVSAddIn | 5 namespace NativeClientVSAddIn |
| 6 { | 6 { |
| 7 using System; | 7 using System; |
| 8 using System.Collections.Generic; | 8 using System.Collections.Generic; |
| 9 | 9 |
| 10 using EnvDTE; | 10 using EnvDTE; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 58 config.Platform.Name == active.PlatformName) | 58 config.Platform.Name == active.PlatformName) |
| 59 { | 59 { |
| 60 return config; | 60 return config; |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 return null; | 64 return null; |
| 65 } | 65 } |
| 66 | 66 |
| 67 /// <summary> | 67 /// <summary> |
| 68 /// Will print a message to the web server output pane. | |
| 69 /// </summary> | |
| 70 /// <param name="dte">The main visual studio interface.</param> | |
| 71 /// <param name="message">Message to print to the output pane.</param> | |
| 72 public static void WebServerWriteLine(DTE2 dte, string message) | |
| 73 { | |
| 74 try | |
| 75 { | |
| 76 OutputWindowPane pane = dte.ToolWindows.OutputWindow.OutputWindowPanes.I tem( | |
| 77 Strings.WebServerOutputWindowTitle); | |
| 78 pane.OutputString(message + "\n"); | |
| 79 } | |
| 80 catch (ArgumentException) | |
| 81 { | |
|
noelallen1
2012/08/08 00:22:15
How can that page not exist yet? Has it been dest
tysand
2012/08/08 04:15:59
Since this is just a static utility function it ca
| |
| 82 // This exception is expected if the window pane hasn't been created yet . | |
| 83 } | |
| 84 } | |
| 85 | |
| 86 /// <summary> | |
| 68 /// Returns all VCConfigurations from the open solution that have the specif ied platform name. | 87 /// Returns all VCConfigurations from the open solution that have the specif ied platform name. |
| 69 /// Note only VC++ projects are checked. | 88 /// Note only VC++ projects are checked. |
| 70 /// </summary> | 89 /// </summary> |
| 71 /// <param name="dte">Visual studio main interface.</param> | 90 /// <param name="dte">Visual studio main interface.</param> |
| 72 /// <param name="platformName">Name of the platform to get.</param> | 91 /// <param name="platformName">Name of the platform to get.</param> |
| 73 /// <returns>List of all matching VCConfigurations.</returns> | 92 /// <returns>List of all matching VCConfigurations.</returns> |
| 74 public static List<VCConfiguration> GetPlatformVCConfigurations(DTE2 dte, st ring platformName) | 93 public static List<VCConfiguration> GetPlatformVCConfigurations(DTE2 dte, st ring platformName) |
| 75 { | 94 { |
| 76 var platformConfigs = new List<VCConfiguration>(); | 95 var platformConfigs = new List<VCConfiguration>(); |
| 77 foreach (Project proj in dte.Solution.Projects) | 96 foreach (Project proj in dte.Solution.Projects) |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 proc.ParentID, | 211 proc.ParentID, |
| 193 anscestor, | 212 anscestor, |
| 194 proc.CreationDate); | 213 proc.CreationDate); |
| 195 } | 214 } |
| 196 } | 215 } |
| 197 | 216 |
| 198 return false; | 217 return false; |
| 199 } | 218 } |
| 200 } | 219 } |
| 201 } | 220 } |
| OLD | NEW |