[MonoDevelop] Web References Update

Lluis Sanchez lluis at ximian.com
Mon Aug 7 05:33:01 EDT 2006


El dv 04 de 08 del 2006 a les 12:51 -0400, en/na Gideon de Swardt va
escriure:
> Hi All
> 
> I did not have a lot of time to work on the Web References AddIn this
> week. I did however managed to extend the project pad by adding node
> builders for the "Web Reference" folder and "Web Reference Items". See
> the attached screen shot.
> 
> When a web reference is added to a project it adds two project files
> into a folder called ./WebReferences/[ReferenceName]/ namely
> Reference.map and Reference.cs. The BuildAction for the proxy
> ProjectFile, Reference.cs, is set to compile, whereas it is set to
> Nothing for the Map ProjectFile.
> 
> Everything is working pretty nicely, except I can not figure out how to
> prevent the Proxy and Map ProjectFiles to be displayed as normal
> ProjectFolders and ProjectFiles. 
> 
> Is it possible to hide these project files from the user? Any help on
> this issue would be much appreciated.

You need to create a NodeBuilderExtension which extends nodes of type
ProjectFolder. In the GetNodeAttributes you should check if the folder
is the one to hide, and in this case apply the NodeAttributes.Hidden
attribute. The Stetic add-in does something like that. Check
MonoDevelop.GtkCore.NodeBuilders.ProjectFolderNodeBuilderExtension.

Lluis.




More information about the Monodevelop-list mailing list