Skip to content

Instantly share code, notes, and snippets.

@nfalliere
Created November 12, 2018 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfalliere/21813a83979c112a68b4dc9617235189 to your computer and use it in GitHub Desktop.
Save nfalliere/21813a83979c112a68b4dc9617235189 to your computer and use it in GitHub Desktop.
// reference: https://www.pnfsoftware.com/jeb/apidoc
// Print all identifiers supported by the currently instantiated JEB engines
void printAllAvailableIdentifiers(IEnginesContext engctx) {
for(IUnitIdentifier id: engctx.getUnitIdentifiers()) {
logger.info(id.getFormatType());
}
}
// ... or:
// Print all identifiers supported by the currently opened project
void printAllAvailableIdentifiers(IUnit anyUnitInProject) {
for(IUnitIdentifier id: RuntimeProjectUtil.findProject(anyUnitInProject).getProcessor().getUnitIdentifiers()) {
logger.info(id.getFormatType());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment