Class EmptyListingModel
java.lang.Object
ghidra.app.util.viewer.listingpanel.EmptyListingModel
- All Implemented Interfaces:
ListingModel
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ListingModelListener listener) Adds a listener for changes to this model.adjustAddressSetToCodeUnitBoundaries(AddressSet addressSet) Adjusts each range in the given address set to be on code unit boundaries.booleanareFunctionVariablesOpen(Address FunctionAddress) Checks if the function variables are being displayed at the given addressvoidcloseAllData(AddressSetView addresses, TaskMonitor monitor) Closes all data found within the given addresses.voidcloseAllData(Data data, TaskMonitor monitor) Recursively close the given data and its sub-components.voidCloses the given data, but not any sub-components.copy()Makes a copy of this model.voiddispose()Disposes this modelgetAddressAfter(Address address) getAddressBefore(Address address) intReturns the width of the longest layout this model can produce..Returns the program being displayed by this model..booleanisClosed()Returns true if the program being displayed by this listing has been closed (and therefor the model is invalid.).booleanReturns true if the data is openvoidopenAllData(AddressSetView addresses, TaskMonitor monitor) Opens all data found within the given addresses.voidopenAllData(Data data, TaskMonitor monitor) Recursively open the given data and its sub-components.booleanOpens the given data, but not any sub-components.voidremoveListener(ListingModelListener listener) Removes a listener from those being notified of model changes.voidsetAllFunctionVariablesOpen(boolean open) Sets the display of variables for all functions.voidsetFormatManager(FormatManager formatManager) Sets theFormatManagerfor this model which determines the layout of the fields.voidsetFunctionVariablesOpen(Address functionAddress, boolean open) Sets whether or not to display function variables for the function at the given address.voidtoggleOpen(Data object) Changes the open state of the given data (open -> closes; closed-> open).
-
Constructor Details
-
EmptyListingModel
public EmptyListingModel()
-
-
Method Details
-
addListener
Description copied from interface:ListingModelAdds a listener for changes to this model.- Specified by:
addListenerin interfaceListingModel- Parameters:
listener- the listener to be notified
-
getAddressAfter
- Specified by:
getAddressAfterin interfaceListingModel
-
getAddressBefore
- Specified by:
getAddressBeforein interfaceListingModel
-
getAddressSet
- Specified by:
getAddressSetin interfaceListingModel
-
getLayout
- Specified by:
getLayoutin interfaceListingModel
-
getMaxWidth
public int getMaxWidth()Description copied from interface:ListingModelReturns the width of the longest layout this model can produce..- Specified by:
getMaxWidthin interfaceListingModel- Returns:
- the width of the longest layout this model can produce.
-
getProgram
Description copied from interface:ListingModelReturns the program being displayed by this model..- Specified by:
getProgramin interfaceListingModel- Returns:
- the program being displayed by this model.
-
isOpen
Description copied from interface:ListingModelReturns true if the data is open- Specified by:
isOpenin interfaceListingModel- Parameters:
object- the data to check- Returns:
- true if the data is open
-
removeListener
Description copied from interface:ListingModelRemoves a listener from those being notified of model changes.- Specified by:
removeListenerin interfaceListingModel- Parameters:
listener- the listener to be removed
-
toggleOpen
Description copied from interface:ListingModelChanges the open state of the given data (open -> closes; closed-> open).- Specified by:
toggleOpenin interfaceListingModel- Parameters:
object- the data to open
-
setFunctionVariablesOpen
Description copied from interface:ListingModelSets whether or not to display function variables for the function at the given address.- Specified by:
setFunctionVariablesOpenin interfaceListingModel- Parameters:
functionAddress- the address of the functionopen- if true, the variables are displayed, otherwise they are hidden
-
setAllFunctionVariablesOpen
public void setAllFunctionVariablesOpen(boolean open) Description copied from interface:ListingModelSets the display of variables for all functions. This basically sets the default state, but the state can be overridden for individual functions. Changing this value erases all individually set values.- Specified by:
setAllFunctionVariablesOpenin interfaceListingModel- Parameters:
open- if true, show function variables
-
areFunctionVariablesOpen
Description copied from interface:ListingModelChecks if the function variables are being displayed at the given address- Specified by:
areFunctionVariablesOpenin interfaceListingModel- Parameters:
FunctionAddress- the address of the function- Returns:
- true if the variables are being displayed for the function at the given address
-
openAllData
Description copied from interface:ListingModelRecursively open the given data and its sub-components.- Specified by:
openAllDatain interfaceListingModel- Parameters:
data- the data to openmonitor- the task monitor
-
closeAllData
Description copied from interface:ListingModelRecursively close the given data and its sub-components.- Specified by:
closeAllDatain interfaceListingModel- Parameters:
data- the data to closemonitor- the task monitor
-
closeData
Description copied from interface:ListingModelCloses the given data, but not any sub-components.- Specified by:
closeDatain interfaceListingModel- Parameters:
data- the data to close
-
openData
Description copied from interface:ListingModelOpens the given data, but not any sub-components.- Specified by:
openDatain 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)
-
openAllData
Description copied from interface:ListingModelOpens all data found within the given addresses. Each data is fully opened.- Specified by:
openAllDatain interfaceListingModel- Parameters:
addresses- the range of addresses to search for datamonitor- the task monitor
-
closeAllData
Description copied from interface:ListingModelCloses all data found within the given addresses. Each data is fully closed.- Specified by:
closeAllDatain interfaceListingModel- Parameters:
addresses- the range of addresses to search for datamonitor- the task monitor
-
isClosed
public boolean isClosed()Description copied from interface:ListingModelReturns true if the program being displayed by this listing has been closed (and therefor the model is invalid.).- Specified by:
isClosedin interfaceListingModel- Returns:
- true if the program being displayed by this listing has been closed (and therefor the model is invalid.)
-
setFormatManager
Description copied from interface:ListingModelSets theFormatManagerfor this model which determines the layout of the fields.- Specified by:
setFormatManagerin interfaceListingModel- Parameters:
formatManager- the new FormatManager to use
-
dispose
public void dispose()Description copied from interface:ListingModelDisposes this model- Specified by:
disposein interfaceListingModel
-
adjustAddressSetToCodeUnitBoundaries
Description copied from interface:ListingModelAdjusts each range in the given address set to be on code unit boundaries.- Specified by:
adjustAddressSetToCodeUnitBoundariesin interfaceListingModel- Parameters:
addressSet- the address set to be adjusted- Returns:
- a new AddressSet where each range is on a code unit boundary
-
copy
Description copied from interface:ListingModelMakes a copy of this model.- Specified by:
copyin interfaceListingModel- Returns:
- a copy of this model.
-