Merge remote-tracking branch 'origin/GP-6206-dragonmacher-byte-viewer-action-fix'

This commit is contained in:
Ryan Kurtz
2026-01-02 13:17:52 -05:00

View File

@@ -1,6 +1,5 @@
/* ### /* ###
* IP: GHIDRA * IP: GHIDRA
* REVIEWED: YES
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -16,7 +15,10 @@
*/ */
package ghidra.app.plugin.core.byteviewer; package ghidra.app.plugin.core.byteviewer;
import java.util.Set;
import ghidra.app.context.NavigatableActionContext; import ghidra.app.context.NavigatableActionContext;
import ghidra.program.model.listing.Function;
public class ByteViewerActionContext extends NavigatableActionContext { public class ByteViewerActionContext extends NavigatableActionContext {
@@ -24,4 +26,13 @@ public class ByteViewerActionContext extends NavigatableActionContext {
super(provider, provider); 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
}
} }