mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02: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:
commit
78d9a6c6e3
149 changed files with 1354 additions and 1232 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue