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

Unified Diff: obsolete/Microsoft.VisualStudio.Project/VSShellUtilities.cs

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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: obsolete/Microsoft.VisualStudio.Project/VSShellUtilities.cs
diff --git a/obsolete/Microsoft.VisualStudio.Project/VSShellUtilities.cs b/obsolete/Microsoft.VisualStudio.Project/VSShellUtilities.cs
deleted file mode 100644
index 6fe13ae8719257ffa3a0d7dc9bfdb6b48ca674f8..0000000000000000000000000000000000000000
--- a/obsolete/Microsoft.VisualStudio.Project/VSShellUtilities.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-/// Copyright (c) Microsoft Corporation. All rights reserved.
-
-using System;
-using System.Diagnostics;
-using Microsoft.VisualStudio;
-using Microsoft.VisualStudio.Shell.Interop;
-
-namespace Microsoft.VisualStudio.Project
-{
- /// <summary>
- ///This class provides some useful static shell based methods.
- /// </summary>
- [CLSCompliant(false)]
- public static class UIHierarchyUtilities
- {
- /// <summary>
- /// Get reference to IVsUIHierarchyWindow interface from guid persistence slot.
- /// </summary>
- /// <param name="serviceProvider">The service provider.</param>
- /// <param name="persistenceSlot">Unique identifier for a tool window created using IVsUIShell::CreateToolWindow.
- /// The caller of this method can use predefined identifiers that map to tool windows if those tool windows
- /// are known to the caller. </param>
- /// <returns>A reference to an IVsUIHierarchyWindow interface.</returns>
- public static IVsUIHierarchyWindow GetUIHierarchyWindow(IServiceProvider serviceProvider, Guid persistenceSlot)
- {
- if(serviceProvider == null)
- {
- throw new ArgumentNullException("serviceProvider");
- }
-
- IVsUIShell shell = serviceProvider.GetService(typeof(SVsUIShell)) as IVsUIShell;
-
- Debug.Assert(shell != null, "Could not get the ui shell from the project");
- if(shell == null)
- {
- throw new InvalidOperationException();
- }
-
- object pvar = null;
- IVsWindowFrame frame = null;
- IVsUIHierarchyWindow uiHierarchyWindow = null;
-
- try
- {
- ErrorHandler.ThrowOnFailure(shell.FindToolWindow(0, ref persistenceSlot, out frame));
- ErrorHandler.ThrowOnFailure(frame.GetProperty((int)__VSFPROPID.VSFPROPID_DocView, out pvar));
- }
- finally
- {
- if(pvar != null)
- {
- uiHierarchyWindow = (IVsUIHierarchyWindow)pvar;
- }
- }
-
- return uiHierarchyWindow;
- }
- }
-}
« no previous file with comments | « obsolete/Microsoft.VisualStudio.Project/Utilities.cs ('k') | obsolete/Microsoft.VisualStudio.Project/VisualStudio.Project.cs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698