Fixed missing help due to help refactor

This commit is contained in:
dragonmacher
2024-02-23 19:13:14 -05:00
parent afbe571554
commit 07fbf779df
2 changed files with 13 additions and 7 deletions

View File

@@ -90,7 +90,8 @@ public class ProcessorListPlugin extends Plugin implements ApplicationLevelPlugi
processorListAction.setMenuBarData(new MenuData(
new String[] { ToolConstants.MENU_HELP, processorListAction.getName() }, null, "AAAZ"));
processorListAction.setHelpLocation(new HelpLocation(HelpTopics.ABOUT, "ProcessorList"));
processorListAction
.setHelpLocation(new HelpLocation(HelpTopics.RUNTIME_INFO, "InstalledProcessors"));
processorListAction.setDescription(getPluginDescription().getDescription());
tool.addAction(processorListAction);
}
@@ -115,8 +116,8 @@ public class ProcessorListPlugin extends Plugin implements ApplicationLevelPlugi
private Set<Processor> getProcessors() {
TreeSet<Processor> processors = new TreeSet<>();
LanguageService languageService = DefaultLanguageService.getLanguageService();
for (LanguageDescription languageDescription : languageService.getLanguageDescriptions(
true)) {
for (LanguageDescription languageDescription : languageService
.getLanguageDescriptions(true)) {
processors.add(languageDescription.getProcessor());
}
return processors;
@@ -211,8 +212,8 @@ public class ProcessorListPlugin extends Plugin implements ApplicationLevelPlugi
TreeSet<Processor> processors = new TreeSet<>();
LanguageService languageService = DefaultLanguageService.getLanguageService();
for (LanguageDescription languageDescription : languageService.getLanguageDescriptions(
true)) {
for (LanguageDescription languageDescription : languageService
.getLanguageDescriptions(true)) {
processors.add(languageDescription.getProcessor());
}

View File

@@ -18,7 +18,7 @@ package ghidra.app.util;
/**
* Topics for Help. The strings correspond to a folder under the "topics"
* resource.
*
*
*/
public interface HelpTopics {
@@ -165,7 +165,12 @@ public interface HelpTopics {
*/
public final static String REPOSITORY = GenericHelpTopics.REPOSITORY;
/**
/**
* Help Topic for the Runtime Info Plugin.
*/
public final static String RUNTIME_INFO = "RuntimeInfoPlugin";
/**
* Help Topic for search functions.
*/
public final static String SEARCH = "Search";