use of com.google.security.zynamics.binnavi.API.disassembly.AddressSpace in project binnavi by google.
the class CAddressSpaceNodeMenuBuilder method getPluginAddressSpaces.
/**
* Returns the API address space objects for the address spaces for which the menu was built.
*
* @return The API address space objects.
*/
private List<AddressSpace> getPluginAddressSpaces() {
final DatabaseManager manager = PluginInterface.instance().getDatabaseManager();
for (final Database database : manager) {
if (database.getNative() == m_database) {
for (final Project project : database.getProjects()) {
if (project.getNative() == m_project) {
final List<AddressSpace> allSpaces = project.getAddressSpaces();
final List<AddressSpace> menuSpaces = new ArrayList<AddressSpace>();
for (final INaviAddressSpace addressSpace : m_addressSpaces) {
menuSpaces.add(ObjectFinders.getObject(addressSpace, allSpaces));
}
return menuSpaces;
}
}
}
}
throw new IllegalStateException("IE01159: Unknown database");
}
Aggregations