I am creating a VS Package to add a menu item to the context menu of a database table in Server Explorer. I've made it to the point where my menu item shows up in the context menu of all database objects in Server Explorer. Now I need to make it show up only on tables. I have implemented BeforeQueryStatus to hide or show the menu item. My problem is I don't know how to get the currently selected Item. All the examples I have found to get the selected item are related to getting the IVsHierarchy of the solution/project. So, couple of questions
1. Is there a IVsHierarchy in Server Explorer?
2. If not, what should I use? If so, how do I retrieve it?
Thanks, Ken