[MonoDevelop] "Abstract" tree in solution pad and reusing node builders

Lluis Sanchez Gual slluis.devel at gmail.com
Tue May 25 04:29:46 EDT 2010


El dl 24 de 05 de 2010 a les 14:21 +0200, en/na Federico Di Gregorio va
escriure:
> Hi *,
> 
> I don't know if this question is a tricky one, a stupid one or just a
> simple one. Lets just try...
> 
> I have an addin that shows data related to a database in a way different
> from the MonoDevelop.Database addin. Obviously I'd like to reuse as much
> code as possible from MonoDevelop.Database so I am asking myself: it is
> possible to attach to the solution pad a tree of "abstract" objects
> (think DbConnection, DbTable, DbColumn) and then have the node builders
> work on that tree? 

It is possible. You can add the node builders implemented in
MonoDevelop.Database to the solution pad. The extension path
is /MonoDevelop/Ide/Pads/ProjectPad. Just add the <NodeBuilder> elements
there. You'll also have to imlpement a new node builder extension for
the Project class which will add the root node of your abstract tree.

Lluis.




More information about the Monodevelop-list mailing list