Created
November 12, 2018 21:25
-
-
Save nfalliere/21813a83979c112a68b4dc9617235189 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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