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 |
- |
- } |
-} |