| Summary: | Create a NameQuery -- one that searches for IUs that match a specific name | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Ian Bull <irbull> |
| Component: | p2 | Assignee: | Thomas Hallgren <thomas> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | pascal, thomas |
| Version: | unspecified | Keywords: | helpwanted |
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | stalebug | ||
| Bug Depends on: | 253203 | ||
| Bug Blocks: | |||
|
Description
Ian Bull
A QL expression that covers full matching is this:
translations['org.eclipse.equinox.p2.name'] ~= $0
Execute with argument:
SimplePattern.compile('*' + name '*')
or if you want an explicit match:
translations['org.eclipse.equinox.p2.name'] == $0
The built in translation support will keep a cache on the Queryable level. The query string should probably be assembled as:
"translations['" + IInstallableUnit.PROP_NAME + "'] == $0"
or use two parameters, one for property key and another for the name to be matched.
Yep, I was thinking that it might be nice to have something in QueryUtil (to quickly construct this type of query). I'm moving this out since that would be an API change at this point. Move all 3.8 bugs to Juno. Thomas could you please provide a patch for this in QueryUtil? That would be greatly appreciated. Thx. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |