Class AddressPreviewTableModel

All Implemented Interfaces:
ConfigurableColumnTableModel, DynamicColumnTableModel<Address>, RowObjectFilterModel<Address>, RowObjectTableModel<Address>, SelectionStorage<Address>, SortedTableModel, VariableColumnTableModel, ProgramTableModel, Serializable, EventListener, ChangeListener, TableModel
Direct Known Subclasses:
AddressArrayTableModel, AddressSetTableModel, CustomLoadingAddressTableModel

public abstract class AddressPreviewTableModel extends AddressBasedTableModel<Address>
Table model that shows a location, label, and a preview column to show a preview of the code unit. The location can be in a memory address, a stack address, or a register address. The label is the primary symbol at the address, if one exists. Use this model when you have a list of addresses to build up dynamically.
See Also:
  • Constructor Details

    • AddressPreviewTableModel

      protected AddressPreviewTableModel(String modelName, ServiceProvider serviceProvider, Program program, TaskMonitor monitor)
      Constructor.
      Parameters:
      modelName - the name of the model (used for the title)
      serviceProvider - from which to get services
      program - the program upon which this model is being used
      monitor - the monitor to use for tracking progress and cancelling; may be null
    • AddressPreviewTableModel

      protected AddressPreviewTableModel(String modelName, ServiceProvider serviceProvider, Program program, TaskMonitor monitor, boolean loadIncrementally)
      Constructor.
      Parameters:
      modelName - the name of the model (used for the title)
      serviceProvider - from which to get services
      program - the program upon which this model is being used
      monitor - the monitor to use for tracking progress and cancelling; may be null
      loadIncrementally - true signals to show table results as they come in
  • Method Details

    • getAddress

      public Address getAddress(int row)
      Description copied from class: GhidraProgramTableModel
      Returns the best Address for the given row.

      Implementation Note: this class will only return an Address if this model's row type is Address. Clients that know how to get an Address for a given row should override this method.

      Overrides:
      getAddress in class GhidraProgramTableModel<Address>
      Parameters:
      row - the row
      Returns:
      the Address or null