Community
Participate
Working Groups
The query browser doesn't list the copy queries. These queries have IContextObject arguments. The problem is to do with whether the query accept the given context (which has most of the arguments) and the whether the policy is suitable. The policy holds the selection and so the IContextObjects etc. and the selected heap objects. I don't think queries that need a IContextObjectSet are properly filtered either For a pop-up menu or search on selected row(s): only queries needing heap objects or context objects (rows) should be shown (i.e. the query should be affected by the selection of items) if the query requires IContextObjectSet then all the rows should be of that type For a menu from the tool bar queries that require a context object should not appear queries that require heap objects can (the wizard can fill those in) The solution is to use the policy everywhere, and have a default policy which doesn't provide any IContextObjects.
The UISnapshotQueryContext needs to say it has an IContextObjectSet then the policy will determine if there is one.
I've made the changes, and also added some test queries to check that the right queries appear when a IContextObject IContextObject[] IContextObjectSet IContextObjectSet[] are available.
I've updated the command line for the query browser so that the IObjectContext is filled in for the context browser, but not for the pop up browser.
The copy queries now appear in the context menus and the context query browser but not in the pop up menus.