mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't search classes if there is dot in pattern
(cherry picked from commit f231438d3d50044033963cbdb4a5b0a9d7a69cf9)
This commit is contained in:
@@ -1213,6 +1213,11 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA
|
||||
}
|
||||
|
||||
private void buildClasses(String pattern, boolean includeLibraries) {
|
||||
if (pattern.indexOf('.') != -1) {
|
||||
//todo[kb] it's not a mistake. If we search for "*.png" or "index.xml" in SearchEverywhere
|
||||
//todo[kb] we don't want to see Java classes started with Png or Xml. This approach should be reworked someday.
|
||||
return;
|
||||
}
|
||||
boolean includeLibs = includeLibraries || showAll.get();
|
||||
int clsCounter = 0;
|
||||
final int maxCount = includeLibraries ? 5 : MAX_CLASSES;
|
||||
|
||||
Reference in New Issue
Block a user