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

Unified Diff: experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/PropertiesEditorLauncher.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: experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/PropertiesEditorLauncher.cs
diff --git a/experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/PropertiesEditorLauncher.cs b/experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/PropertiesEditorLauncher.cs
deleted file mode 100644
index 4452f5d820c0a3bdf1ea5352191b8451fe05d8f5..0000000000000000000000000000000000000000
--- a/experimental/visual_studio_plugin/third_party/Microsoft.VisualStudio.Project/PropertiesEditorLauncher.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-/// Copyright (c) Microsoft Corporation. All rights reserved.
-
-using System;
-using System.ComponentModel;
-using Microsoft.VisualStudio.Shell;
-using Microsoft.VisualStudio.Shell.Interop;
-using ErrorHandler = Microsoft.VisualStudio.ErrorHandler;
-
-namespace Microsoft.VisualStudio.Project
-{
- /// <summary>
- /// This class is used to enable launching the project properties
- /// editor from the Properties Browser.
- /// </summary>
- [CLSCompliant(false)]
- public class PropertiesEditorLauncher : ComponentEditor
- {
- private ServiceProvider serviceProvider;
-
- #region ctor
- public PropertiesEditorLauncher(ServiceProvider serviceProvider)
- {
- if(serviceProvider == null)
- throw new ArgumentNullException("serviceProvider");
-
- this.serviceProvider = serviceProvider;
- }
- #endregion
- #region overridden methods
- /// <summary>
- /// Launch the Project Properties Editor (properties pages)
- /// </summary>
- /// <returns>If we succeeded or not</returns>
- public override bool EditComponent(ITypeDescriptorContext context, object component)
- {
- if(component is ProjectNodeProperties)
- {
- IVsPropertyPageFrame propertyPageFrame = (IVsPropertyPageFrame)serviceProvider.GetService((typeof(SVsPropertyPageFrame)));
-
- int hr = propertyPageFrame.ShowFrame(Guid.Empty);
- if(ErrorHandler.Succeeded(hr))
- return true;
- else
- ErrorHandler.ThrowOnFailure(propertyPageFrame.ReportError(hr));
- }
-
- return false;
- }
- #endregion
-
- }
-}

Powered by Google App Engine
This is Rietveld 408576698