mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
EA-84131 - IAE: SearchableOptionsRegistrarImpl.getProcessedWordsWithoutStemming
This commit is contained in:
@@ -36,6 +36,7 @@ public interface IdeaPluginDescriptor extends PluginDescriptor {
|
||||
|
||||
String getChangeNotes();
|
||||
|
||||
@NotNull
|
||||
String getName();
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -351,6 +351,7 @@ public class IdeaPluginDescriptorImpl implements IdeaPluginDescriptor {
|
||||
return myChangeNotes;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
public String getName() {
|
||||
return myName;
|
||||
|
||||
+3
-2
@@ -175,13 +175,14 @@ public class SearchableOptionsRegistrarImpl extends SearchableOptionsRegistrar {
|
||||
}
|
||||
|
||||
for (IdeaPluginDescriptor plugin : PluginManagerCore.getPlugins()) {
|
||||
final Set<String> words = getProcessedWordsWithoutStemming(plugin.getName());
|
||||
final String pluginName = plugin.getName();
|
||||
final Set<String> words = getProcessedWordsWithoutStemming(pluginName);
|
||||
final String description = plugin.getDescription();
|
||||
if (description != null) {
|
||||
words.addAll(getProcessedWordsWithoutStemming(description));
|
||||
}
|
||||
for (String word : words) {
|
||||
addOption(word, null, plugin.getName(), PluginManagerConfigurable.ID, PluginManagerConfigurable.DISPLAY_NAME);
|
||||
addOption(word, null, pluginName, PluginManagerConfigurable.ID, PluginManagerConfigurable.DISPLAY_NAME);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user