Skip to content

In a Ghidra Java extension how can I achieve what the "Convert" context menu item does in the GUI? #6944

Answered by hippietrail
hippietrail asked this question in Q&A
Discussion options

You must be logged in to vote

Aha thanks. Took me a bit to chase down that I can access this FormatSettingsDefinition from inside a Loader in Java like this:

  FormatSettingsDefinition.DEF.setChoice(data, FormatSettingsDefinition.DECIMAL);

I can't test it since I've forgotten where I needed it while down the Sleigh rabbithole but I have the snippet now when I need it.

Replies: 5 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dev747368
Comment options

@hippietrail
Comment options

Answer selected by hippietrail
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants