Community
Participate
Working Groups
It should be possible to provide shortcuts to some queries by contributing context menu actions across the workbench. For example, rather than entering the query: relationship implements(*,interface Operator) I could right click the interface 'Operator' (anywhere I see it? Or maybe just in package/concern explorer?) and get a new menu option ... ... CMEQuery > ... Following the CMEQuery option I get a submenu which would contain (probably amongst other options) something like "Find implementors" By selecting that, the query view would be updated and the query evaluated. Things to consider: - How do we determine the scope for the query? - What is the set of queries that make sensible shortcuts for resources? - what else?
As sent to cme-dev: This is still in progress, but I've checked what I have so far into CVS so people can try it out for themselves. There is now a "Search for" entry on the popup menu that appears when you right-click an element in the concern explorer view, with a few sample queries in the submenu. The queries are currently stored in the CMEPluginResources.properties file under org.eclipse.cme.ui.core.resources (this will probably change in the future). The "QueryList" property defines the list of queries to include. Everything in this list has "Context_" added to the front, and either "_name" or "_query" added to the end, to get the name of the property which contains either the name to give the query, or the query itself, respectively. The query strings contain "%s", which is replaced by the name of the selected concern model element. Issues and remaining items include: - Names might not be unique in the concern model, so the generated queries may return more results than expected - The queries appear on all elements in the explorer which may not always be appropriate - There is no way to set scope yet - the workspace is always the scope used - The query menu doesn't yet appear anywhere else, such as in the search results view - There are no "call" based queries as yet - will probably need to be able to set the scope for these Please send me (or just check in) any useful queries you define, or any other feedback.