| Summary: | Find contribution class dialog does not support "*" at all | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Levent Yildirim <lyildirim> | ||||
| Component: | Tools | Assignee: | Project Inbox <e4.tools-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | jonah, koehler, Lars.Vogel, mail, marcel.bruch, nobody | ||||
| Version: | 0.12 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Levent Yildirim
Edit: One * is supported and lists all findable classes. If you type more characters, the find list ist empty. * should be supported in any case +1. Dialog should support "contains()" matches at least (with pure prefix matches ranked on top). That would be ContributionClassDialog from org.eclipse.e4.tools.emf.ui. Patch for this would be nice. How to checkout the e4 tools code, is documented here: http://www.vogella.com/articles/Eclipse4Source/article.html#e4gitrepository Created attachment 224077 [details]
Proposed patch to support "*handler" search terms
Are there any tests for org.eclipse.e4.tools.emf.editor3x projects somewhere?
Pushed as http://git.eclipse.org/c/e4/org.eclipse.e4.tools.git/commit/?id=57492f7ea0ae9ead6cb0eb2341a7cb2fe8870292 Thank you Marcel. Thanks Marcel, looks really good. I think the current solution only works for wildcards at the beginning. We should enhance this to support general wildcard matching. Reopening Thanks for applying the patch. While preparing the little patch, I thought that we may improve the general search behavior a bit: A few scenarios I think that should work (some of them al): org.| --> all classes with org in package prefix org.*.Test| --> all classes with "org.*" + class name "Test*" org.*.*test| --> as above but classname is "*test*" To summarize, the selection dialog should behave like the "open type dialog" (it can do all that stuff above). I think the current fix solves the original request. Marking as closed. If someone wants to work on an improved solution please open a new bug report. (In reply to Lars Vogel Unavailable until 04 Jan 2016 from comment #9) > I think the current fix solves the original request. Marking as closed. If > someone wants to work on an improved solution please open a new bug report. An improvement may indeed be needed as depending on the scope there are now exceptions thrown. See new Bug 484969. |