mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-07 21:24:00 -05:00
Merge remote-tracking branch 'origin/GP-6206-dragonmacher-byte-viewer-action-fix'
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/* ###
|
||||
* IP: GHIDRA
|
||||
* REVIEWED: YES
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,7 +15,10 @@
|
||||
*/
|
||||
package ghidra.app.plugin.core.byteviewer;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import ghidra.app.context.NavigatableActionContext;
|
||||
import ghidra.program.model.listing.Function;
|
||||
|
||||
public class ByteViewerActionContext extends NavigatableActionContext {
|
||||
|
||||
@@ -24,4 +26,13 @@ public class ByteViewerActionContext extends NavigatableActionContext {
|
||||
super(provider, provider);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasFunctions() {
|
||||
return false; // the Byte Viewer doesn't work on functions
|
||||
}
|
||||
|
||||
@Override
|
||||
public Set<Function> getFunctions() {
|
||||
return Set.of(); // the Byte Viewer doesn't work on functions
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user