Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cme-dev] Context sensitive menu actions for certain queries

Thanks Juri, and others for your input.

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.

Regards,

Matt.

-- 
Matt Chapman, mchapman@xxxxxxxxxx



Back to the top