mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
even more places to reference AllIcons
This commit is contained in:
@@ -111,8 +111,11 @@ public class UsedIconsListingAction extends AnAction {
|
||||
MethodReferencesSearch.search(findIconMethod, false).forEach(consumer);
|
||||
}
|
||||
|
||||
final ProjectFileIndex index = ProjectRootManager.getInstance(project).getFileIndex();
|
||||
PsiClass javaeeIcons = JavaPsiFacade.getInstance(project).findClass("com.intellij.javaee.oss.JavaeeIcons", GlobalSearchScope.allScope(project));
|
||||
MethodReferencesSearch.search(javaeeIcons.findMethodsByName("getIcon", false)[0], false).forEach(consumer);
|
||||
|
||||
final ProjectFileIndex index = ProjectRootManager.getInstance(project).getFileIndex();
|
||||
MethodReferencesSearch.search(findIconMethod, false).forEach(consumer);
|
||||
|
||||
PsiClass allIcons =
|
||||
JavaPsiFacade.getInstance(project).findClass("com.intellij.icons.AllIcons", GlobalSearchScope.allScope(project));
|
||||
@@ -168,7 +171,7 @@ public class UsedIconsListingAction extends AnAction {
|
||||
}
|
||||
}
|
||||
|
||||
if (false /*do replacements*/) {
|
||||
if (true /*do replacements*/) {
|
||||
ArrayList<String> sorted = new ArrayList<String>(answer);
|
||||
Collections.sort(sorted);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user