views:

4

answers:

0

I am attempting to write a Visual Studio 2010 add-in for Team Explorer that adds a root node, just underneath each project. This root node should not have any children, and no context menu, just a double-click action. I have used the samples provided here to create a folder node, with leaf nodes underneath. The leaf nodes I can make do anything I want, double-click, right-click popups, etc. But the root node I can't get to handle a double-click. My root node is a class derived from RootNode, and I have overridden the DoDefaultAction() method, but it is never called.

I also attempted to derive from BasicPlugin instead of BasicAsyncPlugin, which I can then use a BasicHeirarchyNode instead of a RootNode as the node's base class, even using InitAsLeaf(), it still doesn't fire DoDefaultAction() on the double-click event.

Is there another type that can be used as a root node that supports double-click? Is there a property on RootNode that allows it to handle double-click? A different base class for the plugin that I need to derive from? Something else I'm missing? Thanks for any advice on this you can provide. I know it can be done because "Source Control" has the exact behavior that I am looking for.