Class ProgramBigListingModel
java.lang.Object
ghidra.app.util.viewer.listingpanel.ProgramBigListingModel
- All Implemented Interfaces:
FormatModelListener
,ListingModel
,DomainObjectListener
,OptionsChangeListener
,EventListener
,ChangeListener
public class ProgramBigListingModel
extends Object
implements ListingModel, FormatModelListener, DomainObjectListener, ChangeListener, OptionsChangeListener
-
Field Summary
Fields inherited from interface ghidra.app.util.viewer.listingpanel.ListingModel
DISPLAY_EXTERNAL_FUNCTION_POINTER_OPTION_NAME, DISPLAY_NONEXTERNAL_FUNCTION_POINTER_OPTION_NAME, FUNCTION_POINTER_OPTION_GROUP_NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ListingModelListener listener) adjustAddressSetToCodeUnitBoundaries
(AddressSet addressSet) void
closeAllData
(AddressSetView addresses, TaskMonitor monitor) Closes all data found within the given addresses.void
closeAllData
(Data data, TaskMonitor monitor) Recursively close the given data and its sub-components.void
Closes the given data, but not any sub-components.copy()
Makes a copy of this model.void
dispose()
void
Method called when a change is made to the domain object.void
Notifies that the given format model was changed.getAddressAfter
(Address address) getAddressBefore
(Address addr) int
boolean
isClosed()
boolean
Returns true if the data is openboolean
isOpenData
(CodeUnit cu) protected void
notifyDataChanged
(boolean updateImmediately) void
openAllData
(AddressSetView addresses, TaskMonitor monitor) Opens all data found within the given addresses.void
openAllData
(Data data, TaskMonitor monitor) Recursively open the given data and its sub-components.boolean
Opens the given data, but not any sub-components.void
optionsChanged
(ToolOptions options, String optionName, Object oldValue, Object newValue) Notification that an option changed.void
removeListener
(ListingModelListener listener) void
setFormatManager
(FormatManager formatManager) void
void
toggleOpen
(Data data) Changes the open state of the given data (open -> closes; closed-> open).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.app.util.viewer.format.FormatModelListener
formatModelAdded, formatModelRemoved
-
Field Details
-
program
-
-
Constructor Details
-
ProgramBigListingModel
-
-
Method Details
-
optionsChanged
public void optionsChanged(ToolOptions options, String optionName, Object oldValue, Object newValue) Description copied from interface:OptionsChangeListener
Notification that an option changed.Note: to reject an options change, you can throw a
OptionsVetoException
.- Specified by:
optionsChanged
in interfaceOptionsChangeListener
- Parameters:
options
- options object containing the property that changedoptionName
- name of option that changedoldValue
- old value of the optionnewValue
- new value of the option
-
getAddressSet
- Specified by:
getAddressSet
in interfaceListingModel
-
dispose
public void dispose()- Specified by:
dispose
in interfaceListingModel
-
setFormatManager
- Specified by:
setFormatManager
in interfaceListingModel
-
stateChanged
- Specified by:
stateChanged
in interfaceChangeListener
-
getLayout
- Specified by:
getLayout
in interfaceListingModel
-
getMaxWidth
public int getMaxWidth()- Specified by:
getMaxWidth
in interfaceListingModel
-
getAddressAfter
- Specified by:
getAddressAfter
in interfaceListingModel
-
getAddressBefore
- Specified by:
getAddressBefore
in interfaceListingModel
-
isOpenData
-
isOpen
Description copied from interface:ListingModel
Returns true if the data is open- Specified by:
isOpen
in interfaceListingModel
- Parameters:
data
- the data to check- Returns:
- true if the data is open
-
toggleOpen
Description copied from interface:ListingModel
Changes the open state of the given data (open -> closes; closed-> open).- Specified by:
toggleOpen
in interfaceListingModel
- Parameters:
data
- the data to open
-
openAllData
Description copied from interface:ListingModel
Recursively open the given data and its sub-components.- Specified by:
openAllData
in interfaceListingModel
- Parameters:
data
- the data to openmonitor
- the task monitor
-
closeAllData
Description copied from interface:ListingModel
Recursively close the given data and its sub-components.- Specified by:
closeAllData
in interfaceListingModel
- Parameters:
data
- the data to closemonitor
- the task monitor
-
openAllData
Description copied from interface:ListingModel
Opens all data found within the given addresses. Each data is fully opened.- Specified by:
openAllData
in interfaceListingModel
- Parameters:
addresses
- the range of addresses to search for datamonitor
- the task monitor
-
closeAllData
Description copied from interface:ListingModel
Closes all data found within the given addresses. Each data is fully closed.- Specified by:
closeAllData
in interfaceListingModel
- Parameters:
addresses
- the range of addresses to search for datamonitor
- the task monitor
-
closeData
Description copied from interface:ListingModel
Closes the given data, but not any sub-components.- Specified by:
closeData
in interfaceListingModel
- Parameters:
data
- the data to close
-
openData
Description copied from interface:ListingModel
Opens the given data, but not any sub-components.- Specified by:
openData
in interfaceListingModel
- Parameters:
data
- the data to open- Returns:
- true if the data was opened (will return false if the data is already open or has no children)
-
notifyDataChanged
protected void notifyDataChanged(boolean updateImmediately) -
formatModelChanged
Description copied from interface:FormatModelListener
Notifies that the given format model was changed.- Specified by:
formatModelChanged
in interfaceFormatModelListener
- Parameters:
model
- the model that was changed.
-
addListener
- Specified by:
addListener
in interfaceListingModel
-
removeListener
- Specified by:
removeListener
in interfaceListingModel
-
getProgram
- Specified by:
getProgram
in interfaceListingModel
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceListingModel
-
domainObjectChanged
Description copied from interface:DomainObjectListener
Method called when a change is made to the domain object.- Specified by:
domainObjectChanged
in interfaceDomainObjectListener
- Parameters:
ev
- event containing the change record and type of change that was made
-
adjustAddressSetToCodeUnitBoundaries
- Specified by:
adjustAddressSetToCodeUnitBoundaries
in interfaceListingModel
-
copy
Description copied from interface:ListingModel
Makes a copy of this model.- Specified by:
copy
in interfaceListingModel
- Returns:
- a copy of this model.
-