Package ghidra.features.base.quickfix
Interface TableDataLoader<T>
- Type Parameters:
T
- The type of objects to load into a table model.
- All Known Implementing Classes:
SearchAndReplaceQuckFixTableLoader
public interface TableDataLoader<T>
Generates table data for a
ThreadedTableModel
. Subclasses
of ThreadedTableModel can call a TableLoader to supply data in the model's doLoad() method. Also
has methods for the client to get feedback on the success of the load.
The idea is that instead of having to subclass the table model to overload the doLoad() method, a general table model is sufficient and be handed a TableDataLoader to provide data to the model.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if at least one item was added to the accumulator.void
loadData
(Accumulator<T> accumulator, TaskMonitor monitor) Loads data into the given accumulatorboolean
Returns true if the load was terminated because the maximum number of items was reached.
-
Method Details
-
loadData
Loads data into the given accumulator- Parameters:
accumulator
- the accumulator for storing table datamonitor
- theTaskMonitor
- Throws:
CancelledException
- if the operation is cancelled
-
didProduceData
boolean didProduceData()Returns true if at least one item was added to the accumulator.- Returns:
- true if at least one item was added to the accumulator
-
maxDataSizeReached
boolean maxDataSizeReached()Returns true if the load was terminated because the maximum number of items was reached.- Returns:
- true if the load was terminated because the maximum number of items was reached.
-