mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch
'origin/GP-3349_ghidragon_adding_support_for_mutliple_default_contexts--SQUASHED' Conflicts: Ghidra/Features/ByteViewer/src/test.slow/java/ghidra/app/plugin/core/byteviewer/ByteViewerPlugin2Test.java
This commit is contained in:
@@ -205,17 +205,16 @@ public class RandomForestFunctionFinderPlugin extends ProgramPlugin
|
||||
private void createActions() {
|
||||
|
||||
new ActionBuilder(ACTION_NAME, getName())
|
||||
.menuPath(ToolConstants.MENU_SEARCH, MENU_PATH_ENTRY)
|
||||
.menuGroup("search for", null)
|
||||
.description("Train models to search for function starts")
|
||||
.helpLocation(new HelpLocation(getName(), getName()))
|
||||
.withContext(NavigatableActionContext.class)
|
||||
.validContextWhen(c -> !(c instanceof RestrictedAddressSetContext))
|
||||
.supportsDefaultToolContext(true)
|
||||
.onAction(c -> {
|
||||
displayDialog(c);
|
||||
})
|
||||
.buildAndInstall(tool);
|
||||
.menuPath(ToolConstants.MENU_SEARCH, MENU_PATH_ENTRY)
|
||||
.menuGroup("search for", null)
|
||||
.description("Train models to search for function starts")
|
||||
.helpLocation(new HelpLocation(getName(), getName()))
|
||||
.withContext(NavigatableActionContext.class, true)
|
||||
.validContextWhen(c -> !(c instanceof RestrictedAddressSetContext))
|
||||
.onAction(c -> {
|
||||
displayDialog(c);
|
||||
})
|
||||
.buildAndInstall(tool);
|
||||
}
|
||||
|
||||
private void displayDialog(NavigatableActionContext c) {
|
||||
|
||||
Reference in New Issue
Block a user