Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #491389 +++ Would be nice to search for wildcards, in Quick Access. For example "Create * Java".
Assigning to Patrik our "Quick Access" expert.
My initial idea is to transform the filter with wildcards in regexp and use regexp for matching. if(!filter.contains("*") || !filter.contains("?")){ // prepend "\" to special chars: ([{\^-=$!|]}).+ String re = filter.replaceAll("[\\(\\[\\{\\\\\\^\\-\\=\\$\\!\\|\\]\\}\\)\\.\\+]", "\\$0"); // replace * wildcard with \S* ( re = re.replaceAll("\\*", "\\S*"); // replace ? wildcard with \S?+ re = re.replaceAll("\\?", "\\S?"); // return Pattern.compile(re); }
Bug 500661 contains a useful example on how we can use Patterns in QuickAccess searches
Created attachment 265971 [details] image: how it works with the proposed change With the proposed change, wildcards are enabled.
New Gerrit change created: https://git.eclipse.org/r/87469
Gerrit change https://git.eclipse.org/r/87469 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=fc93698203951a827fedcc9de2e5bc84df156034
New Gerrit change created: https://git.eclipse.org/r/87509
Gerrit change https://git.eclipse.org/r/87509 was merged to [master]. Commit: http://git.eclipse.org/c/www.eclipse.org/eclipse/news.git/commit/?id=f37a79599ef98d5ecea7cb880f3440a2578442d9