public override int GetCfgProvider(out IVsCfgProvider p)
        {
            if (this.Node != null && this.Node.ProjectMgr != null)
            {
                return(this.Node.ProjectMgr.GetCfgProvider(out p));
            }

            return(base.GetCfgProvider(out p));
        }
Beispiel #2
0
        public override int GetCfgProvider(out IVsCfgProvider p)
        {
            Debug.Assert(this.Node != null, "The associated hierarchy node has not been initialized");

            if (this.Node != null && this.Node.ProjectMgr != null)
            {
                return(this.Node.ProjectMgr.GetCfgProvider(out p));
            }

            return(base.GetCfgProvider(out p));
        }
        public override int GetCfgProvider(out IVsCfgProvider p)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            if (this.Node != null && this.Node.ProjectMgr != null)
            {
                return(this.Node.ProjectMgr.GetCfgProvider(out p));
            }

            return(base.GetCfgProvider(out p));
        }
Beispiel #4
0
        public virtual int get_ProjectCfgProvider(out IVsProjectCfgProvider p)
        {
            p = null;
            IVsCfgProvider cfgProvider = null;

            this.project.GetCfgProvider(out cfgProvider);
            if (cfgProvider != null)
            {
                p = cfgProvider as IVsProjectCfgProvider;
            }

            return((null == p) ? VSConstants.E_NOTIMPL : VSConstants.S_OK);
        }
        GetProjectConfigurations(IVsProject project)
        {
            IVsCfgProvider provider = project as IVsCfgProvider;

            uint[] sz = new uint[1];
            provider.GetCfgs(0, null, sz, null);
            if (sz[0] > 0)
            {
                IVsCfg[] cfgs = new IVsCfg[sz[0]];
                provider.GetCfgs(sz[0], cfgs, sz, null);
                return(cfgs);
            }
            return(new IVsCfg[0]);
        }
Beispiel #6
0
        public virtual int get_ProjectCfgProvider(out IVsProjectCfgProvider p)
        {
            CCITracing.TraceCall();
            p = null;
            IVsCfgProvider cfgProvider = null;

            this.project.GetCfgProvider(out cfgProvider);
            if (cfgProvider != null)
            {
                p = cfgProvider as IVsProjectCfgProvider;
                return(VSConstants.S_OK);
            }

            return(VSConstants.E_NOTIMPL);
        }
Beispiel #7
0
 int IVsGetCfgProvider.GetCfgProvider(out IVsCfgProvider ppCfgProvider)
 {
     ppCfgProvider = this.ConfigurationProvider;
     return(NativeMethods.S_OK);
 }
 public virtual int GetCfgProvider(out IVsCfgProvider p)
 {
     p = null;
     return(VSConstants.E_NOTIMPL);
 }
Beispiel #9
0
 //=================================================================================
 public virtual int GetCfgProvider(out IVsCfgProvider p)
 {
     CCITracing.TraceCall();
     // Be sure to call the property here since that is doing a polymorhic ProjectConfig creation.
     p = this.ConfigProvider;
     return (p == null ? VSConstants.E_NOTIMPL : VSConstants.S_OK);
 }
Beispiel #10
0
 /// <include file='doc\PropertyPages.uex' path='docs/doc[@for="NodeProperties.GetCfgProvider"]/*' />
 public virtual int GetCfgProvider(out IVsCfgProvider p) {
     return ((IVsGetCfgProvider)Node.ProjectMgr).GetCfgProvider(out p);
 }
Beispiel #11
0
 //=================================================================================
 /// <include file='doc\Project.uex' path='docs/doc[@for="ImageNames.GetCfgProvider"]/*' />
 public virtual int GetCfgProvider(out IVsCfgProvider p) {
     CCITracing.TraceCall();
     p = ((IVsCfgProvider)this);
     return NativeMethods.S_OK;
 }
Beispiel #12
0
        public override int GetCfgProvider(out IVsCfgProvider p)
        {
            Debug.Assert(this.Node != null, "The associated hierarchy node has not been initialized");

            if (this.Node != null && this.Node.ProjectMgr != null)
            {
                return this.Node.ProjectMgr.GetCfgProvider(out p);
            }

            return base.GetCfgProvider(out p);
        }
Beispiel #13
0
 //=================================================================================
 /// <include file='doc\Project.uex' path='docs/doc[@for="ImageNames.GetCfgProvider"]/*' />
 public virtual int GetCfgProvider(out IVsCfgProvider p){
   p = ((IVsCfgProvider)this);
   return 0;
 }
        /// <summary>
        /// ICustomTypeDescriptor.GetEditor
        /// To enable the "Property Pages" button on the properties browser
        /// the browse object (project properties) need to be unmanaged
        /// or it needs to provide an editor of type ComponentEditor.
        /// </summary>
        /// <param name="editorBaseType">Type of the editor</param>
        /// <returns>Editor</returns>
        //[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope",
        //    Justification="The service provider is used by the PropertiesEditorLauncher")]
        //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);
        //}
        //public override TypeConverter GetConverter()
        //{
        //    return new ScriptExporterConverter();
        //    //return base.GetConverter();
        //}
        public override int GetCfgProvider(out IVsCfgProvider p)
        {
            //if(this.Node != null && this.Node.ProjectManager != null)
            //{
            //    return this.Node.ProjectManager.GetCfgProvider(out p);
            //}

            return base.GetCfgProvider(out p);
        }
Beispiel #15
0
 public virtual void GetCfgProvider(out IVsCfgProvider p) {
   ((IVsGetCfgProvider)Node.ProjectMgr).GetCfgProvider(out p);
 }
Beispiel #16
0
        public override int GetCfgProvider(out IVsCfgProvider p)
        {
            if (this.Node != null && this.Node.ProjectMgr != null)
            {
                return this.Node.ProjectMgr.GetCfgProvider(out p);
            }

            return base.GetCfgProvider(out p);
        }
Beispiel #17
0
 public virtual int GetCfgProvider(out IVsCfgProvider p)
 {
     p = null;
     return VSConstants.E_NOTIMPL;
 }
Beispiel #18
0
		int IVsGetCfgProvider.GetCfgProvider(out IVsCfgProvider ppCfgProvider)
		{
			ppCfgProvider = this.ConfigurationProvider;
			return NativeMethods.S_OK;
		}