Class ListingModelConverter
java.lang.Object
ghidra.app.util.viewer.multilisting.ListingModelConverter
- 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
ConstructorsConstructorDescriptionListingModelConverter(ListingModel primaryModel, ListingModel model) Converts addresses from the primary model into addresses for this converters model. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ListingModelListener listener) adjustAddressSetToCodeUnitBoundaries(AddressSet addressSet) voidcloseAllData(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()getAddressAfter(Address primaryModelAddress) getAddressBefore(Address primaryModelAddress) intbooleanisClosed()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) voidsetAddressTranslator(AddressTranslator translator) Sets an address translator for this converter.voidsetFormatManager(FormatManager formatManager) voidtoggleOpen(Data data) Changes the open state of the given data (open -> closes; closed-> open).
-
Constructor Details
-
ListingModelConverter
Converts addresses from the primary model into addresses for this converters model.- Parameters:
primaryModel- the primary modelmodel- this converter's model
-
-
Method Details
-
addListener
- Specified by:
addListenerin interfaceListingModel
-
dispose
public void dispose()- Specified by:
disposein interfaceListingModel
-
getAddressAfter
- Specified by:
getAddressAfterin interfaceListingModel
-
getAddressBefore
- Specified by:
getAddressBeforein interfaceListingModel
-
getAddressSet
- Specified by:
getAddressSetin interfaceListingModel
-
getLayout
- Specified by:
getLayoutin interfaceListingModel
-
getMaxWidth
public int getMaxWidth()- Specified by:
getMaxWidthin interfaceListingModel
-
getProgram
- Specified by:
getProgramin interfaceListingModel
-
isClosed
public boolean isClosed()- Specified by:
isClosedin interfaceListingModel
-
isOpen
Description copied from interface:ListingModelReturns true if the data is open- Specified by:
isOpenin interfaceListingModel- Parameters:
data- the data to check- Returns:
- true if the data is open
-
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:ListingModelRecursively open the given data and its sub-components.- Specified by:
openAllDatain interfaceListingModel- Parameters:
data- the data to openmonitor- the task monitor
-
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
-
closeData
Description copied from interface:ListingModelCloses the given data, but not any sub-components.- Specified by:
closeDatain interfaceListingModel- Parameters:
data- the data to close
-
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
-
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
-
removeListener
- Specified by:
removeListenerin interfaceListingModel
-
setFormatManager
- Specified by:
setFormatManagerin interfaceListingModel
-
toggleOpen
Description copied from interface:ListingModelChanges the open state of the given data (open -> closes; closed-> open).- Specified by:
toggleOpenin interfaceListingModel- Parameters:
data- the data to open
-
adjustAddressSetToCodeUnitBoundaries
- Specified by:
adjustAddressSetToCodeUnitBoundariesin interfaceListingModel
-
setAddressTranslator
Sets an address translator for this converter. If provided the translator converts addresses from the primary program to those in the program for this converter's model.- Parameters:
translator- translates addresses between the primary model and this converter's model
-
copy
Description copied from interface:ListingModelMakes a copy of this model.- Specified by:
copyin interfaceListingModel- Returns:
- a copy of this model.
-