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

Federico Di Gregorio fog at initd.org
Mon May 24 08:21:14 EDT 2010


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? All the addins I have checked delegate to the
NodeBuilder the action of creating the children but the builder also
define the view and the logic of the node (icon, name and context menu,
for example) so it is almost impossible to have common code analyze the
database and overlay the addin logic on it.

I think the only way to do what I want is to expose extension points in
the MonoDevelop.Database addin and use them from my addin. Am I right?

federico

-- 
Federico Di Gregorio                                       fog at initd.org
 If nobody understand you, that doesn't mean you're an artist.
                                                            -- anonymous

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://lists.ximian.com/pipermail/monodevelop-list/attachments/20100524/bb41b9fe/attachment-0001.bin 


More information about the Monodevelop-list mailing list