Microsoft.VisualStudio.Project.ProjectNodeProperties.GetEditor C# (CSharp) Method

GetEditor() private method

private GetEditor ( Type editorBaseType ) : object
editorBaseType System.Type
return object
        public override object GetEditor(Type editorBaseType)
        {
            // Override the scenario where we are asked for a ComponentEditor
            // as this is how the Properties Browser calls us
            if(editorBaseType == typeof(ComponentEditor))
            {
                IOleServiceProvider sp;
                ErrorHandler.ThrowOnFailure(this.Node.GetSite(out sp));
                return new PropertiesEditorLauncher(new ServiceProvider(sp));
            }

            return base.GetEditor(editorBaseType);
        }