Interface ProgramTableModel

All Known Implementing Classes:
AddressArrayTableModel, AddressBasedTableModel, AddressPreviewTableModel, AddressSetTableModel, AlignedObjectBasedPreviewTableModel, CustomLoadingAddressTableModel, FunctionXrefsTableModel, GhidraProgramTableModel, IncomingReferencesTableModel, ProgramLocationPreviewTableModel, ReferencesFromTableModel, TableChooserTableModel

public interface ProgramTableModel
An interface for translating table rows and columns into program locations and selections.
  • Method Summary

    Change
    Modifier and Type
    Method
    Description
    Returns the program associated with this ProgramTableModel.
    MODIFIED
    getProgramLocation(int modelRow, int modelColumn)
    Returns a program location corresponding the given row and column.
    MODIFIED
    getProgramSelection(int[] modelRows)
    Returns a program selection corresponding to the specified row index array.
  • Method Details

    • getProgramLocation MODIFIED

      ProgramLocation getProgramLocation(int modelRow, int modelColumn)
      param 1 renamed: row → modelRow; param 2 renamed: column → modelColumn
      -ghidra.program.util.ProgramLocation getProgramLocation(int row, int column)
      +ghidra.program.util.ProgramLocation getProgramLocation(int modelRow, int modelColumn)
      Returns a program location corresponding the given row and column.

      Motivation: Given a table that has a column that contains addresses. If the user clicks on this column, then it would be nice to have the CodeBrowser navigate to this address.

      Parameters:
      modelRow (was: row) - the row
      modelColumn (was: column) - the column in the model's index
      Returns:
      a program location corresponding the given row and column
    • getProgramSelection MODIFIED

      ProgramSelection getProgramSelection(int[] modelRows)
      param 1 renamed: rows → modelRows
      -ghidra.program.util.ProgramSelection getProgramSelection(int[] rows)
      +ghidra.program.util.ProgramSelection getProgramSelection(int[] modelRows)
      Returns a program selection corresponding to the specified row index array. This array will contain the currently selected rows.
      Parameters:
      modelRows (was: rows) - the currently selected rows.
      Returns:
      a program selection
    • getProgram

      Program getProgram()
      Returns the program associated with this ProgramTableModel.
      Returns:
      the program associated with this ProgramTableModel.