From 07fbf779dfc4d264d422a3af5f8e5e00a93a8758 Mon Sep 17 00:00:00 2001 From: dragonmacher <48328597+dragonmacher@users.noreply.github.com> Date: Fri, 23 Feb 2024 19:13:14 -0500 Subject: [PATCH] Fixed missing help due to help refactor --- .../app/plugin/core/help/ProcessorListPlugin.java | 11 ++++++----- .../src/main/java/ghidra/app/util/HelpTopics.java | 9 +++++++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/help/ProcessorListPlugin.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/help/ProcessorListPlugin.java index e39f4f972f..c140a3c05b 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/help/ProcessorListPlugin.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/help/ProcessorListPlugin.java @@ -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 getProcessors() { TreeSet 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 processors = new TreeSet<>(); LanguageService languageService = DefaultLanguageService.getLanguageService(); - for (LanguageDescription languageDescription : languageService.getLanguageDescriptions( - true)) { + for (LanguageDescription languageDescription : languageService + .getLanguageDescriptions(true)) { processors.add(languageDescription.getProcessor()); } diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/HelpTopics.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/HelpTopics.java index c9839d408a..fc505e5e9f 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/HelpTopics.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/HelpTopics.java @@ -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";